Subscription Types
Everything about subscription types
Operations
| Method | Endpoint | Description |
|---|---|---|
GET | /contacts/{contact_id}/subscriptions | List subscriptions for a contact |
POST | /contacts/{contact_id}/subscriptions | Add subscription to a contact |
DELETE | /contacts/{contact_id}/subscriptions/{subscription_id} | Remove subscription from a contact |
GET | /subscription_types | List subscription types |
Example
List subscriptions for a contact, with the TypeScript SDK:
ts
import { Intercom } from "@octridev/intercom";
const client = new Intercom({
// Optional: replaces the default server and any server an operation declares.
baseUrl: "https://api.intercom.io",
auth: { bearerAuth: process.env.API_TOKEN! },
});
const result = await client.contacts.listSubscriptions({
contactId: "contact-1",
});
console.log(result);Nine more languages
The same call exists in every SDK. See SDKs for the other nine.