{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/axiom-co/main/json-schema/axiom-co-token-created-schema.json",
  "title": "TokenCreated",
  "x-generated": "2026-10-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/axiom-co-tokens-api-openapi.yml#/components/schemas/TokenCreated",
  "allOf": [
    {
      "$ref": "#/$defs/Token"
    },
    {
      "type": "object",
      "properties": {
        "token": {
          "type": "string",
          "description": "The token secret, returned only once."
        }
      }
    }
  ],
  "$defs": {
    "Token": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "scopes": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "datasetCapabilities": {
          "type": "object",
          "additionalProperties": true
        },
        "expiresAt": {
          "type": "string",
          "format": "date-time"
        }
      }
    }
  }
}