API Reference / AccountService

AccountService

Manages ad account lifecycle and member permissions.

CreateAccount

Request

FieldTypeValidationDescription
namestringmin_len: 1
typeAccountType

Response

FieldTypeDescription
idstringULID of the resource
hierarchystring[]
namestring
typeAccountType
statusAccountStatus
created_attimestamp

GetAccount

Request

FieldTypeValidationDescription
idstringmin_len: 1ULID of the resource

Response

FieldTypeDescription
accountAccount

UpdateAccount

Request

FieldTypeValidationDescription
idstringmin_len: 1ULID of the resource
namestringmin_len: 1

Response

FieldTypeDescription
accountAccount

DeleteAccount

Request

FieldTypeValidationDescription
idstringmin_len: 1ULID of the resource

ListMyPermissions

Response

FieldTypeDescription
user_idstring
accountsAccountPermissions[]
root_permissionsstring[]

Messages

Account

FieldTypeDescription
idstringULID of the resource
hierarchystring[]
namestring
typeAccountType
statusAccountStatus
created_attimestamp
updated_attimestamp

AccountPermissions

FieldTypeDescription
account_idstring
namestring
typeAccountType
permissionsstring[]

Enums

AccountType

Name Number
ACCOUNT_TYPE_UNSPECIFIED 0
ACCOUNT_TYPE_AD_ACCOUNT 1
ACCOUNT_TYPE_BUSINESS_MANAGER 2
ACCOUNT_TYPE_ENTERPRISE 3
ACCOUNT_TYPE_AGENCY 4

AccountStatus

Name Number
ACCOUNT_STATUS_UNSPECIFIED 0
ACCOUNT_STATUS_UNVERIFIED 1
ACCOUNT_STATUS_PENDING 2
ACCOUNT_STATUS_VERIFIED 3