GET
/
v1
/
collections
/
{provider}
/
{id}
curl --request GET \
  --url https://api.sequin.io/v1/collections/{provider}/{id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "stripe:upcoming_line_item",
  "name": "upcoming_line_item",
  "upstream_id": "stripe:upcoming_line_item",
  "fields": [
    {
      "accessor": "id",
      "id": "stripe:customer:id",
      "name": "id",
      "primary_key": true,
      "type": "text"
    },
    {
      "accessor": "name",
      "id": "stripe:customer:name",
      "name": "name",
      "primary_key": false,
      "type": "text"
    },
    {
      "accessor": "balance",
      "id": "stripe:customer:balance",
      "name": "balance",
      "primary_key": false,
      "type": "number"
    },
    // ...
  ]
}

Request parameters

id
string
required

ID of the standard collection.

Response fields

id
string

ID of the collection.

upstream_id
string

ID of the collection as defined by the provider. (This will be the same as the id)

name
string

Name of the collection.

links
array

Links to documentation for the collection.

Coming soon
fields
array

Fields for the collection.