Service accounts
Returns a list of service accounts.
Args: filter_model: Model that takes care of filtering, sorting and pagination. hydrate: Flag deciding whether to hydrate the output model(s) by including metadata fields in the response.
Returns: A list of service accounts matching the filter.
falsecreatedLogical Ops to use to combine filters on list methods.
andPossible values: 120Successful Response
Unauthorized
Not Found
Unprocessable Entity
GET /api/v1/service_accounts HTTP/1.1
Host:
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
"index": 1,
"max_size": 1,
"total_pages": 1,
"total": 1,
"items": [
{
"body": {
"created": "2025-12-07T10:56:48.485Z",
"updated": "2025-12-07T10:56:48.485Z",
"full_name": "",
"active": false,
"avatar_url": "text"
},
"metadata": {
"description": "",
"external_user_id": "123e4567-e89b-12d3-a456-426614174000"
},
"resources": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"id": "123e4567-e89b-12d3-a456-426614174000",
"permission_denied": false,
"name": "text"
}
]
}Creates a service account.
Args: service_account: Service account to create.
Returns: The created service account.
Request model for service accounts.
""Successful Response
Unauthorized
Conflict
Unprocessable Entity
POST /api/v1/service_accounts HTTP/1.1
Host:
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 85
{
"name": "text",
"full_name": "",
"description": "text",
"active": true,
"avatar_url": "text"
}{
"body": {
"created": "2025-12-07T10:56:48.485Z",
"updated": "2025-12-07T10:56:48.485Z",
"full_name": "",
"active": false,
"avatar_url": "text"
},
"metadata": {
"description": "",
"external_user_id": "123e4567-e89b-12d3-a456-426614174000"
},
"resources": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"id": "123e4567-e89b-12d3-a456-426614174000",
"permission_denied": false,
"name": "text"
}Returns a specific service account.
Args: service_account_name_or_id: Name or ID of the service account. hydrate: Flag deciding whether to hydrate the output model(s) by including metadata fields in the response.
Returns: The service account matching the given name or ID.
trueSuccessful Response
Unauthorized
Not Found
Unprocessable Entity
GET /api/v1/service_accounts/{service_account_name_or_id} HTTP/1.1
Host:
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
"body": {
"created": "2025-12-07T10:56:48.485Z",
"updated": "2025-12-07T10:56:48.485Z",
"full_name": "",
"active": false,
"avatar_url": "text"
},
"metadata": {
"description": "",
"external_user_id": "123e4567-e89b-12d3-a456-426614174000"
},
"resources": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"id": "123e4567-e89b-12d3-a456-426614174000",
"permission_denied": false,
"name": "text"
}Updates a specific service account.
Args: service_account_name_or_id: Name or ID of the service account. service_account_update: the service account to use for the update.
Returns: The updated service account.
Raises: IllegalOperationError: If the service account was created via external authentication.
Update model for service accounts.
Successful Response
Unauthorized
Not Found
Unprocessable Entity
PUT /api/v1/service_accounts/{service_account_name_or_id} HTTP/1.1
Host:
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 89
{
"name": "text",
"full_name": "text",
"description": "text",
"active": true,
"avatar_url": "text"
}{
"body": {
"created": "2025-12-07T10:56:48.485Z",
"updated": "2025-12-07T10:56:48.485Z",
"full_name": "",
"active": false,
"avatar_url": "text"
},
"metadata": {
"description": "",
"external_user_id": "123e4567-e89b-12d3-a456-426614174000"
},
"resources": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"id": "123e4567-e89b-12d3-a456-426614174000",
"permission_denied": false,
"name": "text"
}Delete a specific service account.
Args: service_account_name_or_id: Name or ID of the service account.
Raises: IllegalOperationError: If the service account was created via external authentication.
Successful Response
Unauthorized
Not Found
Unprocessable Entity
DELETE /api/v1/service_accounts/{service_account_name_or_id} HTTP/1.1
Host:
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
No content
Last updated
Was this helpful?