Authentication API
| Action | Endpoint |
|---|---|
| Create an Auth Token | POST/auth/users/tokens |
| Create a Service Account Auth Token | POST/auth/users/{locator}/tokens |
| Fetch All Auth Tokens | GET/auth/users/tokens |
| Fetch Auth Tokens for a User | GET/auth/users/{locator}/tokens |
| Delete an Auth Token | DELETE/auth/users/tokens/{tokenOrName} |
| Delete an Auth Token for a Specific User | DELETE/auth/users/{locator}/tokens/{tokenOrName} |
| Revoke OAuth Tokens for a User | POST/auth/users/{locator}/revoke |
| Remove Credentials for a User | DELETE/auth/users/{locator}/credentials |
Creation
Create an Auth Token
Create an Auth Token
createAuthTokenPOST
/auth/users/tokensCreate a Service Account Auth Token
Create a Service Account Auth Token
createServiceAccountAuthTokenPOST
/auth/users/{locator}/tokensParameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
locator | path | uuid | Yes |
AuthTokenCreateRequest
Required properties
| Property | Type | Description |
|---|---|---|
name | string | |
expiresAt | datetime | |
permissions | string[] | |
tenants | string[] |
Fetch
Fetch All Auth Tokens
Fetch All Auth Tokens
fetchAuthTokensGET
/auth/users/tokensResponse:
AuthTokenResponse[]Security Group:
usersPermissions:
read,customFetch Auth Tokens for a User
Fetch Auth Tokens for a User
fetchAuthTokensForUserGET
/auth/users/{locator}/tokensParameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
locator | path | uuid | Yes |
Response:
AuthTokenResponse[]Security Group:
usersPermissions:
read,customAuthTokenResponse
Required properties
| Property | Type | Description |
|---|---|---|
name | string | |
expiresAt | datetime | |
createdAt | datetime |
Optional properties
| Property | Type | Description |
|---|---|---|
permissions | string[]? | |
tenants | string[]? |
Deletion
Delete an Auth Token
Delete an Auth Token
deleteAuthTokenDELETE
/auth/users/tokens/{tokenOrName}Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tokenOrName | path | string | Yes |
Response:
voidSecurity Group:
usersPermissions:
write,customDelete an Auth Token for a Specific User
Delete an Auth Token for a Specific User
deleteAuthTokenForUserDELETE
/auth/users/{locator}/tokens/{tokenOrName}Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
locator | path | uuid | Yes | |
tokenOrName | path | string | Yes |
Response:
voidSecurity Group:
usersPermissions:
write,customRevocation
Revoke OAuth Tokens for a User
Revoke OAuth Tokens for a User
revokeUserOauthTokensPOST
/auth/users/{locator}/revokeParameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
locator | path | uuid | Yes |
Response:
voidSecurity Group:
usersPermissions:
write,custom,revokeRemove Credentials for a User
Remove Credentials for a User
removeCredentialsDELETE
/auth/users/{locator}/credentialsParameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
locator | path | uuid | Yes |
Response:
voidSecurity Group:
usersPermissions:
write,custom