Skip to main content
POST
/
v2
/
orgs
/
{orgSlug}
/
service-accounts
cURL
curl --request POST \
  --url https://api.eda.prisme.ai/v2/orgs/{orgSlug}/service-accounts \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "slug": "<string>",
  "name": "<string>",
  "roleSlug": "<string>",
  "description": "<string>",
  "scopes": [
    "<string>"
  ]
}
'
{
  "id": "<string>",
  "userId": "<string>",
  "orgSlug": "<string>",
  "slug": "<string>",
  "name": "<string>",
  "description": "<string>",
  "roleSlug": "<string>",
  "scopes": [
    "<string>"
  ],
  "disabled": true,
  "lastUsedAt": "2023-11-07T05:31:56Z",
  "createdBy": "<string>",
  "updatedBy": "<string>",
  "createdAt": "<string>",
  "updatedAt": "<string>",
  "clientSecret": "<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.

Authorizations

Authorization
string
header
required

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

Path Parameters

orgSlug
string
required

Body

application/json
slug
string
required

Unique identifier for this service account within the organization

name
string
required
roleSlug
string
required

Organization role to assign to this service account

description
string
scopes
string[]

Optional scope restrictions

Response

Service account created. The client secret is shown only once.

id
string
userId
string

Synthetic user ID used in JWT sub (sa:{orgSlug}:{slug})

orgSlug
string
slug
string
name
string
description
string
roleSlug
string

Organization role assigned to this service account

scopes
string[]

Optional scope restrictions (empty means all permissions from roleSlug)

disabled
boolean
lastUsedAt
string<date-time>
createdBy
string
updatedBy
string
createdAt
string
updatedAt
string
clientSecret
string

The raw client secret (sas_{orgSlug}_{uuid}). Shown only once.