Example Request
$ curl \
-s https://api.intercom.io/subscriptions/nsub_6ab4c480-fd8b-11e3-958f-c779cae3e1b3 \
-H 'Authorization:Bearer <Your access token>' \
-H 'Accept:application/json'
HTTP/1.1 200 OK
{
"type": "notification_subscription",
"id": "nsub_6ab4c480-fd8b-11e3-958f-c779cae3e1b3",
"created_at": 1392731331,
"updated_at": 1392731331,
"service_type": "web",
"topics": ["conversation", "company"],
"url": "https://example.org/hooks",
"active": true,
"hub_secret": null
}
Subscription sub = Subscription.find("nsub_60ca7690");
Each subscription object has its own URL -
https://api.intercom.io/subscriptions/{id}
Where {id}
is the value of the subscriptions's id
field. Subscriptions may also have a self
field containing the URL to be used.