{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/oracle/main/json-schema/oracle-realtime-session-token-schema.json",
  "title": "RealtimeSessionToken",
  "description": "The response from the realtime session token endpoint that creates the auth token to be used with the realtime speech service.",
  "x-generated": "2026-10-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/oracle-aiservicespeech-api-openapi.yml#/components/schemas/RealtimeSessionToken",
  "properties": {
    "compartmentId": {
      "description": "Compartment ID that was used to create the token.",
      "type": "string"
    },
    "definedTags": {
      "additionalProperties": {
        "additionalProperties": {
          "description": "The value of the tag. Only string, integer and boolean types are supported.\n",
          "type": "object"
        },
        "description": "Key-value pair representing predefined tags' keys and values scoped to a namespace.\nExample: `{\"bar-key\": \"value\"}`.\n",
        "type": "object"
      },
      "description": "Defined tags for this resource. Each key is predefined and scoped to a namespace.\nExample: `{\"foo-namespace-1\": {\"bar-key-1\": \"value-1\", \"bar-key-2\": \"value-2\"}, \"foo-namespace-2\": {\"bar-key-1\": \"value-1\", \"bar-key-2\": \"value-2\"}}`.\n",
      "type": "object"
    },
    "freeformTags": {
      "additionalProperties": {
        "type": "string"
      },
      "description": "Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.\nExample: `{\"bar-key\": \"value\"}`.\n",
      "type": "object"
    },
    "sessionId": {
      "description": "The session ID this token corresponds to. Provided for convenience, the session ID is already present in the JWT token.",
      "type": "string"
    },
    "token": {
      "description": "The session token (JWT) to be consumed by the websocket server. The token contains the session/tenant ID, as well as the expiry time.",
      "type": "string"
    }
  },
  "required": [
    "token",
    "sessionId",
    "compartmentId"
  ],
  "type": "object"
}