{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/paradex/json-schema/paradex-responses-create-token-response-schema.json",
  "title": "responses.CreateTokenResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/paradex-token-api-openapi.yml#/components/schemas/responses.CreateTokenResponse",
  "type": "object",
  "properties": {
    "api_token": {
      "description": "The token metadata",
      "allOf": [
        {
          "$ref": "#/$defs/responses.ApiToken"
        }
      ]
    },
    "token": {
      "description": "The generated JWT token",
      "type": "string"
    }
  },
  "$defs": {
    "responses.ApiToken": {
      "type": "object",
      "properties": {
        "allowed_cidrs": {
          "description": "IP CIDR allowlist; empty means unrestricted",
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "created_at": {
          "description": "Token creation timestamp (nanoseconds since epoch)",
          "type": "integer"
        },
        "expiry_at": {
          "description": "Expiration timestamp (nanoseconds since epoch)",
          "type": "integer"
        },
        "kind": {
          "description": "Token type (jwt, api_key, etc.)",
          "type": "string"
        },
        "last_updated_at": {
          "description": "Last modification timestamp (nanoseconds since epoch)",
          "type": "integer"
        },
        "lookup_id": {
          "description": "Identifier used for the token lookup",
          "type": "string"
        },
        "name": {
          "description": "User-provided token name",
          "type": "string"
        },
        "revoked_at": {
          "description": "Revocation timestamp (nanoseconds since epoch, 0 if not revoked)",
          "type": "integer"
        },
        "token_id": {
          "description": "Unique ID for the auth token",
          "type": "string"
        }
      }
    }
  }
}