Skip to content

Returns a list of service accounts in the project.

GET
/organization/projects/{project_id}/service_accounts

Authorizations

Parameters

Path Parameters

project_id
required
string

The ID of the project.

Query Parameters

limit
integer
default: 20

A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.

after
string

A cursor for use in pagination. after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.

Responses

200

Project service accounts listed successfully.

object
object
required
string
Allowed values: list
data
required
Array<object>

Represents an individual service account in a project.

object
object
required

The object type, which is always organization.project.service_account

string
Allowed values: organization.project.service_account
id
required

The identifier, which can be referenced in API endpoints

string
name
required

The name of the service account

string
role
required

owner or member

string
Allowed values: owner member
created_at
required

The Unix timestamp (in seconds) of when the service account was created

integer
first_id
required
string
last_id
required
string
has_more
required
boolean

400

Error response when project is archived.

object
error
required
object
code
required
string
nullable
message
required
string
param
required
string
nullable
type
required
string