Hanzo
OpenapiIam

Returns your organization's service accounts — what each is called and when it…

Returns your organization's service accounts — what each is called and when it was created.

GET /v1/iam/service-accounts

Addresshttps://api.hanzo.ai/v1/iam/service-accounts
MethodGET
Operationget_iam_service-accounts
AuthAuthorization: Bearer $HANZO_API_KEY

Returns your organization's service accounts — what each is called and when it was created. Never their secrets: a key's secret half exists in a response exactly once, when it is minted. Paginated in memory over the already org-scoped slice — the set per org is small, so a dedicated count query is overkill (v1 service_account.go:296-307).

Request

3 fields.

FieldInTypeRequiredDescription
organizationquerystringOrganization is the organization whose service accounts to list.
pqueryintegerP is the 1-indexed page to return.
pageSizequeryintegerSize is how many accounts a page holds.

Response

StatusBodyMeaning
200iam.Answerok
400iam.Answerbad request

200 body — 8 fields.

FieldInTypeAlwaysDescription
codebodystring
databodyobject
data2bodyobject
data3bodyobject
msgbodystring
namebodystring
statusbodystring
subbodystring

Failure carries the platform error shape — see Errors.

Examples

hanzo iam service-accounts list

IAM API · All Hanzo APIs · Interactive reference

How is this guide?

On this page