Skip to Content
kosemdocs
ReferenceAPIService accounts

Get service account in organization

Gets a service account.

GET
/v1/organizations/{organization}/serviceAccounts/{serviceAccount}

Gets a service account.

Authorization

bearer
headerAuthorizationBearer <token>

An access token, or an API key.

Path Parameters

organization*string

The organization's ID.

Match^org_[0-7][0-9a-hjkmnp-tv-z]{25}$
serviceAccount*string

The service account's ID.

Match^sa_[0-7][0-9a-hjkmnp-tv-z]{25}$

Response Body

OK

application/json
  1. response
accountId*string

A readable name, unique within the organization or project that owns the account.

createTime*string

When the account was created.

Formatdate-time
description*string

What the account is for.

displayName*string

Name shown in user interfaces.

name*string

Resource name, projects/{project_id}/serviceAccounts/{service_account_id} for a project's account or organizations/{organization_id}/serviceAccounts/{service_account_id} for an organization's own. It never changes.

state*string

Lifecycle state: the keys of an ACTIVE account work, and a DISABLED one's are refused.

Value in"ACTIVE""DISABLED"
updateTime*string

When the account was last updated.

Formatdate-time
Example Request
curl -X GET 'https://api.kosem.ai/v1/organizations/string/serviceAccounts/string'
Example Response
{
  "accountId": "string",
  "createTime": "2019-08-24T14:15:22Z",
  "description": "string",
  "displayName": "string",
  "name": "string",
  "state": "ACTIVE",
  "updateTime": "2019-08-24T14:15:22Z"
}