Akter

Tokens

Short-lived bearer tokens for the other endpoints.

Exchange⁠

POSThttps://api.akter.dev/v1/tokens
tokens.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

  • secretstringrequired

    An API key's secret, as returned when the key was created, or a session's secret from sign-in.

Response 200IssuedToken

  • expiresAtstringrequired
  • tokenstringrequired

    A bearer JWT that carries the key's organization and scopes, or the signed-in account's email.

Errors

  • 401UnauthorizedError
  • 503ActorUnavailableError | AuthUnavailableError | BillingUnavailableError | BuildStorageUnavailableError | ExecUnavailableError