GET
/
v1
/
user-internal-organization
/
user
/
{userId}
/
internal-organizations
curl --request GET \
  --url https://live.copilot.fabric.inc/data-customer/v1/user-internal-organization/user/{userId}/internal-organizations \
  --header 'Authorization: Bearer <token>' \
  --header 'x-site-context: <x-site-context>'
{
  "query": {
    "offset": 0,
    "limit": 10,
    "count": 45
  },
  "data": [
    {
      "_id": "61df41892bf06d00092d0d8a",
      "parentInternalPartyId": "61df41892bf06d00092d0d8f",
      "employeeIdentifier": "employee_123",
      "name": "INTERNAL PARTY Section 1",
      "internalPartyType": "O",
      "isActive": true,
      "email": "org@gmail.com",
      "additionalAttributes": {},
      "isDeleted": false,
      "createdAt": "2021-08-30T23:20:42.822Z",
      "updatedAt": "2021-08-30T23:20:42.822Z"
    }
  ]
}

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.

Path Parameters

userId
string
required

A unique identifier for userId.

Query Parameters

offset
integer
required

The offset query parameter.

limit
integer
required

The limit query parameter.

Response

200
application/json
OK
query
object
required
data
object[]
required

An array of items.