Service accounts
Service accounts: 18 operations, tagged service-accounts in the OpenAPI document.
| Method | Path | Summary |
|---|---|---|
GET |
/api/service-accounts |
List service accounts |
POST |
/api/service-accounts |
Create a service account |
GET |
/api/service-accounts/code/{code} |
Get a service account by code |
GET |
/api/service-accounts/{id} |
Get a service account by id |
PUT |
/api/service-accounts/{id} |
Update a service account |
DELETE |
/api/service-accounts/{id} |
Delete a service account |
GET |
/api/service-accounts/{id}/credential-publication |
Read whether and where a service account’s credentials are published |
PUT |
/api/service-accounts/{id}/credential-publication |
Switch on publishing a service account’s credentials to the configured store |
DELETE |
/api/service-accounts/{id}/credential-publication |
Switch off publishing; the published parameters are deleted |
POST |
/api/service-accounts/{id}/credential-publication/retry |
Retry the waiting publishes now |
POST |
/api/service-accounts/{id}/deactivate |
Deactivate a service account |
POST |
/api/service-accounts/{id}/regenerate-auth-token |
Regenerate a service account’s auth token |
POST |
/api/service-accounts/{id}/regenerate-secret |
Regenerate a service account’s signing secret |
POST |
/api/service-accounts/{id}/regenerate-signing-secret |
Regenerate a service account’s signing secret |
POST |
/api/service-accounts/{id}/regenerate-token |
Regenerate a service account’s auth token |
GET |
/api/service-accounts/{id}/roles |
List a service account’s roles |
PUT |
/api/service-accounts/{id}/roles |
Assign roles to a service account |
POST |
/api/service-accounts/{id}/token |
Mint a short-lived bearer token for the service account (anchor-only, audited) |
Operations
Section titled “Operations”GET /api/service-accounts
Section titled “GET /api/service-accounts”List service accounts
Operation ID: listServiceAccounts
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json ServiceAccountListResponse |
default |
Error | application/json ErrorModel |
POST /api/service-accounts
Section titled “POST /api/service-accounts”Create a service account
Operation ID: createServiceAccount
Request body (required)
| Content type | Schema |
|---|---|
application/json |
CreateServiceAccountRequest |
Responses
| Status | Description | Body |
|---|---|---|
201 |
Created | application/json CreateServiceAccountResponse |
default |
Error | application/json ErrorModel |
GET /api/service-accounts/code/{code}
Section titled “GET /api/service-accounts/code/{code}”Get a service account by code
Operation ID: getServiceAccountByCode
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
code |
path | string | yes |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json ServiceAccountResponse |
default |
Error | application/json ErrorModel |
GET /api/service-accounts/{id}
Section titled “GET /api/service-accounts/{id}”Get a service account by id
Operation ID: getServiceAccount
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json ServiceAccountResponse |
default |
Error | application/json ErrorModel |
PUT /api/service-accounts/{id}
Section titled “PUT /api/service-accounts/{id}”Update a service account
Operation ID: updateServiceAccount
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes |
Request body (required)
| Content type | Schema |
|---|---|
application/json |
UpdateServiceAccountRequest |
Responses
| Status | Description | Body |
|---|---|---|
204 |
No Content | none |
default |
Error | application/json ErrorModel |
DELETE /api/service-accounts/{id}
Section titled “DELETE /api/service-accounts/{id}”Delete a service account
Operation ID: deleteServiceAccount
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes |
Responses
| Status | Description | Body |
|---|---|---|
204 |
No Content | none |
default |
Error | application/json ErrorModel |
GET /api/service-accounts/{id}/credential-publication
Section titled “GET /api/service-accounts/{id}/credential-publication”Read whether and where a service account’s credentials are published
Operation ID: getServiceAccountCredentialPublication
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json PublicationResponse |
default |
Error | application/json ErrorModel |
PUT /api/service-accounts/{id}/credential-publication
Section titled “PUT /api/service-accounts/{id}/credential-publication”Switch on publishing a service account’s credentials to the configured store
Operation ID: enableServiceAccountCredentialPublication
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes |
Request body
| Content type | Schema |
|---|---|
application/json |
EnableRequest |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json PublicationResponse |
default |
Error | application/json ErrorModel |
DELETE /api/service-accounts/{id}/credential-publication
Section titled “DELETE /api/service-accounts/{id}/credential-publication”Switch off publishing; the published parameters are deleted
Operation ID: disableServiceAccountCredentialPublication
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes |
Responses
| Status | Description | Body |
|---|---|---|
204 |
No Content | none |
default |
Error | application/json ErrorModel |
POST /api/service-accounts/{id}/credential-publication/retry
Section titled “POST /api/service-accounts/{id}/credential-publication/retry”Retry the waiting publishes now
Operation ID: retryServiceAccountCredentialPublication
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes |
Responses
| Status | Description | Body |
|---|---|---|
204 |
No Content | none |
default |
Error | application/json ErrorModel |
POST /api/service-accounts/{id}/deactivate
Section titled “POST /api/service-accounts/{id}/deactivate”Deactivate a service account
Operation ID: deactivateServiceAccount
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes |
Responses
| Status | Description | Body |
|---|---|---|
204 |
No Content | none |
default |
Error | application/json ErrorModel |
POST /api/service-accounts/{id}/regenerate-auth-token
Section titled “POST /api/service-accounts/{id}/regenerate-auth-token”Regenerate a service account’s auth token
Operation ID: regenerateServiceAccountAuthToken_regenerate-auth-token
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json RegenerateAuthTokenResponse |
default |
Error | application/json ErrorModel |
POST /api/service-accounts/{id}/regenerate-secret
Section titled “POST /api/service-accounts/{id}/regenerate-secret”Regenerate a service account’s signing secret
Operation ID: regenerateServiceAccountSigningSecret_regenerate-secret
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json RegenerateSigningSecretResponse |
default |
Error | application/json ErrorModel |
POST /api/service-accounts/{id}/regenerate-signing-secret
Section titled “POST /api/service-accounts/{id}/regenerate-signing-secret”Regenerate a service account’s signing secret
Operation ID: regenerateServiceAccountSigningSecret_regenerate-signing-secret
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json RegenerateSigningSecretResponse |
default |
Error | application/json ErrorModel |
POST /api/service-accounts/{id}/regenerate-token
Section titled “POST /api/service-accounts/{id}/regenerate-token”Regenerate a service account’s auth token
Operation ID: regenerateServiceAccountAuthToken_regenerate-token
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json RegenerateAuthTokenResponse |
default |
Error | application/json ErrorModel |
GET /api/service-accounts/{id}/roles
Section titled “GET /api/service-accounts/{id}/roles”List a service account’s roles
Operation ID: listServiceAccountRoles
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json ServiceAccountRoleListResponse |
default |
Error | application/json ErrorModel |
PUT /api/service-accounts/{id}/roles
Section titled “PUT /api/service-accounts/{id}/roles”Assign roles to a service account
Operation ID: assignServiceAccountRoles
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes |
Request body (required)
| Content type | Schema |
|---|---|
application/json |
AssignRolesRequest |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json ServiceAccountRolesAssignedResponse |
default |
Error | application/json ErrorModel |
POST /api/service-accounts/{id}/token
Section titled “POST /api/service-accounts/{id}/token”Mint a short-lived bearer token for the service account (anchor-only, audited)
Operation ID: mintServiceAccountToken
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes |
Responses
| Status | Description | Body |
|---|---|---|
200 |
OK | application/json ServiceAccountTokenResponse |
default |
Error | application/json ErrorModel |
Schemas
Section titled “Schemas”AssignRolesRequest
Section titled “AssignRolesRequest”| Field | Type | Required | Description |
|---|---|---|---|
roles |
string[] | yes |
CreateServiceAccountRequest
Section titled “CreateServiceAccountRequest”| Field | Type | Required | Description |
|---|---|---|---|
allApplications |
boolean | no | |
applicationId |
string | no | |
clientIds |
string[] | no | |
code |
string | yes | |
description |
string | no | |
name |
string | yes | |
publishBasePath |
string | no | Replaces the template’s path before the credential name; must lie under the platform’s publishing prefix. |
publishCredentials |
boolean | no | Also publish the minted credentials to the configured store (Parameter Store). Omitted takes the platform default; true is refused 400 CREDENTIAL_PUBLISHING_UNAVAILABLE when publishing is not configured. |
scope |
string | no | Descriptive tier: ANCHOR (no clientIds), CLIENT (one) or PARTNER (several). Tokens follow the client links, so a scope that disagrees with them is refused 400 SCOPE_REACH_MISMATCH; change both together, or omit it. |
webhookCredentials |
WebhookCredentialsDTO |
no |
CreateServiceAccountResponse
Section titled “CreateServiceAccountResponse”| Field | Type | Required | Description |
|---|---|---|---|
oauth |
ServiceAccountOAuthSecrets |
yes | |
principalId |
string | yes | |
serviceAccount |
ServiceAccountResponse |
yes | |
webhook |
ServiceAccountWebhookSecrets |
yes |
EnableRequest
Section titled “EnableRequest”| Field | Type | Required | Description |
|---|---|---|---|
basePath |
string | no | Replaces the template’s path before the credential name; must start and end with ‘/’ and lie under the deployment’s prefix. Omitted takes the template. |
ItemResponse
Section titled “ItemResponse”| Field | Type | Required | Description |
|---|---|---|---|
attempts |
integer (int64) | yes | |
credential |
string | yes | client-id, client-secret, auth-token or signing-secret |
lastError |
string | no | |
nextAttemptAt |
string (date-time) | no | |
path |
string | yes | The full parameter name |
publishedAt |
string (date-time) | no | |
reference |
string | yes | The secret reference a function or ingestion uses to read it back |
state |
string | yes | One of: PENDING_PUT, PUBLISHED, PENDING_DELETE, NOT_PUBLISHABLE. |
PublicationResponse
Section titled “PublicationResponse”| Field | Type | Required | Description |
|---|---|---|---|
available |
boolean | yes | Whether this platform is configured to publish credentials at all |
basePath |
string | no | |
enabled |
boolean | yes | |
enabledAt |
string (date-time) | no | |
enabledBy |
string | no | |
items |
ItemResponse[] |
yes | |
linkedServiceAccountId |
string | no | OAuth clients only: set when the client belongs to a service account, whose publication carries its credentials |
store |
string | no |
RegenerateAuthTokenResponse
Section titled “RegenerateAuthTokenResponse”| Field | Type | Required | Description |
|---|---|---|---|
authToken |
string | no | |
id |
string | yes |
RegenerateSigningSecretResponse
Section titled “RegenerateSigningSecretResponse”| Field | Type | Required | Description |
|---|---|---|---|
id |
string | yes | |
signingSecret |
string | no |
RoleAssignmentDTO
Section titled “RoleAssignmentDTO”| Field | Type | Required | Description |
|---|---|---|---|
assignedAt |
string (date-time) | yes | |
assignedBy |
string | no | |
assignmentSource |
string | no | |
clientId |
string | no | |
roleName |
string | yes |
ServiceAccountListResponse
Section titled “ServiceAccountListResponse”| Field | Type | Required | Description |
|---|---|---|---|
serviceAccounts |
ServiceAccountResponse[] |
yes | |
total |
integer (int64) | yes |
ServiceAccountOAuthSecrets
Section titled “ServiceAccountOAuthSecrets”| Field | Type | Required | Description |
|---|---|---|---|
clientId |
string | yes | |
clientSecret |
string | yes |
ServiceAccountResponse
Section titled “ServiceAccountResponse”| Field | Type | Required | Description |
|---|---|---|---|
active |
boolean | yes | |
applicationId |
string | no | |
authType |
string | yes | |
clientIds |
string[] | yes | |
code |
string | yes | |
createdAt |
string (date-time) | yes | |
description |
string | no | |
id |
string | yes | |
lastUsedAt |
string (date-time) | no | |
name |
string | yes | |
oauthClientId |
string | no | |
principalId |
string | no | |
roles |
string[] | yes | |
scope |
string | no | |
updatedAt |
string (date-time) | yes |
ServiceAccountRoleListResponse
Section titled “ServiceAccountRoleListResponse”| Field | Type | Required | Description |
|---|---|---|---|
roles |
RoleAssignmentDTO[] |
yes |
ServiceAccountRolesAssignedResponse
Section titled “ServiceAccountRolesAssignedResponse”| Field | Type | Required | Description |
|---|---|---|---|
addedRoles |
string[] | yes | |
removedRoles |
string[] | yes | |
roles |
RoleAssignmentDTO[] |
yes |
ServiceAccountTokenResponse
Section titled “ServiceAccountTokenResponse”| Field | Type | Required | Description |
|---|---|---|---|
accessToken |
string | yes | |
expiresIn |
integer (int64) | yes | |
scope |
string | no | |
tokenType |
string | yes |
ServiceAccountWebhookSecrets
Section titled “ServiceAccountWebhookSecrets”| Field | Type | Required | Description |
|---|---|---|---|
authToken |
string | yes | |
signingSecret |
string | yes |
UpdateServiceAccountRequest
Section titled “UpdateServiceAccountRequest”| Field | Type | Required | Description |
|---|---|---|---|
clientIds |
string[] | no | Client links; replaces the set when present (an empty array clears it). Their count decides the token tier. |
description |
string | no | |
name |
string | no | |
scope |
string | no | Descriptive tier: ANCHOR (no clientIds), CLIENT (one) or PARTNER (several). Tokens follow the client links, so a scope that disagrees with them is refused 400 SCOPE_REACH_MISMATCH; change both together, or omit it. |
webhookCredentials |
WebhookCredentialsDTO |
no |
WebhookCredentialsDTO
Section titled “WebhookCredentialsDTO”| Field | Type | Required | Description |
|---|---|---|---|
authType |
string | yes | |
headerName |
string | no | |
password |
string | no | |
signatureHeader |
string | no | |
signingAlgorithm |
string | no | |
signingSecret |
string | no | |
token |
string | no | |
username |
string | no |