POST/auth/generate-tokens

Generate Tokens

Outcome - Exchanges your vault API key for an access token and a refresh token. This is the first call of every integration. Store both tokens securely; send the access token in the X-ACCESS-TOKEN header of all other requests.

Body Parameters

apiKeystringrequired

API Key

Responses

Response attributes

messagestring

Success message

dataobject

Object containing the generated tokens

Show child attributes (4)
accessTokenstring

JWT Access Token

refreshTokenstring

JWT Refresh Token

expiresAtnumber

Token expiration timestamp

vaultIdnumber

Vault ID

statusnumber

HTTP status code

Was this page helpful?