token.mint

Mint an access token for this store (Ajan = propose-only, Geliştirici = direct). Owner sessions only; the plaintext is returned once by POST /v1/tokens, never audited.

Payload

fieldtyperequirednotes
kind"agent" | "developer"yes
labelstring (≤60 chars)yes
scopesarray<string (/^[a-z]+(:[a-z]+)?$/)> (≤10)yes
expiresInDaysinteger (1..365, default 90)no
rateLimitPerMininteger (10..1000)no
tokenHashstring (/^[a-f0-9]{64}$/)yes
prefixstring (/^[A-Za-z0-9_-]{8}$/)yes
workspaceIdstring (/^ws_[0-9A-HJKMNP-TV-Z]{26}$/)no

JSON Schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "kind": {
      "type": "string",
      "enum": [
        "agent",
        "developer"
      ]
    },
    "label": {
      "type": "string",
      "minLength": 1,
      "maxLength": 60
    },
    "scopes": {
      "minItems": 1,
      "maxItems": 10,
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^[a-z]+(:[a-z]+)?$"
      }
    },
    "expiresInDays": {
      "default": 90,
      "type": "integer",
      "minimum": 1,
      "maximum": 365
    },
    "rateLimitPerMin": {
      "type": "integer",
      "minimum": 10,
      "maximum": 1000
    },
    "tokenHash": {
      "type": "string",
      "pattern": "^[a-f0-9]{64}$"
    },
    "prefix": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]{8}$"
    },
    "workspaceId": {
      "type": "string",
      "pattern": "^ws_[0-9A-HJKMNP-TV-Z]{26}$"
    }
  },
  "required": [
    "kind",
    "label",
    "scopes",
    "tokenHash",
    "prefix"
  ],
  "additionalProperties": false
}
Generated from the live platform registries at build time — reference pages cannot go stale. Markdown variant: /reference/commands/token.mint.md