Hanzo
OpenapiO11y

Returns the calling service account itself, with the roles it holds — the…

Returns the calling service account itself, with the roles it holds — the self-inspection read for a key-authenticated caller.

GET /v1/o11y/service_accounts/me

Addresshttps://api.hanzo.ai/v1/o11y/service_accounts/me
MethodGET
OperationGetMyServiceAccount
AuthAuthorization: Bearer $HANZO_API_KEY

Returns the calling service account itself, with the roles it holds — the self-inspection read for a key-authenticated caller.

Request

GET /v1/o11y/service_accounts/me takes no parameters and no body — the credential is the whole request.

Response

StatusBodyMeaning
200o11y.O11yServiceAccountOutok

200 body — 23 fields.

FieldInTypeAlwaysDescription
databodyo11y.O11yServiceAccountDetail
data.createdAtbodystring (date-time)CreatedAt is when the account was created.
data.emailbodystringEmail is the address the account authenticates as.
data.idbodystringID is the service account id.
data.namebodystringName is the account's name.
data.orgIdbodystringOrgID is the org the account belongs to.
data.serviceAccountRolesbodyo11y.O11yServiceAccountRole[]ServiceAccountRoles are the account's role assignments.
data.serviceAccountRoles[].createdAtbodystring (date-time)CreatedAt is when the role was assigned.
data.serviceAccountRoles[].idbodystringID is the assignment's own id.
data.serviceAccountRoles[].rolebodyo11y.O11yRole
data.serviceAccountRoles[].role.createdAtbodystring (date-time)CreatedAt is when the role was created.
data.serviceAccountRoles[].role.descriptionbodystringDescription says what the role is for.
data.serviceAccountRoles[].role.idbodystringID is the role id.
data.serviceAccountRoles[].role.namebodystringName is the role's name.
data.serviceAccountRoles[].role.orgIdbodystringOrgID is the org the role belongs to.
data.serviceAccountRoles[].role.typebodystringType is how the role came to be — managed by the platform or custom.
data.serviceAccountRoles[].role.updatedAtbodystring (date-time)UpdatedAt is when it last changed.
data.serviceAccountRoles[].roleIdbodystringRoleID is the role held.
data.serviceAccountRoles[].serviceAccountIdbodystringServiceAccountID is the account holding the role.
data.serviceAccountRoles[].updatedAtbodystring (date-time)UpdatedAt is when the assignment last changed.
data.statusbodystringStatus is active or deleted.
data.updatedAtbodystring (date-time)UpdatedAt is when it last changed.
statusbodystringStatus is "success".

Failure carries the platform error shape — see Errors.

Examples

hanzo o11y service_accounts me get

O11y API · All Hanzo APIs · Interactive reference

How is this guide?

On this page