Your API key. Create one in Ocoya. Authorization: Bearer <key> works too.
List contact groups
The brand's contact groups with how many contacts and subscribers each has. Use their IDs in an email's audience.
List contact groups
curl --request GET \
--url https://www.app.ocoya.com/api/_public/v1/contacts/groups \
--header 'X-API-Key: <api-key>'{
"data": [
{
"id": "cmwdke1w70043y0k4ffzsa6om",
"name": "Customers",
"contacts": 340,
"subscribed": 322
}
]
}Was this page helpful?