How requests are authenticated
Base URL: https://apiv2.entrancegrp.com. Every path on this page is on that host. GET /campaigns is GET https://apiv2.entrancegrp.com/campaigns.
The app key is the HTTP header name and the auth key is that header's value. The same pair is also accepted as HTTP Basic: the app key is the username and the auth key is the password. Authorization: Bearer is only a login session.
The first form is what existing clients send. -u is the same pair as HTTP Basic, which is what this page sends. A successful call returns 200 and a JSON object with records, lastId, totalRecords, and code.
When to include a workspace id
/workspaces/:workspaceId is only necessary when the account owns more than one workspace. With a single workspace, call the resource directly.
- One workspace:
GET /campaigns - More than one workspace:
GET /workspaces/335/campaigns
Use the plural path /workspaces/:workspaceId. /workspace/:id is not a route. Leave the workspace id blank in the tester below and it drops that prefix for you.
Settings do not have a direct alias. Those calls stay on GET /workspaces/:workspaceId/settings.
This page sends Authorization: Basic. The browser is allowed to send that header. Keys stay in the fields above until you leave the page.
These GET paths perform the action rather than reporting it: campaign send, pause, cancel, channel unclaim, and logout. Campaign pause is a toggle: on a paused campaign it resumes the send.
A body field that is not listed under its endpoint is rejected with 400 ValidationErrors (FieldNotAllowed). An empty body is 400 MissingFields. A query that is not listed is dropped and named in the X-Ignored-Query-Params response header. A bad query value is 400 QueryValidationErrors. Role means the workspace permission of the user who owns the key.
Try a request
Paste your own keys. They are used for the request on this page and are not stored.
App key and auth key
Session access token
Email and password
Email login is a separate session flow. API key calls do not use it.
135
Total Endpoints
6
Categories
60
GET Endpoints
40
POST Endpoints
The sections below are in the order most integrations need them. Campaigns first, then the inbox. Every endpoint on this page is a real route on https://apiv2.entrancegrp.com. Calls that are not registered, still return 500, or only exist on localhost are not listed.
Campaigns
34 endpointsStart here. Most integrations list campaigns, put contacts on one, then read progress.
Making a campaign
List with GET /campaigns. That is the same data as GET /workspaces/:workspaceId/campaigns when the account has one workspace. Put text_message on the create. That is the copy that sends. SINGLE_BLAST waits for contacts and a send call. MANUAL takes numbers on that same create and sends by itself.
Direct list. Add /workspaces/:workspaceId in front only when the account owns more than one workspace. Returns records, lastId, totalRecords, and code.
Role: admin, senior.
Query parameters
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
lastid | number | No | Set the last ID to determine the following campaigns. | |
order | string | No | One of ASC, DESC. | Specifies the order of the records. Default is DESC. |
limit | number | No | 1 to 100. | Limits the number of records returned. Default is 20. Acceptable values are 1-100. |
types | string | No | One of MANUAL, SINGLE_BLAST, SCHEDULED, BURST, RETARGET, HOOK, PERSONAL. Comma-separated. | Comma-separated. Only campaigns of these types. |
fields | string | No | One of id, name, text_message, workspace_id, retarget_campaign_id, manual_user_id, nation_builder_list_id, number_lookup_id, ai_message_list_id, force_mms, personal_id, type, status, active, archive, approval_required, approved, total_contacts, flag_id, sent_at, created_at. Comma-separated. | Comma-separated column names to return. Stats are left out unless stats=true. |
stats | boolean | No | With fields, also return the stat columns. | |
subscriber | boolean | No | Only campaigns sent to subscriber lists. | |
manual | boolean | No | Only manual campaigns. | |
retarget | boolean | No | Only retarget campaigns. | |
search | string | No | 1 to 32 characters. | Matches the campaign name. |
user_id | number | No | At least 1. | Only campaigns this user can use. |
manual_user_id | number | No | At least 1. | Only manual campaigns assigned to this user. |
subscriberlistid | number | No | At least 1. | Only campaigns sent to this subscriber list. |
archived | boolean | No | Archived campaigns. | |
filterable | boolean | No | true returns the short list used for filters and ignores the other queries. |
Sample response
{
"code": 200,
"lastId": 617961,
"totalRecords": 20,
"records": [
{
"id": 1243480,
"name": "test",
"text_message": "Hi John, this is a sample message.",
"workspace_id": "335",
"retarget_campaign_id": null,
"manual_user_id": null,
"nation_builder_list_id": null,
"number_lookup_id": null,
"ai_message_list_id": null,
"force_mms": false,
"personal_id": null,
"type": "SINGLE_BLAST",
"status": "created",
"active": false,
"archive": false,
"approval_required": false,
"approved": null,
"total_contacts": 0,
"flag_id": null,
"media_url": null,
"sent_at": null,
"created_at": "2026-08-11T20:14:53.242Z",
"delivered": 0,
"undelivered": 0,
"failed": 0,
"rejected": 0,
"invalid_numbers": 0,
"sent": 0,
"queued": 0,
"response": 0,
"stop": 0,
"spam": 0,
"total_segments": 0,
"created_by": "David Barnathan",
"subscriber_list_name": null
}
]
}Same route as GET /campaigns with the workspace prefix. Same fields and response.
Sample response
{
"code": 200,
"lastId": 1233189,
"totalRecords": 2,
"records": [
{
"id": 1243480,
"name": "test",
"text_message": "Hi John, this is a sample message.",
"workspace_id": "335",
"retarget_campaign_id": null,
"manual_user_id": null,
"nation_builder_list_id": null,
"number_lookup_id": null,
"ai_message_list_id": null,
"force_mms": false,
"personal_id": null,
"type": "SINGLE_BLAST",
"status": "created",
"active": false,
"archive": false,
"approval_required": false,
"approved": null,
"total_contacts": 0,
"flag_id": null,
"media_url": null,
"sent_at": null,
"created_at": "2026-08-11T20:14:53.242Z",
"delivered": 0,
"undelivered": 0,
"failed": 0,
"rejected": 0,
"invalid_numbers": 0,
"sent": 0,
"queued": 0,
"response": 0,
"stop": 0,
"spam": 0,
"total_segments": 0,
"created_by": "David Barnathan",
"subscriber_list_name": null
}
]
}Role: admin, senior.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
workspaceId | integer | Yes | Workspace id. Only needed when the account has more than one workspace. |
id | integer | Yes |
SCHEDULED campaigns also carry schedule. media_signed_url is present when the campaign has media.
Sample response
{
"code": 200,
"record": {
"id": 1243480,
"workspace_id": "335",
"subscriber_list_id": null,
"retarget_campaign_id": null,
"manual_user_id": null,
"personal_id": null,
"name": "test",
"type": "SINGLE_BLAST",
"status": "created",
"active": false,
"archive": false,
"delete": false,
"approval_required": false,
"filter_against_master": false,
"text_message": "Hi John, this is a sample message.",
"total_contacts": 0,
"added_numbers": false,
"variables": null,
"delivered": 0,
"undelivered": 0,
"failed": 0,
"rejected": 0,
"invalid_numbers": 0,
"sent": 0,
"queued": 0,
"response": 0,
"stop": 0,
"spam": 0,
"total_segments": 0,
"shortlink_clicks": 0,
"added_user_groups": null,
"forward_number": null,
"add_stop_message": false,
"approved": null,
"number_lookup_id": null,
"disable_claims": false,
"line_types": null,
"filter_against_channels": false,
"flag_id": null,
"media_url": null,
"media_preview_url": null,
"ai_message_list_id": null,
"ntrn_link": null,
"force_mms": false,
"retarget_skip_clicked_links": false,
"auto_response_on_yes": null,
"is_adjusted_time_zone": false,
"override_channel_claim": false,
"number_pool_id": null,
"use_test_variables": false,
"sent_at": null,
"created_at": "2026-08-11T20:14:53.242Z",
"updated_at": "2026-08-11T20:14:53.242Z",
"scheduled_at": "2026-08-11T20:14:53.242Z",
"nation_builder_list_name": null,
"flag_summary": []
}
}Required: name and type. text_message is the copy that sends, up to 1600 characters. A MANUAL create also requires numbers and then sends on its own.
typeisSINGLE_BLAST,PERSONAL,RETARGET,BURST,SCHEDULED,DRIP,SUBSCRIBER,MANUAL, orHOOK. All caps.numbersis required forMANUAL. Digits only, country code first, no plus:15555550100. A 10-digit number is stored with a leading 1.
Role: admin, senior, user.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
workspaceId | integer | Yes | Workspace id. Only needed when the account has more than one workspace. |
Body fields (JSON)
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
name | string | Yes | 1 to 254 characters. | |
type | string | Yes | One of SINGLE_BLAST, PERSONAL, RETARGET, BURST, SCHEDULED, DRIP, SUBSCRIBER, MANUAL, HOOK. | All caps. PERSONAL is saved as SINGLE_BLAST with personal_id set. A caller with permission user can only create MANUAL. |
retarget_campaign_id | number | No | null allowed. | Copies the audience of a sent campaign. Type becomes RETARGET and status ready. The name, subscriber list, number lookup, personal id and filter_against_master come from that campaign. Cannot be combined with subscriber_list_id or is_all_subscriber_lists. |
subscriber_list_id | number | No | null allowed. | Send to one subscriber list. Fails with NoSubscriberListContacts when the list is empty. |
number_lookup_id | number | No | null allowed. | Also sets line_types to Wireless. |
personal_id | number | No | null allowed. | PERSONAL only. Defaults to the caller. A non-admin caller needs that user to be allowed personal campaigns. |
manual_user_id | number | No | null allowed. | MANUAL only. Assigns the campaign. Defaults to the caller. Must be in the workspace. |
numbers | array | No | Required for MANUAL. Phone numbers as strings or numbers. The campaign sends by itself after the upload. | |
permissions | boolean | No | false skips adding workspace users to the campaign. By default they are added. | |
text_message | string | No | 1 to 1600 characters. | The copy that sends. Required for MANUAL. |
ntrn_link | string | No | Up to 512 characters. URL starting with http:// or https://. | The tracked link. |
media_url | string | No | URL starting with http:// or https://. | Downloaded and stored, and the send goes out as MMS. If the download fails the campaign is still created and the response also carries errors. |
override_channel_claim | boolean | No | Take a thread another user has claimed. Default false. | |
remove_all_permissions | boolean | No | Accepted, but the service does not read it. Use permissions: false. | |
include_excluded_users | boolean | No | Also add users who are excluded from campaigns. | |
send_after_import | boolean | No | Send when the contact upload finishes. Always on for MANUAL. | |
flag_id | number | No | null allowed. | Stored on the campaign. |
is_all_subscriber_lists | boolean | No | Send to every subscriber list in the workspace. Not with subscriber_list_id. Some workspaces cannot use it. |
A non-manual campaign returns { code, record }, where record is the new campaign. A MANUAL campaign returns { "code": 200, "message": "Your manual campaign is sending." } and no record.
Errors: Forbidden, CampaignsApiOnly, UserNotFound, MissingNumbers, MissingTextMessage, RetargetWithSubscriberList, RetargetCampaignNotFound, NoRetargetContacts, SubscriberListIdAndIsAllSubscriberLists, SubscriberListNotFound, NoSubscriberListContacts, NumbersError.
Sample response
Field names come from the live database columns and the handler. Values are illustrative. Non-manual types. record is the inserted campaign row without is_twilio. media_signed_url is always null here: the handler asks for it without a workspace id.
{
"code": 200,
"record": {
"id": 1243480,
"workspace_id": "335",
"subscriber_list_id": null,
"retarget_campaign_id": null,
"manual_user_id": null,
"personal_id": null,
"name": "Spring launch",
"type": "SINGLE_BLAST",
"status": "created",
"active": false,
"archive": false,
"delete": false,
"approval_required": false,
"filter_against_master": false,
"text_message": "Hi John, this is a sample message.",
"sent": 0,
"undelivered": 0,
"delivered": 0,
"response": 0,
"stop": 0,
"invalid_numbers": 0,
"spam": 0,
"queued": 0,
"failed": 0,
"rejected": 0,
"cooldown": "0",
"total_contacts": 0,
"added_numbers": false,
"variables": null,
"spam_test": "0",
"sent_at": null,
"created_at": "2026-11-10T18:00:00.000Z",
"updated_at": "2026-11-10T18:00:00.000Z",
"added_user_groups": null,
"forward_number": null,
"total_segments": 0,
"add_stop_message": false,
"approved": false,
"number_lookup_id": null,
"disable_claims": false,
"disable_claims_last_index": 0,
"line_types": null,
"added_by_id": "400",
"filter_against_channels": false,
"flag_id": null,
"media_url": null,
"media_preview_url": null,
"ai_message_list_id": null,
"ntrn_link": null,
"force_mms": false,
"retarget_skip_clicked_links": false,
"nation_builder_list_id": 0,
"nation_builder_tag_id": 0,
"nation_builder_filters": null,
"auto_response_on_yes": null,
"nation_builder_recruiter": false,
"nation_builder_list_name": null,
"is_adjusted_time_zone": false,
"override_channel_claim": false,
"number_pool_id": 0,
"shortlink_clicks": 0,
"use_test_variables": false,
"send_after_import": false,
"text_replied": false,
"text_not_replied": false,
"scheduled_at": null,
"override_spam_pause": false,
"contacts_per_hour": "0",
"sent_by_id": null,
"permissions_version": 0,
"flag_ids": null,
"test_mode": false,
"is_all_subscriber_lists": false,
"target_bookmarked": false,
"media_signed_url": null
}
}Every field is optional. Only the fields you send are written. text_message here changes the copy. It is not required to set the copy the first time.
Role: admin, senior.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
id | integer | Yes |
Body fields (JSON)
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
name | string | No | 1 to 254 characters. | |
type | string | No | One of SINGLE_BLAST, SCHEDULED. | Switches a draft between SINGLE_BLAST and SCHEDULED. Refused once the campaign is sending, sent, awaiting approval, or scheduled. |
archive | boolean | No | Marks the campaign archived. | |
delete | boolean | No | Marks the campaign deleted. | |
filter_against_master | boolean | No | Skip numbers this workspace has already messaged. | |
filter_against_channels | boolean | No | Skip numbers that already have a channel. | |
forward_number | string | No | 10 to 15 characters. Phone number, for example 15555550100. | Where calls on replies go. |
text_message | string | No | 1 to 1600 characters. | If the campaign is already sending or sent, this clears the prepared contacts, sets spam to 0 and resets carrier progress. A campaign with sender ids must include {{sender_id}}. |
ntrn_link | string | No | Up to 512 characters. URL starting with http:// or https://. null allowed. | null or empty also removes {ntrn_link} and {shortlink} from the text. |
disable_claims | boolean | No | This campaign does not claim threads. | |
add_stop_message | boolean | No | At send time, appends the opt-out line when the text does not already say "reply stop to opt-out". A workspace that requires opt-out appends it either way. | |
line_types | string | No | One of Wireless, Wireline, VoIP, TollFree, Unknown. | With a number lookup, which line types are included. |
force_mms | boolean | No | Send as MMS. | |
override_channel_claim | boolean | No | Take threads another user has claimed. | |
nation_builder_list_id | number | No | At least 1. null allowed. | Pull this NationBuilder list. |
media_url | string | No | URL starting with http:// or https://. null allowed. | The file is downloaded and stored. null is accepted. |
number_pool_id | number | No | At least 1. null allowed. | Messaging number pool. Required to send when the workspace uses pools. |
is_adjusted_time_zone | boolean | No | Send on the contact's local time. | |
auto_response_on_yes | string | No | 1 to 800 characters. null allowed. | Reply sent when the contact answers yes. |
send_after_import | boolean | No | Send when the contact upload finishes. | |
scheduled_at | string | No | A date or timestamp. | Timestamp. |
Returns { code, record }, where record is the updated campaign.
Sample response
Field names come from the live database columns and the handler. Values are illustrative. record is the updated campaign row without is_twilio. media_signed_url is always null here. A retarget campaign also gets total_replied and total_not_replied.
{
"code": 200,
"record": {
"id": 1243480,
"workspace_id": "335",
"subscriber_list_id": null,
"retarget_campaign_id": null,
"manual_user_id": null,
"personal_id": null,
"name": "Spring launch",
"type": "SINGLE_BLAST",
"status": "ready",
"active": false,
"archive": false,
"delete": false,
"approval_required": false,
"filter_against_master": false,
"text_message": "Hi John, this is a sample message.",
"sent": 0,
"undelivered": 0,
"delivered": 0,
"response": 0,
"stop": 0,
"invalid_numbers": 0,
"spam": 0,
"queued": 0,
"failed": 0,
"rejected": 0,
"cooldown": "0",
"total_contacts": 2,
"added_numbers": false,
"variables": null,
"spam_test": "0",
"sent_at": null,
"created_at": "2026-11-10T18:00:00.000Z",
"updated_at": "2026-11-10T18:00:00.000Z",
"added_user_groups": null,
"forward_number": null,
"total_segments": 0,
"add_stop_message": false,
"approved": false,
"number_lookup_id": null,
"disable_claims": false,
"disable_claims_last_index": 0,
"line_types": null,
"added_by_id": "400",
"filter_against_channels": false,
"flag_id": null,
"media_url": null,
"media_preview_url": null,
"ai_message_list_id": null,
"ntrn_link": null,
"force_mms": false,
"retarget_skip_clicked_links": false,
"nation_builder_list_id": 0,
"nation_builder_tag_id": 0,
"nation_builder_filters": null,
"auto_response_on_yes": null,
"nation_builder_recruiter": false,
"nation_builder_list_name": null,
"is_adjusted_time_zone": false,
"override_channel_claim": false,
"number_pool_id": 0,
"shortlink_clicks": 0,
"use_test_variables": false,
"send_after_import": false,
"text_replied": false,
"text_not_replied": false,
"scheduled_at": null,
"override_spam_pause": false,
"contacts_per_hour": "0",
"sent_by_id": null,
"permissions_version": 0,
"flag_ids": null,
"test_mode": false,
"is_all_subscriber_lists": false,
"target_bookmarked": false,
"media_signed_url": null
}
}Role: admin, senior.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
id | integer | Yes |
Send multipart/form-data with the file in a field named media. Up to 1 MB. Types: text/plain, text/vcard, image/jpeg, image/png, image/gif, video/3gpp, video/mp4.
Returns { code, record }: the updated campaign with media_url and media_signed_url. No file gives 400 MissingAttachedMedia.
Sample response
Field names come from the live database columns and the handler. Values are illustrative. record is the updated campaign row. media_signed_url is always null here.
{
"code": 200,
"record": {
"id": 1243480,
"workspace_id": "335",
"subscriber_list_id": null,
"retarget_campaign_id": null,
"manual_user_id": null,
"personal_id": null,
"name": "Spring launch",
"type": "SINGLE_BLAST",
"status": "ready",
"active": false,
"archive": false,
"delete": false,
"approval_required": false,
"filter_against_master": false,
"text_message": "Hi John, this is a sample message.",
"sent": 0,
"undelivered": 0,
"delivered": 0,
"response": 0,
"stop": 0,
"invalid_numbers": 0,
"spam": 0,
"queued": 0,
"failed": 0,
"rejected": 0,
"cooldown": "0",
"total_contacts": 2,
"added_numbers": false,
"variables": null,
"spam_test": "0",
"sent_at": null,
"created_at": "2026-11-10T18:00:00.000Z",
"updated_at": "2026-11-10T18:00:00.000Z",
"added_user_groups": null,
"forward_number": null,
"total_segments": 0,
"add_stop_message": false,
"approved": false,
"number_lookup_id": null,
"disable_claims": false,
"disable_claims_last_index": 0,
"line_types": null,
"added_by_id": "400",
"filter_against_channels": false,
"flag_id": null,
"media_url": "https://storage.example.com/335/1243480/image.png",
"media_preview_url": null,
"ai_message_list_id": null,
"ntrn_link": null,
"force_mms": false,
"retarget_skip_clicked_links": false,
"nation_builder_list_id": 0,
"nation_builder_tag_id": 0,
"nation_builder_filters": null,
"auto_response_on_yes": null,
"nation_builder_recruiter": false,
"nation_builder_list_name": null,
"is_adjusted_time_zone": false,
"override_channel_claim": false,
"number_pool_id": 0,
"shortlink_clicks": 0,
"use_test_variables": false,
"send_after_import": false,
"text_replied": false,
"text_not_replied": false,
"scheduled_at": null,
"override_spam_pause": false,
"contacts_per_hour": "0",
"sent_by_id": null,
"permissions_version": 0,
"flag_ids": null,
"test_mode": false,
"is_all_subscriber_lists": false,
"target_bookmarked": false,
"media_signed_url": null
}
}Adding and removing contacts
Read the audience with GET /workspaces/:workspaceId/campaigns/:id/contacts. Add numbers with POST on that path. Remove them with POST /campaigns/:id/contacts/delete. Send numbers as digits with the country code and no plus, 15555550100. A 10-digit number is stored with a leading 1.
Role: admin, senior.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
id | integer | Yes | Workspace id. Only needed when the account has more than one workspace. |
campaignId | integer | Yes |
Query parameters
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
lastid | number | No | Cursor. Send the lastId from the previous page. last_id is also accepted. | |
order | string | No | One of ASC, DESC. | ASC or DESC. Default DESC. |
limit | number | No | 1 to 100. | Page size. Default 20. |
These are the uploaded contacts waiting to send. After the send, read campaign-contacts.
Sample response
{
"code": 200,
"lastId": 0,
"totalRecords": 0,
"records": []
}Role: admin, senior, user.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
id | integer | Yes | Workspace id. Only needed when the account has more than one workspace. |
campaignId | integer | Yes |
Query parameters
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
lastid | number | No | Cursor. Send the lastId from the previous page. last_id is also accepted. | |
order | string | No | One of ASC, DESC. | ASC or DESC. Default DESC. |
limit | number | No | 1 to 100. | Page size. Default 20. |
status | string | No | One of response, delivered, undelivered, failed, unknown, sender_queued, queued, invalidNumber, invalid_number, stop, spam, filteredByPhoneNumberFilter. | Filter by delivery status. filteredByPhoneNumberFilter rows are returned with status delivered. |
Sample response
{
"code": 200,
"lastId": 2147483647,
"totalRecords": 0,
"records": []
}Role: admin, senior.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
workspaceId | integer | Yes | Workspace id. Only needed when the account has more than one workspace. |
campaignId | integer | Yes |
Body fields (JSON)
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
name | string | No | 1 to 254 characters. | Name stored as the original file name of this upload. |
contacts | array | Yes | Array of objects. Each key becomes a variable: lowercased, spaces become _, characters other than letters, digits, _ and - are dropped. The first object must have a number key, or the call fails with NoNumberVariable. | |
send_after_import | boolean | No | Send when this upload finishes. |
variables lists every variable now on the campaign. The upload runs in the background. Watch upload-progress.
Errors: CampaignAlreadyImporting, NoNumberVariable, FileUploadError.
Sample response
{
"code": 200,
"status": "uploading",
"variables": {
"number": true,
"first_name": true,
"last_name": true,
"company": true
}
}Role: admin, senior.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
campaignId | integer | Yes |
Body fields (JSON)
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
field | string | Yes | numbers deletes by phone number. Any other value is a contact variable name (for example company), matched against value. | |
value | string, number or array | Yes | One value or an array. With numbers, send an array of phone numbers. |
When nothing matched, message is No contacts were removed from the campaign upload list. and contactsDeleted is 0.
Errors: CampaignAlreadyImporting, Forbidden.
Sample response
{
"code": 200,
"message": "Contacts were successfully removed from the campaign upload list.",
"contactsDeleted": 1
}Role: admin, senior.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
id | integer | Yes | Workspace id. Only needed when the account has more than one workspace. |
campaignId | integer | Yes |
Returns { code, totalRecords, records }. Each record links a contact list to this campaign. Its id is the value the DELETE route takes.
Sample response
{
"code": 200,
"totalRecords": 0,
"records": []
}Role: admin, senior.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
id | integer | Yes | Workspace id. Only needed when the account has more than one workspace. |
campaignId | integer | Yes |
Body fields (JSON)
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
contact_list_id | number | Yes | At least 1. | The contact list to copy onto the campaign. |
Returns { code, record }: the campaign contact list link, with added_contacts set to how many contacts were added this time.
Errors: CampaignAlreadyImporting, ContactListNotFound.
Sample response
Field names come from the live database columns and the handler. Values are illustrative.
{
"code": 200,
"record": {
"id": 31,
"workspace_id": "335",
"campaign_id": "1243480",
"contact_list_id": "12",
"last_imported_id": "902",
"created_at": "2026-11-10T18:00:00.000Z",
"added_contacts": 2
}
}Role: admin, senior.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
id | integer | Yes | Workspace id. Only needed when the account has more than one workspace. |
campaignId | integer | Yes | |
campaignContactListId | integer | Yes | The id of the record from GET .../contact-lists, not the contact list id. |
Query parameters
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
contact_list_id | number | No | At least 1. | Accepted, but the service does not read it. |
Errors: CampaignContactListNotFound.
Sample response
{
"code": 200,
"message": "Successfully removed the contact list from the campaign."
}Permissions
See who can use a campaign with GET /campaigns/:id/permissions. Add a user or a group with the POST routes below. There is no route to delete a single user permission.
Role: admin, senior.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
id | integer | Yes |
Sample response
{
"code": 200,
"totalRecords": 5,
"records": [
{
"id": 3432477,
"workspace_id": "335",
"campaign_id": "1243480",
"user_id": "398",
"created_at": "2026-08-11T20:14:53.254Z",
"updated_at": "2026-08-11T20:14:53.254Z"
}
]
}Role: admin, senior.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
id | integer | Yes |
Body fields (JSON)
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
user_id | number | Yes | At least 1. | Must be in the workspace. |
Returns { code, record }: the new campaign permission.
Errors: CampaignPermissionAdded, WorkspaceUserError.
Sample response
Field names come from the live database columns and the handler. Values are illustrative.
{
"code": 200,
"record": {
"id": 8812,
"workspace_id": "335",
"campaign_id": "1243480",
"user_id": "400",
"created_at": "2026-11-10T18:00:00.000Z",
"updated_at": "2026-11-10T18:00:00.000Z"
}
}Role: admin, senior.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
id | integer | Yes |
Body fields (JSON)
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
user_group_id | number | Yes | At least 1. | Every user in the group who is not already on the campaign is added. |
Returns { code, totalRecords, records }: every permission now on the campaign.
Errors: UserGroupError.
Sample response
Field names come from the live database columns and the handler. Values are illustrative.
{
"code": 200,
"totalRecords": 2,
"records": [
{
"id": 8812,
"workspace_id": "335",
"campaign_id": "1243480",
"user_id": "400",
"created_at": "2026-11-10T18:00:00.000Z",
"updated_at": "2026-11-10T18:00:00.000Z"
},
{
"id": 8813,
"workspace_id": "335",
"campaign_id": "1243480",
"user_id": "401",
"created_at": "2026-11-10T18:00:00.000Z",
"updated_at": "2026-11-10T18:00:00.000Z"
}
]
}Role: admin, senior.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
id | integer | Yes |
Sample response
{
"code": 200,
"message": "Permissions cleared."
}Role: admin, senior.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
id | integer | Yes |
Query parameters
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
user_group_id | number | Yes | Removes each user in this group from the campaign. |
Returns { code, totalRecords, records }: the permissions left on the campaign.
Errors: UserGroupError.
Sample response
Field names come from the live database columns and the handler. Values are illustrative.
{
"code": 200,
"totalRecords": 1,
"records": [
{
"id": 8812,
"workspace_id": "335",
"campaign_id": "1243480",
"user_id": "400",
"created_at": "2026-11-10T18:00:00.000Z",
"updated_at": "2026-11-10T18:00:00.000Z"
}
]
}Sending and results
Do not use send, pause, or cancel to check status. Those GETs perform the action. Progress is upload-progress and send-progress: HTTP 200 when a row exists, HTTP 404 when this campaign has not reached that step. Analytics summary is HTTP 200 even when those sections are null.
Role: admin, senior.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
workspaceId | integer | Yes | Workspace id. Only needed when the account has more than one workspace. |
campaignId | integer | Yes |
Sample response
{
"code": 200,
"record": {
"campaign_id": 1233189,
"type": "SINGLE_BLAST",
"uploadContactsResult": {
"total_added_to_campaign": 1999,
"total_filtered_from_upload": 1,
"contact_records_added": 1982,
"contact_records_updated": 17,
"filtered_by_master": 0,
"filtered_by_stop": 0,
"filtered_by_invalid_number": 1,
"filtered_by_already_added": 0,
"filtered_by_error": 0
},
"processBeforeSendResults": null,
"sentToCarrierResults": {
"delivered": 0,
"total_undelivered": 0,
"undelivered": 0,
"invalid_numbers": 0,
"queued": 0,
"stop": 0,
"spam": 0,
"rejected": 0,
"failed": 0
}
}
}Role: admin, senior.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
workspaceId | integer | Yes | Workspace id. Only needed when the account has more than one workspace. |
id | integer | Yes |
Sample response
{
"code": 200,
"record": {
"id": 1052769,
"workspace_id": "335",
"campaign_id": "1233189",
"type": "SINGLE_BLAST",
"current_row": 2000,
"total_contacts": 2000,
"added_contacts": 1982,
"updated_contacts": 17,
"filtered_by_stop": 0,
"filtered_by_master": 0,
"filtered_by_invalid_number": 1,
"filtered_by_invalid_contact": 0,
"filtered_by_already_added": 0,
"filtered_by_contact_error": 0,
"completion_time": "3390",
"error": null,
"error_message": null,
"filtered_by_channel": 0,
"original_file_name": "SHIA.07.06.26 - PHONE 1 - Split Workbook - Part 8 (1).csv"
}
}Not found
No contacts have been uploaded to this campaign yet.
{
"code": 404,
"status": 404,
"errorCode": "UploadProgressNotFound",
"errors": [
"No upload progress found for this campaign."
]
}Role: admin, senior.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
workspaceId | integer | Yes | Workspace id. Only needed when the account has more than one workspace. |
id | integer | Yes |
Sample response
Field names come from the live database columns. Values are illustrative.
{
"code": 200,
"record": {
"id": 35210,
"workspace_id": "335",
"campaign_id": "1243480",
"type": "SINGLE_BLAST",
"current_row": 2000,
"total_contacts": 2000,
"filtered_by_master": 0,
"filtered_by_stop": 3,
"filtered_by_invalid_number": 1,
"filtered_by_contact_error": 0,
"completion_time": "5120",
"spam_test": false,
"error": null,
"error_message": null,
"last_sent_id": "1469625429",
"paused": false,
"admin_paused": false,
"complete": true,
"sent_to_carrier": 1996,
"total_campaign_contacts": 1996,
"filtered_by_channel": 0,
"canceled": false,
"processing_complete": true,
"last_process_update": "2026-11-10T18:00:00.000Z",
"integrations": null,
"sent_sample": false,
"budget_paused": false,
"run_started_at": "2026-11-10T18:00:00.000Z"
}
}Not found
Send has not started for this campaign, so the progress row is missing.
{
"code": 404,
"status": 404,
"errorCode": "SendProgressNotFound",
"errors": [
"No send progress found for this campaign."
]
}Role: admin, senior, user.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
campaignId | integer | Yes |
Query parameters
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
lastid | number | No | Cursor. Send the lastId from the previous page. last_id is also accepted. | |
order | string | No | One of ASC, DESC. | ASC or DESC. Default DESC. |
limit | number | No | 1 to 100. | Page size. Default 20. |
Sample response
{
"code": 200,
"lastId": 2147483647,
"totalRecords": 0,
"records": []
}Role: admin, senior, user.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
workspaceId | integer | Yes | Workspace id. Only needed when the account has more than one workspace. |
id | integer | Yes |
Body fields (JSON)
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
number | string | No | 10 to 11 characters. | One test number. Use this or test_messages. |
test_messages | array | No | Array of { number, variables }. variables fills the placeholders in the text. The gateway does not cap the length. |
status is invalid_number when a number cannot be formatted. Short links are not rewritten in a test.
Errors: MissingTextMessage, MissingIntegration.
Sample response
{
"code": 200,
"results": [
{
"phoneNumber": "15555550100",
"status": "queued"
}
],
"message": "Test message sent."
}Role: admin, senior.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
workspaceId | integer | Yes | Workspace id. Only needed when the account has more than one workspace. |
campaignId | integer | Yes |
Body fields (JSON)
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
schedule | timestamp | Yes | A date or timestamp. | The time part must end with a timezone offset, for example 2025-08-28T14:00:00-04:00. Without one the call fails with InvalidScheduleDate. |
The campaign type must be SCHEDULED, it needs a message or media, and it needs at least one contact. Scheduling sets status sending.
Errors: BadCampaignType, CampaignAlreadySent, CampaignMessageMissing, CampaignNoContacts, InvalidScheduleDate.
Sample response
{
"code": 200,
"message": "Successfully scheduled campaign."
}This GET performs the action. It does not return status. Wait until the campaign leaves uploading and its status is ready. Sending while it is still uploading returns 400 CampaignNotReady.
Role: admin, senior.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
workspaceId | integer | Yes | Workspace id. Only needed when the account has more than one workspace. |
campaignId | integer | Yes |
Status must be exactly ready.
Errors: CampaignNotReady, NoMessagingNumberPool, NoCampaignContacts, NoWorkspaceNumbers, NoIntegration, NoNumbers, BudgetLimit, ContainsProhibitedWords, ComplianceError, ComplianceUnavailable. BudgetLimit also returns balance and cost. ComplianceError also returns compliance.
Sample response
{
"code": 200,
"status": "sending",
"message": "We've started sending your campaign."
}This GET performs the action. It does not return status.
Role: admin, senior.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
workspaceId | integer | Yes | Workspace id. Only needed when the account has more than one workspace. |
id | integer | Yes |
This is a toggle. On a paused campaign it resumes the send and answers Campaign has been resumed.
Errors: PermissionDenied, InvalidCommand. InvalidCommand when the campaign has not been sent yet or has already completed.
Sample response
{
"code": 200,
"message": "Campaign has been paused."
}This GET performs the action. It does not return status.
Role: admin, senior.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
workspaceId | integer | Yes | Workspace id. Only needed when the account has more than one workspace. |
id | integer | Yes |
A SCHEDULED campaign is unscheduled and goes back to ready. Any other campaign must already be sending.
Errors: InvalidCommand.
Sample response
{
"code": 200,
"message": "Campaign has been canceled."
}Templates and text filters
Saved campaign copy and the text filters applied while uploading contacts.
Role: admin, senior, user.
Query parameters
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
lastid | number | No | Cursor. Send the lastId from the previous page. last_id is also accepted. | |
order | string | No | One of ASC, DESC. | ASC or DESC. Default DESC. |
limit | number | No | One of 10, 20, 30, 40, 50, 60, 70, 80, 100. | Page size. |
Only the caller's own templates.
Sample response
{
"code": 200,
"lastId": 2147483647,
"totalRecords": 0,
"records": []
}Role: admin, senior, user.
Query parameters
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
lastid | number | No | Cursor. Send the lastId from the previous page. last_id is also accepted. | |
order | string | No | One of ASC, DESC. | ASC or DESC. Default DESC. |
limit | number | No | 1 to 100. | Page size. Default 20. |
Sample response
{
"code": 200,
"lastId": 2147483647,
"totalRecords": 0,
"records": []
}Role: admin, senior, user.
Body fields (JSON)
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
name | string | Yes | 3 to 32 characters. | |
text | string | Yes | 1 to 800 characters. |
Returns { code, record }: the new template.
Sample response
Field names come from the live database columns and the handler. Values are illustrative.
{
"code": 200,
"record": {
"id": 14,
"workspace_id": "335",
"user_id": "400",
"name": "Welcome",
"text": "Hi John, this is a sample message.",
"created_at": "2026-11-10T18:00:00.000Z",
"updated_at": "2026-11-10T18:00:00.000Z"
}
}Role: admin, senior, user.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
id | integer | Yes |
Body fields (JSON)
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
name | string | No | 3 to 32 characters. | |
text | string | No | 1 to 800 characters. |
Returns { code, record }: the updated template.
Sample response
Field names come from the live database columns and the handler. Values are illustrative. record is an array with the updated row.
{
"code": 200,
"record": [
{
"id": 14,
"workspace_id": "335",
"user_id": "400",
"name": "Welcome",
"text": "Hi John, this is a sample message.",
"created_at": "2026-11-10T18:00:00.000Z",
"updated_at": "2026-11-10T18:00:00.000Z"
}
]
}Role: admin, senior, user.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
id | integer | Yes |
Sample response
{
"code": 200,
"message": "Successfully deleted campaign template.",
"campaign_template_id": 1
}Role: admin, senior.
Body fields (JSON)
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
text | string | Yes | 1 to 64 characters. |
Returns { code, record }: the new filter.
Sample response
Field names come from the live database columns and the handler. Values are illustrative.
{
"code": 200,
"record": {
"id": 9,
"workspace_id": "335",
"text": "loan offer",
"created_at": "2026-11-10T18:00:00.000Z"
}
}Role: admin, senior.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
id | integer | Yes |
Sample response
{
"code": 200,
"message": "Campaign text filter record deleted successfully."
}Messaging
25 endpointsThe inbox. Open a thread, read it, and send a reply.
Channels
Unclaimed threads are GET /channels?claimed=false. One thread is GET /workspaces/:workspaceId/channels/:id. Unclaim is a GET that releases the thread.
Role: admin, senior, user.
Query parameters
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
last_response | string | No | Default cursor, by latest activity. Send the last_response from the previous page. | |
lastid | number | No | At least 0. Whole number. | Cursor by channel id, in creation order. Used only when last_response is not sent. |
order | string | No | One of ASC, DESC. | ASC or DESC. Default DESC. |
limit | number | No | 1 to 100. | Page size. Default 20. |
claimed | boolean | No | true returns the caller's claimed threads and adds totalChannels and unreads. Anything else returns unclaimed threads. | |
flag_id | number | No | At least 0. | Get only channels with flag id. |
bookmarked | boolean | No | Get channels based upon bookmarked. | |
archived | boolean | No | Get channels based upon archived. | |
deleted | boolean | No | Get channels based upon deleted. | |
stop_filter | boolean | No | Get channels based upon stop_filter. | |
replied | boolean | No | Get channels based upon replied. | |
locked | boolean | No | Get channels based upon locked. | |
stop | boolean | No | Get channels based upon stop. | |
adminview | boolean | No | Show threads claimed by every user. | |
godview | boolean | No | Same as adminview. | |
campaign_id | number | No | At least 1. | Only threads from this campaign. |
read | boolean | No | Marks the returned threads' messages seen. Any value counts, including false, so leave it out to keep them unread. | |
number | string | No | Phone number, for example 15555550100. | Only the thread with this contact number. |
search | string | No | 1 to 64 characters. Letters (accented too), digits, spaces, and + ( ) ' @ . _ -. Cannot start or end with - or '. | Name or number. |
Sample response
{
"code": 200,
"last_response": "2024-07-23T00:09:07.643Z",
"totalRecords": 10,
"records": [
{
"id": 21434399,
"guid": "redacted",
"number": "15555550100",
"workspacenumber": "15555550100",
"campaign_id": "576707",
"campaigns": {
"357437": true,
"363175": true,
"365441": true,
"422425": true,
"576707": true
},
"last_response": "2025-04-17T22:34:38.366Z",
"last_message": "Hi John, this is a sample message.",
"stop_filter": false,
"archived": false,
"stop": false,
"meta": {
"name": "sample"
}
}
]
}Same route as GET /channels?claimed=false with the workspace prefix. Same fields and response.
Sample response
{
"code": 200,
"last_response": "2024-12-03T20:01:53.353Z",
"totalChannels": "193",
"unreads": "267",
"totalRecords": 10,
"records": [
{
"id": 19332577,
"guid": "redacted",
"assigned_to": "398",
"flag_id": null,
"campaign_id": "487934",
"number": "15555550100",
"pp_number": "15555550100",
"bookmarked": true,
"archived": false,
"replied": false,
"last_response": "2025-04-17T21:17:18.466Z",
"last_message": "Hi John, this is a sample message.",
"campaigns": {
"320528": true,
"331866": true,
"430682": true,
"430690": true,
"447287": true,
"466123": true,
"487934": true
},
"stop_filter": false,
"stop": false,
"unread": "0",
"flags": [
{
"id": 1786920,
"flag_id": 21016
}
],
"total_count": "193",
"unread_count": "267"
}
]
}Role: admin, senior, user.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
workspaceId | integer | Yes | Workspace id. Only needed when the account has more than one workspace. |
id | integer | Yes |
Query parameters
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
seen | boolean | No | true marks every message in the thread seen. |
The record also carries contact and workspace_number_is_active.
Sample response
{
"code": 200,
"record": {
"id": 21434399,
"workspace_id": "335",
"campaign_id": "576707",
"guid": "redacted",
"flag_id": null,
"assigned_to": null,
"number": "15555550100",
"pp_number": "15555550100",
"bookmarked": false,
"archived": false,
"unread": 0,
"deleted": false,
"stop_filter": false,
"last_response": "2025-04-17T22:34:38.366Z",
"last_message": "Hi John, this is a sample message.",
"replied": true,
"campaigns": {
"357437": true,
"363175": true,
"365441": true,
"422425": true,
"576707": true
},
"restrict": null,
"locked": false,
"locked_date": null,
"archived_date": null,
"created_at": "2025-04-17T22:34:38.366Z",
"updated_at": "2025-04-17T22:34:38.366Z",
"claimed_date": null,
"workspace_number_is_active": null,
"contact": {
"id": 22974616,
"workspace_id": "335",
"guid": "redacted",
"number": "15555550100",
"number2": null,
"stop": false,
"meta": {
"name": "sample"
},
"notes": null,
"created_at": "2022-06-28T06:05:43.260Z",
"updated_at": "2025-04-17T22:34:38.505Z",
"added_by_campaign_id": null,
"added_by_lookup_id": null,
"line_type": "Wireless",
"routable": true,
"nation_builder_person_id": null,
"added_by_contact_list_id": null,
"account_guid": null,
"account_id": null,
"sent_opt_out": false,
"last_routable_at": null
}
}
}Role: admin, senior, user.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
workspaceId | integer | Yes | Workspace id. Only needed when the account has more than one workspace. |
id | integer | Yes |
Body fields (JSON)
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
assigned_to | number | No | At least 1. null allowed. | Claim the thread for this user. |
flag_id | number | No | At least 1. null allowed. | Set the flag. |
unread | number | No | One of 0. | Only 0. |
bookmarked | boolean | No | ||
archived | boolean | No | Also sets archived_date. | |
deleted | boolean | No | ||
locked | boolean | No | ||
stop | boolean | No | true stops the contact and removes them from subscriber lists. Only an admin can send false. | |
unsubscribe | boolean | No | true is the same as stop: true. false does nothing. Cannot be combined with stop: false. | |
stop_filter | boolean | No |
Returns { code, record }: the updated channel. A claim can add claimLimits.
Errors: ConflictingStop, Forbidden.
Sample response
Field names come from the live database columns and the handler. Values are illustrative. record is an array with the updated row, and it keeps is_twilio. A claim can also add claimLimits.
{
"code": 200,
"record": [
{
"id": 21434399,
"workspace_id": "335",
"campaign_id": "1243480",
"guid": "335-15555550100",
"flag_id": null,
"assigned_to": "400",
"number": "15555550100",
"pp_number": "15555550199",
"bookmarked": false,
"archived": false,
"unread": 0,
"deleted": false,
"stop_filter": false,
"last_response": null,
"last_message": null,
"replied": false,
"campaigns": null,
"restrict": null,
"locked": false,
"locked_date": null,
"archived_date": null,
"created_at": "2026-11-10T18:00:00.000Z",
"updated_at": "2026-11-10T18:00:00.000Z",
"claimed_date": null,
"is_twilio": false,
"undo_token": null,
"undo_action": null,
"undo_by": "0",
"undo_at": null
}
]
}Role: admin, senior, user.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
workspaceId | integer | Yes | Workspace id. Only needed when the account has more than one workspace. |
id | integer | Yes |
The service answers with the message below but does not change the channel. To hide a thread, PATCH it with deleted: true.
Sample response
{
"code": 200,
"message": "Successfully deleted the channel."
}This GET performs the action. It does not return status.
Role: admin, senior, user.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
workspaceId | integer | Yes | Workspace id. Only needed when the account has more than one workspace. |
id | integer | Yes |
Sample response
{
"code": 200,
"message": "Successfully unclaimed channel."
}Role: admin.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
workspaceId | integer | Yes | Workspace id. Only needed when the account has more than one workspace. |
id | integer | Yes |
Body fields (JSON)
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
user_id | number | Yes | At least 1. | Must be in the workspace. |
Returns { code, record, message }. message is Successfully reassigned channel to <first> <last>.
Errors: UserNotFound, AlreadyAssignedToUser.
Sample response
Field names come from the live database columns and the handler. Values are illustrative. record is an array with the updated row.
{
"code": 200,
"record": [
{
"id": 21434399,
"workspace_id": "335",
"campaign_id": "1243480",
"guid": "335-15555550100",
"flag_id": null,
"assigned_to": "401",
"number": "15555550100",
"pp_number": "15555550199",
"bookmarked": false,
"archived": false,
"unread": 0,
"deleted": false,
"stop_filter": false,
"last_response": null,
"last_message": null,
"replied": false,
"campaigns": null,
"restrict": null,
"locked": false,
"locked_date": null,
"archived_date": null,
"created_at": "2026-11-10T18:00:00.000Z",
"updated_at": "2026-11-10T18:00:00.000Z",
"claimed_date": null,
"is_twilio": false,
"undo_token": null,
"undo_action": null,
"undo_by": "0",
"undo_at": null
}
],
"message": "Successfully reassigned channel to Jane Doe."
}Role: admin, senior, user.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
workspaceId | integer | Yes | Workspace id. Only needed when the account has more than one workspace. |
Body fields (JSON)
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
flag_id | number | Yes | At least 1. | |
phoneNumbers | array | Yes | 1 to 100 items. | Phone numbers. The threads for these numbers get the flag. |
Returns { code, totalRecords, records, invalidNumberTotal, invalidNumbers }. records are the updated channels.
Sample response
Field names come from the live database columns and the handler. Values are illustrative. Each record has only id and number.
{
"code": 200,
"totalRecords": 1,
"records": [
{
"id": 21434399,
"number": "15555550100"
}
],
"invalidNumberTotal": 0,
"invalidNumbers": []
}Role: admin, senior, user.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
workspaceId | integer | Yes | Workspace id. Only needed when the account has more than one workspace. |
id | integer | Yes |
Change the meta through the contact routes.
Sample response
{
"code": 200,
"record": [
{
"meta": {
"name": "sample"
}
}
]
}Role: admin, senior.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
workspaceId | integer | Yes | Workspace id. Only needed when the account has more than one workspace. |
id | integer | Yes |
Body fields (JSON)
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
redirect | string | Yes | URL starting with http:// or https://. | Where the short link goes. |
The host is the workspace's custom short link domain when one is set.
Sample response
{
"code": 200,
"shortlink": "https://example.link/abc123",
"message": "Successfully created shortlink"
}Messages
History for one thread is GET /workspaces/:workspaceId/messages with channelid set to that channel. POST on the same path sends a reply.
Role: admin, senior, user.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
workspaceId | integer | Yes | Workspace id. Only needed when the account has more than one workspace. |
Query parameters
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
channelid | number | No | The thread. Leave it out for the whole workspace. | |
ts | timestamp | No | A date or timestamp. | Cursor. Send last_ts from the previous page. |
order | string | No | One of ASC, DESC. | ASC or DESC. |
limit | number | No | 1 to 100. | Page size. |
seen | boolean | No | false returns only unseen messages. | |
update | object | No | Use update[seen]=true or update[seen]=false to set seen on the thread. |
Without update, every unseen message in the page is marked seen.
Returns { code, last_ts, lastId, totalRecords, records }. media is an array of file names when the message has media.
Errors: ResourceNotFound.
Sample response
{
"code": 200,
"last_ts": null,
"lastId": 2147483647,
"totalRecords": 0,
"records": []
}Role: admin, senior, user.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
workspaceId | integer | Yes | Workspace id. Only needed when the account has more than one workspace. |
Body fields (JSON or form fields)
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
channel_id | number | Yes | At least 1. | The thread to reply on. |
message | string | No | Up to 2000 characters. | The text. Can be empty when files are attached. |
To attach files, send multipart/form-data with the files in a field named media. Up to 1 MB each. Types: text/plain, text/vcard, image/jpeg, image/png, image/gif, video/3gpp, video/mp4.
Returns { code, record }: the saved message.
Errors: ResourceNotFound, ContactError. ContactError means the contact is opted out.
Sample response
Field names come from the live database columns and the handler. Values are illustrative. status is what the carrier answered. new_phone_number is set when the thread moved to another sending number.
{
"code": 200,
"record": {
"id": 9001002,
"message": "Hi John, this is a sample message.",
"media_url": null,
"ts": "2026-11-10T18:00:00.000Z",
"status": "queued",
"inbound": false,
"new_phone_number": null
}
}Keywords, stops, and templates
Words that trigger an action, unsubscribe filters, and reusable reply text.
Role: admin, senior.
Query parameters
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
lastid | number | No | At least 0. | Id of the last record from the previous page. last_id is also accepted. |
limit | number | No | 1 to 100. | Number of records to return, 1-100. Default is 20. |
order | string | No | One of ASC, DESC. | Order of the records. Default is DESC. |
Returns the whole keyword list. The paging queries are accepted but not used.
Sample response
{
"code": 200,
"totalRecords": 0,
"records": []
}Role: admin, senior, user.
Query parameters
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
lastid | number | No | Accepted, but not used. | |
order | string | No | One of ASC, DESC. | Accepted, but not used. |
limit | number | No | 1 to 100. | Accepted, but not used. |
unsubscribe | boolean | Yes | true for unsubscribe phrases, false for filtered phrases. |
Returns every filter of that kind.
Sample response
{
"code": 200,
"totalRecords": 1,
"records": [
{
"id": 1254,
"workspace_id": "335",
"phrase": "Hi John, this is a sample message.",
"contains": false,
"unsubscribe": true
}
]
}Role: admin, senior, user.
Query parameters
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
lastid | number | No | Cursor. Send the lastId from the previous page. last_id is also accepted. | |
order | string | No | One of ASC, DESC. | ASC or DESC. Default DESC. |
limit | number | No | 1 to 100. | Page size. Default 20. |
Only the caller's own templates.
Sample response
{
"code": 200,
"lastId": 22856,
"totalRecords": 1,
"records": [
{
"id": 22856,
"workspace_id": "335",
"user_id": "398",
"name": "Application",
"text": "Hi John, this is a sample message.",
"created_at": "2025-12-01T19:07:35.052Z",
"updated_at": "2025-12-01T19:07:35.052Z"
}
]
}Role: admin, senior.
Body fields (JSON)
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
keyword | string | Yes | 1 to 64 characters. |
A keyword that is already on the list fails with 409.
Sample response
{
"code": 200,
"message": "Successfully added hello to your incoming message keywords list."
}Role: admin, senior.
Query parameters
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
keyword | string | Yes | 1 to 64 characters. | The keyword to remove. |
A keyword that is not on the list fails with 404.
Sample response
{
"code": 200,
"message": "Successfully removed hello from your incoming message keywords list."
}Role: admin, senior, user.
Body fields (JSON)
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
phrase | string | Yes | 1 to 32 characters. Letters, digits, spaces, and . - ( ). | |
contains | boolean | Yes | true matches the phrase anywhere in a message. false matches the whole message. | |
unsubscribe | boolean | Yes | true makes it an unsubscribe phrase. false makes it a filtered phrase. |
Returns { code, record }: the new filter.
Sample response
Field names come from the live database columns and the handler. Values are illustrative. The phrase is stored in lower case, with characters other than letters, digits, spaces and . - ( ) removed.
{
"code": 200,
"record": {
"id": 77,
"workspace_id": "335",
"phrase": "stop",
"contains": false,
"unsubscribe": true
}
}Role: admin, senior, user.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
messageFilterId | integer | Yes |
Body fields (JSON)
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
contains | boolean | No | ||
unsubscribe | boolean | No |
The phrase itself cannot be changed. Delete the filter and add a new one.
Returns { code, record }: the updated filter.
Sample response
Field names come from the live database columns and the handler. Values are illustrative. record is an array with the updated row.
{
"code": 200,
"record": [
{
"id": 77,
"workspace_id": "335",
"phrase": "stop",
"contains": true,
"unsubscribe": false
}
]
}Role: admin, senior.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
messageFilterId | integer | Yes |
Sample response
{
"code": 200,
"message": "Successfully deleted message filter."
}Role: admin, senior, user.
Body fields (JSON)
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
name | string | Yes | 3 to 32 characters. | |
text | string | Yes | 1 to 800 characters. |
Returns { code, record }: the new template.
Sample response
Field names come from the live database columns and the handler. Values are illustrative.
{
"code": 200,
"record": {
"id": 21,
"workspace_id": "335",
"user_id": "400",
"name": "Welcome",
"text": "Hi John, this is a sample message.",
"created_at": "2026-11-10T18:00:00.000Z",
"updated_at": "2026-11-10T18:00:00.000Z"
}
}Role: admin, senior, user.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
id | integer | Yes |
Body fields (JSON)
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
name | string | No | 3 to 32 characters. | |
text | string | No | 1 to 800 characters. |
Returns { code, record }: the updated template.
Sample response
Field names come from the live database columns and the handler. Values are illustrative. record is an array with the updated row.
{
"code": 200,
"record": [
{
"id": 21,
"workspace_id": "335",
"user_id": "400",
"name": "Welcome",
"text": "Hi John, this is a sample message.",
"created_at": "2026-11-10T18:00:00.000Z",
"updated_at": "2026-11-10T18:00:00.000Z"
}
]
}Role: admin, senior, user.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
id | integer | Yes |
Sample response
{
"code": 200,
"message": "Successfully deleted message template.",
"message_template_id": 1
}Same route as PATCH /message-filters/:messageFilterId with the workspace prefix. Same fields and response.
Sample response
Field names come from the live database columns and the handler. Values are illustrative. record is an array with the updated row.
{
"code": 200,
"record": [
{
"id": 77,
"workspace_id": "335",
"phrase": "stop",
"contains": true,
"unsubscribe": false
}
]
}Same route as DELETE /message-filters/:messageFilterId with the workspace prefix. Same fields and response.
Sample response
{
"code": 200,
"message": "Successfully deleted message filter."
}Contacts
25 endpointsPeople, the lists they sit on, and numbers you will not message.
People
Search the workspace address book. This is not the list of people already attached to a campaign.
Use the id from Get Contacts, or the phone number 15555550100. A phone match wins. If that phone is not in the workspace, the same value is tried as the contact id. ?by=id forces the id. ?by=phone forces the phone number.
Role: admin, senior.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
workspaceId | integer | Yes | Workspace id. Only needed when the account has more than one workspace. |
contactId | integer or phone number | Yes | Contact id or phone number. A phone match wins. |
Query parameters
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
by | string | No | One of id, phone. | id looks up only by id. phone looks up only by phone number. |
Errors: ContactNotFound.
Sample response
{
"code": 200,
"record": {
"id": 1504669946,
"workspace_id": "335",
"guid": "redacted",
"number": "15555550100",
"number2": null,
"stop": false,
"meta": {
"last": "Doe",
"email": "john@example.com",
"first": "John",
"business": "Acme",
"line_type": "mobile"
},
"notes": null,
"created_at": "2026-08-04T14:54:52.332Z",
"updated_at": "2026-08-04T14:54:52.332Z",
"added_by_campaign_id": "1233189",
"added_by_lookup_id": null,
"line_type": null,
"routable": true,
"nation_builder_person_id": null,
"added_by_contact_list_id": null,
"account_guid": "redacted",
"account_id": "845",
"sent_opt_out": false,
"last_routable_at": null
}
}Role: admin, senior.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
workspaceId | integer | Yes | Workspace id. Only needed when the account has more than one workspace. |
Query parameters
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
lastid | number | No | Cursor. Send the lastId from the previous page. last_id is also accepted. | |
order | string | No | One of ASC, DESC. | ASC or DESC. Default DESC. |
limit | number | No | One of 10, 20, 30, 40, 50, 60, 70, 80, 100. | Page size. |
mode | string | No | One of all, active, stop. | all (default), active, or stop. |
stop | boolean | No | Any value selects stopped contacts, including false. Use mode instead. | |
search | string | No | 1 to 64 characters. | Name or number. |
Sample response
{
"code": 200,
"lastId": 1504669925,
"totalRecords": 20,
"records": [
{
"id": 1504669946,
"number": "15555550100",
"meta": {
"last": "Doe",
"email": "john@example.com",
"first": "John",
"business": "Acme",
"line_type": "mobile"
},
"stop": false,
"updated_at": "2026-08-04T14:54:52.332Z",
"channel_id": null,
"stop_filter": null
}
]
}Role: admin, senior.
Body fields (JSON)
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
number | number or string | Yes | 10 to 20 characters. Phone number, for example 15555550100. | 10 digits, or 11 starting with 1. Stored as 1 plus 10 digits. |
number2 | number or string | No | 10 to 20 characters. Phone number, for example 15555550100. null allowed. | Same format as number. |
stop | boolean | No | Create the contact as stopped. |
Returns { code, record }: the new contact. A number already in the workspace fails with 409 ResourceExists.
Sample response
Field names come from the live database columns and the handler. Values are illustrative.
{
"code": 200,
"record": {
"id": 22974616,
"workspace_id": "335",
"guid": "335-15555550100",
"number": "15555550100",
"number2": null,
"stop": false,
"meta": null,
"notes": null,
"created_at": "2026-11-10T18:00:00.000Z",
"updated_at": "2026-11-10T18:00:00.000Z",
"added_by_campaign_id": null,
"added_by_lookup_id": null,
"line_type": null,
"routable": true,
"nation_builder_person_id": null,
"added_by_contact_list_id": null,
"account_guid": null,
"account_id": "210",
"sent_opt_out": false,
"last_routable_at": null
}
}Role: admin, senior, user.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
workspaceId | integer | Yes | Workspace id. Only needed when the account has more than one workspace. |
id | integer or phone number | Yes | Contact id or phone number, with the same lookup as GET. ?by=id or ?by=phone is not declared on this route, so it is ignored. |
Body fields (JSON)
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
notes | string | No | Up to 2048 characters. null allowed. | null clears the notes. |
stop | boolean | No | A caller with permission user cannot change it. false also clears the stop on the contact's threads. true removes the number from subscriber lists. | |
meta | object | No | Object of variables. Each name and each value is at most 64 characters after cleaning. |
Returns { code, record }: the updated contact.
Errors: ContactNotFound, Forbidden.
Sample response
Field names come from the live database columns and the handler. Values are illustrative. record is an array with the updated row.
{
"code": 200,
"record": [
{
"id": 22974616,
"workspace_id": "335",
"guid": "335-15555550100",
"number": "15555550100",
"number2": null,
"stop": false,
"meta": {
"first": "John",
"last": "Doe",
"company": "Acme"
},
"notes": "Called back",
"created_at": "2026-11-10T18:00:00.000Z",
"updated_at": "2026-11-10T18:00:00.000Z",
"added_by_campaign_id": null,
"added_by_lookup_id": null,
"line_type": null,
"routable": true,
"nation_builder_person_id": null,
"added_by_contact_list_id": null,
"account_guid": null,
"account_id": "210",
"sent_opt_out": false,
"last_routable_at": null
}
]
}Contact lists
A list is a saved audience you can attach to a campaign. A missing list id returns 404.
Role: admin, senior.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
workspaceId | integer | Yes | Workspace id. Only needed when the account has more than one workspace. |
id | integer | Yes |
Query parameters
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
lastid | number | No | Cursor. Send the lastId from the previous page. last_id is also accepted. | |
order | string | No | One of ASC, DESC. | ASC or DESC. Default DESC. |
limit | number | No | 1 to 100. | Page size. Default 20. |
search | string | No | 1 to 64 characters. | Name or number. |
The response also has totalCount, the number of matching contacts in the list.
Sample response
Fields are the contact_list_contacts, joined with the contact (contact_id, number, meta, stop) columns the service returns. Values are illustrative.
{
"code": 200,
"totalCount": 2,
"lastId": 902,
"totalRecords": 2,
"records": [
{
"id": 901,
"workspace_id": "335",
"contact_list_id": "12",
"contact_list_import_id": "40",
"guid": "335-15555550100",
"created_at": "2026-11-10T18:00:00.000Z",
"contact_id": "22974616",
"number": "15555550100",
"meta": {
"first": "John",
"last": "Doe",
"company": "Acme"
},
"stop": false
},
{
"id": 902,
"workspace_id": "335",
"contact_list_id": "12",
"contact_list_import_id": "40",
"guid": "335-15555550101",
"created_at": "2026-11-10T18:00:00.000Z",
"contact_id": "22974617",
"number": "15555550101",
"meta": {
"first": "Jane",
"last": "Doe",
"company": "Acme"
},
"stop": false
}
]
}Not found
No record of this type is in the workspace, so a missing id returns this.
{
"code": 404,
"errorCode": "ResourceNotFound",
"errors": [
"ContactList record was not found"
]
}Role: admin, senior.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
workspaceId | integer | Yes | Workspace id. Only needed when the account has more than one workspace. |
id | integer | Yes |
Query parameters
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
lastid | number | No | Cursor. Send the lastId from the previous page. last_id is also accepted. | |
order | string | No | One of ASC, DESC. | ASC or DESC. Default DESC. |
limit | number | No | 1 to 100. | Page size. Default 20. |
Archived imports are left out.
Sample response
Fields are the contact_list_imports columns the service returns. Values are illustrative.
{
"code": 200,
"lastId": 40,
"totalRecords": 1,
"records": [
{
"id": 40,
"workspace_id": "335",
"contact_list_id": "12",
"user_id": "400",
"import_name": "Spring import",
"filename": "335-12-ab1Cd-1762797600000.json",
"original_filename": "json-body",
"total_contacts": "2",
"current_index": "2",
"added_contacts": "2",
"already_added": "0",
"missing_number_field": "0",
"new_contacts": "1",
"existing_contacts": "1",
"errored": "0",
"error": null,
"error_message": null,
"archived_at": null,
"created_at": "2026-11-10T18:00:00.000Z",
"updated_at": "2026-11-10T18:00:00.000Z",
"completed_at": "2026-11-10T18:00:00.000Z"
}
]
}Not found
No record of this type is in the workspace, so a missing id returns this.
{
"code": 404,
"errorCode": "ResourceNotFound",
"errors": [
"ContactList record was not found"
]
}Role: admin, senior.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
workspaceId | integer | Yes | Workspace id. Only needed when the account has more than one workspace. |
id | integer | Yes |
The record also has unsent_campaign_count. This route takes no paging queries.
Sample response
Fields are the contact_lists, plus account_id and unsent_campaign_count columns the service returns. Values are illustrative.
{
"code": 200,
"record": {
"id": 12,
"workspace_id": "335",
"created_by_id": "400",
"name": "Spring list",
"archived_at": null,
"deleted_at": null,
"created_at": "2026-11-10T18:00:00.000Z",
"updated_at": "2026-11-10T18:00:00.000Z",
"account_id": "210",
"unsent_campaign_count": 1
}
}Not found
No record of this type is in the workspace, so a missing id returns this.
{
"code": 404,
"errorCode": "ResourceNotFound",
"errors": [
"ContactList record was not found"
]
}Role: admin, senior.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
workspaceId | integer | Yes | Workspace id. Only needed when the account has more than one workspace. |
importId | integer | Yes |
Query parameters
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
lastid | number | No | Cursor. Send the lastId from the previous page. last_id is also accepted. | |
order | string | No | One of ASC, DESC. | ASC or DESC. Default DESC. |
limit | number | No | 1 to 100. | Page size. Default 20. |
Sample response
Fields are the contact_list_contacts, joined with the contact (contact_id, meta, stop). No number column here; it is in guid columns the service returns. Values are illustrative.
{
"code": 200,
"lastId": 901,
"totalRecords": 1,
"records": [
{
"id": 901,
"workspace_id": "335",
"contact_list_id": "12",
"contact_list_import_id": "40",
"guid": "335-15555550100",
"created_at": "2026-11-10T18:00:00.000Z",
"contact_id": "22974616",
"meta": {
"first": "John",
"last": "Doe",
"company": "Acme"
},
"stop": false
}
]
}Not found
No record of this type is in the workspace, so a missing id returns this.
{
"code": 404,
"errorCode": "ResourceNotFound",
"errors": [
"ContactListImport record was not found"
]
}Role: admin, senior.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
workspaceId | integer | Yes | Workspace id. Only needed when the account has more than one workspace. |
Query parameters
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
lastid | number | No | Cursor. Send the lastId from the previous page. last_id is also accepted. | |
order | string | No | One of ASC, DESC. | ASC or DESC. Default DESC. |
limit | number | No | 1 to 100. | Page size. Default 20. |
Sample response
{
"code": 200,
"lastId": 2147483647,
"totalRecords": 0,
"records": []
}Role: admin, senior.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
workspaceId | integer | Yes | Workspace id. Only needed when the account has more than one workspace. |
Body fields (JSON)
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
name | string | No | 1 to 64 characters. | Not marked required at the gateway. |
Returns { code, record }: the new contact list.
Sample response
Field names come from the live database columns and the handler. Values are illustrative.
{
"code": 200,
"record": {
"id": 12,
"workspace_id": "335",
"created_by_id": "400",
"name": "Spring list",
"archived_at": null,
"deleted_at": null,
"created_at": "2026-11-10T18:00:00.000Z",
"updated_at": "2026-11-10T18:00:00.000Z"
}
}Role: admin, senior.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
workspaceId | integer | Yes | Workspace id. Only needed when the account has more than one workspace. |
contactListId | integer | Yes |
Body fields (JSON or form fields)
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
import_name | string | Yes | 1 to 42 characters. Letters (accented too), digits, spaces, and - / . & ! _ ' ·. | |
contacts | array | No | Array of contact objects, one per row. Required when no file is sent. |
To upload a file instead, send multipart/form-data with the file in a field named contacts. CSV, XLS or XLSX, up to 30 MB. The sheet must have a number column.
Returns { code, record }: the import record. The contacts are added in the background.
Errors: ContactFileMissing, ContactsMissing, InvalidFileType, MissingPhoneNumber, ImportError.
Sample response
Field names come from the live database columns and the handler. Values are illustrative. The counters fill in as the import runs. Read it again with GET .../imports.
{
"code": 200,
"record": {
"id": 40,
"workspace_id": "335",
"contact_list_id": "12",
"user_id": "400",
"import_name": "Spring import",
"filename": "335-12-ab1Cd-1762797600000.json",
"original_filename": "json-body",
"total_contacts": "2",
"current_index": "0",
"added_contacts": "0",
"already_added": "0",
"missing_number_field": "0",
"new_contacts": "0",
"existing_contacts": "0",
"errored": "0",
"error": null,
"error_message": null,
"archived_at": null,
"created_at": "2026-11-10T18:00:00.000Z",
"updated_at": "2026-11-10T18:00:00.000Z",
"completed_at": null
}
}Role: admin, senior.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
workspaceId | integer | Yes | Workspace id. Only needed when the account has more than one workspace. |
id | integer | Yes |
Body fields (JSON)
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
name | string | Yes | 1 to 64 characters. |
Returns { code, record, message }. message is Contact list record updated successfully.
Sample response
Field names come from the live database columns and the handler. Values are illustrative. record is an array with the updated row.
{
"code": 200,
"record": [
{
"id": 12,
"workspace_id": "335",
"created_by_id": "400",
"name": "Spring list",
"archived_at": null,
"deleted_at": null,
"created_at": "2026-11-10T18:00:00.000Z",
"updated_at": "2026-11-10T18:00:00.000Z"
}
],
"message": "Contact list record updated successfully."
}Role: admin, senior.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
workspaceId | integer | Yes | Workspace id. Only needed when the account has more than one workspace. |
id | integer | Yes |
Body fields (JSON)
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
archive | boolean | No | Sets the import's archived_at. |
Returns { code, record, message }. message is Successfully archived contact list import.
Sample response
Field names come from the live database columns and the handler. Values are illustrative. record is an array with the updated row.
{
"code": 200,
"record": [
{
"id": 40,
"workspace_id": "335",
"contact_list_id": "12",
"user_id": "400",
"import_name": "Spring import",
"filename": "335-12-ab1Cd-1762797600000.json",
"original_filename": "json-body",
"total_contacts": "0",
"current_index": "0",
"added_contacts": "0",
"already_added": "0",
"missing_number_field": "0",
"new_contacts": "0",
"existing_contacts": "0",
"errored": "0",
"error": null,
"error_message": null,
"archived_at": "2026-11-10T18:00:00.000Z",
"created_at": "2026-11-10T18:00:00.000Z",
"updated_at": "2026-11-10T18:00:00.000Z",
"completed_at": null
}
],
"message": "Successfully archived contact list import"
}Flags, blocks, and shortlists
Flags label threads. Blocked numbers are never messaged. Shortlists are the small working set for a user.
Role: admin, senior.
Body fields (JSON)
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
name | string | Yes | At least 1 character. | Unique in the workspace. |
color_id | string | Yes | Hex color with #, for example #fff. | Hex color with #, 3 or 6 digits. |
Returns { code, record }: the new flag, placed last. A name already in use fails with 409 FlagNameTaken.
Sample response
Field names come from the live database columns and the handler. Values are illustrative.
{
"code": 200,
"record": {
"id": 1,
"workspace_id": "335",
"name": "VIP",
"color_id": "#111111",
"ai_flag": false,
"position": 4
}
}Role: admin, senior.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
flagId | integer | Yes |
Also removes the flag from every thread.
Sample response
{
"code": 200,
"message": "Successfully deleted the flag.",
"flag_id": 1
}Role: admin, senior.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
flagId | integer | Yes |
Body fields (JSON)
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
name | string | No | 1 to 32 characters. | Unique in the workspace. |
color_id | string | No | Hex color with #, for example #fff. | Hex color with #, 3 or 6 digits. |
Returns { code, record }: the updated flag. A name already in use fails with 409 FlagNameTaken.
Sample response
Field names come from the live database columns and the handler. Values are illustrative. record is an array with the updated row.
{
"code": 200,
"record": [
{
"id": 1,
"workspace_id": "335",
"name": "VIP",
"color_id": "#f1f1f1",
"ai_flag": false,
"position": 4
}
]
}Role: admin, senior, user.
Query parameters
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
lastid | number | No | Cursor by id. Not with sort=position. | |
order | string | No | One of ASC, DESC. | ASC or DESC. Not with sort=position. |
limit | number | No | One of 10, 20, 30, 40, 50, 60, 70, 80, 100. | Page size. |
sort | string | No | One of position. | position returns the workspace drag order. |
cursor | string | No | Up to 200 characters. | With sort=position, the next_cursor from the previous page. No next_cursor means the last page. |
Errors: InvalidFlagListQuery.
Sample response
{
"code": 200,
"lastId": 21015,
"totalRecords": 4,
"records": [
{
"id": 21315,
"workspace_id": "335",
"name": "Meeting Request",
"color_id": "#FFC300",
"ai_flag": true
}
]
}Role: admin, senior, user.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
id | integer | Yes | Workspace id. Only needed when the account has more than one workspace. |
flagId | integer | Yes |
Sample response
{
"code": 200,
"record": {
"id": 21315,
"workspace_id": "335",
"name": "Meeting Request",
"color_id": "#FFC300",
"ai_flag": true
}
}Role: admin, senior.
Body fields (JSON)
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
number | string | Yes | Phone number, for example 15555550100. | |
countryCode | string | No | One of US, GB. |
Returns { code, record }: the blocked number. A number already blocked fails with 409 ResourceExists.
Sample response
Field names come from the live database columns and the handler. Values are illustrative.
{
"code": 200,
"record": {
"id": "3",
"workspace_id": "335",
"number": "15555550100",
"created_at": "2026-11-10T18:00:00.000Z"
}
}Role: admin, senior, user.
Sample response
{
"code": 200,
"message": "Successfully deleted the blocked number.",
"workspace_blocked_number_id": 3
}Role: admin, senior, user.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
id | integer | Yes |
Sample response
Fields are the workspace_blocked_numbers columns the service returns. Values are illustrative.
{
"code": 200,
"record": {
"id": 3,
"workspace_id": "335",
"number": "15555550100",
"created_at": "2026-11-10T18:00:00.000Z"
}
}Not found
No record of this type is in the workspace, so a missing id returns this.
{
"code": 404,
"errorCode": "ResourceNotFound",
"errors": [
"WorkspaceBlockedNumber record was not found"
]
}Role: admin, senior.
Query parameters
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
lastid | number | No | Cursor. Send the lastId from the previous page. last_id is also accepted. | |
order | string | No | One of ASC, DESC. | ASC or DESC. Default DESC. |
limit | number | No | 1 to 100. | Page size. Default 20. |
Sample response
{
"code": 200,
"lastId": 0,
"totalRecords": 0,
"records": []
}Role: admin, senior, user.
The caller's own shortlist. Expired entries are cleared before it is read.
Sample response
{
"code": 200,
"totalRecords": 1,
"records": [
{
"id": "30623",
"workspace_id": "335",
"user_id": "398",
"contact_id": "275993236",
"contact_guid": "335-15555550100",
"created_at": "2026-08-03T19:09:33.371Z",
"updated_at": "2025-01-01T18:45:28.568Z"
}
]
}Role: admin, senior, user.
Body fields (JSON)
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
contact_id | number | Yes | At least 1. | A contact in the workspace. |
Returns { code, record }: the shortlist entry.
Errors: BadRequest, ContactNotFound. BadRequest when the contact is already on a shortlist. A full shortlist also fails.
Sample response
Field names come from the live database columns and the handler. Values are illustrative.
{
"code": 200,
"record": {
"id": "51",
"workspace_id": "335",
"user_id": "400",
"contact_id": "22974616",
"contact_guid": "335-15555550100",
"created_at": "2026-11-10T18:00:00.000Z",
"updated_at": "2026-11-10T18:00:00.000Z"
}
}Role: admin, senior, user.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
shortlistId | integer | Yes |
Sample response
{
"code": 200,
"message": "Successfully deleted shortlist contact.",
"shortlist_contact_id": 1
}Workspaces
13 endpointsWhich workspace you are in, its settings, and who can use it.
Your workspace
GET /workspaces lists what this key can see. Settings only exist at GET /workspaces/:workspaceId/settings. Daily stats are the dashboard counts.
Role: any signed-in caller.
Query parameters
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
lastid | number | No | Set the last workspace id to get the next set of workspaces. | |
order | string | No | One of ASC, DESC. | Specifies the order of the records. Default is DESC. |
limit | number | No | 1 to 100. | Limits the number of records returned. Default is 20. Acceptable values are 1-100. |
archived | boolean | No | Accepted, but the service does not read it. | |
owner | boolean | No | Accepted, but the service does not read it. |
Returns the workspaces in the caller's account.
Sample response
{
"code": 200,
"lastId": "335",
"totalRecords": 2,
"records": [
{
"id": "2255",
"account_id": "845",
"organization_name": "Acme",
"logo": null,
"type": "credit",
"active": true,
"status": "complete",
"country_code": "US",
"tendlc_registered": false,
"created_at": "2025-02-14T15:59:28.248Z"
}
]
}Role: admin, senior, user.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
workspaceId | integer | Yes | Workspace id. |
Sample response
{
"code": 200,
"record": {
"id": "335",
"account_id": "845",
"owner_id": "398",
"assigned_id": 3715,
"organization_name": "Acme",
"logo": null,
"type": "credit",
"active": true,
"status": "complete",
"able_to_send": false,
"country_code": "US",
"tendlc_registered": false,
"created_at": "2022-02-01T21:41:45.186Z",
"updated_at": "2022-06-28T02:34:29.394Z"
}
}Role: any signed-in caller.
Body fields (JSON)
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
organization_name | string | Yes | 1 to 32 characters. | |
country_code | string | Yes | One of US, GB. | |
webhook | object | No | Optional { name, url, subscriptions }, created with the workspace. Same rules as POST /webhooks. If it fails, the workspace is not created. |
Returns { code, record }: the new workspace, with webhook when one was sent. The caller becomes its admin.
Errors: InsufficientAccountTier, InvalidWebhookUrl, WebhookUrlConflict.
Sample response
Field names come from the live database columns and the handler. Values are illustrative. webhook is only there when one was sent. carrier, volt_id and volt_number are removed from the row.
{
"code": 200,
"record": {
"id": "335",
"organization_name": "Example workspace",
"logo": null,
"type": null,
"active": true,
"referred_by": null,
"created_at": "2026-11-10T18:00:00.000Z",
"updated_at": "2026-11-10T18:00:00.000Z",
"fresh_desk_id": null,
"country_code": "US",
"workspace_group_id": null,
"status": "created",
"account_id": "210",
"tendlc_registered": false,
"able_to_send": false,
"brand": null,
"brand_id": null,
"webhook": {
"id": 18,
"workspace_id": "335",
"name": "Example webhook",
"url": "https://example.com/webhooks/workspace-events",
"created_at": "2026-11-10T18:00:00.000Z",
"updated_at": "2026-11-10T18:00:00.000Z",
"subscriptions": [
"campaignCreated",
"newMessage"
]
}
}
}Role: admin, senior, user.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
workspaceId | integer | Yes | Workspace id. |
Sample response
{
"code": 200,
"record": {
"permission": "admin"
}
}Role: admin, senior, user.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
workspaceId | integer | Yes | Workspace id. |
Query parameters
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
setting | string | No | One of is_view_only, disable_claims, disallow_idle_users, hide_contacts, segment_limit, manual_numbers_limit, auto_archive_filtered, auto_stop_setting, cooldown_enabled, cooldown_time, channel_locking, channel_locking_daily, channel_lock_limit, segment_budgeting, initial_cooldown_enabled, initial_cooldown_time, unread_notify_user_all, unread_notify_admin_all, senior_subscriber_lists, shortlist_max_size, shortlist_decay, shortlist_filter_against, call_forwarding_auto_response, call_forwarding_auto_response_message, block_anonymous_calls, allow_incoming_images, allow_outgoing_images, reassign_channel_on_idle, reassign_idle_time, allow_seniors_edit_users, message_webhook, allow_user_add_meta_data, enable_block_contacts, open_time_restriction, close_time_restriction, two_factor_phone_authentication, hide_dashboard_from_seniors, hide_exports_from_seniors, allow_user_exports, allow_users_view_lookups, allow_seniors_campaign_lookups, routable_reset_enabled, routable_reset_days, restrict_claim_filter_views, shortlink_custom_domain. | Return only this setting. |
Sample response
{
"code": 200,
"record": {
"id": "1000",
"workspace_id": "335",
"disable_claims": true,
"segment_limit": 8,
"manual_numbers_limit": 2000,
"cooldown_enabled": true,
"channel_locking": true,
"hide_contacts": true,
"message_webhook": "https://example.com/hook",
"allow_messaging_number_pools": false,
"require_opt_out": false
}
}Role: admin, senior.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
workspaceId | integer | Yes | Workspace id. |
Body fields (JSON)
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
disable_claims | boolean | No | ||
disallow_idle_users | boolean | No | ||
hide_contacts | boolean | No | ||
segment_limit | number | No | 1 to 8. | |
manual_numbers_limit | number | No | One of 2000, 1600, 1200, 1000, 800, 600, 400, 200, 100, 50, 25. | |
auto_archive_filtered | boolean | No | ||
auto_stop_setting | number | No | 0 to 2. | |
cooldown_enabled | boolean | No | ||
cooldown_time | number | No | At least 0. | |
channel_locking | boolean | No | ||
channel_locking_daily | boolean | No | ||
channel_lock_limit | number | No | At least 0. | |
segment_budgeting | boolean | No | ||
initial_cooldown_enabled | boolean | No | ||
initial_cooldown_time | number | No | At least 0. | |
unread_notify_user_all | boolean | No | ||
unread_notify_admin_all | boolean | No | ||
senior_subscriber_lists | boolean | No | ||
shortlist_max_size | number | No | At least 0. | |
shortlist_decay | number | No | At least 0. | |
shortlist_filter_against | boolean | No | ||
call_forwarding_auto_response | boolean | No | ||
call_forwarding_auto_response_message | string | No | 1 to 400 characters. | |
block_anonymous_calls | boolean | No | ||
allow_incoming_images | boolean | No | ||
allow_outgoing_images | boolean | No | ||
reassign_channel_on_idle | boolean | No | ||
reassign_idle_time | number | No | One of 5, 10, 15, 30, 45, 60, 90, 120, 180, 240, 480, 720, 1440. | |
allow_seniors_edit_users | boolean | No | ||
message_webhook | string | No | Up to 255 characters. | |
allow_user_add_meta_data | boolean | No | ||
enable_block_contacts | boolean | No | ||
open_time_restriction | string | No | 5 to 5 characters. | |
close_time_restriction | string | No | 5 to 5 characters. |
Send only the settings to change. Every field is optional, but the body cannot be empty.
Returns { code, record }: the workspace settings after the change.
Sample response
Field names come from the live database columns and the handler. Values are illustrative. record is the whole settings row after the change.
{
"code": 200,
"record": {
"id": "335",
"workspace_id": "335",
"disable_claims": false,
"segment_limit": 0,
"segment_budgeting": false,
"manual_numbers_limit": 0,
"auto_archive_stops": false,
"auto_archive_filtered": false,
"auto_stop_setting": 0,
"cooldown_enabled": false,
"cooldown_time": 0,
"initial_cooldown_enabled": false,
"initial_cooldown_time": 0,
"channel_locking": true,
"channel_lock_limit": 0,
"channel_locking_daily": false,
"unread_notify_user_all": false,
"unread_notify_admin_all": false,
"disallow_idle_users": false,
"hide_contacts": false,
"senior_subscriber_lists": false,
"shortlist_max_size": 0,
"shortlist_decay": 0,
"shortlist_filter_against": false,
"call_forwarding_auto_response": false,
"call_forwarding_auto_response_message": null,
"reassign_channel_on_idle": false,
"reassign_idle_time": 0,
"block_anonymous_calls": false,
"allow_incoming_images": false,
"allow_outgoing_images": false,
"allow_seniors_edit_users": false,
"message_webhook": null,
"allow_user_add_meta_data": false,
"enable_block_contacts": false,
"open_time_restriction": null,
"close_time_restriction": null,
"is_view_only": false,
"shortlink_custom_domain": null,
"allow_shortlinks": false,
"two_factor_phone_authentication": false,
"message_status_webhook": null,
"email_admin_on_incoming_keywords": false,
"allow_emergency_campaigns": false,
"allow_messaging_number_pools": false,
"tendlc_send_rate_id": 0,
"phone_number_filters": null,
"greeting_spintax": null,
"require_opt_out": false,
"campaign_spam_rate_pause": 0,
"campaign_failed_rate_pause": 0,
"campaign_invalid_number_rate_pause": 0,
"on_rate_pause_send_email": false,
"campaign_undelivered_rate_pause": 0,
"max_campaign_messages_per_day": 0,
"require_compliance_check": false,
"mms_enabled": false,
"require_number_filter_check": false,
"merge_channels": false,
"use_old_flag_system": false,
"stop_dictionary_version": 0,
"version": 0,
"webhooks_version": 0,
"restrict_claim_filter_views": false,
"allow_user_exports": false,
"allow_all_subscriber_lists": false,
"lookups_enabled": false,
"lookup_rate": "0",
"views": null,
"routable_reset_enabled": false,
"routable_reset_days": 0,
"hide_dashboard_from_seniors": false,
"allow_users_view_lookups": false,
"allow_seniors_campaign_lookups": false,
"allow_seniors_manage_api_keys": false,
"allow_users_manage_api_keys": false,
"hide_exports_from_seniors": false,
"api_keys_enabled": false,
"api_keys_senior_allowed": false,
"campaigns_api_only": false
}
}Role: admin, senior.
Sample response
{
"code": 200,
"newMessagesToday": 0,
"messagesYesterday": 0,
"messageChangePercent": 0,
"newChannelsToday": 0,
"channelsYesterday": 0,
"channelChangePercent": 0,
"callsToday": 0,
"callsYesterday": 0,
"callChangePercent": 0
}Role: admin, senior.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
workspaceId | integer | Yes | Workspace id. |
Query parameters
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
days | number | No | 1 to 90. | How many days back. Default 7. Not with start and end. |
start | string | No | A date or timestamp. YYYY-MM-DD. | First day, YYYY-MM-DD, America/New_York. Send with end. |
end | string | No | A date or timestamp. YYYY-MM-DD. | Last day, inclusive. At most 90 days after start. |
Sample response
{
"code": 200,
"totalRecords": 7,
"records": [
{
"workspace_id": 335,
"guid": "redacted",
"date": "2026-10-01",
"delivered": 0,
"response": 0,
"undelivered": 0,
"stop": 0,
"spam": 0
}
]
}Role: admin.
Query parameters
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
lastid | number | No | Cursor. Send the lastId from the previous page. last_id is also accepted. | |
order | string | No | One of ASC, DESC. | ASC or DESC. Default DESC. |
limit | number | No | 1 to 100. | Page size. Default 20. |
type | string | No | One of ALL, CALL_FORWARD, CAMPAIGN_LOG, CHANNEL_LOG. | Only this kind of log. |
Sample response
{
"code": 200,
"lastId": 0,
"totalRecords": 0,
"records": []
}Who has access
Assign a user to this workspace, or list who is already assigned.
Role: admin.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
id | integer | Yes |
Sample response
{
"code": 200,
"totalRecords": 5,
"records": [
{
"id": 400,
"workspace_id": "335",
"email": "john@example.com",
"firstname": "Harry",
"lastname": "Rosenblum",
"number": null,
"verified_number": null,
"claim_limit": 20,
"claim_time": 10,
"manual_blast_message_limit": 0,
"disable_manual_blasts": false,
"manual_blast_approval_required": false,
"personal_campaigns": true,
"segment_budget_type": "daily",
"segment_budget": 0,
"senior_personal_blasts_only": false,
"exclude_from_campaigns": false,
"workspace_user_assign_id": 1806,
"permission": "user",
"created_at": "2025-01-23T12:08:53.224Z"
}
]
}Role: admin.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
workspaceId | integer | Yes | Workspace id. |
Body fields (JSON)
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
user_id | number | Yes | At least 1. | An existing user. |
permission | string | No | One of admin, senior, user. 4 to 6 characters. | Default user. |
Returns { code, record }: the new assignment.
Errors: UserNotFound, UserAlreadyAssigned.
Sample response
Field names come from the live database columns and the handler. Values are illustrative.
{
"code": 200,
"record": {
"id": 990,
"account_id": "210",
"workspace_id": "335",
"user_id": "400",
"permission": "user",
"created_at": "2026-11-10T18:00:00.000Z",
"claim_limit": 0,
"claim_time": 0,
"manual_blast_message_limit": 0,
"disable_manual_blasts": false,
"manual_blast_approval_required": false,
"personal_campaigns": false,
"senior_personal_blasts_only": false,
"view_only_personal_blasts": false,
"segment_budget": 0,
"segment_budget_type": "daily",
"exclude_from_campaigns": false,
"add_email_meta": false,
"replace_email_meta": false,
"call_forwarding_auto_response": false,
"call_forwarding_auto_response_message": null,
"use_old_flag_system": false
}
}Role: admin.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
workspaceId | integer | Yes | Workspace id. |
userId | integer | Yes |
Body fields (JSON)
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
permission | string | No | One of admin, senior, user. 4 to 6 characters. |
Only the workspace owner can change permissions.
Errors: AccessForbidden, UserNotAssigned.
Sample response
{
"code": 200,
"message": "Successfully updated the user's permission in the workspace."
}Automation
10 endpointsWebhooks and subscriber lists, after campaigns and the inbox are working.
Webhooks
Subscribe this workspace to events such as newMessage. GET /webhooks/events lists the event names. Entrance POSTs the JSON below to your URL.
The only header is Content-Type: application/json. There is no signature header. payload.uuid is the id of that delivery, not a signature. If the URL does not answer, that delivery is not saved for a later retry. Respond with a 2xx.
newMessage fires only when a contact texts in. It does not fire for a campaign blast or for a text you send, and it has no incoming or outgoing field. channel_id is the conversation. number is the contact's phone, digits with the country code and no plus. from is the Entrance number on that conversation. message is the text. The name is inside payload.contact.meta (first, last, or name, from the import). The contact id string is payload.contact.guide.
Outgoing delivery is messageStatus. A status change on an inbox thread is channelMessageStatus. A STOP is unsubscribed. A tracked-link click is shortlinkClick. Campaign events (campaignCreated, campaignSending, campaignSent, campaignUpdated, campaignDeleted, campaignUploadComplete) send the campaign fields in the last sample. text_message on those is cut at 256 characters.
Role: admin.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
workspaceId | integer | Yes | Workspace id. |
userId | integer | Yes |
Sample response
{
"code": 200,
"message": "Successfully unassigned the user from the workspace."
}newMessage
{
"eventType": "newMessage",
"channel_id": 21434399,
"ts": "2026-11-10T18:04:11.000Z",
"message": "Yes, send the application",
"workspace_id": 335,
"assigned_to": 400,
"number": "15555550100",
"from": "15555550199",
"campaign_id": 1243480,
"stop_filter": false,
"stop": false,
"payload": {
"webhook_record_sent_at": "2026-11-10T18:04:12.118Z",
"id": 9001001,
"channel_id": 21434399,
"ts": "2026-11-10T18:04:11.000Z",
"message": "Yes, send the application",
"workspace_id": 335,
"assigned_to": 400,
"number": "15555550100",
"from": "15555550199",
"campaign_id": 1243480,
"stop_filter": false,
"stop": false,
"uuid": "5e81e225-b62f-4204-9494-b60a75832e7a",
"webhook_url": "https://example.com/webhooks/new-message",
"contact": {
"id": 22974616,
"guide": "335-15555550100",
"number": "15555550100",
"stop": false,
"routable": true,
"meta": {
"first": "John",
"last": "Doe",
"company": "Acme"
}
}
}
}messageStatus
{
"eventType": "messageStatus",
"id": "SM00000000000000000000000000000000",
"workspace_id": "335",
"message_type": "campaign",
"campaign_id": "1243480",
"manual_user_id": null,
"campaign_contact_id": "1469625429",
"contact_guid": "335-15555550100",
"number": "15555550100",
"wsNumber": "15555550199",
"from": "15555550199",
"to": "15555550100",
"units": 1,
"routable": true,
"status": "delivered",
"payload": {
"id": "SM00000000000000000000000000000000",
"workspace_id": "335",
"message_type": "campaign",
"campaign_id": "1243480",
"manual_user_id": null,
"campaign_contact_id": "1469625429",
"contact_guid": "335-15555550100",
"number": "15555550100",
"wsNumber": "15555550199",
"from": "15555550199",
"to": "15555550100",
"units": 1,
"routable": true,
"status": "delivered",
"ts": "2026-11-10T18:05:01.000Z",
"webhook_record_sent_at": "2026-11-10T18:05:01.200Z",
"uuid": "6f6a6110-f305-4a05-b131-6db57d498d6f",
"webhook_url": "https://example.com/webhooks/message-status"
}
}A non-delivery also includes payload.status_error with code, message, and status. number and to are the contact. from and wsNumber are the Entrance number.
channelMessageStatus
{
"eventType": "channelMessageStatus",
"payload": {
"channel_id": 21434399,
"message_id": 9001002,
"status": "delivered",
"uuid": "935cbc80-6513-4858-94cf-ed0b2ec8de59",
"webhook_url": "https://example.com/webhooks/channel-status",
"webhook_record_sent_at": "2026-11-10T18:05:04.000Z"
}
}unsubscribed
{
"eventType": "unsubscribed",
"payload": {
"workspace_id": 335,
"number": "15555550100",
"contact_guid": "335-15555550100",
"channel_id": 21434399,
"contact_id": 22974616,
"unsubscribe_source": "inbound_keyword",
"unsubscribed_by_user_id": null,
"webhook_record_sent_at": "2026-11-10T18:06:01.000Z",
"uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"webhook_url": "https://example.com/webhooks/unsubscribed"
}
}unsubscribe_source is inbound_keyword when the contact texts a stop phrase, carrier_opt_out when the carrier reports it, or manual_channel, bulk_channel, manual_contact, number_list, or api when someone in the workspace sets it.
shortlinkClick
{
"eventType": "shortlinkClick",
"payload": {
"webhook_record_sent_at": "2026-11-10T18:07:01.000Z",
"workspace_id": 335,
"campaign_id": 1243480,
"channel_id": 21434399,
"contact_guid": "335-15555550100",
"number": "15555550100",
"click_date": "2026-11-10T18:07:00.000Z",
"user_agent": "Mozilla/5.0",
"uuid": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"webhook_url": "https://example.com/webhooks/click"
}
}campaignCreated
{
"eventType": "campaignCreated",
"payload": {
"id": 1243480,
"workspace_id": "335",
"subscriber_list_id": null,
"retarget_campaign_id": null,
"manual_user_id": null,
"personal_id": null,
"added_by_id": 400,
"name": "Spring launch",
"type": "SINGLE_BLAST",
"status": "created",
"active": false,
"archive": false,
"text_message": "Hi John, this is a sample message.",
"sent": 0,
"delivered": 0,
"undelivered": 0,
"response": 0,
"stop": 0,
"invalid_numbers": 0,
"spam": 0,
"queued": 0,
"total_segments": 0,
"total_contacts": 0,
"created_at": "2026-11-10T18:00:00.000Z",
"updated_at": "2026-11-10T18:00:00.000Z",
"webhook_record_sent_at": "2026-11-10T18:00:01.000Z",
"uuid": "c3d4e5f6-a7b8-9012-cdef-123456789012",
"webhook_url": "https://example.com/webhooks/campaign"
}
}campaignSending, campaignSent, campaignUpdated, campaignDeleted, and campaignUploadComplete use that same shape. eventType is the event name. Counts are whatever they are at the moment the event fires.
Role: admin.
Query parameters
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
lastid | number | No | Accepted, but not used. | |
order | string | No | One of ASC, DESC. | Accepted, but not used. |
limit | number | No | 1 to 100. | Accepted, but not used. |
Returns every webhook in the workspace, each with its subscriptions.
Sample response
{
"code": 200,
"totalRecords": 2,
"records": [
{
"id": 28,
"name": "Webhook-335",
"url": "https://example.com/hook",
"created_at": "2025-02-19T11:51:47.479Z",
"subscriptions": [
"newMessage"
]
}
]
}Role: admin.
Sample response
{
"code": 200,
"totalRecords": 9,
"records": [
{
"event": "Channel Message Status",
"subscription_name": "channelMessageStatus",
"category": "Messages"
}
]
}Role: admin.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
workspaceId | integer | Yes | Workspace id. Only needed when the account has more than one workspace. |
webhookId | integer | Yes |
Returns { code, record }: the webhook with a subscriptions array of event names.
Sample response
{
"code": 200,
"record": {
"id": 28,
"workspace_id": "335",
"name": "Webhook-335",
"url": "https://example.com/hook",
"created_at": "2025-02-19T11:51:47.479Z",
"updated_at": "2025-02-19T11:51:47.479Z",
"subscriptions": [
"newMessage"
]
}
}Role: admin.
Body fields (JSON)
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
name | string | Yes | 1 to 64 characters. Letters, digits, spaces, and . = & # ( ) % ? _ -. | |
url | string | Yes | 1 to 512 characters. URL starting with http:// or https://. | Must be unique among this workspace's webhooks. |
subscriptions | array | No | Each item one of campaignCreated, campaignSent, messageStatus, newMessage, shortlinkClick, campaignSending, campaignUploadComplete, campaignUpdated, campaignDeleted, unsubscribed, channelMessageStatus. | Event names. See GET /webhooks/events. |
Returns { code, record }: the webhook with its subscriptions.
Errors: InvalidWebhookUrl, WebhookUrlConflict.
Sample response
Field names come from the live database columns and the handler. Values are illustrative.
{
"code": 200,
"record": {
"id": 18,
"workspace_id": "335",
"name": "Example webhook",
"url": "https://example.com/webhooks/new-message",
"created_at": "2026-11-10T18:00:00.000Z",
"updated_at": "2026-11-10T18:00:00.000Z",
"subscriptions": [
"newMessage"
]
}
}Role: admin.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
workspaceId | integer | Yes | Workspace id. Only needed when the account has more than one workspace. |
webhookId | integer | Yes |
Sample response
{
"code": 200,
"message": "Successfully deleted workspace webhook.",
"workspace_webhook_id": 1
}Role: admin.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
workspaceId | integer | Yes | Workspace id. Only needed when the account has more than one workspace. |
webhookId | integer | Yes |
Body fields (JSON)
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
subscriptions | array | Yes | Each item one of campaignCreated, campaignSent, messageStatus, newMessage, shortlinkClick, campaignSending, campaignUploadComplete, campaignUpdated, campaignDeleted, unsubscribed, channelMessageStatus. | Event names to add. Ones already subscribed are skipped. |
Returns { code, record, message }: the webhook with all its subscriptions. message is Successfully subscribed to event(s).
Sample response
Field names come from the live database columns and the handler. Values are illustrative.
{
"code": 200,
"record": {
"id": 18,
"workspace_id": "335",
"name": "Example webhook",
"url": "https://example.com/webhooks/new-message",
"created_at": "2026-11-10T18:00:00.000Z",
"updated_at": "2026-11-10T18:00:00.000Z",
"subscriptions": [
"newMessage",
"messageStatus"
]
},
"message": "Successfully subscribed to event(s)."
}Role: admin.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
workspaceId | integer | Yes | Workspace id. Only needed when the account has more than one workspace. |
webhookId | integer | Yes |
Body fields (JSON)
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
subscriptions | array | Yes | Each item one of campaignCreated, campaignSent, messageStatus, newMessage, shortlinkClick, campaignSending, campaignUploadComplete, campaignUpdated, campaignDeleted, unsubscribed, channelMessageStatus. | Event names to remove. |
Sample response
{
"code": 200,
"subscriptions_deleted": 1,
"message": "Successfully deleted webhook event subscription(s)."
}Subscriber lists
List, create, and update opt-in lists. Fetching one list by id currently returns 500, so use the collection.
Role: admin, senior.
Query parameters
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
lastid | number | No | Cursor. Send the lastId from the previous page. last_id is also accepted. | |
order | string | No | One of ASC, DESC. | ASC or DESC. Default DESC. |
limit | number | No | 10 to 100. | Page size. |
is_influencer_list | boolean | No | Only influencer lists. | |
archived | boolean | No | ||
private | boolean | No | ||
search | string | No | 1 to 24 characters. | Matches the list name. |
filterlists | boolean | No | Returns the short list used for upload filters. Any value counts, including false. |
The response also has totalCount.
Sample response
{
"code": 200,
"totalCount": [
{
"count": "1"
}
],
"lastId": "13289",
"totalRecords": 1,
"records": [
{
"id": "13289",
"workspace_id": "335",
"name": "Emergency Test 2",
"archive": false,
"created_at": "2024-08-29T19:01:26.158Z",
"user_id": 398,
"private": false,
"is_influencer_list": true,
"influencer_number_id": null,
"influencer_opt_in_message": "Hi John, this is a sample message.",
"influencer_subscribe_keywords": {
"Elements": true,
"subscribe": true
},
"nation_builder_list_id": null,
"is_emergency_list": true,
"emergency_number_id": "4237",
"notify_on_add": false,
"notify_message": null,
"full_name": "David Barnathan",
"subscriber_count": "2"
}
]
}Role: admin, senior, user.
Body fields (JSON)
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
name | string | Yes | 1 to 32 characters. Letters (accented too), digits, spaces, and - / . & ! _ ' ·. | |
isInfluencerList | boolean | No | true also makes the list private. |
Returns { code, record }: the new list, owned by the caller.
Sample response
Field names come from the live database columns and the handler. Values are illustrative.
{
"code": 200,
"record": {
"id": "6",
"workspace_id": "335",
"name": "Spring list",
"archive": false,
"created_at": "2026-11-10T18:00:00.000Z",
"user_id": "400",
"private": false,
"is_influencer_list": false,
"influencer_number_id": null,
"influencer_opt_in_message": null,
"influencer_subscribe_keywords": null,
"nation_builder_list_id": 0,
"is_emergency_list": false,
"emergency_number_id": null,
"notify_on_add": false,
"notify_message": null,
"notify_media": null
}
}Role: admin, senior, user.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
subscriberListId | integer | Yes |
Body fields (JSON)
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
name | string | No | 1 to 32 characters. Letters (accented too), digits, spaces, and - / . & ! _ ' ·. | |
private | boolean | No | A private list can only be changed by its owner or an admin. | |
archive | boolean | No | Archive the list. This is how a list is removed. | |
is_influencer_list | boolean | No | ||
influencer_number_id | number | No | null allowed. | A workspace number id. |
influencer_opt_in_message | string | No | 1 to 800 characters. | |
addKeyword | string | No | 1 to 24 characters. | Add an opt-in keyword. |
removeKeyword | string | No | 1 to 24 characters. | Remove an opt-in keyword. |
Returns { code, record }: the updated list.
Errors: Forbidden, MissingWorkspaceNumber.
Sample response
Field names come from the live database columns and the handler. Values are illustrative. record is an array with the updated row.
{
"code": 200,
"record": [
{
"id": "6",
"workspace_id": "335",
"name": "Spring list",
"archive": true,
"created_at": "2026-11-10T18:00:00.000Z",
"user_id": "400",
"private": true,
"is_influencer_list": false,
"influencer_number_id": null,
"influencer_opt_in_message": null,
"influencer_subscribe_keywords": null,
"nation_builder_list_id": 0,
"is_emergency_list": false,
"emergency_number_id": null,
"notify_on_add": false,
"notify_message": null,
"notify_media": null
}
]
}Account
25 endpointsUsers, API keys, phone numbers, and sign-in. Most API-key integrations skip this.
Sign in
API keys do not use these routes. Email login returns a session token. Logout ends that session.
Role: any signed-in caller.
Body fields (JSON)
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
email | string | Yes | Up to 255 characters. Email address. | |
password | string | No | Required unless the website sends its own 2FA login code in twoFactorCode instead. | |
twoFactorCode | string | No | 6 to 6 characters. |
Sample response
Field names come from the live database columns and the handler. Values are illustrative. Keys and nesting from the authentication service. Values are illustrative and the tokens are elided.
{
"code": 200,
"record": {
"id": 400,
"user_id": 400,
"workspace_id": "335",
"permission": "admin",
"email": "john@example.com",
"firstname": "John",
"lastname": "Doe",
"fullname": "John Doe",
"client_id": "…",
"access_token": "…",
"refresh_token": "…",
"account": {
"account_id": "210",
"onboarding_progress_id": null,
"onboarding_progress_name": null,
"account_tier": null
}
}
}This GET ends the session.
Role: any signed-in caller.
Query parameters
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
client_id | string | No | 34 to 34 characters. | The client that is logging out. |
Sample response
Field names come from the live database columns and the handler. Values are illustrative.
{
"code": 200,
"record": {
"success": true,
"message": "Logged out successfully"
}
}Role: any signed-in caller.
Body fields (JSON)
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
client_id | string | Yes | 34 to 34 characters. | The client id. |
refresh_token | string | Yes | Up to 124 characters. | The refresh token. |
Sample response
Field names come from the live database columns and the handler. Values are illustrative. Same shape as login, with a new refresh_token.
{
"code": 200,
"record": {
"id": 400,
"user_id": 400,
"workspace_id": "335",
"permission": "admin",
"email": "john@example.com",
"firstname": "John",
"lastname": "Doe",
"fullname": "John Doe",
"client_id": "…",
"access_token": "…",
"refresh_token": "…",
"account": {
"account_id": "210",
"onboarding_progress_id": null,
"onboarding_progress_name": null,
"account_tier": null
}
}
}Users and groups
People who can log into the workspace, and the groups used by campaign permissions.
Role: admin, senior.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
userGroupId | integer | Yes |
Sample response
{
"code": 200,
"record": {
"id": 86,
"workspace_id": "335",
"name": "Test",
"created_at": "2023-03-24T14:27:59.684Z",
"updated_at": "2023-03-24T14:27:59.684Z"
}
}Role: admin, senior, user.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
userGroupId | integer | Yes |
Returns { code, totalRecords, records }: the users in the group.
Sample response
{
"code": 200,
"totalRecords": 1,
"records": [
{
"id": 161,
"workspace_id": "335",
"user_group_id": "86",
"user_id": "398",
"created_at": "2023-03-24T14:28:03.945Z",
"updated_at": "2023-03-24T14:28:03.945Z",
"name": "David Barnathan"
}
]
}Role: admin, senior, user.
Query parameters
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
lastid | number | No | Cursor. Send the lastId from the previous page. last_id is also accepted. | |
order | string | No | One of ASC, DESC. | ASC or DESC. Default DESC. |
limit | number | No | One of 10, 20, 30, 40, 50, 60, 70, 80, 100. | Page size. |
all | boolean | No |
Sample response
{
"code": 200,
"lastId": 82,
"totalRecords": 3,
"records": [
{
"id": 86,
"workspace_id": "335",
"name": "Test",
"created_at": "2023-03-24T14:27:59.684Z",
"updated_at": "2023-03-24T14:27:59.684Z"
}
]
}Role: admin, senior, user.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
id | integer | Yes |
A non-admin can only read their own user.
Sample response
{
"code": 200,
"record": {
"id": 400,
"workspace_id": "335",
"email": "john@example.com",
"firstname": "Harry",
"lastname": "Rosenblum",
"number": null,
"permission": "user",
"claim_limit": 20,
"claim_time": 10,
"manual_blast_message_limit": 0,
"disable_manual_blasts": false,
"manual_blast_approval_required": false,
"personal_campaigns": true,
"deleted": false,
"segment_budget_type": "daily",
"segment_budget": 0,
"created_at": "2022-02-07T21:43:53.678Z",
"updated_at": "2022-06-28T02:36:30.881Z",
"number_verified": false,
"two_factor_authentication": false,
"freshdesk_id": null,
"verified_number": null,
"add_email_meta": false,
"replace_email_meta": false,
"call_forwarding_auto_response": false,
"call_forwarding_auto_response_message": "Hi John, this is a sample message.",
"senior_personal_blasts_only": false,
"integrations": {},
"two_factor_phone_authentication": false,
"exclude_from_campaigns": false,
"push_notifications": false,
"use_old_flag_system": false,
"view_only_personal_blasts": false,
"identity_id": "400"
}
}Role: admin, senior.
Query parameters
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
lastid | number | No | Cursor. Send the lastId from the previous page. last_id is also accepted. | |
order | string | No | One of ASC, DESC. | ASC or DESC. Default DESC. |
limit | number | No | One of 10, 20, 30, 40, 50, 60, 70, 80, 100. | Page size. |
permission | string | No | One of admin, senior, user. | Only users with this permission. |
Sample response
{
"code": 200,
"lastId": 398,
"totalRecords": 5,
"records": [
{
"id": 400,
"workspace_id": "335",
"email": "john@example.com",
"firstname": "Harry",
"lastname": "Rosenblum",
"number": null,
"permission": "user",
"claim_limit": 20,
"claim_time": 10,
"manual_blast_message_limit": 0,
"disable_manual_blasts": false,
"manual_blast_approval_required": false,
"personal_campaigns": true,
"deleted": false,
"segment_budget_type": "daily",
"segment_budget": 0,
"created_at": "2022-02-07T21:43:53.678Z",
"updated_at": "2022-06-28T02:36:30.881Z",
"number_verified": false,
"two_factor_authentication": false,
"freshdesk_id": null,
"verified_number": null,
"add_email_meta": false,
"replace_email_meta": false,
"call_forwarding_auto_response": false,
"call_forwarding_auto_response_message": "Hi John, this is a sample message.",
"senior_personal_blasts_only": false,
"integrations": {},
"two_factor_phone_authentication": false,
"exclude_from_campaigns": false,
"push_notifications": false,
"use_old_flag_system": false,
"view_only_personal_blasts": false,
"identity_id": "400"
}
]
}Role: admin.
Body fields (JSON)
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
name | string | Yes | 1 to 32 characters. Letters, digits, spaces, and . - ( ). |
Returns { code, record }: the new group.
Sample response
Field names come from the live database columns and the handler. Values are illustrative. A name already used in the workspace gets (1), (2) and so on added.
{
"code": 200,
"record": {
"id": 5,
"workspace_id": "335",
"name": "Support",
"created_at": "2026-11-10T18:00:00.000Z",
"updated_at": "2026-11-10T18:00:00.000Z"
}
}Role: admin.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
id | integer | Yes |
Body fields (JSON)
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
name | string | No | 1 to 32 characters. Letters, digits, spaces, and . - ( ). |
Returns { code, record }: the renamed group.
Sample response
Field names come from the live database columns and the handler. Values are illustrative.
{
"code": 200,
"record": {
"id": 5,
"workspace_id": "335",
"name": "Support",
"created_at": "2026-11-10T18:00:00.000Z",
"updated_at": "2026-11-10T18:00:00.000Z"
}
}Role: admin.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
id | integer | Yes |
Also removes every assignment to the group.
Sample response
{
"code": 200,
"message": "Successfully deleted user group.",
"user_group_id": 1
}Role: admin.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
userGroupId | integer | Yes |
Body fields (JSON)
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
user_id | number | Yes | At least 1. |
Returns { code, record }: the new group assignment.
Sample response
Field names come from the live database columns and the handler. Values are illustrative.
{
"code": 200,
"record": {
"id": 61,
"workspace_id": "335",
"user_group_id": "5",
"user_id": "400",
"created_at": "2026-11-10T18:00:00.000Z",
"updated_at": "2026-11-10T18:00:00.000Z"
}
}Role: admin.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
userGroupId | integer | Yes | |
userId | integer | Yes |
Sample response
{
"code": 200,
"message": "User successfully deleted form the user group."
}Role: admin.
Body fields (JSON)
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
email | string | Yes | Email address. | |
firstname | string | Yes | 1 to 20 characters. Letters (accented too), spaces, - and '. Cannot start or end with - or '. | |
lastname | string | Yes | 1 to 20 characters. Letters (accented too), spaces, - and '. Cannot start or end with - or '. | |
phoneNumber | string | Yes | Phone number, for example 15555550100. |
The new user gets an invite email.
Returns { code, record }: the new user. An email already in use fails.
Sample response
Field names come from the live database columns and the handler. Values are illustrative.
{
"code": 200,
"record": {
"id": 400,
"workspace_id": "335",
"email": "john@example.com",
"firstname": "John",
"lastname": "Doe",
"number": null,
"permission": "user",
"claim_limit": 0,
"claim_time": 0,
"manual_blast_message_limit": 0,
"disable_manual_blasts": false,
"manual_blast_approval_required": false,
"personal_campaigns": false,
"deleted": false,
"segment_budget_type": "daily",
"segment_budget": 0,
"created_at": "2026-11-10T18:00:00.000Z",
"updated_at": "2026-11-10T18:00:00.000Z",
"number_verified": false,
"two_factor_authentication": false,
"freshdesk_id": null,
"verified_number": "15555550100",
"add_email_meta": false,
"replace_email_meta": false,
"call_forwarding_auto_response": false,
"call_forwarding_auto_response_message": null,
"senior_personal_blasts_only": false,
"integrations": null,
"two_factor_phone_authentication": false,
"exclude_from_campaigns": false,
"push_notifications": false,
"use_old_flag_system": false,
"view_only_personal_blasts": false,
"identity_id": null,
"messages_view": null,
"theme_preference": null,
"theme_preference_set_at": null,
"rum_tracking_enabled": false
}
}Role: any role. Fields are limited by role, see below.
Body fields (JSON)
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
phone_number | string | No | 10 to 15 characters. Phone number, for example 15555550100. | |
password | string | No | 8 to 60 characters. | Changes the password. Needs oldPassword. When password is sent, nothing else in the body is saved. |
oldPassword | string | No | 8 to 60 characters. | The current password. |
forward_number | string | No | 10 to 15 characters. Phone number, for example 15555550100. null allowed. | Where forwarded calls go. null clears it. |
add_email_meta | boolean | No | ||
replace_email_meta | boolean | No | ||
call_forwarding_auto_response | boolean | No | ||
call_forwarding_auto_response_message | string | No | 1 to 400 characters. null allowed. | |
firstname | string | No | 1 to 20 characters. Letters (accented too), spaces, - and '. Cannot start or end with - or '. | |
lastname | string | No | 1 to 20 characters. Letters (accented too), spaces, - and '. Cannot start or end with - or '. | |
view_only_personal_blasts | boolean | No | ||
permission | string | No | One of senior, user. | Admin only. |
claim_limit | number | No | 1 to 32767. | |
claim_time | number | No | 1 to 32767. | |
manual_blast_message_limit | number | No | 1 to 32767. | |
disable_manual_blasts | boolean | No | ||
manual_blast_approval_required | boolean | No | ||
personal_campaigns | boolean | No | ||
segment_budget_type | string | No | One of daily, monthly. | |
segment_budget | number | No | At least 0. | |
senior_personal_blasts_only | boolean | No | ||
push_notifications | boolean | No | ||
exclude_from_campaigns | boolean | No |
A non-admin can only update themselves, and only firstname, lastname, password, oldPassword, phone_number, add_email_meta, replace_email_meta, call_forwarding_auto_response, call_forwarding_auto_response_message, forward_number, and push_notifications.
An admin can update users in the current workspace and can also send view_only_personal_blasts, permission, claim_limit, claim_time, manual_blast_message_limit, disable_manual_blasts, manual_blast_approval_required, personal_campaigns, segment_budget_type, segment_budget, senior_personal_blasts_only, and exclude_from_campaigns.
phoneNumber is accepted as another name for phone_number.
Returns { code, record }: the updated user. A password change returns { "code": 200, "message": "Password changed successfully." }.
Errors: PasswordMismatch, UserNotFound.
Sample response
Field names come from the live database columns and the handler. Values are illustrative. record is an array with the updated row.
{
"code": 200,
"record": [
{
"id": 400,
"workspace_id": "335",
"email": "john@example.com",
"firstname": "John",
"lastname": "Doe",
"number": "15555550100",
"permission": "user",
"claim_limit": 0,
"claim_time": 0,
"manual_blast_message_limit": 0,
"disable_manual_blasts": false,
"manual_blast_approval_required": false,
"personal_campaigns": false,
"deleted": false,
"segment_budget_type": "daily",
"segment_budget": 0,
"created_at": "2026-11-10T18:00:00.000Z",
"updated_at": "2026-11-10T18:00:00.000Z",
"number_verified": false,
"two_factor_authentication": false,
"freshdesk_id": null,
"verified_number": null,
"add_email_meta": false,
"replace_email_meta": false,
"call_forwarding_auto_response": false,
"call_forwarding_auto_response_message": null,
"senior_personal_blasts_only": false,
"integrations": null,
"two_factor_phone_authentication": false,
"exclude_from_campaigns": true,
"push_notifications": false,
"use_old_flag_system": false,
"view_only_personal_blasts": false,
"identity_id": null,
"messages_view": null,
"theme_preference": null,
"theme_preference_set_at": null,
"rum_tracking_enabled": false
}
]
}Role: admin.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
id | integer | Yes |
Query parameters
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
reassign_to | number | No | At least 1. | Move this user's threads to another user in the workspace. Without it, their threads become unassigned. |
Removes the user from the workspace, along with their shortlist, templates, campaign permissions and group assignments. Their subscriber lists lose their owner and become public.
Errors: UserNotFound.
Sample response
{
"code": 200,
"message": "Successfully removed from workspace.",
"name": "John Doe",
"email": "john@example.com",
"user_id": 5
}Role: admin, senior, user.
Body fields (JSON)
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
token | string | Yes | 1 to 255 characters. | |
type | string | No | One of apns, expo, fcm. | Default apns. |
environment | string | No | One of production, development. | Default production. |
If the token or device is already known, message is Push token updated for current device.
Sample response
{
"code": 200,
"message": "Push token has been added for the current device."
}API keys and billing
Keys for other users, and usage for this workspace.
Role: admin, senior.
Sample response
{
"code": 200,
"account_type": "credit",
"segments": "0",
"monthly_balance": "-612.2560",
"start_date": "2026-09-01T00:00:00.000Z",
"end_date": "2026-09-30T00:00:00.000Z",
"current_balance": -612.256,
"cost_per_segment": 0.045,
"cost_per_segment_next_tier": 0.04,
"next_tier_segments": 499
}Role: admin, senior, user.
Sample response
{
"code": 200,
"record": {
"id": 4,
"workspace_id": "335",
"user_id": "398",
"app_key": "redacted",
"created_at": "2023-02-28T18:30:36.944Z"
}
}Role: admin.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
id | integer | Yes |
Sample response
{
"code": 200,
"message": "Successfully deleted user api key.",
"user_api_key_id": 12345
}Role: admin.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
id | integer | Yes |
No body.
Only an active key can be rotated.
Returns { code, record }: the new key.
Errors: ApiKeyNotActive, ApiKeyLimitReached.
Sample response
Field names come from the live database columns and the handler. Values are illustrative. record is an array with the updated key. authKey is the new secret and is only shown here.
{
"code": 200,
"record": [
{
"id": 12345,
"workspace_id": "335",
"user_id": "400",
"app_key": "EGKS*********",
"created_at": "2026-11-10T18:00:00.000Z",
"name": null,
"type": "SINGLE_BLAST",
"scopes": [],
"created_by": "0",
"expires_at": null,
"last_used_at": null,
"revoked_at": null,
"revoked_by": null,
"authKey": "…"
}
]
}Role: admin.
Query parameters
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
lastid | number | No | Accepted, but not used. | |
order | string | No | One of ASC, DESC. | Accepted, but not used. |
limit | number | No | 1 to 100. | Accepted, but not used. |
Sample response
{
"code": 200,
"totalRecords": 6,
"records": [
{
"id": 4,
"user_id": 398,
"workspace_id": "335",
"fullname": "David Barnathan",
"app_key": "redacted",
"created_at": "2023-02-28T18:30:36.944Z"
}
]
}Role: admin.
Body fields (JSON)
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
user_id | number | Yes | At least 1. | Must be in the workspace. |
Returns { code, record }: the new key pair.
Errors: WorkspaceUserError, ApiKeyLimitReached.
Sample response
Field names come from the live database columns and the handler. Values are illustrative. authKey is the secret half of the pair and is only shown here.
{
"code": 200,
"record": {
"id": 12345,
"workspace_id": "335",
"user_id": "400",
"app_key": "EGKS*********",
"created_at": "2026-11-10T18:00:00.000Z",
"name": null,
"type": "SINGLE_BLAST",
"scopes": [],
"created_by": "0",
"expires_at": null,
"last_used_at": null,
"revoked_at": null,
"revoked_by": null,
"authKey": "…"
}
}Phone numbers
Number pools group the numbers Entrance already assigned to the workspace.
Role: admin.
Body fields (JSON)
| Name | Type | Required | Allowed values | Notes |
|---|---|---|---|---|
name | string | Yes | 1 to 32 characters. Letters (accented too), digits, spaces, and - / . & ! _ ' ·. | Unique in the workspace. |
Errors: MessagingNumberPoolNameExists.
Sample response
{
"code": 200,
"record": {
"id": 7,
"name": "Example profile",
"uuid": "…",
"is_number_pool": true,
"numbers": 0,
"created_at": "2026-11-10T18:00:00.000Z",
"updated_at": "2026-11-10T18:00:00.000Z"
}
}Role: admin, senior.
Path parameters
| Name | Type | Required | Notes |
|---|---|---|---|
id | integer | Yes |
Sample response
Fields are the the pool, with numbers = count of its active numbers columns the service returns. Values are illustrative.
{
"code": 200,
"record": {
"id": 7,
"name": "Example profile",
"uuid": "…",
"is_number_pool": true,
"numbers": "3",
"created_at": "2026-11-10T18:00:00.000Z",
"updated_at": "2026-11-10T18:00:00.000Z"
}
}Not found
No record of this type is in the workspace, so a missing id returns this.
{
"code": 404,
"errorCode": "ResourceNotFound",
"errors": [
"Powerpack record was not found"
]
}Node.js Module Usage
Installation
Call the API
Pass the app key as the header name and the auth key as the value. HTTP Basic with that same pair also works. Omit /workspaces/:workspaceId when the account has one workspace.
Quick Start Guide
Base URL: https://apiv2.entrancegrp.com
Header name = app key. Header value = auth key. HTTP Basic with that same pair also works. Authorization: Bearer is a login session, not an API key.
Workspaces
/workspaces/:workspaceId is only necessary when the account owns more than one workspace. Otherwise hit the endpoint directly, for example GET /campaigns instead of GET /workspaces/335/campaigns.
Page through lists with lastid set to the id of the last record you received, plus limit and order.