Get a service account
Returns one service account by id: its name, description, role, whether it is disabled, how many unrevoked API keys it holds, and who created it and when.
Required permission
Requires the serviceaccount.read permission. See Permissions for the roles and API key permissions that include it.
Command line
The orl CLI wraps this endpoint:
orl service-accounts get <service-account-id>apiKeyAuthorizationBearer <token>OpenRelay API key. Send it as Authorization: Bearer or_… (legacy vl_… keys still work).
serviceAccountId*stringThe service account
application/json- response
id*stringname*stringdescription?stringroleId*stringroleName?stringdisabled*booleanA disabled account's keys are denied every request.
keyCount*integerLive keys the account holds.
createdBy*stringcreatedAt*stringcurl -X GET 'https://api.openrelay.inc/v1/service-accounts/string'{ "id": "string", "name": "string", "description": "string", "roleId": "string", "roleName": "string", "disabled": true, "keyCount": 0, "createdBy": "string", "createdAt": "string"}Create a service account POST
Creates an organization-owned identity with a role, for API keys not tied to a person. It cannot hold the Owner role; an org may have at most 200. Requires a signed-in session. Its role must be within the creator's own access.
Update, disable or enable a service account PATCH
Changes a service account's name, description, role or disabled state and returns it. A new role, or enabling the account again, must be within your own access. Requires a signed-in session. Disabling denies every request its keys make until it is enabled again.