Get the authenticated brand
GET/v1/me
Retrieves the brand this API key is scoped to.
Behavior
- Check it at boot: every other endpoint scopes itself to your brand implicitly, and a key pointed at the wrong brand is invisible until it returns someone else’s chats.
- Returns the key’s id, never the key. Cheap and safe to call on startup.
- Carries
webhook_delivery, so polling it at a human interval tells you whether webhook delivery to any of your endpoints is paused.
Get the authenticated brand
curl https://messages.api.linqapp.com/v1/me \
-H "Authorization: Bearer $LINQ_AMB_API_KEY"{
"brand_id": "biz_9f2c1a",
"key_id": "key_7bd41e",
"webhook_delivery": {
"parked_feeds": 0
}
}Returns Examples
{
"brand_id": "biz_9f2c1a",
"key_id": "key_7bd41e",
"webhook_delivery": {
"parked_feeds": 0
}
}