List accounts
GET/bv/account/v1/accounts
Lists the accounts in the current organization using the provided access token.
Request
Query Parameters
Optional. The current page in the current pagination. If enable_pagination is true, need to assign positive number. Min: 1 Max: 100
Optional. The number of items per page in the current pagination. If enable_pagination is true, need to assign positive number. Min: 1 Max: 100
Optional. Enable pagination. Default: false
Optional. The filter of specific email It will return the results which are contain the filter of email.
Optional. The filter of specific account status. The example of status: ACCOUNT_STATUS_ACTIVATED,ACCOUNT_STATUS_DEACTIVATED
Optional. If provided, the API will filter accounts by E-Mail or full name.
Possible values: [ACCOUNTS_SORT_TYPE_FIRST_NAME_ASC
, ACCOUNTS_SORT_TYPE_FIRST_NAME_DESC
, ACCOUNTS_SORT_TYPE_LAST_NAME_ASC
, ACCOUNTS_SORT_TYPE_LAST_NAME_DESC
]
Optional. The sorting of accounts.
Header Parameters
To invoke this API using api_token
, you need to set the x-bv-org-id
header to specify the organization for which you want to perform the action.
Responses
- 200
- 400
- 401
- 403
- 500
- default
A successful response.
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- Array [
- BUSINESS_PLAN_TYPE_BVONE: Indicates the
BVOne
plan, allowing the business sub-organization to create sites and enable custom domains. - BUSINESS_PLAN_TYPE_CXM: Indicates the
CXM
plan, allowing add the marketplace url. - Array [
- Array [
- ]
- ]
- ]
- Array [
- ]
- ]
account object[]
Output only. The resource identifier of account.
Required. The password of account. Password policy: Contains at least 1 number. Contains at least 1 special character. Contains at least 1 uppercase letter. Contains at least 1 lowercase letter.
Required. The first name of account.
Required. The last name of account.
Possible values: [ACCOUNT_STATUS_ACTIVATED
, ACCOUNT_STATUS_DEACTIVATED
]
Output only. The status of account.
account_infos object[]
organization object
Output only. The resource identifier of the organization.
Output only. The name of the organization.
Output only. The appended parent organization id.
Possible values: [ORGANIZATION_TYPE_ROOT
, ORGANIZATION_TYPE_GENERAL_DISTRIBUTOR
, ORGANIZATION_TYPE_RESELLER
, ORGANIZATION_TYPE_BUSINESS
]
Output only. Indicates the type of the organization.
Possible values: [ORGANIZATION_STATUS_ACTIVATED
, ORGANIZATION_STATUS_VERIFYING
, ORGANIZATION_STATUS_FAIL_TO_VERIFY
, ORGANIZATION_STATUS_DEACTIVATED
, ORGANIZATION_STATUS_DELETING
, ORGANIZATION_STATUS_DELETED
, ORGANIZATION_STATUS_ACTIVATION_SCHEDULED
]
Output only. Indicates the status of the organization.
Output only. The description of the organization.
Output only. The owner email of the organization.
Output only. The billing cycle of the organization.
Output only. The contract valid start day won't be valid before the day.
Output only. The contract duration unit. It might one of the contract_months
or contract_days
.
Output only. The contract duration unit. It might one of the contract_months
or contract_days
.
Output only. The contract valid end day won't be valid after the day.
next_contract object
Output only. The next contract of the organization.
Output only. The start time of the organization.
Output only. The months of the organization.
Output only. The days of the organization.
Output only. The valid end time of the organization.
Output only. The parent id of the organization.
Output only. The plan id of the organization.
Output only. Indicates there are sub-organizations appended to the organization.
Output only. The name of appended parent organization.
Output only.
Output only. The time zone of the organization.
owner object
Output only. The unique id of the user.
Output only. The email of the user.
Possible values: [ACCOUNT_STATUS_ACTIVATED
, ACCOUNT_STATUS_DEACTIVATED
]
Output only. The status of the user.
Possible values: [ROLE_TYPE_OWNER
, ROLE_TYPE_ADMIN
, ROLE_TYPE_STAFF
, ROLE_TYPE_DEVELOPER
, ROLE_TYPE_CONTENT_CONTRIBUTOR
, ROLE_TYPE_CUSTOM
]
Output only. The role of the user.
Output only. The created time of the user.
Output only. The first name of the user.
Output only. The last name of the user.
Output only. The id of role.
business_setting object
Possible values: [BUSINESS_PLAN_TYPE_BVONE
, BUSINESS_PLAN_TYPE_CXM
, BUSINESS_PLAN_TYPE_CPM
]
Output only. The plan type of the business sub-organization. Values:
Optional. Indicates whether the business sub-organization has permission to create sites.
This field should only be provided when the business sub-organization plan is BVOne
plan.
Optional. The maximum number of sites that the business sub-organization can create.
This field should only be provided when the business sub-organization plan is BVOne
plan.
This field is optional and must be within the range of 0 to 50, inclusive.
Optional. Indicates if the business sub-organization can enable a custom domain.
This field should only be provided when the business sub-organization plan is BVOne
plan.
Optional. The marketplace URL of the business sub-organization.
This field should only be provided when the business sub-organization plan is CXM
plan.
Max length: 2000, must be a valid URL format.
Output only.
Output only.
Possible values: [ROLE_TYPE_OWNER
, ROLE_TYPE_ADMIN
, ROLE_TYPE_STAFF
, ROLE_TYPE_DEVELOPER
, ROLE_TYPE_CONTENT_CONTRIBUTOR
, ROLE_TYPE_CUSTOM
]
groups object[]
Output only. The unique id of the group.
Output only. The name of the group.
Output only. The description of the group.
Output only. The name of the creator for the group.
user_infos object[]
Output only.
Output only. The unique id of the user.
Output only. The email of the user.
Possible values: [ACCOUNT_STATUS_ACTIVATED
, ACCOUNT_STATUS_DEACTIVATED
]
Output only. The status of the user.
Possible values: [ROLE_TYPE_OWNER
, ROLE_TYPE_ADMIN
, ROLE_TYPE_STAFF
, ROLE_TYPE_DEVELOPER
, ROLE_TYPE_CONTENT_CONTRIBUTOR
, ROLE_TYPE_CUSTOM
]
Output only. The role of the user.
Output only. The created time of the user.
Output only. The first name of the user.
Output only. The last name of the user.
Output only. The id of role.
Output only. The number of members in the group.
Output only. The timestamp of the group that was created.
Output only. The timestamp of the group that was last updated.
connected_accounts object[]
Output only. The id of connected account.
Possible values: [OAUTH2_PROVIDER_GOOGLE
]
Output only. The provider of connected account.
Output only. The email of connected account.
attrs object
Output only.
Output only.
Optional. The nickname of account.
Output only. The avatar icon url of account.
pagination object
Output only. The total numbers of the list in the current pagination.
Output only. The number of items per page in the current pagination.
Output only. The current page in the current pagination.
{
"account": [
{
"account_infos": [
{
"groups": [],
"organization": {
"billing_cycle": 0,
"contract_days": 0,
"contract_months": 0,
"contract_valid_end_time": null,
"contract_valid_start_time": null,
"created_at": "2023-04-24T03:49:27Z",
"description": "",
"has_sub_orgs": false,
"id": "edc115ec-9d62-402d-b2aa-2f31a6d37ffb",
"license_key": "",
"name": "test-org",
"owner_email": "",
"parent_id": "",
"parent_name": "",
"status": "ORGANIZATION_STATUS_ACTIVATED",
"time_zone": "",
"type": "ORGANIZATION_TYPE_BUSINESS",
"updated_at": "2023-06-05T05:30:35Z"
},
"role_type": "ROLE_TYPE_STAFF"
}
],
"attrs": {},
"created_at": "2023-06-05T05:31:53Z",
"default_org_id": "edc115ec-9d62-402d-b2aa-2f31a6d37ffb",
"email": "test+11231@kkcompany.com",
"first_name": "test",
"id": "91fc7f17-9877-436f-8137-647043b83c98",
"last_name": "test",
"password": "",
"status": "ACCOUNT_STATUS_ACTIVATED",
"updated_at": "2023-06-05T05:31:53Z"
},
{
"account_infos": [
{
"groups": [],
"organization": {
"billing_cycle": 0,
"contract_days": 0,
"contract_months": 0,
"contract_valid_end_time": null,
"contract_valid_start_time": null,
"created_at": "2023-04-24T03:49:27Z",
"description": "",
"has_sub_orgs": false,
"id": "edc115ec-9d62-402d-b2aa-2f31a6d37ffb",
"license_key": "",
"name": "test-org",
"owner_email": "",
"parent_id": "",
"parent_name": "",
"status": "ORGANIZATION_STATUS_ACTIVATED",
"time_zone": "",
"type": "ORGANIZATION_TYPE_BUSINESS",
"updated_at": "2023-06-05T05:30:35Z"
},
"role_type": "ROLE_TYPE_STAFF"
}
],
"attrs": {},
"created_at": "2023-06-05T05:36:53Z",
"default_org_id": "edc115ec-9d62-402d-b2aa-2f31a6d37ffb",
"email": "test+1123199@kkcompany.com",
"first_name": "test",
"id": "0ea4963a-6e82-4509-ba96-721642c9a83f",
"last_name": "test",
"password": "",
"status": "ACCOUNT_STATUS_ACTIVATED",
"updated_at": "2023-06-05T05:36:53Z"
}
],
"pagination": {
"current_page": 1,
"items_per_page": 10,
"total_items": 6
}
}
A bad request response.
The code
is 3
means got an invalid argument. There are more HTTP status code mappings listed on here and gRPC code on here.
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- If no scheme is provided,
https
is assumed. - An HTTP GET on the URL must yield a [google.protobuf.Type][] value in binary format, or produce an error.
- Applications are allowed to cache lookup results based on the URL, or have them precompiled into a binary to avoid any lookup. Therefore, binary compatibility needs to be preserved on changes to types. (Use versioned type names to manage breaking changes.)
- ]
details object[]
A URL/resource name that uniquely identifies the type of the serialized
protocol buffer message. This string must contain at least
one "/" character. The last segment of the URL's path must represent
the fully qualified name of the type (as in
path/google.protobuf.Duration
). The name should be in a canonical form
(e.g., leading "." is not accepted).
In practice, teams usually precompile into the binary all types that they
expect it to use in the context of Any. However, for URLs which use the
scheme http
, https
, or no scheme, one can optionally set up a type
server that maps type URLs to message definitions as follows:
Note: this functionality is not currently available in the official protobuf release, and it is not used for type URLs beginning with type.googleapis.com. As of May 2023, there are no widely used type server implementations and no plans to implement one.
Schemes other than http
, https
(or the empty scheme) might be
used with implementation specific semantics.
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
A unauthenticated response.
The header authorization
was missing or unidentified.
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- If no scheme is provided,
https
is assumed. - An HTTP GET on the URL must yield a [google.protobuf.Type][] value in binary format, or produce an error.
- Applications are allowed to cache lookup results based on the URL, or have them precompiled into a binary to avoid any lookup. Therefore, binary compatibility needs to be preserved on changes to types. (Use versioned type names to manage breaking changes.)
- ]
details object[]
A URL/resource name that uniquely identifies the type of the serialized
protocol buffer message. This string must contain at least
one "/" character. The last segment of the URL's path must represent
the fully qualified name of the type (as in
path/google.protobuf.Duration
). The name should be in a canonical form
(e.g., leading "." is not accepted).
In practice, teams usually precompile into the binary all types that they
expect it to use in the context of Any. However, for URLs which use the
scheme http
, https
, or no scheme, one can optionally set up a type
server that maps type URLs to message definitions as follows:
Note: this functionality is not currently available in the official protobuf release, and it is not used for type URLs beginning with type.googleapis.com. As of May 2023, there are no widely used type server implementations and no plans to implement one.
Schemes other than http
, https
(or the empty scheme) might be
used with implementation specific semantics.
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
A forbidden response.
It means that the provided authorization
did not have enough permission to access the resource or the API.
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- If no scheme is provided,
https
is assumed. - An HTTP GET on the URL must yield a [google.protobuf.Type][] value in binary format, or produce an error.
- Applications are allowed to cache lookup results based on the URL, or have them precompiled into a binary to avoid any lookup. Therefore, binary compatibility needs to be preserved on changes to types. (Use versioned type names to manage breaking changes.)
- ]
details object[]
A URL/resource name that uniquely identifies the type of the serialized
protocol buffer message. This string must contain at least
one "/" character. The last segment of the URL's path must represent
the fully qualified name of the type (as in
path/google.protobuf.Duration
). The name should be in a canonical form
(e.g., leading "." is not accepted).
In practice, teams usually precompile into the binary all types that they
expect it to use in the context of Any. However, for URLs which use the
scheme http
, https
, or no scheme, one can optionally set up a type
server that maps type URLs to message definitions as follows:
Note: this functionality is not currently available in the official protobuf release, and it is not used for type URLs beginning with type.googleapis.com. As of May 2023, there are no widely used type server implementations and no plans to implement one.
Schemes other than http
, https
(or the empty scheme) might be
used with implementation specific semantics.
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
A server error response. There are more HTTP status code mappings listed on here.
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- If no scheme is provided,
https
is assumed. - An HTTP GET on the URL must yield a [google.protobuf.Type][] value in binary format, or produce an error.
- Applications are allowed to cache lookup results based on the URL, or have them precompiled into a binary to avoid any lookup. Therefore, binary compatibility needs to be preserved on changes to types. (Use versioned type names to manage breaking changes.)
- ]
details object[]
A URL/resource name that uniquely identifies the type of the serialized
protocol buffer message. This string must contain at least
one "/" character. The last segment of the URL's path must represent
the fully qualified name of the type (as in
path/google.protobuf.Duration
). The name should be in a canonical form
(e.g., leading "." is not accepted).
In practice, teams usually precompile into the binary all types that they
expect it to use in the context of Any. However, for URLs which use the
scheme http
, https
, or no scheme, one can optionally set up a type
server that maps type URLs to message definitions as follows:
Note: this functionality is not currently available in the official protobuf release, and it is not used for type URLs beginning with type.googleapis.com. As of May 2023, there are no widely used type server implementations and no plans to implement one.
Schemes other than http
, https
(or the empty scheme) might be
used with implementation specific semantics.
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
An unexpected error response.
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- If no scheme is provided,
https
is assumed. - An HTTP GET on the URL must yield a [google.protobuf.Type][] value in binary format, or produce an error.
- Applications are allowed to cache lookup results based on the URL, or have them precompiled into a binary to avoid any lookup. Therefore, binary compatibility needs to be preserved on changes to types. (Use versioned type names to manage breaking changes.)
- ]
details object[]
A URL/resource name that uniquely identifies the type of the serialized
protocol buffer message. This string must contain at least
one "/" character. The last segment of the URL's path must represent
the fully qualified name of the type (as in
path/google.protobuf.Duration
). The name should be in a canonical form
(e.g., leading "." is not accepted).
In practice, teams usually precompile into the binary all types that they
expect it to use in the context of Any. However, for URLs which use the
scheme http
, https
, or no scheme, one can optionally set up a type
server that maps type URLs to message definitions as follows:
Note: this functionality is not currently available in the official protobuf release, and it is not used for type URLs beginning with type.googleapis.com. As of May 2023, there are no widely used type server implementations and no plans to implement one.
Schemes other than http
, https
(or the empty scheme) might be
used with implementation specific semantics.
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}