curl --request POST \
--url https://api.getcargo.io/v1/segmentation/segments/{uuid}/fetch \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"modelUuid": "<string>",
"filter": {
"conjonction": "or",
"groups": [
{}
]
},
"sort": [
{
"columnSlug": "<string>",
"kind": "asc"
}
],
"limit": 123,
"fetchingLimit": 123,
"fetchingOffset": 123,
"enrich": true,
"sync": true
}
'{
"records": [
{}
],
"columns": [
{
"slug": "<string>",
"type": "string",
"label": "<string>",
"modelUuid": "<string>"
}
],
"count": 123
}Fetch data for a segment
curl --request POST \
--url https://api.getcargo.io/v1/segmentation/segments/{uuid}/fetch \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"modelUuid": "<string>",
"filter": {
"conjonction": "or",
"groups": [
{}
]
},
"sort": [
{
"columnSlug": "<string>",
"kind": "asc"
}
],
"limit": 123,
"fetchingLimit": 123,
"fetchingOffset": 123,
"enrich": true,
"sync": true
}
'{
"records": [
{}
],
"columns": [
{
"slug": "<string>",
"type": "string",
"label": "<string>",
"modelUuid": "<string>"
}
],
"count": 123
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Resource UUID
Request body schema.
Model identifier.
Segment filter criteria.
Show child attributes
Sort criteria for the segment.
Show child attributes
Maximum number of records to include.
Number of records to fetch per batch.
Offset for fetching records.
Whether to enrich records.
Whether to sync before fetching.
Was this page helpful?