Skip to main content
POST
/
v2
/
orgs
/
{orgSlug}
/
service-accounts
/
{saSlug}
/
token
cURL
curl --request POST \
  --url https://api.eda.prisme.ai/v2/orgs/{orgSlug}/service-accounts/{saSlug}/token \
  --header 'Content-Type: application/json' \
  --data '
{
  "clientSecret": "<string>",
  "expiresIn": 123
}
'
{
  "accessToken": "<string>",
  "expiresAt": "2023-11-07T05:31:56Z",
  "tokenType": "Bearer",
  "permissions": [
    "<string>"
  ],
  "scopes": [
    "<string>"
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.prisme.ai/llms.txt

Use this file to discover all available pages before exploring further.

Path Parameters

orgSlug
string
required
saSlug
string
required

Body

application/json
clientSecret
string
required

The raw client secret (sas_{orgSlug}_{uuid})

expiresIn
number

Requested token TTL in seconds (default 3600, max SA_TOKEN_MAX_TTL env)

Response

JWT token issued

JWT token issued for a service account

accessToken
string

JWT access token

expiresAt
string<date-time>

Token expiration timestamp

tokenType
string
Example:

"Bearer"

permissions
string[]

Effective permissions from the assigned role

scopes
string[]

Scope restrictions applied to this service account