Account and organizations API¶
Identify the key’s owner, manage personal API tokens, read and update your organization, and validate cron expressions.
Paths are relative to https://<your-atlas-host>/api/v1. For the API key and headers every
request needs, see Authentication.
Endpoint |
What it does |
|---|---|
Return the user or service account the API key belongs to |
|
List the authenticated user’s active tokens |
|
Create a new API token |
|
Revoke an API token |
|
List organizations the authenticated user can access |
|
Create a new organization with the authenticated user as owner |
|
Get your organization’s details |
|
Update your organization (display_name, settings, plan) |
|
Validate a cron expression and return human-readable info |
Get the key’s owner¶
GET /auth/me
Return the user or service account the API key belongs to.
Response
Field |
Type |
|---|---|
|
UUID |
|
string |
|
string |
List tokens¶
GET /tokens/
List the authenticated user’s active tokens.
Response A list of objects:
Field |
Type |
|---|---|
|
UUID |
|
string |
|
string |
|
boolean |
|
datetime |
|
datetime |
Create token¶
POST /tokens/
Create a new API token. The raw key is returned once.
Request body
Field |
Type |
|---|---|
|
string |
Response
Field |
Type |
|---|---|
|
UUID |
|
string |
|
string |
Revoke token¶
DELETE /tokens/{token_id}
Revoke an API token.
Parameters
Name |
In |
Type |
Required |
|---|---|---|---|
|
path |
UUID |
Yes |
Response
The raw file content.
List organizations¶
GET /tenants/
List organizations the authenticated user can access.
Response A list of objects:
Field |
Type |
|---|---|
|
UUID |
|
string |
|
string |
|
string |
|
boolean |
|
datetime |
|
datetime |
|
boolean |
|
boolean |
Create organization¶
POST /tenants/
Create a new organization with the authenticated user as owner.
Request body
Field |
Type |
Required |
|---|---|---|
|
string |
|
|
string |
Yes |
|
string |
|
|
string |
Response
Field |
Type |
|---|---|
|
UUID |
|
string |
|
string |
|
string |
|
boolean |
|
datetime |
|
datetime |
Get current organization¶
GET /tenants/current
Get your organization’s details.
Response
Field |
Type |
|---|---|
|
UUID |
|
string |
|
string |
|
string |
|
boolean |
|
datetime |
|
datetime |
Update current organization¶
PATCH /tenants/current
Update your organization (display_name, settings, plan).
Request body
Field |
Type |
|---|---|
|
string |
|
object |
|
string |
Response
Field |
Type |
|---|---|
|
UUID |
|
string |
|
string |
|
string |
|
boolean |
|
datetime |
|
datetime |
Validate a cron expression¶
POST /utils/cron/validate
Validate a cron expression and return human-readable info.
Request body
Field |
Type |
Required |
|---|---|---|
|
string |
Yes |
Response
Field |
Type |
|---|---|
|
boolean |
|
string |
|
list of string |
|
string |
What’s next?¶
API overview: authentication, worked examples, and error handling
Webhooks: get events pushed to your systems instead of polling
Service accounts: create the key an integration uses