Skip to content

List all project service accounts

GET
/api/v4/projects/{id}/service_accounts

Lists all service accounts in a specified project. Use the page and per_page pagination parameters to filter the results.

id
required
One of:
string

The ID or URL-encoded path of the project

page
integer
default: 1 nullable

Current page number

Example
1
per_page
integer
default: 20 nullable

Number of items per page

Example
20
order_by
string
default: id nullable
Allowed values: id username

Attribute to sort by

sort
string
default: desc nullable
Allowed values: asc desc

Order of sorting

OK

Media type application/json
object
id
integer format: int64
username
string
public_email
string
name
string
email
string
unconfirmed_email
string
Example
{
"id": 1,
"username": "admin",
"public_email": "john@example.com",
"name": "Administrator",
"email": "service_account@example.com",
"unconfirmed_email": "updated_service_account@example.com"
}

400 Bad request

401 Unauthorized

403 Forbidden

404 Project not found