{ "opencollection": "1.0.0", "info": { "name": "Plunk Campaigns Contacts API", "version": "1.0" }, "request": { "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "items": [ { "info": { "name": "Contacts", "type": "folder" }, "items": [ { "info": { "name": "List all contacts", "type": "http" }, "http": { "method": "GET", "url": "https://api.useplunk.com/v1/contacts", "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Returns every contact in the project." }, { "info": { "name": "Create a contact", "type": "http" }, "http": { "method": "POST", "url": "https://api.useplunk.com/v1/contacts", "body": { "type": "json", "data": "{}" }, "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Creates a new contact with an email address, an optional subscription state, and arbitrary metadata used for personalization and segmentation." }, { "info": { "name": "Update a contact", "type": "http" }, "http": { "method": "PUT", "url": "https://api.useplunk.com/v1/contacts", "body": { "type": "json", "data": "{}" }, "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Updates the subscription state and/or metadata of an existing contact." }, { "info": { "name": "Delete a contact", "type": "http" }, "http": { "method": "DELETE", "url": "https://api.useplunk.com/v1/contacts", "body": { "type": "json", "data": "{}" }, "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Permanently deletes a contact by id." }, { "info": { "name": "Get a contact", "type": "http" }, "http": { "method": "GET", "url": "https://api.useplunk.com/v1/contacts/:id", "params": [ { "name": "id", "value": "", "type": "path", "description": "The id of the contact." } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Retrieves a single contact by its id." }, { "info": { "name": "Count contacts", "type": "http" }, "http": { "method": "GET", "url": "https://api.useplunk.com/v1/contacts/count", "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Returns the total number of contacts in the project." }, { "info": { "name": "Subscribe a contact", "type": "http" }, "http": { "method": "POST", "url": "https://api.useplunk.com/v1/contacts/subscribe", "body": { "type": "json", "data": "{}" }, "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Sets a contact's subscription state to subscribed." }, { "info": { "name": "Unsubscribe a contact", "type": "http" }, "http": { "method": "POST", "url": "https://api.useplunk.com/v1/contacts/unsubscribe", "body": { "type": "json", "data": "{}" }, "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Sets a contact's subscription state to unsubscribed." } ] } ], "bundled": true }