SoulFire LogoSoulFire

Generate API token

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

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

AuthorizationBearer <token>

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

In: header

Response Body

application/json

application/json

application/json

application/json

curl -X POST "http://127.0.0.1:38765/v1/client/tokens/api:generate"
{
  "token": "string"
}
{
  "code": 0,
  "grpc-code": "string",
  "message": "string",
  "stack-trace": "string",
  "details": [
    {}
  ]
}
{
  "code": 0,
  "grpc-code": "string",
  "message": "string",
  "stack-trace": "string",
  "details": [
    {}
  ]
}
{
  "code": 0,
  "grpc-code": "string",
  "message": "string",
  "stack-trace": "string",
  "details": [
    {}
  ]
}

How is this page?