{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/autodesk/json-schema/autodesk-three-legged-token-schema.json",
  "title": "Authorization Code Grant Response",
  "description": "Represents the payload returned in response to an authorization code grant request.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/autodesk-aps-authentication-openapi.yml#/components/schemas/ThreeLeggedToken",
  "x-stoplight": {
    "id": "gom02zfdg4ivq"
  },
  "type": "object",
  "properties": {
    "token_type": {
      "type": "string",
      "default": "Bearer",
      "description": "Will always be Bearer."
    },
    "expires_in": {
      "type": "integer",
      "description": "Access token expiration time (in seconds)."
    },
    "refresh_token": {
      "type": "string",
      "description": "The refresh token."
    },
    "access_token": {
      "type": "string",
      "description": "The access token."
    },
    "id_token": {
      "type": "string",
      "description": "The ID token, if openid scope was specified in /authorize request."
    },
    "expires_at": {
      "type": "integer",
      "x-stoplight": {
        "id": "qwkwaepy78bpa"
      },
      "description": "Access token expiration time (in seconds)."
    }
  }
}