🔐 Authentication Configuration

Configure authentication to test endpoints. Select one method:

Method 1: Email & Password

Method 2: Access Token

Method 3: API Key & Token

224

Total Endpoints

43

Categories

99

GET Endpoints

67

POST Endpoints

Analytics

1 endpoints
GET /analytics/daily-stats
Get Daily Stats For Dashboard
const result = await client.getDailyStatsForDashboard();
GET{{BASE_URL}}/analytics/daily-stats
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN

Create User Api Key

1 endpoints
POST https://apiv2.entrancegrp.com/user-api-keys
Create User Api Key
const result = await client.createUserApiKey({ /* body */ });
POST{{BASE_URL}}https://apiv2.entrancegrp.com/user-api-keys
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
Body:
{ "user_id": 4065 }

Assign

1 endpoints
POST /workspaces/:workspaceId/assign
Assign User To Workspace
const result = await client.assignUserToWorkspace({ workspaceId: 'example-workspaceId' }, { /* body */ });
POST{{BASE_URL}}/workspaces/example-workspaceId/assign
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
Body:
{ "user_id": 1, "permission": "user" }

Assigned

3 endpoints
GET /workspaces/:id/assigned
Get Workspace Users
const result = await client.getWorkspaceUsers({ id: 'example-id' });
GET{{BASE_URL}}/workspaces/example-id/assigned
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
PATCH /workspaces/:workspaceId/assigned/:userId
Update User Assign Permission
const result = await client.updateUserAssignPermission({ workspaceId: 'example-workspaceId', userId: 'example-userId' }, { /* body */ });
PATCH{{BASE_URL}}/workspaces/example-workspaceId/assigned/example-userId
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
Body:
{ "permission": "senior" }
DELETE /workspaces/:workspaceId/assigned/:userId
Delete User Assignment
const result = await client.deleteUserAssignment({ workspaceId: 'example-workspaceId', userId: 'example-userId' });
DELETE{{BASE_URL}}/workspaces/example-workspaceId/assigned/example-userId
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN

Authentication

4 endpoints
POST /authentication/login
Login
const result = await client.login({ /* body */ });
POST{{BASE_URL}}/authentication/login
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
Body:
{ "email": "example", "password": "example" }
GET /authentication/logout
Logout
const result = await client.logout();
GET{{BASE_URL}}/authentication/logout
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
POST /authentication/refresh-token
Refresh Token
const result = await client.refreshToken({ /* body */ });
POST{{BASE_URL}}/authentication/refresh-token
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
Body:
{ "client_id": "example", "refresh_token": "example" }
POST /authentication/syft/retrieve-user
Retrieve User
const result = await client.retrieveUser({ /* body */ });
POST{{BASE_URL}}/authentication/syft/retrieve-user
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
Body:
{ "email": "dethnoble@gmail.com" }

Billing

1 endpoints
GET /billing/usage
Get Usage
const result = await client.getUsage();
GET{{BASE_URL}}/billing/usage
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN

Campaign Templates

3 endpoints
POST /campaign-templates
Create Campaign Template
const result = await client.createCampaignTemplate({ /* body */ });
POST{{BASE_URL}}/campaign-templates
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
Body:
{ "name": "Test Message Template", "text": "Hello, I am testing the template text for creating templates." }
PUT /campaign-templates/:id
Update Campaign Template
const result = await client.updateCampaignTemplate({ id: 'example-id' }, { /* body */ });
PUT{{BASE_URL}}/campaign-templates/example-id
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
Body:
{ "name": "Update name" }
DELETE /campaign-templates/:id
Delete Campaign Template
const result = await client.deleteCampaignTemplate({ id: 'example-id' });
DELETE{{BASE_URL}}/campaign-templates/example-id
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN

Campaign Text Filters

3 endpoints
GET /campaign-text-filters
Get Campaign Text Filters
const result = await client.getCampaignTextFilters();
GET{{BASE_URL}}/campaign-text-filters
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
POST /campaign-text-filters
Create Campaign Text Filter
const result = await client.createCampaignTextFilter({ /* body */ });
POST{{BASE_URL}}/campaign-text-filters
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
Body:
{ "text": "Test Text 222222!" }
DELETE /campaign-text-filters/:id
Delete Campaign Text Filter
const result = await client.deleteCampaignTextFilter({ id: 'example-id' });
DELETE{{BASE_URL}}/campaign-text-filters/example-id
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN

Campaigns

31 endpoints
GET /campaigns/:id/permissions
Get Campaign Permissions
const result = await client.getCampaignPermissions({ id: 'example-id' });
GET{{BASE_URL}}/campaigns/example-id/permissions
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
POST /campaigns/:id/permissions/users
Add User
const result = await client.addUser({ id: 'example-id' }, { /* body */ });
POST{{BASE_URL}}/campaigns/example-id/permissions/users
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
Body:
{ "user_id": 3 }
DELETE /campaigns/:id/permissions/users?user_id=564
Remove User
const result = await client.removeUser({ id: 'example-id' }, { user_id: 'example' });
DELETE{{BASE_URL}}/campaigns/example-id/permissions/users?user_id=564?user_id=example
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
POST /campaigns/:id/permissions/groups
Add User Group
const result = await client.addUserGroup({ id: 'example-id' }, { /* body */ });
POST{{BASE_URL}}/campaigns/example-id/permissions/groups
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
Body:
{ "user_group_id": 2 }
DELETE /campaigns/:id/permissions/groups?user_group_id=2
Remove User Group
const result = await client.removeUserGroup({ id: 'example-id' }, { user_group_id: 'example' });
DELETE{{BASE_URL}}/campaigns/example-id/permissions/groups?user_group_id=2?user_group_id=example
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
DELETE /campaigns/:id/permissions
Clear Permissions
const result = await client.clearPermissions({ id: 'example-id' });
DELETE{{BASE_URL}}/campaigns/example-id/permissions
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
GET /workspaces/:workspaceId/campaigns/:id/pause
Pause Campaign
const result = await client.pauseCampaign({ workspaceId: 'example-workspaceId', id: 'example-id' });
GET{{BASE_URL}}/workspaces/example-workspaceId/campaigns/example-id/pause
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
GET /workspaces/:workspaceId/campaigns/:id/resume
Resume Campaign
const result = await client.resumeCampaign({ workspaceId: 'example-workspaceId', id: 'example-id' });
GET{{BASE_URL}}/workspaces/example-workspaceId/campaigns/example-id/resume
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
GET /workspaces/:workspaceId/campaigns/:id/cancel
Cancel Campaign
const result = await client.cancelCampaign({ workspaceId: 'example-workspaceId', id: 'example-id' });
GET{{BASE_URL}}/workspaces/example-workspaceId/campaigns/example-id/cancel
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
GET /workspaces/:workspaceId/campaigns/:id/upload-progress
getUploadProgress
const result = await client.getUploadProgress({ workspaceId: 'example-workspaceId', id: 'example-id' });
GET{{BASE_URL}}/workspaces/example-workspaceId/campaigns/example-id/upload-progress
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
GET /workspaces/:workspaceId/campaigns/:id/send-progress
getSendProgress
const result = await client.getSendProgress({ workspaceId: 'example-workspaceId', id: 'example-id' });
GET{{BASE_URL}}/workspaces/example-workspaceId/campaigns/example-id/send-progress
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
GET /workspaces/:id/campaigns/:campaignId/contact-lists
Get Contact Lists
const result = await client.getContactLists({ id: 'example-id', campaignId: 'example-campaignId' });
GET{{BASE_URL}}/workspaces/example-id/campaigns/example-campaignId/contact-lists
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
POST /workspaces/:id/campaigns/:campaignId/contact-lists
Add Contact List
const result = await client.addContactList({ id: 'example-id', campaignId: 'example-campaignId' }, { /* body */ });
POST{{BASE_URL}}/workspaces/example-id/campaigns/example-campaignId/contact-lists
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
Body:
{ "contact_list_id": 1 }
DELETE /workspaces/:id/campaigns/:campaignId/contact-lists/:campaignContactListId
Remove Contact List by Record Id
const result = await client.removeContactListByRecordId({ id: 'example-id', campaignId: 'example-campaignId', campaignContactListId: 'example-campaignContactListId' });
DELETE{{BASE_URL}}/workspaces/example-id/campaigns/example-campaignId/contact-lists/example-campaignContactListId
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
GET /workspaces/:workspaceId/campaigns?order=DESC&limit=100&types=SINGLE_BLAST
Get All
const result = await client.list({ workspaceId: 'example-workspaceId' }, { order: 'example', limit: 'example', types: 'example' });
GET{{BASE_URL}}/workspaces/example-workspaceId/campaigns?order=DESC&limit=100&types=SINGLE_BLAST?order=example&limit=example&types=example
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
GET /workspaces/:workspaceId/campaigns/:id
Get Campaign
const result = await client.getCampaign({ workspaceId: 'example-workspaceId', id: 'example-id' });
GET{{BASE_URL}}/workspaces/example-workspaceId/campaigns/example-id
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
POST /workspaces/:workspaceId/campaigns
Create Campaign
const result = await client.createCampaign({ workspaceId: 'example-workspaceId' }, { /* body */ });
POST{{BASE_URL}}/workspaces/example-workspaceId/campaigns
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
Body:
{ "name": "Test MMS", "type": "SINGLE_BLAST", "text_message": "Testing MMS", "send_after_import": false }
PATCH /campaigns/:id
Update Campaign
const result = await client.updateCampaign({ id: 'example-id' }, { /* body */ });
PATCH{{BASE_URL}}/campaigns/example-id
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
Body:
{ "media_url": null }
POST /campaigns/:id/attach-media
Attach Media
const result = await client.attachMedia({ id: 'example-id' });
POST{{BASE_URL}}/campaigns/example-id/attach-media
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
DELETE /campaigns/:id/attach-media
Remove Media
const result = await client.removeMedia({ id: 'example-id' });
DELETE{{BASE_URL}}/campaigns/example-id/attach-media
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
GET /workspaces/:id/campaigns/:campaignId/campaign-contacts
Get Campaign Contacts
const result = await client.getCampaignContacts({ id: 'example-id', campaignId: 'example-campaignId' });
GET{{BASE_URL}}/workspaces/example-id/campaigns/example-campaignId/campaign-contacts
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
GET /workspaces/:id/campaigns/:campaignId/contacts?lastid=0&limit=20&order=ASC
Get Contacts
const result = await client.getContacts({ id: 'example-id', campaignId: 'example-campaignId' }, { lastid: 'example', limit: 'example', order: 'example' });
GET{{BASE_URL}}/workspaces/example-id/campaigns/example-campaignId/contacts?lastid=0&limit=20&order=ASC?lastid=example&limit=example&order=example
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
POST /workspaces/:workspaceId/campaigns/:campaignId/contacts
Add Contacts
const result = await client.addContacts({ workspaceId: 'example-workspaceId', campaignId: 'example-campaignId' }, { /* body */ });
POST{{BASE_URL}}/workspaces/example-workspaceId/campaigns/example-campaignId/contacts
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
Body:
{ "contacts": [ { "number": "15550000000", "first_name": "Alan", "last_name": "Boody", "company": "Slackers LLC" }, { "number": "19178267586", "first_name": "Jack", "last_name": "Gabbay", "company": "Z LLC" }, { "number": "19173187199", "first_name": "David", "last_name": "Barnathan", "company": "S LLC" } ], "send_after_import": false }
POST /campaigns/:id/attach-media
Attach Media Copy
const result = await client.attachMediaCopy({ id: 'example-id' });
POST{{BASE_URL}}/campaigns/example-id/attach-media
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
POST /campaigns/:campaignId/contacts/delete
Delete Uploaded Contacts
const result = await client.deleteUploadedContacts({ campaignId: 'example-campaignId' }, { /* body */ });
POST{{BASE_URL}}/campaigns/example-campaignId/contacts/delete
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
Body:
{ "field": "number", "value": [ "17147170140" ] }
GET /workspaces/:workspaceId/campaigns/:campaignId/send
Send
const result = await client.send({ workspaceId: 'example-workspaceId', campaignId: 'example-campaignId' });
GET{{BASE_URL}}/workspaces/example-workspaceId/campaigns/example-campaignId/send
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
POST /workspaces/:workspaceId/campaigns/:id/test
Send Test Message
const result = await client.sendtestMessage({ workspaceId: 'example-workspaceId', id: 'example-id' }, { /* body */ });
POST{{BASE_URL}}/workspaces/example-workspaceId/campaigns/example-id/test
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
Body:
{ "test_messages": [ { "number": "15550000000", "variables": { "first_name": "Alan", "last_name": "Boody" } } ] }
GET /campaigns/:id/responses?lastid=0&order=ASC&limit=20&stop=false
Get Responses
const result = await client.getResponses({ id: 'example-id' }, { lastid: 'example', order: 'example', limit: 'example', stop: 'example' });
GET{{BASE_URL}}/campaigns/example-id/responses?lastid=0&order=ASC&limit=20&stop=false?lastid=example&order=example&limit=example&stop=example
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
GET /campaigns/:campaignId/clicks
Get Campaign Clicks
const result = await client.getCampaignClicks({ campaignId: 'example-campaignId' });
GET{{BASE_URL}}/campaigns/example-campaignId/clicks
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
GET /workspaces/:workspaceId/campaigns/:campaignId/analytics-summary
Campaign Analytics Summary
const result = await client.campaignAnalyticsSummary({ workspaceId: 'example-workspaceId', campaignId: 'example-campaignId' });
GET{{BASE_URL}}/workspaces/example-workspaceId/campaigns/example-campaignId/analytics-summary
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
POST /workspaces/:workspaceId/campaigns/:campaignId/schedule
Schedule Campaign
const result = await client.scheduleCampaign({ workspaceId: 'example-workspaceId', campaignId: 'example-campaignId' }, { /* body */ });
POST{{BASE_URL}}/workspaces/example-workspaceId/campaigns/example-campaignId/schedule
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
Body:
{ "schedule": "2025-08-21T08:00:00-05:00" }

Channels

11 endpoints
GET /workspaces/:workspaceId/channels?claimed=true
Get Channels
const result = await client.getChannels({ workspaceId: 'example-workspaceId' }, { campaign_id: 'example', campaign_id: 'example', claimed: 'example' });
GET{{BASE_URL}}/workspaces/example-workspaceId/channels?claimed=true?campaign_id=example&campaign_id=example&claimed=example
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
GET /workspaces/:workspaceId/channels/:id
Get Channel
const result = await client.getChannel({ workspaceId: 'example-workspaceId', id: 'example-id' });
GET{{BASE_URL}}/workspaces/example-workspaceId/channels/example-id
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
GET /channels?claimed=false
Track Click
const result = await client.trackClick({ claimed: 'example' });
GET{{BASE_URL}}/channels?claimed=false?claimed=example
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
PATCH /workspaces/:workspaceId/channels/:id
Update Channel
const result = await client.updateChannel({ workspaceId: 'example-workspaceId', id: 'example-id' }, { /* body */ });
PATCH{{BASE_URL}}/workspaces/example-workspaceId/channels/example-id
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
Body:
{ "assigned_to": 555555 }
GET /workspaces/:workspaceId/channels/:id/meta?email=true
Get Channel Meta
const result = await client.getChannelMeta({ workspaceId: 'example-workspaceId', id: 'example-id' }, { email: 'example' });
GET{{BASE_URL}}/workspaces/example-workspaceId/channels/example-id/meta?email=true?email=example
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
GET /workspaces/:workspaceId/channels/:id/syft-messages
Syft Messages
const result = await client.syftMessages({ workspaceId: 'example-workspaceId', id: 'example-id' });
GET{{BASE_URL}}/workspaces/example-workspaceId/channels/example-id/syft-messages
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
DELETE /workspaces/:workspaceId/channels/:id/
Delete Channels
const result = await client.deleteChannels({ workspaceId: 'example-workspaceId', id: 'example-id' });
DELETE{{BASE_URL}}/workspaces/example-workspaceId/channels/example-id/
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
GET /workspaces/:workspaceId/channels/:id/unclaim
Unclaim
const result = await client.unclaim({ workspaceId: 'example-workspaceId', id: 'example-id' });
GET{{BASE_URL}}/workspaces/example-workspaceId/channels/example-id/unclaim
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
POST /workspaces/:workspaceId/channels/:id/assign
Assign
const result = await client.assign({ workspaceId: 'example-workspaceId', id: 'example-id' }, { /* body */ });
POST{{BASE_URL}}/workspaces/example-workspaceId/channels/example-id/assign
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
Body:
{ "user_id": 123 }
POST /workspaces/:workspaceId/channels/bulk-assign-flag
Bulk Flag Assign
const result = await client.bulkFlagAssign({ workspaceId: 'example-workspaceId' }, { /* body */ });
POST{{BASE_URL}}/workspaces/example-workspaceId/channels/bulk-assign-flag
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
Body:
{ "flag_id": 43, "phoneNumbers": [ 15550000000 ] }
PUT /workspaces/:workspaceId/channels/:id/meta
Remove Meta
const result = await client.removeMeta({ workspaceId: 'example-workspaceId', id: 'example-id' }, { /* body */ });
PUT{{BASE_URL}}/workspaces/example-workspaceId/channels/example-id/meta
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
Body:
{ "action": "remove", "field": "newmeta" }

Contact Lists

8 endpoints
GET /workspaces/:workspaceId/contact-lists/:id?lastid=2&limit=100&order=ASC
Get Contact List By Id
const result = await client.getContactListById({ workspaceId: 'example-workspaceId', id: 'example-id' }, { lastid: 'example', limit: 'example', order: 'example' });
GET{{BASE_URL}}/workspaces/example-workspaceId/contact-lists/example-id?lastid=2&limit=100&order=ASC?lastid=example&limit=example&order=example
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
POST /workspaces/:workspaceId/contact-lists
Create Contact List
const result = await client.createContactList({ workspaceId: 'example-workspaceId' }, { /* body */ });
POST{{BASE_URL}}/workspaces/example-workspaceId/contact-lists
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
Body:
{ "name": "Elijah" }
PATCH /workspaces/:workspaceId/contact-lists/:id
Update Contact List By Id
const result = await client.updateContactListById({ workspaceId: 'example-workspaceId', id: 'example-id' }, { /* body */ });
PATCH{{BASE_URL}}/workspaces/example-workspaceId/contact-lists/example-id
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
Body:
{ "name": "My List Edited 2" }
GET /workspaces/:workspaceId/contact-lists/:id/contacts?lastid=0&limit=100&order=ASC
Get Contacts in List
const result = await client.getContactsInList({ workspaceId: 'example-workspaceId', id: 'example-id' }, { lastid: 'example', limit: 'example', order: 'example' });
GET{{BASE_URL}}/workspaces/example-workspaceId/contact-lists/example-id/contacts?lastid=0&limit=100&order=ASC?lastid=example&limit=example&order=example
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
POST /workspaces/:workspaceId/contact-lists/:contactListId/imports
Import By Json Body
const result = await client.importByJsonBody({ workspaceId: 'example-workspaceId', contactListId: 'example-contactListId' }, { /* body */ });
POST{{BASE_URL}}/workspaces/example-workspaceId/contact-lists/example-contactListId/imports
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
Body:
{ "import_name": "Import Name", "contacts": [ { "number": "17326463866", "first_name": "iPhone", "last_name": "Seven", "company": "Slackers LLC" }, { "First": "Fred", "Last": "Doug", "company": "entrance", "message": "Hello , we are calling about your cars extended warranty", "number2": "12222222222" } ] }
PATCH /workspaces/:workspaceId/contact-lists/imports/:id
Update Import
const result = await client.updateImport({ workspaceId: 'example-workspaceId', id: 'example-id' }, { /* body */ });
PATCH{{BASE_URL}}/workspaces/example-workspaceId/contact-lists/imports/example-id
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
Body:
{ "archive": true }
GET /workspaces/:workspaceId/contact-lists/:id/imports?lastid=0&order=ASC&limit=100
Get Contact List Imports
const result = await client.getContactListImports({ workspaceId: 'example-workspaceId', id: 'example-id' }, { lastid: 'example', order: 'example', limit: 'example' });
GET{{BASE_URL}}/workspaces/example-workspaceId/contact-lists/example-id/imports?lastid=0&order=ASC&limit=100?lastid=example&order=example&limit=example
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
GET /workspaces/:workspaceId/contact-lists/imports/:importId/contacts?lastId=0&order=ASC&limit=100
Get Contacts By Import
const result = await client.getContactsByImport({ workspaceId: 'example-workspaceId', importId: 'example-importId' }, { lastId: 'example', order: 'example', limit: 'example' });
GET{{BASE_URL}}/workspaces/example-workspaceId/contact-lists/imports/example-importId/contacts?lastId=0&order=ASC&limit=100?lastId=example&order=example&limit=example
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN

Contacts

6 endpoints
PUT /workspaces/:workspaceId/contacts/:contactId/meta
Add Meta
const result = await client.addMeta({ workspaceId: 'example-workspaceId', contactId: 'example-contactId' }, { /* body */ });
PUT{{BASE_URL}}/workspaces/example-workspaceId/contacts/example-contactId/meta
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
Body:
{ "action": "add", "meta": { "field": "new Meta", "value": "Meta value!" } }
PUT /workspaces/:workspaceId/contacts/:contactId/meta
Edit Meta
const result = await client.editMeta({ workspaceId: 'example-workspaceId', contactId: 'example-contactId' }, { /* body */ });
PUT{{BASE_URL}} /workspaces/example-workspaceId/contacts/example-contactId/meta
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
Body:
{ "action": "edit", "meta": { "field": "newMeta", "value": "Meta value 22222!" } }
GET /workspaces/:workspaceId/contacts?limit=300&order=ASC
Get Contacts
const result = await client.getContacts({ workspaceId: 'example-workspaceId' }, { limit: 'example', order: 'example' });
GET{{BASE_URL}}/workspaces/example-workspaceId/contacts?limit=300&order=ASC?limit=example&order=example
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
GET /workspaces/:workspaceId/contacts/:contactId
Get Contact
const result = await client.getContact({ workspaceId: 'example-workspaceId', contactId: 'example-contactId' });
GET{{BASE_URL}}/workspaces/example-workspaceId/contacts/example-contactId
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
POST /contacts
Create Contact
const result = await client.createContact({ /* body */ });
POST{{BASE_URL}}/contacts
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
Body:
{ "number": "5173158330" }
PATCH /workspaces/:workspaceId/contacts/:id
Update Contact
const result = await client.updateContact({ workspaceId: 'example-workspaceId', id: 'example-id' }, { /* body */ });
PATCH{{BASE_URL}}/workspaces/example-workspaceId/contacts/example-id
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
Body:
{ "stop": "true" }

Flags

4 endpoints
GET /workspaces/:id/flags/4
Get Flag By Id
const result = await client.getFlagById({ id: 'example-id' });
GET{{BASE_URL}}/workspaces/example-id/flags/4
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
POST /flags
Create Flag
const result = await client.createFlag({ /* body */ });
POST{{BASE_URL}}/flags
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
Body:
{ "name": "test", "color_id": "#000000" }
PATCH /flags/:flagId
Update Flag
const result = await client.updateFlag({ flagId: 'example-flagId' }, { /* body */ });
PATCH{{BASE_URL}}/flags/example-flagId
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
Body:
{ "name": "Test Update", "color_id": "#f1f1f1" }
DELETE /flags/2
Remove Flag
const result = await client.removeFlag();
DELETE{{BASE_URL}}/flags/2
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN

Http:

2 endpoints
POST http://127.0.0.1:6003?wid=1
Test Receive SMS Local
const result = await client.testReceiveSMSLocal({ wid: 'example' }, { /* body */ });
POST{{BASE_URL}}http://127.0.0.1:6003?wid=1?wid=example
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
Body:
{ "data": { "payload": { "autoresponse_type": null, "cc": [], "completed_at": null, "cost": null, "direction": "inbound", "encoding": "GSM-7", "errors": [], "from": { "carrier": "Verizon Wireless", "line_type": "Wireless", "phone_number": "+15550000000" }, "id": "89e392e0-39d3-4561-82b1-93b58007f717", "is_spam": false, "media": [], "messaging_profile_id": "40018695-6da6-477a-a06d-6934e009e717", "organization_id": "c69dc7e5-664a-421b-a604-c1f7a8424722", "parts": 1, "received_at": "2023-06-03T22:18:03.279+00:00", "record_type": "message", "sent_at": null, "subject": "", "tags": [], "text": "start2", "to": [ { "carrier": "Telnyx", "line_type": "Wireless", "phone_number": "+15864350601", "status": "webhook_delivered" } ], "type": "SMS", "valid_until": null, "webhook_failover_url": null, "webhook_url": "https://beta.entrancegrp.com/api/messages/receive_sms" } } }
GET http://127.0.0.1:6022/syft-voice?last_id=1&limit=100&
Test Retrieve User
const result = await client.testRetrieveUser({ last_id: 'example', limit: 'example' });
GET{{BASE_URL}}http://127.0.0.1:6022/syft-voice?last_id=1&limit=100&?last_id=example&limit=example
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN

Incoming Message Keywords

2 endpoints
GET /incoming-message-keywords
Get Keywords
const result = await client.getKeywords();
GET{{BASE_URL}}/incoming-message-keywords
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
POST /incoming-message-keywords
Add Keyword
const result = await client.addKeyword({ /* body */ });
POST{{BASE_URL}}/incoming-message-keywords
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
Body:
{ "keyword": "test" }

Influencers

6 endpoints
POST /influencers
Create Influencer List
const result = await client.createInfluencerList({ /* body */ });
POST{{BASE_URL}}/influencers
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
Body:
{ "name": "My Influencer List", "influencer_opt_in_message": "Message that is texted back once contact opts into influencer list.", "influencer_subscribe_keywords": ["join", "subscribe", "start", "etc"] // List of opt in keywords that a contact texts to opt into the influencer list. }
GET /influencers/:id
Get Influencer List by Id
const result = await client.getInfluencerListById({ id: 'example-id' });
GET{{BASE_URL}}/influencers/example-id
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
PUT /influencers/:id
Update Influencer List
const result = await client.updateInfluencerList({ id: 'example-id' }, { /* body */ });
PUT{{BASE_URL}}/influencers/example-id
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
Body:
{ "name": "My Influencer List", "influencer_opt_in_message": "Message that is texted back once contact opts into influencer list." }
PUT /influencers/:id/phone-number
Add/Update Influencer List Number
const result = await client.addUpdateInfluencerListNumber({ id: 'example-id' }, { /* body */ });
PUT{{BASE_URL}}/influencers/example-id/phone-number
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
Body:
{ "workspace_number": "15550000000", "workspace_number_id": 1111 }
PUT /influencers/:id/add-keywords
Update Keywords
const result = await client.updateKeywords({ id: 'example-id' }, { /* body */ });
PUT{{BASE_URL}}/influencers/example-id/add-keywords
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
Body:
{ "add": [ "join", "subscribe" ], "remove": [ "join", "subscribe" ] }
DELETE /influencers/:id
Archive Influencer List
const result = await client.archiveInfluencerList({ id: 'example-id' });
DELETE{{BASE_URL}}/influencers/example-id
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN

Message Filters

6 endpoints
POST /message-filters
Add Filter
const result = await client.addFilter({ /* body */ });
POST{{BASE_URL}}/message-filters
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
Body:
{ "phrase": "5550000000", "contains": false, "unsubscribe": true }
PATCH /workspaces/:id/message-filters/:id
Update Filter
const result = await client.updateFilter({ id: 'example-id', id: 'example-id' });
PATCH{{BASE_URL}}/workspaces/example-id/message-filters/example-id
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
DELETE /workspaces/:id/message-filters/:id
Delete Filter
const result = await client.deleteFilter({ id: 'example-id', id: 'example-id' });
DELETE{{BASE_URL}}/workspaces/example-id/message-filters/example-id
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
POST /message-filters
Create Filter
const result = await client.createFilter({ /* body */ });
POST{{BASE_URL}}/message-filters
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
Body:
{ "phrase": "Test", "contains": true, "unsubscribe": true }
PATCH /message-filters/:messageFilterId
Update Filter
const result = await client.updateFilter({ messageFilterId: 'example-messageFilterId' }, { /* body */ });
PATCH{{BASE_URL}}/message-filters/example-messageFilterId
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
Body:
{ "phrase": "Change Phrase", "contains": true, "unsubscribe": false }
DELETE /message-filters/:messageFilterId
Delete Filter
const result = await client.deleteFilter({ messageFilterId: 'example-messageFilterId' });
DELETE{{BASE_URL}}/message-filters/example-messageFilterId
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN

Message Templates

3 endpoints
POST /message-templates
Create Message Template
const result = await client.createMessageTemplate({ /* body */ });
POST{{BASE_URL}}/message-templates
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
Body:
{ "name": "AasdfAasdf", "text": "Hello, I am testing the template text for creating templates." }
PATCH /message-templates/:id
Update Message Template
const result = await client.updateMessageTemplate({ id: 'example-id' }, { /* body */ });
PATCH{{BASE_URL}}/message-templates/example-id
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
Body:
{ "text": "Update text" }
DELETE /message-templates/:id
Delete Message Template
const result = await client.deleteMessageTemplate({ id: 'example-id' });
DELETE{{BASE_URL}}/message-templates/example-id
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN

Messages

3 endpoints
GET /workspaces/:workspaceId/messages?channelid=&limit=100&ts=2025-03-17T19:11:02.461Z&order=ASC
Get
const result = await client.get({ workspaceId: 'example-workspaceId' }, { channelid: 'example', limit: 'example', ts: 'example', order: 'example' });
GET{{BASE_URL}}/workspaces/example-workspaceId/messages?channelid=&limit=100&ts=2025-03-17T19:11:02.461Z&order=ASC?channelid=example&limit=example&ts=example&order=example
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
POST /workspaces/:workspaceId/messages
Send Message
const result = await client.sendMessage({ workspaceId: 'example-workspaceId' }, { /* body */ });
POST{{BASE_URL}}/workspaces/example-workspaceId/messages
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
Body:
{ "channel_id": 1028, "message": "Create Unread" }
POST /workspaces/:workspaceId/messages
Send Message MMS
const result = await client.sendMessageMMS({ workspaceId: 'example-workspaceId' });
POST{{BASE_URL}}/workspaces/example-workspaceId/messages
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN

Number Order Requests

2 endpoints
GET /number-order-requests/:id
Get Number Order Request
const result = await client.getNumberOrderRequest({ id: 'example-id' });
GET{{BASE_URL}}/number-order-requests/example-id
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
POST /number-order-requests
Create Number Order Request
const result = await client.createNumberOrderRequest({ /* body */ });
POST{{BASE_URL}}/number-order-requests
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
Body:
{ "state": "Michigan", "count": 1 }

Number Pools

2 endpoints
GET /number-pools/:id
Get By Id
const result = await client.getById({ id: 'example-id' });
GET{{BASE_URL}}/number-pools/example-id
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
POST /number-pools
Create
const result = await client.create({ /* body */ });
POST{{BASE_URL}}/number-pools
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
Body:
{ "name": "My Messaging Profile" }

Receive SMS

1 endpoints
POST /receive-sms/receive
Test Receive SMS Beta
const result = await client.testReceiveSMSBeta({ /* body */ });
POST{{BASE_URL}}/receive-sms/receive
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
Body:
{ "data": { "payload": { "autoresponse_type": null, "cc": [], "completed_at": null, "cost": null, "direction": "inbound", "encoding": "GSM-7", "errors": [], "from": { "carrier": "Verizon Wireless", "line_type": "Wireless", "phone_number": "+15550000000" }, "id": "89e392e0-39d3-4561-82b1-93b58007f717", "is_spam": false, "media": [], "messaging_profile_id": "40018695-6da6-477a-a06d-6934e009e717", "organization_id": "c69dc7e5-664a-421b-a604-c1f7a8424722", "parts": 1, "received_at": "2023-06-08T22:18:03.279+00:00", "record_type": "message", "sent_at": null, "subject": "", "tags": [], "text": "start", "to": [ { "carrier": "Telnyx", "line_type": "Wireless", "phone_number": "+15864350601", "status": "webhook_delivered" } ], "type": "SMS", "valid_until": null, "webhook_failover_url": null, "webhook_url": "https://beta.entrancegrp.com/api/messages/receive_sms" } } }

Root

15 endpoints
GET /flags?lastid=9999999999&order=DESC
Get All Workspace Flags
const result = await client.listWorkspaceFlags({ lastid: 'example', order: 'example' });
GET{{BASE_URL}}/flags?lastid=9999999999&order=DESC?lastid=example&order=example
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
GET /workspace-blocked-numbers?lastid=0&limit=20&order=ASC
Get Numbers
const result = await client.getNumbers({ lastid: 'example', limit: 'example', order: 'example' });
GET{{BASE_URL}}/workspace-blocked-numbers?lastid=0&limit=20&order=ASC?lastid=example&limit=example&order=example
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
GET /message-filters?unsubscribe=true
Get Filter
const result = await client.getFilter({ unsubscribe: 'example' });
GET{{BASE_URL}}/message-filters?unsubscribe=true?unsubscribe=example
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
GET /message-templates?limit=1
Get Message Templates
const result = await client.getMessageTemplates({ ts: 'example', limit: 'example' });
GET{{BASE_URL}}/message-templates?limit=1?ts=example&limit=example
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
DELETE /incoming-message-keywords?keyword=test
Delete Keyword
const result = await client.deleteKeyword({ keyword: 'example' });
DELETE{{BASE_URL}}/incoming-message-keywords?keyword=test?keyword=example
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
GET /campaign-templates?last_id=9999999999999&limit=20&order=DESC
Get Campaign Templates
const result = await client.getCampaignTemplates({ last_id: 'example', limit: 'example', order: 'example' });
GET{{BASE_URL}}/campaign-templates?last_id=9999999999999&limit=20&order=DESC?last_id=example&limit=example&order=example
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
GET /users?last_id=9999999999999&limit=20&order=DESC
Get All Workspace Users
const result = await client.listWorkspaceUsers({ last_id: 'example', limit: 'example', order: 'example' });
GET{{BASE_URL}}/users?last_id=9999999999999&limit=20&order=DESC?last_id=example&limit=example&order=example
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
GET /user-groups?lastid=9999999999&limit=20&order=DESC
Get User Groups
const result = await client.getUserGroups({ lastid: 'example', limit: 'example', order: 'example' });
GET{{BASE_URL}}/user-groups?lastid=9999999999&limit=20&order=DESC?lastid=example&limit=example&order=example
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
GET /subscriber-lists?last_id=9999999999999&limit=20&order=DESC&is_influencer_list=true
Get Subscriber Lists
const result = await client.getSubscriberLists({ last_id: 'example', limit: 'example', order: 'example', is_influencer_list: 'example' });
GET{{BASE_URL}}/subscriber-lists?last_id=9999999999999&limit=20&order=DESC&is_influencer_list=true?last_id=example&limit=example&order=example&is_influencer_list=example
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
GET /user-api-keys?last_id=9999999999999&limit=20&order=DESC
Get User Api Keys in Workspace
const result = await client.getUserApiKeysInWorkspace({ last_id: 'example', limit: 'example', order: 'example' });
GET{{BASE_URL}}/user-api-keys?last_id=9999999999999&limit=20&order=DESC?last_id=example&limit=example&order=example
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
GET /number-order-requests?last_id=99999999&order=DESC&limit=10
Get All Number Order Requests
const result = await client.listNumberOrderRequests({ last_id: 'example', order: 'example', limit: 'example' });
GET{{BASE_URL}}/number-order-requests?last_id=99999999&order=DESC&limit=10?last_id=example&order=example&limit=example
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
GET /influencers?last_id=9999999999999&limit=20&order=DESC
Get Influencer Lists
const result = await client.getInfluencerLists({ last_id: 'example', limit: 'example', order: 'example' });
GET{{BASE_URL}}/influencers?last_id=9999999999999&limit=20&order=DESC?last_id=example&limit=example&order=example
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
GET /message-filters?unsubscribe=true
Get All
const result = await client.list({ unsubscribe: 'example' });
GET{{BASE_URL}}/message-filters?unsubscribe=true?unsubscribe=example
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
GET /workspace-logs?lastid=0&limit=999&order=ASC
Get Logs
const result = await client.getLogs({ lastid: 'example', limit: 'example', order: 'example' });
GET{{BASE_URL}}/workspace-logs?lastid=0&limit=999&order=ASC?lastid=example&limit=example&order=example
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
POST
Test Post
const result = await client.testPost({ /* body */ });
POST{{BASE_URL}}
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
Body:
{ "testWebhookData": "test" }

Send-messages

1 endpoints
POST /send-messages/:channelId/send
Test Send Message
const result = await client.testsendMessage({ channelId: 'example-channelId' }, { /* body */ });
POST{{BASE_URL}}/send-messages/example-channelId/send
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
Body:
{ "message": "Testing apiv2 message sending" }

Shortlists

3 endpoints
GET /shortlists
Get Shortlist Contacts
const result = await client.getShortlistContacts();
GET{{BASE_URL}}/shortlists
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
POST /shortlists
Add Shortlist Contact
const result = await client.addShortlistContact({ /* body */ });
POST{{BASE_URL}}/shortlists
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
Body:
{ "contact_id": 1 }
DELETE /shortlists/:shortlistId
Remove Shortlist Contact
const result = await client.removeShortlistContact({ shortlistId: 'example-shortlistId' });
DELETE{{BASE_URL}}/shortlists/example-shortlistId
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN

Subscriber Lists

4 endpoints
GET /subscriber-lists/:subscriberListId
Get Subscriber List by Id
const result = await client.getSubscriberListById({ subscriberListId: 'example-subscriberListId' });
GET{{BASE_URL}}/subscriber-lists/example-subscriberListId
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
POST /subscriber-lists
Create Subscriber List
const result = await client.createSubscriberList({ /* body */ });
POST{{BASE_URL}}/subscriber-lists
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
Body:
{ "name": "MyClass", "isInfluencerList": true // Set to true only if you want the list to be an influencer list. It'll set it to private automatically as well }
PUT /subscriber-lists/:subscriberListId
Update Subscriber List
const result = await client.updateSubscriberList({ subscriberListId: 'example-subscriberListId' }, { /* body */ });
PUT{{BASE_URL}}/subscriber-lists/example-subscriberListId
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
Body:
{ "name": "Update Name", "private": true, "archive": true }
DELETE /subscriber-lists/:subscriberListId
Delete Subscriber List
const result = await client.deleteSubscriberList({ subscriberListId: 'example-subscriberListId' });
DELETE{{BASE_URL}}/subscriber-lists/example-subscriberListId
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN

User API Keys

3 endpoints
GET /user-api-keys/4065
Get User Api Key
const result = await client.getUserApiKey();
GET{{BASE_URL}}/user-api-keys/4065
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
POST /user-api-keys/:id/refresh
Update User Api Key
const result = await client.updateUserApiKey({ id: 'example-id' });
POST{{BASE_URL}}/user-api-keys/example-id/refresh
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
DELETE /user-api-keys/:id
Delete User Api Key
const result = await client.deleteUserApiKey({ id: 'example-id' });
DELETE{{BASE_URL}}/user-api-keys/example-id
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN

User Groups

7 endpoints
GET /user-groups/:userGroupId/users
Get Users in Group
const result = await client.getUsersInGroup({ userGroupId: 'example-userGroupId' });
GET{{BASE_URL}}/user-groups/example-userGroupId/users
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
POST /user-groups/:userGroupId/users
Add User To User Group
const result = await client.addUserToUserGroup({ userGroupId: 'example-userGroupId' }, { /* body */ });
POST{{BASE_URL}}/user-groups/example-userGroupId/users
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
Body:
{ "user_id": 1 }
DELETE /user-groups/:userGroupId/users/:userId
Remove User From User Group
const result = await client.removeUserFromUserGroup({ userGroupId: 'example-userGroupId', userId: 'example-userId' });
DELETE{{BASE_URL}}/user-groups/example-userGroupId/users/example-userId
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
POST /user-groups
Create User Group
const result = await client.createUserGroup({ /* body */ });
POST{{BASE_URL}}/user-groups
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
Body:
{ "name": "test" }
GET /user-groups/:userGroupId
Get User Group
const result = await client.getUserGroup({ userGroupId: 'example-userGroupId' });
GET{{BASE_URL}}/user-groups/example-userGroupId
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
PATCH /user-groups/:id
Update User Group
const result = await client.updateUserGroup({ id: 'example-id' }, { /* body */ });
PATCH{{BASE_URL}}/user-groups/example-id
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
Body:
{ "name": "test" }
DELETE /user-groups/:id
Delete User Group
const result = await client.deleteUserGroup({ id: 'example-id' });
DELETE{{BASE_URL}}/user-groups/example-id
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN

Users

7 endpoints
GET /users/:id
Get User
const result = await client.getUser({ id: 'example-id' });
GET{{BASE_URL}}/users/example-id
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
POST /users
Add Workspace User
const result = await client.addWorkspaceUser({ /* body */ });
POST{{BASE_URL}}/users
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
Body:
{ "email": "dethnoble+99@gmail.com", "firstname": "Alan", "lastname": "Boody", "phoneNumber": "15550000000" }
PATCH /users/1
Update User
const result = await client.updateUser({ /* body */ });
PATCH{{BASE_URL}}/users/1
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
Body:
{ "exclude_from_campaigns": true }
PATCH /users/:id
Update User Password
const result = await client.updateUserPassword({ id: 'example-id' }, { /* body */ });
PATCH{{BASE_URL}}/users/example-id
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
Body:
{ "oldPassword": "asdfasdf2", "password": "asdfasdf" }
DELETE /users/:id?reassign=5
Delete Workspace User
const result = await client.deleteWorkspaceUser({ id: 'example-id' }, { reassign: 'example' });
DELETE{{BASE_URL}}/users/example-id?reassign=5?reassign=example
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
POST /users/push-token
Add Push Token
const result = await client.addPushToken({ /* body */ });
POST{{BASE_URL}}/users/push-token
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
Body:
{ "token": "ExponentPushToken[7GYQ-FDfiMPE9AaI6HPSf9]" }
GET /users/:id/workspace-assigns
Get Workspace Assigns
const result = await client.getWorkspaceAssigns({ id: 'example-id' });
GET{{BASE_URL}}/users/example-id/workspace-assigns
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN

Webhooks

9 endpoints
GET /webhooks/events
Get Events
const result = await client.getEvents();
GET{{BASE_URL}}/webhooks/events
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
GET /webhooks/events
Get Categories
const result = await client.getCategories();
GET{{BASE_URL}}/webhooks/events
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
GET /webhooks
Get All Webhooks
const result = await client.listWebhooks();
GET{{BASE_URL}}/webhooks
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
POST /webhooks
Create Webhook
const result = await client.createWebhook({ /* body */ });
POST{{BASE_URL}}/webhooks
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
Body:
{ "name": "Mier Inbound Messages", "url": "https://sequence.linktex.ai/api/sms-response", "subscriptions": [ "newMessage" ] }
GET /workspaces/:workspaceId/webhooks/:webhookId
Get Webhook
const result = await client.getWebhook({ workspaceId: 'example-workspaceId', webhookId: 'example-webhookId' });
GET{{BASE_URL}}/workspaces/example-workspaceId/webhooks/example-webhookId
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
DELETE /workspaces/:workspaceId/webhooks/:webhookId
Delete Webhook
const result = await client.deleteWebhook({ workspaceId: 'example-workspaceId', webhookId: 'example-webhookId' });
DELETE{{BASE_URL}}/workspaces/example-workspaceId/webhooks/example-webhookId
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
POST /workspaces/:workspaceId/webhooks/:webhookId/subscribe
Subscribe To Events
const result = await client.subscribeToEvents({ workspaceId: 'example-workspaceId', webhookId: 'example-webhookId' }, { /* body */ });
POST{{BASE_URL}}/workspaces/example-workspaceId/webhooks/example-webhookId/subscribe
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
Body:
{ "subscriptions": [ "messageStatus", "newMessage" ] }
POST /workspaces/:workspaceId/webhooks/:webhookId/unsubscribe
Unsubscribe From Events
const result = await client.unsubscribeFromEvents({ workspaceId: 'example-workspaceId', webhookId: 'example-webhookId' }, { /* body */ });
POST{{BASE_URL}}/workspaces/example-workspaceId/webhooks/example-webhookId/unsubscribe
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
Body:
{ "subscriptions": [ "shortlinkClick" ] }
GET /webhooks/test
Test Get
const result = await client.testGet();
GET{{BASE_URL}}/webhooks/test
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN

Workspace-analytics

1 endpoints
GET /workspace-analytics/:id/manual-blast-data?period=month&start_date=2021-10-10&end_date=2024-10-10
Get Manual Blast Data
const result = await client.getManualBlastData({ id: 'example-id' }, { period: 'example', start_date: 'example', end_date: 'example' });
GET{{BASE_URL}}/workspace-analytics/example-id/manual-blast-data?period=month&start_date=2021-10-10&end_date=2024-10-10?period=example&start_date=example&end_date=example
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN

Workspace-billing

2 endpoints
GET /workspace-billing//reports
Get Billing Reports
const result = await client.getBillingReports();
GET{{BASE_URL}}/workspace-billing//reports
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
GET /workspace-billing//reports/:reportId/download
Download Billing Report
const result = await client.downloadBillingReport({ reportId: 'example-reportId' });
GET{{BASE_URL}}/workspace-billing//reports/example-reportId/download
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN

Workspace-blocked-numbers

3 endpoints
POST /workspace-blocked-numbers
Add Number
const result = await client.addNumber({ /* body */ });
POST{{BASE_URL}}/workspace-blocked-numbers
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
Body:
{ "number": "5550000000" }
GET /workspace-blocked-numbers/:id
Get Number by Id
const result = await client.getNumberById({ id: 'example-id' });
GET{{BASE_URL}}/workspace-blocked-numbers/example-id
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
DELETE /workspace-blocked-numbers/3
Delete Number
const result = await client.deleteNumber();
DELETE{{BASE_URL}}/workspace-blocked-numbers/3
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN

Workspaces

12 endpoints
GET /workspaces//contact-lists?limit=100&order=ASC
Get All Contact Lists
const result = await client.listContactLists({ limit: 'example', order: 'example' });
GET{{BASE_URL}}/workspaces//contact-lists?limit=100&order=ASC?limit=example&order=example
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
POST /workspaces//contact-lists/:contactListId/imports
Import By File
const result = await client.importByFile({ contactListId: 'example-contactListId' });
POST{{BASE_URL}}/workspaces//contact-lists/example-contactListId/imports
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
GET /workspaces
Get Workspaces
const result = await client.getWorkspaces();
GET{{BASE_URL}}/workspaces
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
GET /workspaces/:workspaceId/permission
Get Workspace Permission
const result = await client.getWorkspacePermission({ workspaceId: 'example-workspaceId' });
GET{{BASE_URL}}/workspaces/example-workspaceId/permission
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
POST /workspaces
Create Workspace
const result = await client.createWorkspace({ /* body */ });
POST{{BASE_URL}}/workspaces
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
Body:
{ "organization_name": "My Organization Name", "country_code": "US", "webhook": { "name": "Webhook Name", "url": "https://beta.entrancegrp.com/api/messages/receive_sms2", "subscriptions": [ "campaignCreated", "campaignSent", "messageStatus", "newMessage", "shortlinkClick", "campaignSending" ] } }
GET /workspaces/:workspaceId
Get Workspace
const result = await client.getWorkspace({ workspaceId: 'example-workspaceId' });
GET{{BASE_URL}}/workspaces/example-workspaceId
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
PUT /workspaces/:workspaceId
Update Workspace
const result = await client.updateWorkspace({ workspaceId: 'example-workspaceId' }, { /* body */ });
PUT{{BASE_URL}}/workspaces/example-workspaceId
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
Body:
{ "organization_name": "My Name 2" }
DELETE /workspaces/:workspaceId
Archive Workspace
const result = await client.archiveWorkspace({ workspaceId: 'example-workspaceId' });
DELETE{{BASE_URL}}/workspaces/example-workspaceId
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
GET /workspaces//settings
Get All Settings
const result = await client.listSettings();
GET{{BASE_URL}}/workspaces//settings
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
GET /workspaces//settings?setting=disable_claims
Get Specific Setting
const result = await client.getSpecificSetting({ setting: 'example' });
GET{{BASE_URL}}/workspaces//settings?setting=disable_claims?setting=example
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN
PUT /workspaces//settings
Update Setting
const result = await client.updateSetting({ /* body */ });
PUT{{BASE_URL}}/workspaces//settings
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN
Body:
{ "channel_locking": true }
GET /workspaces//daily-analytics
Daily Analytics
const result = await client.dailyAnalytics();
GET{{BASE_URL}}/workspaces//daily-analytics
Headers:
Authorization: Bearer YOUR_ACCESS_TOKEN

Node.js Module Usage

Installation

npm install entrancesms

Initialize Client

const EntranceAPI = require('entrancesms'); const client = new EntranceAPI({ email: 'user@example.com', password: 'password' });

Quick Start Guide

The quick start guide for the API...