Skip to main content
POST
/
organizations
/
{organizationName}
/
groups
/
{groupName}
/
tokens
Create a new group token
curl --request POST \
  --url https://{organization}.admin.credibledata.com/api/v0/organizations/{organizationName}/groups/{groupName}/tokens \
  --header 'Authorization: Bearer <token>'
{
  "name": "<string>",
  "groupName": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "expiresAt": "2023-11-07T05:31:56Z",
  "expired": true
}

Authorizations

Authorization
string
header
required

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

Path Parameters

organizationName
string
required

The unique identifier of the organization Standard identifier pattern for resource names

Pattern: ^[a-zA-Z0-9_-]+$
groupName
string
required

The unique identifier of the group Standard identifier pattern for resource names

Pattern: ^[a-zA-Z0-9_-]+$

Query Parameters

name
string
required

The unique name for the token within the organization Standard identifier pattern for resource names

Pattern: ^[a-zA-Z0-9_-]+$
expiresAt
string<date-time>

Optional expiration date for the token. If not provided, defaults to 99 years from creation

Response

Group token created successfully

Represents an access token/key for a service account

name
string

Unique name for the access token within the organization

Pattern: ^[a-zA-Z0-9_-]+$
groupName
string

The name of the group that the token belongs to

Pattern: ^[a-zA-Z0-9_-]+$
createdAt
string<date-time>

ISO 8601 timestamp indicating when the token was created

expiresAt
string<date-time>

ISO 8601 timestamp indicating when the token expires

expired
boolean

Whether the token has expired