Skip to content
Seal
Esc
↑↓navigate↵open⌘Jpreview

Create an API token

Returns the full seal_… secret once. Store it — it cannot be retrieved again. Requires admin/owner (or a token with the admin scope).

POST/organizations/{organizationSlug}/tokens
Authorization
AuthorizationBearer token · headerrequired

Pass your API key as a Bearer token. API keys are scoped to specific operations — configure scopes in your organization's Settings → Developer → API Keys.

Path parameters
organizationSlugstringrequired
Request body
requiredapplication/json
namestringrequired
scopesApiTokenScope[]required
min items 1
Responses
201

Created

idstringrequired
publicIdstringrequired
namestringrequired
scopesApiTokenScope[]required
lastUsedAtstring<date-time> | null
revokedAtstring<date-time> | null
createdAtstring<date-time>required
tokenstring

Full secret — only returned once on create

400

Invalid request parameters

typestringrequired

Machine-readable error code

statusintegerrequired

HTTP status code

titlestringrequired

Human-readable error message

detailsobject

Field-level validation errors

401

Missing or invalid API key

typestringrequired

Machine-readable error code

statusintegerrequired

HTTP status code

titlestringrequired

Human-readable error message

detailsobject

Field-level validation errors

403

Forbidden

typestringrequired

Machine-readable error code

statusintegerrequired

HTTP status code

titlestringrequired

Human-readable error message

detailsobject

Field-level validation errors

Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X POST "https://api.seal.nyc/api/v1/organizations/string/tokens" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "string",
  "scopes": [
    "read"
  ]
}'
Response
{
  "id": "string",
  "publicId": "string",
  "name": "string",
  "scopes": [
    "read"
  ],
  "lastUsedAt": "2019-08-24T14:15:22Z",
  "revokedAt": "2019-08-24T14:15:22Z",
  "createdAt": "2019-08-24T14:15:22Z",
  "token": "string"
}