GET
/
v1
/
accounts
curl --request GET \
  --url https://live.copilot.fabric.inc/data-customer/v1/accounts \
  --header 'Authorization: Bearer <token>' \
  --header 'x-site-context: <x-site-context>'
{
  "query": {
    "offset": 0,
    "limit": 10,
    "count": 45
  },
  "list": [
    {
      "isDeleted": true,
      "_id": "612d66636c6ce700086e8880",
      "parentAccountId": "612d66416c6ce700086e887d",
      "type": "The type",
      "name": "The name parameter.",
      "accountNumber": "The account number to use.",
      "additionalAttributes": {},
      "createdAt": "2021-08-30T23:14:43.111Z",
      "updatedAt": "2021-08-30T23:14:43.111Z"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-site-context
string
required

The x-site-context header is a JSON object that contains information about the source you wish to pull from. The mandatory account is the 24 character identifier found in Copilot. The channel (Sales channel ID), stage (environment name), and date attributes can be used to further narrow the scope of your data source.

Response

200
application/json
OK
query
object

it contains data about pagination

list
object[]

list of users to be retrieved