ProjectTokens


GET /{o}/{p}/tokens

List project API tokens

Returns token metadata only — never the secret value.

Auth: Bearer token required · Permission: tokens:manage

Path parameters

NameTypeDescription
ostring
pstring

Responses

StatusDescriptionSchema
200OKProjectTokenList
401UnauthorizedError
403ForbiddenError

POST /{o}/{p}/tokens

Create a project API token

Returns the full token value exactly once. Optionally scope to a set of cell values.

Auth: Bearer token required · Permission: tokens:manage

Path parameters

NameTypeDescription
ostring
pstring

Request body (application/json)

FieldTypeDescription
namestringToken name (required)
roleowner | admin | write | readRole (owner|admin|write|read)
expiresAtstring(date-time)Expiry timestamp (ISO 8601)
cellScopesstring[] | nullOptional cell scope; null/omitted = all cells, array = restrict to listed cell-label values

Responses

StatusDescriptionSchema
201CreatedProjectTokenCreated
400Bad RequestError
401UnauthorizedError
403ForbiddenError
404Not FoundError

DELETE /{o}/{p}/tokens/{tokenId}

Revoke a project API token

Auth: Bearer token required · Permission: tokens:manage

Path parameters

NameTypeDescription
tokenIdstringToken ID
ostring
pstring

Responses

StatusDescriptionSchema
200OKobject
401UnauthorizedError
403ForbiddenError
404Not FoundError

GET /orgs/{orgId}/projects/{projectId}/tokens

List project API tokens

Returns token metadata only — never the secret value.

Auth: Bearer token required · Permission: tokens:manage

Path parameters

NameTypeDescription
orgIdstring
projectIdstring

Responses

StatusDescriptionSchema
200OKProjectTokenList
401UnauthorizedError
403ForbiddenError

POST /orgs/{orgId}/projects/{projectId}/tokens

Create a project API token

Returns the full token value exactly once. Optionally scope to a set of cell values.

Auth: Bearer token required · Permission: tokens:manage

Path parameters

NameTypeDescription
orgIdstring
projectIdstring

Request body (application/json)

FieldTypeDescription
namestringToken name (required)
roleowner | admin | write | readRole (owner|admin|write|read)
expiresAtstring(date-time)Expiry timestamp (ISO 8601)
cellScopesstring[] | nullOptional cell scope; null/omitted = all cells, array = restrict to listed cell-label values

Responses

StatusDescriptionSchema
201CreatedProjectTokenCreated
400Bad RequestError
401UnauthorizedError
403ForbiddenError
404Not FoundError

DELETE /orgs/{orgId}/projects/{projectId}/tokens/{tokenId}

Revoke a project API token

Auth: Bearer token required · Permission: tokens:manage

Path parameters

NameTypeDescription
tokenIdstringToken ID
orgIdstring
projectIdstring

Responses

StatusDescriptionSchema
200OKobject
401UnauthorizedError
403ForbiddenError
404Not FoundError

Schemas

Error

FieldTypeDescription
errorstring(required)
codestring

ProjectTokenCreated

FieldTypeDescription
idstring(required)
namestring | null(required)
tokenPrefixstring | null(required)
roleowner | admin | write | read(required)
cellScopesstring[] | null(required)
expiresAtstring | string | null(required)
createdAtstring | string(required)
tokenstring(required)

ProjectTokenList

Type: object[]