Discord · Schema

AccessTokenResponse

ChatCommunicationGamingMessagingSocialVideoVoice

Properties

Name Type Description
access_token string The access token
token_type string Always "Bearer"
expires_in integer Token lifetime in seconds
refresh_token string Refresh token for obtaining new access tokens
scope string Space-delimited list of granted scopes
guild object
webhook object
View JSON Schema on GitHub

JSON Schema

discord-accesstokenresponse-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/AccessTokenResponse",
  "title": "AccessTokenResponse",
  "type": "object",
  "properties": {
    "access_token": {
      "type": "string",
      "description": "The access token"
    },
    "token_type": {
      "type": "string",
      "description": "Always \"Bearer\""
    },
    "expires_in": {
      "type": "integer",
      "description": "Token lifetime in seconds"
    },
    "refresh_token": {
      "type": "string",
      "description": "Refresh token for obtaining new access tokens"
    },
    "scope": {
      "type": "string",
      "description": "Space-delimited list of granted scopes"
    },
    "guild": {
      "$ref": "#/components/schemas/PartialGuild"
    },
    "webhook": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "token": {
          "type": "string"
        },
        "channel_id": {
          "type": "string"
        },
        "name": {
          "type": "string",
          "nullable": true
        }
      }
    }
  },
  "required": [
    "access_token",
    "token_type",
    "expires_in",
    "scope"
  ]
}