Account
Manage Account.
Get
Get an account given the account ID.
Can also get account by email if using the gs1 index in the URL query.
Endpoint
HTTP
POST /account/get
Authorized User Role
user
Request Body
Field | Type | Notes |
---|---|---|
id | string | Account ID. |
string | Email address. |
Query String Options
Field | Type | Default | Notes |
---|---|---|---|
index | string | Index name: primary or gs1. | |
limit | number | Limit number of results. | |
next | object | Token for next page. | |
prev | object | Token for previous page. |
Response
Account Record.
Field | Type | Notes |
---|---|---|
activity | date | Most recent account activity. |
closed | boolean | Account has been closed. |
string | Billing email. | |
id | string | Account ID. |
name | string | Account name. |
curl
curl -X POST https://api.admin.embedthis.com/api/tok/account/get \
-H 'Authorization: ${BUILDER_TOKEN}' \
-H 'Content-Type: application/json' \
-d '{"id": "01GC5Z9SS9NC3VXXXXXXXXXXXX"}'
url
url https://api.admin.embedthis.com/api/tok/account/get \
'Authorization: ${BUILDER_TOKEN}' \
'{id: "01GC5Z9SS9NC3VXXXXXXXXXXXX"}'
UpdateIdentity
Update account name and email.
Endpoint
HTTP
POST /account/updateIdentity
Authorized User Role
admin
Request Body
Field | Type | Required | Notes |
---|---|---|---|
id | string | yes | Account ID. |
string | Email address. | ||
name | string | Account name. |
Response
An account object.
Field | Type | Notes |
---|---|---|
activity | date | Most recent account activity. |
closed | boolean | Account has been closed. |
string | Billing email. | |
id | string | Account ID. |
name | string | Account name. |