Skip to main content
POST
/
api
/
v1
/
organizations
/
{org_id}
/
service-accounts
Create Service Account
curl --request POST \
  --url https://anaconda.com/api/v1/organizations/{org_id}/service-accounts \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>"
}
'
{
  "name": "<string>",
  "client_id": "<string>",
  "org_id": "<string>",
  "client_secret": "<string>"
}
The response includes the client_id and client_secret, which are used to authenticate subsequent API calls.
Store the client_secret in a secure location. It is only shown once at creation time.

Authorizations

Authorization
string
header
required

Bearer token obtained by authenticating with your organization admin's email and password (grant_type=password).

See the Getting started page for the full authentication flow.

Path Parameters

org_id
string
required

Your organization ID, found in your organization's URL: anaconda.com/app/organizations/<ORG_ID>/.

Body

application/json
name
string
required

The name for the new service account. Must use lowercase letters, numbers, hyphens, or underscores only.

Required string length: 1 - 64

Response

Service account created successfully

name
string
required

The name of the service account.

client_id
string
required

The unique client identifier for the service account.

org_id
string
required

The organization ID the service account belongs to.

client_secret
string
required

The client secret for authenticating as this service account. This value is only shown once at creation time.