RyTask docs
REST APIApi tokens

Mint a PAT — secret returned ONCE (FR-AUTH-007, SC-012)

View as MarkdownOpen in ChatGPTOpen in Claude
POST
/api-tokens

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/api-tokens" \  -H "Content-Type: application/json" \  -d '{    "name": "string"  }'
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "name": "string",  "type": "PAT",  "scopes": [    "string"  ],  "lastUsedAt": "2019-08-24T14:15:22Z",  "expiresAt": "2019-08-24T14:15:22Z",  "createdAt": "2019-08-24T14:15:22Z",  "secret": "string"}