GET
/
api-list
/
list
/
user
/
{userId}
curl --request GET \
  --url https://prod01-apigw.{customer_name}.fabric.zone/api-list/list/user/{userId} \
  --header 'x-site-context: <x-site-context>'
{
  "query": {
    "limit": 10,
    "offset": 0,
    "count": 1
  },
  "lists": [
    {
      "_id": "5fee9d59f2f08a1b3cbdea08",
      "createdAt": "2020-12-31T02:09:53.914Z",
      "updatedAt": "2020-12-31T02:09:53.914Z",
      "userId": "33d01d57-4bfa-4a14-bacc-036617ec02b9",
      "name": "Summer List",
      "listType": "Wishlist",
      "notes": "Summer List",
      "count": 10,
      "attributes": {
        "approver": "Jone Doe"
      }
    }
  ]
}

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.

x-api-key
string

Path Parameters

userId
string
required

Query Parameters

Get list by userId parameters
object

Response

200
application/json
List for specific userId
query
object
lists
object[]