{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tradingview/json-schema/tradingview-authorize-response-schema.json",
  "title": "AuthorizeResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tradingview-authorization-api-openapi.yml#/components/schemas/AuthorizeResponse",
  "type": "object",
  "properties": {
    "s": {
      "$ref": "#/$defs/OkStatus"
    },
    "d": {
      "$ref": "#/$defs/AccessToken"
    }
  },
  "required": [
    "s",
    "d"
  ],
  "additionalProperties": false,
  "$defs": {
    "AccessToken": {
      "title": "AccessToken",
      "type": "object",
      "description": "Access token.",
      "properties": {
        "access_token": {
          "type": "string",
          "description": "Access token acts as a session ID that the application uses for making\nrequests. This token should be protected as if it were user\ncredentials.\n"
        },
        "expiration": {
          "type": "number",
          "description": "The time when the token is expired is represented as the number of\nseconds since the Unix epoch (00:00:00 UTC on 1 January 1970).\n"
        }
      },
      "required": [
        "access_token",
        "expiration"
      ],
      "additionalProperties": false
    },
    "OkStatus": {
      "title": "OkStatus",
      "type": "string",
      "description": "Status will always be `ok`.",
      "enum": [
        "ok"
      ]
    }
  }
}