Archestra AI Tokens API
The Tokens API from Archestra AI — 3 operation(s) for tokens.
The Tokens API from Archestra AI — 3 operation(s) for tokens.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/archestra:archestra-tokens-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Archestra Tokens API
version: 1.4.0-rc.47
tags:
- name: Tokens
paths:
/api/tokens:
get:
operationId: getTokens
tags:
- Tokens
description: 'Get tokens visible to the user based on their permissions
Authentication:
Required. Use an authenticated browser session or send your Archestra API key in the `Authorization` header.
Authorization:
`team:read`: View teams and their members'
parameters:
- schema:
type: string
format: uuid
pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
in: query
name: profileId
required: false
description: 'Annotate each token with worksWithProfile: whether it can authenticate against this profile'
responses:
'200':
description: Default Response
content:
application/json:
schema:
type: object
properties:
tokens:
type: array
items:
type: object
properties:
id:
type: string
format: uuid
pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
name:
type: string
tokenStart:
type: string
isOrganizationToken:
type: boolean
team:
type:
- object
- 'null'
properties:
id:
type: string
name:
type: string
required:
- id
- name
additionalProperties: false
createdAt:
type: string
format: date-time
lastUsedAt:
type:
- string
- 'null'
format: date-time
worksWithProfile:
description: 'Only set when the profileId query param is provided: whether this token can authenticate against that profile (org-scoped agents accept any team token; team-scoped agents only their teams''; personal agents none)'
type: boolean
required:
- id
- name
- tokenStart
- isOrganizationToken
- team
- createdAt
- lastUsedAt
additionalProperties: false
permissions:
type: object
properties:
canAccessOrgToken:
type: boolean
canAccessTeamTokens:
type: boolean
required:
- canAccessOrgToken
- canAccessTeamTokens
additionalProperties: false
required:
- tokens
- permissions
additionalProperties: false
'400':
description: Default Response
content:
application/json:
schema:
type: object
properties:
error:
type: object
properties:
message:
type: string
type:
type: string
enum:
- api_validation_error
internal_code:
type: string
required:
- message
- type
additionalProperties: false
required:
- error
additionalProperties: false
'401':
description: Default Response
content:
application/json:
schema:
type: object
properties:
error:
type: object
properties:
message:
type: string
type:
type: string
enum:
- api_authentication_error
internal_code:
type: string
required:
- message
- type
additionalProperties: false
required:
- error
additionalProperties: false
'403':
description: Default Response
content:
application/json:
schema:
type: object
properties:
error:
type: object
properties:
message:
type: string
type:
type: string
enum:
- api_authorization_error
internal_code:
type: string
details:
type: object
additionalProperties: {}
required:
- message
- type
additionalProperties: false
required:
- error
additionalProperties: false
'404':
description: Default Response
content:
application/json:
schema:
type: object
properties:
error:
type: object
properties:
message:
type: string
type:
type: string
enum:
- api_not_found_error
internal_code:
type: string
required:
- message
- type
additionalProperties: false
required:
- error
additionalProperties: false
'409':
description: Default Response
content:
application/json:
schema:
type: object
properties:
error:
type: object
properties:
message:
type: string
type:
type: string
enum:
- api_conflict_error
internal_code:
type: string
required:
- message
- type
additionalProperties: false
required:
- error
additionalProperties: false
'500':
description: Default Response
content:
application/json:
schema:
type: object
properties:
error:
type: object
properties:
message:
type: string
type:
type: string
enum:
- api_internal_server_error
internal_code:
type: string
required:
- message
- type
additionalProperties: false
required:
- error
additionalProperties: false
x-required-permissions:
kind: static
permissions:
- team:read
summary: Get tokens
x-summary-source: derived
/api/tokens/{tokenId}/value:
get:
operationId: getTokenValue
tags:
- Tokens
description: 'Get the full token value (for copying to clipboard)
Authentication:
Required. Use an authenticated browser session or send your Archestra API key in the `Authorization` header.
Authorization:
`team:read`: View teams and their members'
parameters:
- schema:
type: string
format: uuid
pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
in: path
name: tokenId
required: true
responses:
'200':
description: Default Response
content:
application/json:
schema:
type: object
properties:
value:
type: string
required:
- value
additionalProperties: false
'400':
description: Default Response
content:
application/json:
schema:
type: object
properties:
error:
type: object
properties:
message:
type: string
type:
type: string
enum:
- api_validation_error
internal_code:
type: string
required:
- message
- type
additionalProperties: false
required:
- error
additionalProperties: false
'401':
description: Default Response
content:
application/json:
schema:
type: object
properties:
error:
type: object
properties:
message:
type: string
type:
type: string
enum:
- api_authentication_error
internal_code:
type: string
required:
- message
- type
additionalProperties: false
required:
- error
additionalProperties: false
'403':
description: Default Response
content:
application/json:
schema:
type: object
properties:
error:
type: object
properties:
message:
type: string
type:
type: string
enum:
- api_authorization_error
internal_code:
type: string
details:
type: object
additionalProperties: {}
required:
- message
- type
additionalProperties: false
required:
- error
additionalProperties: false
'404':
description: Default Response
content:
application/json:
schema:
type: object
properties:
error:
type: object
properties:
message:
type: string
type:
type: string
enum:
- api_not_found_error
internal_code:
type: string
required:
- message
- type
additionalProperties: false
required:
- error
additionalProperties: false
'409':
description: Default Response
content:
application/json:
schema:
type: object
properties:
error:
type: object
properties:
message:
type: string
type:
type: string
enum:
- api_conflict_error
internal_code:
type: string
required:
- message
- type
additionalProperties: false
required:
- error
additionalProperties: false
'500':
description: Default Response
content:
application/json:
schema:
type: object
properties:
error:
type: object
properties:
message:
type: string
type:
type: string
enum:
- api_internal_server_error
internal_code:
type: string
required:
- message
- type
additionalProperties: false
required:
- error
additionalProperties: false
x-required-permissions:
kind: static
permissions:
- team:read
summary: Get token value
x-summary-source: derived
/api/tokens/{tokenId}/rotate:
post:
operationId: rotateToken
tags:
- Tokens
description: 'Rotate a token (generate new value)
Authentication:
Required. Use an authenticated browser session or send your Archestra API key in the `Authorization` header.
Authorization:
`team:read`: View teams and their members'
parameters:
- schema:
type: string
format: uuid
pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
in: path
name: tokenId
required: true
responses:
'200':
description: Default Response
content:
application/json:
schema:
type: object
properties:
id:
type: string
format: uuid
pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
name:
type: string
tokenStart:
type: string
isOrganizationToken:
type: boolean
team:
type:
- object
- 'null'
properties:
id:
type: string
name:
type: string
required:
- id
- name
additionalProperties: false
createdAt:
type: string
format: date-time
lastUsedAt:
type:
- string
- 'null'
format: date-time
worksWithProfile:
description: 'Only set when the profileId query param is provided: whether this token can authenticate against that profile (org-scoped agents accept any team token; team-scoped agents only their teams''; personal agents none)'
type: boolean
value:
type: string
required:
- id
- name
- tokenStart
- isOrganizationToken
- team
- createdAt
- lastUsedAt
- value
additionalProperties: false
'400':
description: Default Response
content:
application/json:
schema:
type: object
properties:
error:
type: object
properties:
message:
type: string
type:
type: string
enum:
- api_validation_error
internal_code:
type: string
required:
- message
- type
additionalProperties: false
required:
- error
additionalProperties: false
'401':
description: Default Response
content:
application/json:
schema:
type: object
properties:
error:
type: object
properties:
message:
type: string
type:
type: string
enum:
- api_authentication_error
internal_code:
type: string
required:
- message
- type
additionalProperties: false
required:
- error
additionalProperties: false
'403':
description: Default Response
content:
application/json:
schema:
type: object
properties:
error:
type: object
properties:
message:
type: string
type:
type: string
enum:
- api_authorization_error
internal_code:
type: string
details:
type: object
additionalProperties: {}
required:
- message
- type
additionalProperties: false
required:
- error
additionalProperties: false
'404':
description: Default Response
content:
application/json:
schema:
type: object
properties:
error:
type: object
properties:
message:
type: string
type:
type: string
enum:
- api_not_found_error
internal_code:
type: string
required:
- message
- type
additionalProperties: false
required:
- error
additionalProperties: false
'409':
description: Default Response
content:
application/json:
schema:
type: object
properties:
error:
type: object
properties:
message:
type: string
type:
type: string
enum:
- api_conflict_error
internal_code:
type: string
required:
- message
- type
additionalProperties: false
required:
- error
additionalProperties: false
'500':
description: Default Response
content:
application/json:
schema:
type: object
properties:
error:
type: object
properties:
message:
type: string
type:
type: string
enum:
- api_internal_server_error
internal_code:
type: string
required:
- message
- type
additionalProperties: false
required:
- error
additionalProperties: false
x-required-permissions:
kind: static
permissions:
- team:read
summary: Rotate token
x-summary-source: derived