Skip to main content
POST
/
auth
/
refresh-token
Refresh Access Token
curl --request POST \
  --url https://api.beamstudio.ai/auth/refresh-token \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "refreshToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}
'
{
  "idToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
  "refreshToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}

Authorizations

Authorization
string
header
required

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

Body

application/json
refreshToken
string
required

The refresh token received from the access-token endpoint. Used to obtain a new access token when the current one expires.

Example:

"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."

Response

201 - application/json

New access token generated successfully

idToken
string
required

JWT access token to be used in Authorization header as Bearer token. Valid for 10 minutes.

Example:

"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."

refreshToken
string

Refresh token used to obtain new access tokens when they expire. Store this securely.

Example:

"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."