Skip to content
SoulFire LogoSoulFire

Generate API token

POST
/v1/client/tokens/api:generate

Generates a new JWT token for API authentication. The generated token has the "api" audience and can be used for gRPC/HTTP API calls.

Authorization

headerAuthorizationBearer <JWT>

Preferred API authentication. Use a JWT with the api audience.

Response Body

Response containing a newly generated API authentication token.

application/json
  1. response

Response containing a newly generated API authentication token.

token*string

A JWT token with "api" audience that can be used to authenticate gRPC/HTTP API requests. This token should be included in the Authorization header for subsequent API calls.

Example Request
curl -X POST 'http://127.0.0.1:38765/v1/client/tokens/api:generate'
Example Response
{
  "token": "string"
}

Was this page helpful?