Skip to main content
POST
Create an API token for the current user

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Fields necessary to create a new token

Environment API token required fields for creation.

note
string
required

Name or note to help identify this token and its use.

Maximum string length: 100
scopes
enum<string>[]

Scopes assigned to an API token which they will have access to.

Valid scopes for an environment API token

Available options:
all.read,
waas.delegatedAccess.signMessage,
waas.authenticate,
environment.settings.read,
environment.settings.write,
environment.apiTokens.read,
environment.apiTokens.write,
environment.users.read,
environment.users.write,
environment.analytics.read,
environment.webhooks.read,
environment.webhooks.write,
environment.events.read,
environment.events.write,
environment.balances.read,
gasless.read,
gasless.write,
flow.write,
waas.policies.write

Response

The newly created token, with the plaintext of the token. This is the only time when this plaintext will be revealed.

token
object
required