RyTask docs
MCP tools

create_api_token

Mint a scoped personal access token (secret returned once) — a RyTask MCP tool for AI agents over the Model Context Protocol (requires the tokens:write permission).

View as MarkdownOpen in ChatGPTOpen in Claude

Mint a scoped personal access token (secret returned once).

Required permissiontokens:write
Capability IDapiTokens.create
DestructiveNo

Parameters

ParameterTypeRequiredNotes
namestringyes
typePAT | MCPno
scopesarray of stringno
expiresAtstring (ISO date-time) | nullno

Input schema (JSON Schema)

{
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 120
    },
    "type": {
      "type": "string",
      "enum": [
        "PAT",
        "MCP"
      ],
      "default": "PAT"
    },
    "scopes": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 120
      },
      "default": []
    },
    "expiresAt": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "name"
  ],
  "additionalProperties": false
}

Access control

A call succeeds only when the personal access token's scopes and the holder's role both allow tokens:write (effective permission = scope ∩ role, default-deny). The tool runs inside the token owner's organization — tenancy is never a parameter.

On this page