Tokens
Short-lived bearer tokens for the other endpoints.
Exchange
POST
https://api.akter.dev/v1/tokenstokens.exchangeNo token
Exchange an API key's or a session's secret for a bearer token that lasts a minute; exchange again before the expiresAt it answers. akter does this for you.
Request bodyExchangeApiKey
secretstringrequiredAn API key's secret, as returned when the key was created, or a session's secret from sign-in.
Response 200IssuedToken
expiresAtstringrequiredtokenstringrequiredA bearer JWT that carries the key's organization and scopes, or the signed-in account's email.
Errors
401UnauthorizedError503ActorUnavailableError | AuthUnavailableError | BillingUnavailableError | BuildStorageUnavailableError | ExecUnavailableError