{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/telnyx/main/json-schema/telnyx-oauth-grant-schema.json",
  "title": "OAuthGrant",
  "x-generated": "2026-10-08",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/telnyx-oauth-grants-api-openapi.yml#/components/schemas/OAuthGrant",
  "properties": {
    "client_id": {
      "description": "OAuth client identifier",
      "type": "string"
    },
    "created_at": {
      "description": "Timestamp when the grant was created",
      "format": "date-time",
      "type": "string"
    },
    "id": {
      "description": "Unique identifier for the OAuth grant",
      "format": "uuid",
      "type": "string"
    },
    "last_used_at": {
      "description": "Timestamp when the grant was last used",
      "format": "date-time",
      "type": [
        "string",
        "null"
      ]
    },
    "record_type": {
      "description": "Record type identifier",
      "enum": [
        "oauth_grant"
      ],
      "type": "string"
    },
    "scopes": {
      "description": "List of granted OAuth scopes",
      "items": {
        "type": "string"
      },
      "type": "array"
    }
  },
  "required": [
    "id",
    "record_type",
    "client_id",
    "scopes",
    "created_at"
  ],
  "type": "object"
}