{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dropto-run/json-schema/dropto-run-create-token-response-schema.json",
  "title": "CreateTokenResponse",
  "description": "Response of `POST /api/tokens`.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dropto-run-tokens-api-openapi.yml#/components/schemas/CreateTokenResponse",
  "properties": {
    "createdAt": {
      "description": "When it was issued.",
      "format": "date-time",
      "type": "string"
    },
    "expiresAt": {
      "description": "When it stops working on its own, or null.",
      "format": "date-time",
      "type": [
        "null",
        "string"
      ]
    },
    "id": {
      "description": "ULID of the new token.",
      "type": "string"
    },
    "name": {
      "description": "The name it was given.",
      "type": "string"
    },
    "prefix": {
      "description": "Its first characters, which is what every later listing shows.",
      "type": "string"
    },
    "token": {
      "description": "The plaintext. Returned exactly once and recoverable nowhere.",
      "type": "string"
    }
  },
  "required": [
    "id",
    "name",
    "prefix",
    "token",
    "createdAt",
    "expiresAt"
  ],
  "type": "object"
}