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.

curl https://apiv2.entrancegrp.com/campaigns \ -H "EGKS*********: uvY4tvyE*************"
curl https://apiv2.entrancegrp.com/campaigns \ -u "EGKS*********:uvY4tvyE*************"

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 endpoints

Start 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.

GET /campaigns
List Campaigns

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

NameTypeRequiredAllowed valuesNotes
lastidnumberNoSet the last ID to determine the following campaigns.
orderstringNoOne of ASC, DESC.Specifies the order of the records. Default is DESC.
limitnumberNo1 to 100.Limits the number of records returned. Default is 20. Acceptable values are 1-100.
typesstringNoOne of MANUAL, SINGLE_BLAST, SCHEDULED, BURST, RETARGET, HOOK, PERSONAL. Comma-separated.Comma-separated. Only campaigns of these types.
fieldsstringNoOne 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.
statsbooleanNoWith fields, also return the stat columns.
subscriberbooleanNoOnly campaigns sent to subscriber lists.
manualbooleanNoOnly manual campaigns.
retargetbooleanNoOnly retarget campaigns.
searchstringNo1 to 32 characters.Matches the campaign name.
user_idnumberNoAt least 1.Only campaigns this user can use.
manual_user_idnumberNoAt least 1.Only manual campaigns assigned to this user.
subscriberlistidnumberNoAt least 1.Only campaigns sent to this subscriber list.
archivedbooleanNoArchived campaigns.
filterablebooleanNotrue 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
    }
  ]
}
curl -X GET "https://apiv2.entrancegrp.com/campaigns" \ -H "EGKS*********: uvY4tvyE*************"
GET /workspaces/:workspaceId/campaigns?order=DESC&limit=100&types=SINGLE_BLAST
Get All

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
    }
  ]
}
curl -X GET "https://apiv2.entrancegrp.com/workspaces/:workspaceId/campaigns?order=DESC&limit=100&types=SINGLE_BLAST" \ -H "EGKS*********: uvY4tvyE*************"
GET /workspaces/:workspaceId/campaigns/:id
Get Campaign

Role: admin, senior.

Path parameters

NameTypeRequiredNotes
workspaceIdintegerYesWorkspace id. Only needed when the account has more than one workspace.
idintegerYes

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": []
  }
}
curl -X GET "https://apiv2.entrancegrp.com/workspaces/:workspaceId/campaigns/:id" \ -H "EGKS*********: uvY4tvyE*************"
POST /workspaces/:workspaceId/campaigns
Create Campaign

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.

  • type is SINGLE_BLAST, PERSONAL, RETARGET, BURST, SCHEDULED, DRIP, SUBSCRIBER, MANUAL, or HOOK. All caps.
  • numbers is required for MANUAL. Digits only, country code first, no plus: 15555550100. A 10-digit number is stored with a leading 1.

Role: admin, senior, user.

Path parameters

NameTypeRequiredNotes
workspaceIdintegerYesWorkspace id. Only needed when the account has more than one workspace.

Body fields (JSON)

NameTypeRequiredAllowed valuesNotes
namestringYes1 to 254 characters.
typestringYesOne 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_idnumberNonull 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_idnumberNonull allowed.Send to one subscriber list. Fails with NoSubscriberListContacts when the list is empty.
number_lookup_idnumberNonull allowed.Also sets line_types to Wireless.
personal_idnumberNonull allowed.PERSONAL only. Defaults to the caller. A non-admin caller needs that user to be allowed personal campaigns.
manual_user_idnumberNonull allowed.MANUAL only. Assigns the campaign. Defaults to the caller. Must be in the workspace.
numbersarrayNoRequired for MANUAL. Phone numbers as strings or numbers. The campaign sends by itself after the upload.
permissionsbooleanNofalse skips adding workspace users to the campaign. By default they are added.
text_messagestringNo1 to 1600 characters.The copy that sends. Required for MANUAL.
ntrn_linkstringNoUp to 512 characters. URL starting with http:// or https://.The tracked link.
media_urlstringNoURL 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_claimbooleanNoTake a thread another user has claimed. Default false.
remove_all_permissionsbooleanNoAccepted, but the service does not read it. Use permissions: false.
include_excluded_usersbooleanNoAlso add users who are excluded from campaigns.
send_after_importbooleanNoSend when the contact upload finishes. Always on for MANUAL.
flag_idnumberNonull allowed.Stored on the campaign.
is_all_subscriber_listsbooleanNoSend 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
  }
}
curl -X POST "https://apiv2.entrancegrp.com/workspaces/:workspaceId/campaigns" \ -H "EGKS*********: uvY4tvyE*************" \ -H "Content-Type: application/json" \ -d '{ "name": "Spring launch", "type": "SINGLE_BLAST", "text_message": "Hi John, this is a sample message." }'
PATCH /campaigns/:id
Update Campaign

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

NameTypeRequiredNotes
idintegerYes

Body fields (JSON)

NameTypeRequiredAllowed valuesNotes
namestringNo1 to 254 characters.
typestringNoOne of SINGLE_BLAST, SCHEDULED.Switches a draft between SINGLE_BLAST and SCHEDULED. Refused once the campaign is sending, sent, awaiting approval, or scheduled.
archivebooleanNoMarks the campaign archived.
deletebooleanNoMarks the campaign deleted.
filter_against_masterbooleanNoSkip numbers this workspace has already messaged.
filter_against_channelsbooleanNoSkip numbers that already have a channel.
forward_numberstringNo10 to 15 characters. Phone number, for example 15555550100.Where calls on replies go.
text_messagestringNo1 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_linkstringNoUp to 512 characters. URL starting with http:// or https://. null allowed.null or empty also removes {ntrn_link} and {shortlink} from the text.
disable_claimsbooleanNoThis campaign does not claim threads.
add_stop_messagebooleanNoAt 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_typesstringNoOne of Wireless, Wireline, VoIP, TollFree, Unknown.With a number lookup, which line types are included.
force_mmsbooleanNoSend as MMS.
override_channel_claimbooleanNoTake threads another user has claimed.
nation_builder_list_idnumberNoAt least 1. null allowed.Pull this NationBuilder list.
media_urlstringNoURL starting with http:// or https://. null allowed.The file is downloaded and stored. null is accepted.
number_pool_idnumberNoAt least 1. null allowed.Messaging number pool. Required to send when the workspace uses pools.
is_adjusted_time_zonebooleanNoSend on the contact's local time.
auto_response_on_yesstringNo1 to 800 characters. null allowed.Reply sent when the contact answers yes.
send_after_importbooleanNoSend when the contact upload finishes.
scheduled_atstringNoA 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
  }
}
curl -X PATCH "https://apiv2.entrancegrp.com/campaigns/:id" \ -H "EGKS*********: uvY4tvyE*************" \ -H "Content-Type: application/json" \ -d '{ "text_message": "Hi John, this is a sample message.", "media_url": "https://example.com/image.png" }'
POST /campaigns/:id/attach-media
Attach Media

Role: admin, senior.

Path parameters

NameTypeRequiredNotes
idintegerYes

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
  }
}
curl -X POST "https://apiv2.entrancegrp.com/campaigns/:id/attach-media" \ -H "EGKS*********: uvY4tvyE*************"

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.

GET /workspaces/:id/campaigns/:campaignId/contacts?lastid=0&limit=20&order=ASC
Get Contacts

Role: admin, senior.

Path parameters

NameTypeRequiredNotes
idintegerYesWorkspace id. Only needed when the account has more than one workspace.
campaignIdintegerYes

Query parameters

NameTypeRequiredAllowed valuesNotes
lastidnumberNoCursor. Send the lastId from the previous page. last_id is also accepted.
orderstringNoOne of ASC, DESC.ASC or DESC. Default DESC.
limitnumberNo1 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": []
}
curl -X GET "https://apiv2.entrancegrp.com/workspaces/:id/campaigns/:campaignId/contacts?lastid=0&limit=20&order=ASC" \ -H "EGKS*********: uvY4tvyE*************"
GET /workspaces/:id/campaigns/:campaignId/campaign-contacts
Get Campaign Contacts

Role: admin, senior, user.

Path parameters

NameTypeRequiredNotes
idintegerYesWorkspace id. Only needed when the account has more than one workspace.
campaignIdintegerYes

Query parameters

NameTypeRequiredAllowed valuesNotes
lastidnumberNoCursor. Send the lastId from the previous page. last_id is also accepted.
orderstringNoOne of ASC, DESC.ASC or DESC. Default DESC.
limitnumberNo1 to 100.Page size. Default 20.
statusstringNoOne 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": []
}
curl -X GET "https://apiv2.entrancegrp.com/workspaces/:id/campaigns/:campaignId/campaign-contacts" \ -H "EGKS*********: uvY4tvyE*************"
POST /workspaces/:workspaceId/campaigns/:campaignId/contacts
Add Contacts

Role: admin, senior.

Path parameters

NameTypeRequiredNotes
workspaceIdintegerYesWorkspace id. Only needed when the account has more than one workspace.
campaignIdintegerYes

Body fields (JSON)

NameTypeRequiredAllowed valuesNotes
namestringNo1 to 254 characters.Name stored as the original file name of this upload.
contactsarrayYesArray 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_importbooleanNoSend 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
  }
}
curl -X POST "https://apiv2.entrancegrp.com/workspaces/:workspaceId/campaigns/:campaignId/contacts" \ -H "EGKS*********: uvY4tvyE*************" \ -H "Content-Type: application/json" \ -d '{ "contacts": [ { "number": "15555550100", "first_name": "John", "last_name": "Doe", "company": "Acme" }, { "number": "15555550101", "first_name": "Jane", "last_name": "Doe", "company": "Acme" } ], "send_after_import": false }'
POST /campaigns/:campaignId/contacts/delete
Delete Uploaded Contacts

Role: admin, senior.

Path parameters

NameTypeRequiredNotes
campaignIdintegerYes

Body fields (JSON)

NameTypeRequiredAllowed valuesNotes
fieldstringYesnumbers deletes by phone number. Any other value is a contact variable name (for example company), matched against value.
valuestring, number or arrayYesOne 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
}
curl -X POST "https://apiv2.entrancegrp.com/campaigns/:campaignId/contacts/delete" \ -H "EGKS*********: uvY4tvyE*************" \ -H "Content-Type: application/json" \ -d '{ "field": "numbers", "value": [ "15555550100" ] }'
GET /workspaces/:id/campaigns/:campaignId/contact-lists
Get Contact Lists

Role: admin, senior.

Path parameters

NameTypeRequiredNotes
idintegerYesWorkspace id. Only needed when the account has more than one workspace.
campaignIdintegerYes

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": []
}
curl -X GET "https://apiv2.entrancegrp.com/workspaces/:id/campaigns/:campaignId/contact-lists" \ -H "EGKS*********: uvY4tvyE*************"
POST /workspaces/:id/campaigns/:campaignId/contact-lists
Add Contact List

Role: admin, senior.

Path parameters

NameTypeRequiredNotes
idintegerYesWorkspace id. Only needed when the account has more than one workspace.
campaignIdintegerYes

Body fields (JSON)

NameTypeRequiredAllowed valuesNotes
contact_list_idnumberYesAt 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
  }
}
curl -X POST "https://apiv2.entrancegrp.com/workspaces/:id/campaigns/:campaignId/contact-lists" \ -H "EGKS*********: uvY4tvyE*************" \ -H "Content-Type: application/json" \ -d '{ "contact_list_id": 1 }'
DELETE /workspaces/:id/campaigns/:campaignId/contact-lists/:campaignContactListId
Remove Contact List by Record Id

Role: admin, senior.

Path parameters

NameTypeRequiredNotes
idintegerYesWorkspace id. Only needed when the account has more than one workspace.
campaignIdintegerYes
campaignContactListIdintegerYesThe id of the record from GET .../contact-lists, not the contact list id.

Query parameters

NameTypeRequiredAllowed valuesNotes
contact_list_idnumberNoAt 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."
}
curl -X DELETE "https://apiv2.entrancegrp.com/workspaces/:id/campaigns/:campaignId/contact-lists/:campaignContactListId" \ -H "EGKS*********: uvY4tvyE*************"

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.

GET /campaigns/:id/permissions
Get Campaign Permissions

Role: admin, senior.

Path parameters

NameTypeRequiredNotes
idintegerYes

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"
    }
  ]
}
curl -X GET "https://apiv2.entrancegrp.com/campaigns/:id/permissions" \ -H "EGKS*********: uvY4tvyE*************"
POST /campaigns/:id/permissions/users
Add User

Role: admin, senior.

Path parameters

NameTypeRequiredNotes
idintegerYes

Body fields (JSON)

NameTypeRequiredAllowed valuesNotes
user_idnumberYesAt 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"
  }
}
curl -X POST "https://apiv2.entrancegrp.com/campaigns/:id/permissions/users" \ -H "EGKS*********: uvY4tvyE*************" \ -H "Content-Type: application/json" \ -d '{ "user_id": 1 }'
POST /campaigns/:id/permissions/groups
Add User Group

Role: admin, senior.

Path parameters

NameTypeRequiredNotes
idintegerYes

Body fields (JSON)

NameTypeRequiredAllowed valuesNotes
user_group_idnumberYesAt 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"
    }
  ]
}
curl -X POST "https://apiv2.entrancegrp.com/campaigns/:id/permissions/groups" \ -H "EGKS*********: uvY4tvyE*************" \ -H "Content-Type: application/json" \ -d '{ "user_group_id": 1 }'
DELETE /campaigns/:id/permissions
Clear Permissions

Role: admin, senior.

Path parameters

NameTypeRequiredNotes
idintegerYes

Sample response

{
  "code": 200,
  "message": "Permissions cleared."
}
curl -X DELETE "https://apiv2.entrancegrp.com/campaigns/:id/permissions" \ -H "EGKS*********: uvY4tvyE*************"
DELETE /campaigns/:id/permissions/groups?user_group_id=1
Remove User Group

Role: admin, senior.

Path parameters

NameTypeRequiredNotes
idintegerYes

Query parameters

NameTypeRequiredAllowed valuesNotes
user_group_idnumberYesRemoves 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"
    }
  ]
}
curl -X DELETE "https://apiv2.entrancegrp.com/campaigns/:id/permissions/groups?user_group_id=1" \ -H "EGKS*********: uvY4tvyE*************"

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.

GET /workspaces/:workspaceId/campaigns/:campaignId/analytics-summary
Campaign Analytics Summary

Role: admin, senior.

Path parameters

NameTypeRequiredNotes
workspaceIdintegerYesWorkspace id. Only needed when the account has more than one workspace.
campaignIdintegerYes

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
    }
  }
}
curl -X GET "https://apiv2.entrancegrp.com/workspaces/:workspaceId/campaigns/:campaignId/analytics-summary" \ -H "EGKS*********: uvY4tvyE*************"
GET /workspaces/:workspaceId/campaigns/:id/upload-progress
Get Upload Progress

Role: admin, senior.

Path parameters

NameTypeRequiredNotes
workspaceIdintegerYesWorkspace id. Only needed when the account has more than one workspace.
idintegerYes

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."
  ]
}
curl -X GET "https://apiv2.entrancegrp.com/workspaces/:workspaceId/campaigns/:id/upload-progress" \ -H "EGKS*********: uvY4tvyE*************"
GET /workspaces/:workspaceId/campaigns/:id/send-progress
Get Send Progress

Role: admin, senior.

Path parameters

NameTypeRequiredNotes
workspaceIdintegerYesWorkspace id. Only needed when the account has more than one workspace.
idintegerYes

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."
  ]
}
curl -X GET "https://apiv2.entrancegrp.com/workspaces/:workspaceId/campaigns/:id/send-progress" \ -H "EGKS*********: uvY4tvyE*************"
GET /campaigns/:campaignId/clicks
Get Campaign Clicks

Role: admin, senior, user.

Path parameters

NameTypeRequiredNotes
campaignIdintegerYes

Query parameters

NameTypeRequiredAllowed valuesNotes
lastidnumberNoCursor. Send the lastId from the previous page. last_id is also accepted.
orderstringNoOne of ASC, DESC.ASC or DESC. Default DESC.
limitnumberNo1 to 100.Page size. Default 20.

Sample response

{
  "code": 200,
  "lastId": 2147483647,
  "totalRecords": 0,
  "records": []
}
curl -X GET "https://apiv2.entrancegrp.com/campaigns/:campaignId/clicks" \ -H "EGKS*********: uvY4tvyE*************"
POST /workspaces/:workspaceId/campaigns/:id/test
Send Test Message

Role: admin, senior, user.

Path parameters

NameTypeRequiredNotes
workspaceIdintegerYesWorkspace id. Only needed when the account has more than one workspace.
idintegerYes

Body fields (JSON)

NameTypeRequiredAllowed valuesNotes
numberstringNo10 to 11 characters.One test number. Use this or test_messages.
test_messagesarrayNoArray 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."
}
curl -X POST "https://apiv2.entrancegrp.com/workspaces/:workspaceId/campaigns/:id/test" \ -H "EGKS*********: uvY4tvyE*************" \ -H "Content-Type: application/json" \ -d '{ "test_messages": [ { "number": "15555550100", "variables": { "first_name": "John", "last_name": "Doe" } } ] }'
POST /workspaces/:workspaceId/campaigns/:campaignId/schedule
Schedule Campaign

Role: admin, senior.

Path parameters

NameTypeRequiredNotes
workspaceIdintegerYesWorkspace id. Only needed when the account has more than one workspace.
campaignIdintegerYes

Body fields (JSON)

NameTypeRequiredAllowed valuesNotes
scheduletimestampYesA 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."
}
curl -X POST "https://apiv2.entrancegrp.com/workspaces/:workspaceId/campaigns/:campaignId/schedule" \ -H "EGKS*********: uvY4tvyE*************" \ -H "Content-Type: application/json" \ -d '{ "schedule": "2025-08-21T08:00:00-05:00" }'
GET /workspaces/:workspaceId/campaigns/:campaignId/send
Send

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

NameTypeRequiredNotes
workspaceIdintegerYesWorkspace id. Only needed when the account has more than one workspace.
campaignIdintegerYes

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."
}
curl -X GET "https://apiv2.entrancegrp.com/workspaces/:workspaceId/campaigns/:campaignId/send" \ -H "EGKS*********: uvY4tvyE*************"
GET /workspaces/:workspaceId/campaigns/:id/pause
Pause Campaign

This GET performs the action. It does not return status.

Role: admin, senior.

Path parameters

NameTypeRequiredNotes
workspaceIdintegerYesWorkspace id. Only needed when the account has more than one workspace.
idintegerYes

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."
}
curl -X GET "https://apiv2.entrancegrp.com/workspaces/:workspaceId/campaigns/:id/pause" \ -H "EGKS*********: uvY4tvyE*************"
GET /workspaces/:workspaceId/campaigns/:id/cancel
Cancel Campaign

This GET performs the action. It does not return status.

Role: admin, senior.

Path parameters

NameTypeRequiredNotes
workspaceIdintegerYesWorkspace id. Only needed when the account has more than one workspace.
idintegerYes

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."
}
curl -X GET "https://apiv2.entrancegrp.com/workspaces/:workspaceId/campaigns/:id/cancel" \ -H "EGKS*********: uvY4tvyE*************"

Templates and text filters

Saved campaign copy and the text filters applied while uploading contacts.

GET /campaign-templates?last_id=9999999999999&limit=20&order=DESC
Get Campaign Templates

Role: admin, senior, user.

Query parameters

NameTypeRequiredAllowed valuesNotes
lastidnumberNoCursor. Send the lastId from the previous page. last_id is also accepted.
orderstringNoOne of ASC, DESC.ASC or DESC. Default DESC.
limitnumberNoOne 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": []
}
curl -X GET "https://apiv2.entrancegrp.com/campaign-templates?last_id=9999999999999&limit=20&order=DESC" \ -H "EGKS*********: uvY4tvyE*************"
GET /campaign-text-filters
Get Campaign Text Filters

Role: admin, senior, user.

Query parameters

NameTypeRequiredAllowed valuesNotes
lastidnumberNoCursor. Send the lastId from the previous page. last_id is also accepted.
orderstringNoOne of ASC, DESC.ASC or DESC. Default DESC.
limitnumberNo1 to 100.Page size. Default 20.

Sample response

{
  "code": 200,
  "lastId": 2147483647,
  "totalRecords": 0,
  "records": []
}
curl -X GET "https://apiv2.entrancegrp.com/campaign-text-filters" \ -H "EGKS*********: uvY4tvyE*************"
POST /campaign-templates
Create Campaign Template

Role: admin, senior, user.

Body fields (JSON)

NameTypeRequiredAllowed valuesNotes
namestringYes3 to 32 characters.
textstringYes1 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"
  }
}
curl -X POST "https://apiv2.entrancegrp.com/campaign-templates" \ -H "EGKS*********: uvY4tvyE*************" \ -H "Content-Type: application/json" \ -d '{ "name": "Welcome", "text": "Hi John, this is a sample message." }'
PUT /campaign-templates/:id
Update Campaign Template

Role: admin, senior, user.

Path parameters

NameTypeRequiredNotes
idintegerYes

Body fields (JSON)

NameTypeRequiredAllowed valuesNotes
namestringNo3 to 32 characters.
textstringNo1 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"
    }
  ]
}
curl -X PUT "https://apiv2.entrancegrp.com/campaign-templates/:id" \ -H "EGKS*********: uvY4tvyE*************" \ -H "Content-Type: application/json" \ -d '{ "name": "Welcome" }'
DELETE /campaign-templates/:id
Delete Campaign Template

Role: admin, senior, user.

Path parameters

NameTypeRequiredNotes
idintegerYes

Sample response

{
  "code": 200,
  "message": "Successfully deleted campaign template.",
  "campaign_template_id": 1
}
curl -X DELETE "https://apiv2.entrancegrp.com/campaign-templates/:id" \ -H "EGKS*********: uvY4tvyE*************"
POST /campaign-text-filters
Create Campaign Text Filter

Role: admin, senior.

Body fields (JSON)

NameTypeRequiredAllowed valuesNotes
textstringYes1 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"
  }
}
curl -X POST "https://apiv2.entrancegrp.com/campaign-text-filters" \ -H "EGKS*********: uvY4tvyE*************" \ -H "Content-Type: application/json" \ -d '{ "text": "Hi John, this is a sample message." }'
DELETE /campaign-text-filters/:id
Delete Campaign Text Filter

Role: admin, senior.

Path parameters

NameTypeRequiredNotes
idintegerYes

Sample response

{
  "code": 200,
  "message": "Campaign text filter record deleted successfully."
}
curl -X DELETE "https://apiv2.entrancegrp.com/campaign-text-filters/:id" \ -H "EGKS*********: uvY4tvyE*************"

Messaging

25 endpoints

The 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.

GET /channels?claimed=false
List Unclaimed Channels

Role: admin, senior, user.

Query parameters

NameTypeRequiredAllowed valuesNotes
last_responsestringNoDefault cursor, by latest activity. Send the last_response from the previous page.
lastidnumberNoAt least 0. Whole number.Cursor by channel id, in creation order. Used only when last_response is not sent.
orderstringNoOne of ASC, DESC.ASC or DESC. Default DESC.
limitnumberNo1 to 100.Page size. Default 20.
claimedbooleanNotrue returns the caller's claimed threads and adds totalChannels and unreads. Anything else returns unclaimed threads.
flag_idnumberNoAt least 0.Get only channels with flag id.
bookmarkedbooleanNoGet channels based upon bookmarked.
archivedbooleanNoGet channels based upon archived.
deletedbooleanNoGet channels based upon deleted.
stop_filterbooleanNoGet channels based upon stop_filter.
repliedbooleanNoGet channels based upon replied.
lockedbooleanNoGet channels based upon locked.
stopbooleanNoGet channels based upon stop.
adminviewbooleanNoShow threads claimed by every user.
godviewbooleanNoSame as adminview.
campaign_idnumberNoAt least 1.Only threads from this campaign.
readbooleanNoMarks the returned threads' messages seen. Any value counts, including false, so leave it out to keep them unread.
numberstringNoPhone number, for example 15555550100.Only the thread with this contact number.
searchstringNo1 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"
      }
    }
  ]
}
curl -X GET "https://apiv2.entrancegrp.com/channels?claimed=false" \ -H "EGKS*********: uvY4tvyE*************"
GET /workspaces/:workspaceId/channels?claimed=true
Get Channels

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"
    }
  ]
}
curl -X GET "https://apiv2.entrancegrp.com/workspaces/:workspaceId/channels?claimed=true" \ -H "EGKS*********: uvY4tvyE*************"
GET /workspaces/:workspaceId/channels/:id
Get Channel

Role: admin, senior, user.

Path parameters

NameTypeRequiredNotes
workspaceIdintegerYesWorkspace id. Only needed when the account has more than one workspace.
idintegerYes

Query parameters

NameTypeRequiredAllowed valuesNotes
seenbooleanNotrue 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
    }
  }
}
curl -X GET "https://apiv2.entrancegrp.com/workspaces/:workspaceId/channels/:id" \ -H "EGKS*********: uvY4tvyE*************"
PATCH /workspaces/:workspaceId/channels/:id
Update Channel

Role: admin, senior, user.

Path parameters

NameTypeRequiredNotes
workspaceIdintegerYesWorkspace id. Only needed when the account has more than one workspace.
idintegerYes

Body fields (JSON)

NameTypeRequiredAllowed valuesNotes
assigned_tonumberNoAt least 1. null allowed.Claim the thread for this user.
flag_idnumberNoAt least 1. null allowed.Set the flag.
unreadnumberNoOne of 0.Only 0.
bookmarkedbooleanNo
archivedbooleanNoAlso sets archived_date.
deletedbooleanNo
lockedbooleanNo
stopbooleanNotrue stops the contact and removes them from subscriber lists. Only an admin can send false.
unsubscribebooleanNotrue is the same as stop: true. false does nothing. Cannot be combined with stop: false.
stop_filterbooleanNo

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
    }
  ]
}
curl -X PATCH "https://apiv2.entrancegrp.com/workspaces/:workspaceId/channels/:id" \ -H "EGKS*********: uvY4tvyE*************" \ -H "Content-Type: application/json" \ -d '{ "assigned_to": 1 }'
DELETE /workspaces/:workspaceId/channels/:id/
Delete Channels

Role: admin, senior, user.

Path parameters

NameTypeRequiredNotes
workspaceIdintegerYesWorkspace id. Only needed when the account has more than one workspace.
idintegerYes

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."
}
curl -X DELETE "https://apiv2.entrancegrp.com/workspaces/:workspaceId/channels/:id/" \ -H "EGKS*********: uvY4tvyE*************"
GET /workspaces/:workspaceId/channels/:id/unclaim
Unclaim

This GET performs the action. It does not return status.

Role: admin, senior, user.

Path parameters

NameTypeRequiredNotes
workspaceIdintegerYesWorkspace id. Only needed when the account has more than one workspace.
idintegerYes

Sample response

{
  "code": 200,
  "message": "Successfully unclaimed channel."
}
curl -X GET "https://apiv2.entrancegrp.com/workspaces/:workspaceId/channels/:id/unclaim" \ -H "EGKS*********: uvY4tvyE*************"
POST /workspaces/:workspaceId/channels/:id/assign
Assign

Role: admin.

Path parameters

NameTypeRequiredNotes
workspaceIdintegerYesWorkspace id. Only needed when the account has more than one workspace.
idintegerYes

Body fields (JSON)

NameTypeRequiredAllowed valuesNotes
user_idnumberYesAt 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."
}
curl -X POST "https://apiv2.entrancegrp.com/workspaces/:workspaceId/channels/:id/assign" \ -H "EGKS*********: uvY4tvyE*************" \ -H "Content-Type: application/json" \ -d '{ "user_id": 1 }'
POST /workspaces/:workspaceId/channels/bulk-assign-flag
Bulk Flag Assign

Role: admin, senior, user.

Path parameters

NameTypeRequiredNotes
workspaceIdintegerYesWorkspace id. Only needed when the account has more than one workspace.

Body fields (JSON)

NameTypeRequiredAllowed valuesNotes
flag_idnumberYesAt least 1.
phoneNumbersarrayYes1 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": []
}
curl -X POST "https://apiv2.entrancegrp.com/workspaces/:workspaceId/channels/bulk-assign-flag" \ -H "EGKS*********: uvY4tvyE*************" \ -H "Content-Type: application/json" \ -d '{ "flag_id": 1, "phoneNumbers": [ "15555550100" ] }'
GET /workspaces/:workspaceId/channels/:id/meta
Get Channel Meta

Role: admin, senior, user.

Path parameters

NameTypeRequiredNotes
workspaceIdintegerYesWorkspace id. Only needed when the account has more than one workspace.
idintegerYes

Change the meta through the contact routes.

Sample response

{
  "code": 200,
  "record": [
    {
      "meta": {
        "name": "sample"
      }
    }
  ]
}
curl -X GET "https://apiv2.entrancegrp.com/workspaces/:workspaceId/channels/:id/meta" \ -H "EGKS*********: uvY4tvyE*************"
POST /workspaces/:workspaceId/channels/:id/create-shortlink
Create Channel Shortlink

Role: admin, senior.

Path parameters

NameTypeRequiredNotes
workspaceIdintegerYesWorkspace id. Only needed when the account has more than one workspace.
idintegerYes

Body fields (JSON)

NameTypeRequiredAllowed valuesNotes
redirectstringYesURL 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"
}
curl -X POST "https://apiv2.entrancegrp.com/workspaces/:workspaceId/channels/:id/create-shortlink" \ -H "EGKS*********: uvY4tvyE*************" \ -H "Content-Type: application/json" \ -d '{ "redirect": "https://example.com/shortlink-destination" }'

Messages

History for one thread is GET /workspaces/:workspaceId/messages with channelid set to that channel. POST on the same path sends a reply.

GET /workspaces/:workspaceId/messages?channelid=&limit=100&ts=2024-01-15T12:00:00.000Z&order=ASC
Get

Role: admin, senior, user.

Path parameters

NameTypeRequiredNotes
workspaceIdintegerYesWorkspace id. Only needed when the account has more than one workspace.

Query parameters

NameTypeRequiredAllowed valuesNotes
channelidnumberNoThe thread. Leave it out for the whole workspace.
tstimestampNoA date or timestamp.Cursor. Send last_ts from the previous page.
orderstringNoOne of ASC, DESC.ASC or DESC.
limitnumberNo1 to 100.Page size.
seenbooleanNofalse returns only unseen messages.
updateobjectNoUse 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": []
}
curl -X GET "https://apiv2.entrancegrp.com/workspaces/:workspaceId/messages?channelid=&limit=100&ts=2024-01-15T12:00:00.000Z&order=ASC" \ -H "EGKS*********: uvY4tvyE*************"
POST /workspaces/:workspaceId/messages
Send Message

Role: admin, senior, user.

Path parameters

NameTypeRequiredNotes
workspaceIdintegerYesWorkspace id. Only needed when the account has more than one workspace.

Body fields (JSON or form fields)

NameTypeRequiredAllowed valuesNotes
channel_idnumberYesAt least 1.The thread to reply on.
messagestringNoUp 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
  }
}
curl -X POST "https://apiv2.entrancegrp.com/workspaces/:workspaceId/messages" \ -H "EGKS*********: uvY4tvyE*************" \ -H "Content-Type: application/json" \ -d '{ "channel_id": 1, "message": "Hi John, this is a sample message." }'

Keywords, stops, and templates

Words that trigger an action, unsubscribe filters, and reusable reply text.

GET /incoming-message-keywords
Get Keywords

Role: admin, senior.

Query parameters

NameTypeRequiredAllowed valuesNotes
lastidnumberNoAt least 0.Id of the last record from the previous page. last_id is also accepted.
limitnumberNo1 to 100.Number of records to return, 1-100. Default is 20.
orderstringNoOne 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": []
}
curl -X GET "https://apiv2.entrancegrp.com/incoming-message-keywords" \ -H "EGKS*********: uvY4tvyE*************"
GET /message-filters?unsubscribe=true
Get Filter

Role: admin, senior, user.

Query parameters

NameTypeRequiredAllowed valuesNotes
lastidnumberNoAccepted, but not used.
orderstringNoOne of ASC, DESC.Accepted, but not used.
limitnumberNo1 to 100.Accepted, but not used.
unsubscribebooleanYestrue 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
    }
  ]
}
curl -X GET "https://apiv2.entrancegrp.com/message-filters?unsubscribe=true" \ -H "EGKS*********: uvY4tvyE*************"
GET /message-templates?limit=1
Get Message Templates

Role: admin, senior, user.

Query parameters

NameTypeRequiredAllowed valuesNotes
lastidnumberNoCursor. Send the lastId from the previous page. last_id is also accepted.
orderstringNoOne of ASC, DESC.ASC or DESC. Default DESC.
limitnumberNo1 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"
    }
  ]
}
curl -X GET "https://apiv2.entrancegrp.com/message-templates?limit=1" \ -H "EGKS*********: uvY4tvyE*************"
POST /incoming-message-keywords
Add Keyword

Role: admin, senior.

Body fields (JSON)

NameTypeRequiredAllowed valuesNotes
keywordstringYes1 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."
}
curl -X POST "https://apiv2.entrancegrp.com/incoming-message-keywords" \ -H "EGKS*********: uvY4tvyE*************" \ -H "Content-Type: application/json" \ -d '{ "keyword": "hello" }'
DELETE /incoming-message-keywords?keyword=hello
Delete Keyword

Role: admin, senior.

Query parameters

NameTypeRequiredAllowed valuesNotes
keywordstringYes1 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."
}
curl -X DELETE "https://apiv2.entrancegrp.com/incoming-message-keywords?keyword=hello" \ -H "EGKS*********: uvY4tvyE*************"
POST /message-filters
Add Filter

Role: admin, senior, user.

Body fields (JSON)

NameTypeRequiredAllowed valuesNotes
phrasestringYes1 to 32 characters. Letters, digits, spaces, and . - ( ).
containsbooleanYestrue matches the phrase anywhere in a message. false matches the whole message.
unsubscribebooleanYestrue 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
  }
}
curl -X POST "https://apiv2.entrancegrp.com/message-filters" \ -H "EGKS*********: uvY4tvyE*************" \ -H "Content-Type: application/json" \ -d '{ "phrase": "stop", "contains": false, "unsubscribe": true }'
PATCH /message-filters/:messageFilterId
Update Filter

Role: admin, senior, user.

Path parameters

NameTypeRequiredNotes
messageFilterIdintegerYes

Body fields (JSON)

NameTypeRequiredAllowed valuesNotes
containsbooleanNo
unsubscribebooleanNo

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
    }
  ]
}
curl -X PATCH "https://apiv2.entrancegrp.com/message-filters/:messageFilterId" \ -H "EGKS*********: uvY4tvyE*************" \ -H "Content-Type: application/json" \ -d '{ "contains": true, "unsubscribe": false }'
DELETE /message-filters/:messageFilterId
Delete Filter

Role: admin, senior.

Path parameters

NameTypeRequiredNotes
messageFilterIdintegerYes

Sample response

{
  "code": 200,
  "message": "Successfully deleted message filter."
}
curl -X DELETE "https://apiv2.entrancegrp.com/message-filters/:messageFilterId" \ -H "EGKS*********: uvY4tvyE*************"
POST /message-templates
Create Message Template

Role: admin, senior, user.

Body fields (JSON)

NameTypeRequiredAllowed valuesNotes
namestringYes3 to 32 characters.
textstringYes1 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"
  }
}
curl -X POST "https://apiv2.entrancegrp.com/message-templates" \ -H "EGKS*********: uvY4tvyE*************" \ -H "Content-Type: application/json" \ -d '{ "name": "Welcome", "text": "Hi John, this is a sample message." }'
PATCH /message-templates/:id
Update Message Template

Role: admin, senior, user.

Path parameters

NameTypeRequiredNotes
idintegerYes

Body fields (JSON)

NameTypeRequiredAllowed valuesNotes
namestringNo3 to 32 characters.
textstringNo1 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"
    }
  ]
}
curl -X PATCH "https://apiv2.entrancegrp.com/message-templates/:id" \ -H "EGKS*********: uvY4tvyE*************" \ -H "Content-Type: application/json" \ -d '{ "text": "Hi John, this is a sample message." }'
DELETE /message-templates/:id
Delete Message Template

Role: admin, senior, user.

Path parameters

NameTypeRequiredNotes
idintegerYes

Sample response

{
  "code": 200,
  "message": "Successfully deleted message template.",
  "message_template_id": 1
}
curl -X DELETE "https://apiv2.entrancegrp.com/message-templates/:id" \ -H "EGKS*********: uvY4tvyE*************"
PATCH /workspaces/:id/message-filters/:id
Update Filter

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
    }
  ]
}
curl -X PATCH "https://apiv2.entrancegrp.com/workspaces/:id/message-filters/:id" \ -H "EGKS*********: uvY4tvyE*************"
DELETE /workspaces/:id/message-filters/:id
Delete Filter

Same route as DELETE /message-filters/:messageFilterId with the workspace prefix. Same fields and response.

Sample response

{
  "code": 200,
  "message": "Successfully deleted message filter."
}
curl -X DELETE "https://apiv2.entrancegrp.com/workspaces/:id/message-filters/:id" \ -H "EGKS*********: uvY4tvyE*************"

Contacts

25 endpoints

People, 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.

GET /workspaces/:workspaceId/contacts/:contactId
Get Contact

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

NameTypeRequiredNotes
workspaceIdintegerYesWorkspace id. Only needed when the account has more than one workspace.
contactIdinteger or phone numberYesContact id or phone number. A phone match wins.

Query parameters

NameTypeRequiredAllowed valuesNotes
bystringNoOne 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
  }
}
curl -X GET "https://apiv2.entrancegrp.com/workspaces/:workspaceId/contacts/:contactId" \ -H "EGKS*********: uvY4tvyE*************"
GET /workspaces/:workspaceId/contacts?limit=100&order=ASC
Get Contacts

Role: admin, senior.

Path parameters

NameTypeRequiredNotes
workspaceIdintegerYesWorkspace id. Only needed when the account has more than one workspace.

Query parameters

NameTypeRequiredAllowed valuesNotes
lastidnumberNoCursor. Send the lastId from the previous page. last_id is also accepted.
orderstringNoOne of ASC, DESC.ASC or DESC. Default DESC.
limitnumberNoOne of 10, 20, 30, 40, 50, 60, 70, 80, 100.Page size.
modestringNoOne of all, active, stop.all (default), active, or stop.
stopbooleanNoAny value selects stopped contacts, including false. Use mode instead.
searchstringNo1 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
    }
  ]
}
curl -X GET "https://apiv2.entrancegrp.com/workspaces/:workspaceId/contacts?limit=100&order=ASC" \ -H "EGKS*********: uvY4tvyE*************"
POST /contacts
Create Contact

Role: admin, senior.

Body fields (JSON)

NameTypeRequiredAllowed valuesNotes
numbernumber or stringYes10 to 20 characters. Phone number, for example 15555550100.10 digits, or 11 starting with 1. Stored as 1 plus 10 digits.
number2number or stringNo10 to 20 characters. Phone number, for example 15555550100. null allowed.Same format as number.
stopbooleanNoCreate 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
  }
}
curl -X POST "https://apiv2.entrancegrp.com/contacts" \ -H "EGKS*********: uvY4tvyE*************" \ -H "Content-Type: application/json" \ -d '{ "number": "15555550100" }'
PATCH /workspaces/:workspaceId/contacts/:id
Update Contact

Role: admin, senior, user.

Path parameters

NameTypeRequiredNotes
workspaceIdintegerYesWorkspace id. Only needed when the account has more than one workspace.
idinteger or phone numberYesContact 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)

NameTypeRequiredAllowed valuesNotes
notesstringNoUp to 2048 characters. null allowed.null clears the notes.
stopbooleanNoA caller with permission user cannot change it. false also clears the stop on the contact's threads. true removes the number from subscriber lists.
metaobjectNoObject 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
    }
  ]
}
curl -X PATCH "https://apiv2.entrancegrp.com/workspaces/:workspaceId/contacts/:id" \ -H "EGKS*********: uvY4tvyE*************" \ -H "Content-Type: application/json" \ -d '{ "stop": "true" }'

Contact lists

A list is a saved audience you can attach to a campaign. A missing list id returns 404.

GET /workspaces/:workspaceId/contact-lists/:id/contacts?lastid=0&limit=100&order=ASC
Get Contacts in List

Role: admin, senior.

Path parameters

NameTypeRequiredNotes
workspaceIdintegerYesWorkspace id. Only needed when the account has more than one workspace.
idintegerYes

Query parameters

NameTypeRequiredAllowed valuesNotes
lastidnumberNoCursor. Send the lastId from the previous page. last_id is also accepted.
orderstringNoOne of ASC, DESC.ASC or DESC. Default DESC.
limitnumberNo1 to 100.Page size. Default 20.
searchstringNo1 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"
  ]
}
curl -X GET "https://apiv2.entrancegrp.com/workspaces/:workspaceId/contact-lists/:id/contacts?lastid=0&limit=100&order=ASC" \ -H "EGKS*********: uvY4tvyE*************"
GET /workspaces/:workspaceId/contact-lists/:id/imports?lastid=0&order=ASC&limit=100
Get Contact List Imports

Role: admin, senior.

Path parameters

NameTypeRequiredNotes
workspaceIdintegerYesWorkspace id. Only needed when the account has more than one workspace.
idintegerYes

Query parameters

NameTypeRequiredAllowed valuesNotes
lastidnumberNoCursor. Send the lastId from the previous page. last_id is also accepted.
orderstringNoOne of ASC, DESC.ASC or DESC. Default DESC.
limitnumberNo1 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"
  ]
}
curl -X GET "https://apiv2.entrancegrp.com/workspaces/:workspaceId/contact-lists/:id/imports?lastid=0&order=ASC&limit=100" \ -H "EGKS*********: uvY4tvyE*************"
GET /workspaces/:workspaceId/contact-lists/:id
Get Contact List By Id

Role: admin, senior.

Path parameters

NameTypeRequiredNotes
workspaceIdintegerYesWorkspace id. Only needed when the account has more than one workspace.
idintegerYes

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"
  ]
}
curl -X GET "https://apiv2.entrancegrp.com/workspaces/:workspaceId/contact-lists/:id" \ -H "EGKS*********: uvY4tvyE*************"
GET /workspaces/:workspaceId/contact-lists/imports/:importId/contacts?lastId=0&order=ASC&limit=100
Get Contacts By Import

Role: admin, senior.

Path parameters

NameTypeRequiredNotes
workspaceIdintegerYesWorkspace id. Only needed when the account has more than one workspace.
importIdintegerYes

Query parameters

NameTypeRequiredAllowed valuesNotes
lastidnumberNoCursor. Send the lastId from the previous page. last_id is also accepted.
orderstringNoOne of ASC, DESC.ASC or DESC. Default DESC.
limitnumberNo1 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"
  ]
}
curl -X GET "https://apiv2.entrancegrp.com/workspaces/:workspaceId/contact-lists/imports/:importId/contacts?lastId=0&order=ASC&limit=100" \ -H "EGKS*********: uvY4tvyE*************"
GET /workspaces/:workspaceId/contact-lists?limit=100&order=ASC
Get All Contact Lists

Role: admin, senior.

Path parameters

NameTypeRequiredNotes
workspaceIdintegerYesWorkspace id. Only needed when the account has more than one workspace.

Query parameters

NameTypeRequiredAllowed valuesNotes
lastidnumberNoCursor. Send the lastId from the previous page. last_id is also accepted.
orderstringNoOne of ASC, DESC.ASC or DESC. Default DESC.
limitnumberNo1 to 100.Page size. Default 20.

Sample response

{
  "code": 200,
  "lastId": 2147483647,
  "totalRecords": 0,
  "records": []
}
curl -X GET "https://apiv2.entrancegrp.com/workspaces/:workspaceId/contact-lists?limit=100&order=ASC" \ -H "EGKS*********: uvY4tvyE*************"
POST /workspaces/:workspaceId/contact-lists
Create Contact List

Role: admin, senior.

Path parameters

NameTypeRequiredNotes
workspaceIdintegerYesWorkspace id. Only needed when the account has more than one workspace.

Body fields (JSON)

NameTypeRequiredAllowed valuesNotes
namestringNo1 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"
  }
}
curl -X POST "https://apiv2.entrancegrp.com/workspaces/:workspaceId/contact-lists" \ -H "EGKS*********: uvY4tvyE*************" \ -H "Content-Type: application/json" \ -d '{ "name": "Spring list" }'
POST /workspaces/:workspaceId/contact-lists/:contactListId/imports
Import By Json Body

Role: admin, senior.

Path parameters

NameTypeRequiredNotes
workspaceIdintegerYesWorkspace id. Only needed when the account has more than one workspace.
contactListIdintegerYes

Body fields (JSON or form fields)

NameTypeRequiredAllowed valuesNotes
import_namestringYes1 to 42 characters. Letters (accented too), digits, spaces, and - / . & ! _ ' ·.
contactsarrayNoArray 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
  }
}
curl -X POST "https://apiv2.entrancegrp.com/workspaces/:workspaceId/contact-lists/:contactListId/imports" \ -H "EGKS*********: uvY4tvyE*************" \ -H "Content-Type: application/json" \ -d '{ "import_name": "Spring import", "contacts": [ { "number": "15555550100", "first_name": "John", "last_name": "Doe", "company": "Acme" }, { "First": "Jane", "Last": "Doe", "company": "Acme", "message": "Hi Jane, this is a sample message.", "number2": "15555550101" } ] }'
PATCH /workspaces/:workspaceId/contact-lists/:id
Update Contact List By Id

Role: admin, senior.

Path parameters

NameTypeRequiredNotes
workspaceIdintegerYesWorkspace id. Only needed when the account has more than one workspace.
idintegerYes

Body fields (JSON)

NameTypeRequiredAllowed valuesNotes
namestringYes1 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."
}
curl -X PATCH "https://apiv2.entrancegrp.com/workspaces/:workspaceId/contact-lists/:id" \ -H "EGKS*********: uvY4tvyE*************" \ -H "Content-Type: application/json" \ -d '{ "name": "Spring list" }'
PATCH /workspaces/:workspaceId/contact-lists/imports/:id
Update Import

Role: admin, senior.

Path parameters

NameTypeRequiredNotes
workspaceIdintegerYesWorkspace id. Only needed when the account has more than one workspace.
idintegerYes

Body fields (JSON)

NameTypeRequiredAllowed valuesNotes
archivebooleanNoSets 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"
}
curl -X PATCH "https://apiv2.entrancegrp.com/workspaces/:workspaceId/contact-lists/imports/:id" \ -H "EGKS*********: uvY4tvyE*************" \ -H "Content-Type: application/json" \ -d '{ "archive": true }'

Flags, blocks, and shortlists

Flags label threads. Blocked numbers are never messaged. Shortlists are the small working set for a user.

POST /flags
Create Flag

Role: admin, senior.

Body fields (JSON)

NameTypeRequiredAllowed valuesNotes
namestringYesAt least 1 character.Unique in the workspace.
color_idstringYesHex 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
  }
}
curl -X POST "https://apiv2.entrancegrp.com/flags" \ -H "EGKS*********: uvY4tvyE*************" \ -H "Content-Type: application/json" \ -d '{ "name": "VIP", "color_id": "#111111" }'
DELETE /flags/:flagId
Remove Flag

Role: admin, senior.

Path parameters

NameTypeRequiredNotes
flagIdintegerYes

Also removes the flag from every thread.

Sample response

{
  "code": 200,
  "message": "Successfully deleted the flag.",
  "flag_id": 1
}
curl -X DELETE "https://apiv2.entrancegrp.com/flags/:flagId" \ -H "EGKS*********: uvY4tvyE*************"
PATCH /flags/:flagId
Update Flag

Role: admin, senior.

Path parameters

NameTypeRequiredNotes
flagIdintegerYes

Body fields (JSON)

NameTypeRequiredAllowed valuesNotes
namestringNo1 to 32 characters.Unique in the workspace.
color_idstringNoHex 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
    }
  ]
}
curl -X PATCH "https://apiv2.entrancegrp.com/flags/:flagId" \ -H "EGKS*********: uvY4tvyE*************" \ -H "Content-Type: application/json" \ -d '{ "name": "VIP", "color_id": "#f1f1f1" }'
GET /flags?lastid=9999999999&order=DESC
Get All Workspace Flags

Role: admin, senior, user.

Query parameters

NameTypeRequiredAllowed valuesNotes
lastidnumberNoCursor by id. Not with sort=position.
orderstringNoOne of ASC, DESC.ASC or DESC. Not with sort=position.
limitnumberNoOne of 10, 20, 30, 40, 50, 60, 70, 80, 100.Page size.
sortstringNoOne of position.position returns the workspace drag order.
cursorstringNoUp 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
    }
  ]
}
curl -X GET "https://apiv2.entrancegrp.com/flags?lastid=9999999999&order=DESC" \ -H "EGKS*********: uvY4tvyE*************"
GET /workspaces/:id/flags/:flagId
Get Flag By Id

Role: admin, senior, user.

Path parameters

NameTypeRequiredNotes
idintegerYesWorkspace id. Only needed when the account has more than one workspace.
flagIdintegerYes

Sample response

{
  "code": 200,
  "record": {
    "id": 21315,
    "workspace_id": "335",
    "name": "Meeting Request",
    "color_id": "#FFC300",
    "ai_flag": true
  }
}
curl -X GET "https://apiv2.entrancegrp.com/workspaces/:id/flags/:flagId" \ -H "EGKS*********: uvY4tvyE*************"
POST /workspace-blocked-numbers
Add Number

Role: admin, senior.

Body fields (JSON)

NameTypeRequiredAllowed valuesNotes
numberstringYesPhone number, for example 15555550100.
countryCodestringNoOne 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"
  }
}
curl -X POST "https://apiv2.entrancegrp.com/workspace-blocked-numbers" \ -H "EGKS*********: uvY4tvyE*************" \ -H "Content-Type: application/json" \ -d '{ "number": "15555550100" }'
DELETE /workspace-blocked-numbers/3
Delete Number

Role: admin, senior, user.

Sample response

{
  "code": 200,
  "message": "Successfully deleted the blocked number.",
  "workspace_blocked_number_id": 3
}
curl -X DELETE "https://apiv2.entrancegrp.com/workspace-blocked-numbers/3" \ -H "EGKS*********: uvY4tvyE*************"
GET /workspace-blocked-numbers/:id
Get Number by Id

Role: admin, senior, user.

Path parameters

NameTypeRequiredNotes
idintegerYes

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"
  ]
}
curl -X GET "https://apiv2.entrancegrp.com/workspace-blocked-numbers/:id" \ -H "EGKS*********: uvY4tvyE*************"
GET /workspace-blocked-numbers?lastid=0&limit=20&order=ASC
Get Numbers

Role: admin, senior.

Query parameters

NameTypeRequiredAllowed valuesNotes
lastidnumberNoCursor. Send the lastId from the previous page. last_id is also accepted.
orderstringNoOne of ASC, DESC.ASC or DESC. Default DESC.
limitnumberNo1 to 100.Page size. Default 20.

Sample response

{
  "code": 200,
  "lastId": 0,
  "totalRecords": 0,
  "records": []
}
curl -X GET "https://apiv2.entrancegrp.com/workspace-blocked-numbers?lastid=0&limit=20&order=ASC" \ -H "EGKS*********: uvY4tvyE*************"
GET /shortlists
Get Shortlist Contacts

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"
    }
  ]
}
curl -X GET "https://apiv2.entrancegrp.com/shortlists" \ -H "EGKS*********: uvY4tvyE*************"
POST /shortlists
Add Shortlist Contact

Role: admin, senior, user.

Body fields (JSON)

NameTypeRequiredAllowed valuesNotes
contact_idnumberYesAt 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"
  }
}
curl -X POST "https://apiv2.entrancegrp.com/shortlists" \ -H "EGKS*********: uvY4tvyE*************" \ -H "Content-Type: application/json" \ -d '{ "contact_id": 1 }'
DELETE /shortlists/:shortlistId
Remove Shortlist Contact

Role: admin, senior, user.

Path parameters

NameTypeRequiredNotes
shortlistIdintegerYes

Sample response

{
  "code": 200,
  "message": "Successfully deleted shortlist contact.",
  "shortlist_contact_id": 1
}
curl -X DELETE "https://apiv2.entrancegrp.com/shortlists/:shortlistId" \ -H "EGKS*********: uvY4tvyE*************"

Workspaces

13 endpoints

Which 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.

GET /workspaces
Get Workspaces

Role: any signed-in caller.

Query parameters

NameTypeRequiredAllowed valuesNotes
lastidnumberNoSet the last workspace id to get the next set of workspaces.
orderstringNoOne of ASC, DESC.Specifies the order of the records. Default is DESC.
limitnumberNo1 to 100.Limits the number of records returned. Default is 20. Acceptable values are 1-100.
archivedbooleanNoAccepted, but the service does not read it.
ownerbooleanNoAccepted, 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"
    }
  ]
}
curl -X GET "https://apiv2.entrancegrp.com/workspaces" \ -H "EGKS*********: uvY4tvyE*************"
GET /workspaces/:workspaceId
Get Workspace

Role: admin, senior, user.

Path parameters

NameTypeRequiredNotes
workspaceIdintegerYesWorkspace 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"
  }
}
curl -X GET "https://apiv2.entrancegrp.com/workspaces/:workspaceId" \ -H "EGKS*********: uvY4tvyE*************"
POST /workspaces
Create Workspace

Role: any signed-in caller.

Body fields (JSON)

NameTypeRequiredAllowed valuesNotes
organization_namestringYes1 to 32 characters.
country_codestringYesOne of US, GB.
webhookobjectNoOptional { 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"
      ]
    }
  }
}
curl -X POST "https://apiv2.entrancegrp.com/workspaces" \ -H "EGKS*********: uvY4tvyE*************" \ -H "Content-Type: application/json" \ -d '{ "organization_name": "Example workspace", "country_code": "US", "webhook": { "name": "Example webhook", "url": "https://example.com/webhooks/workspace-events", "subscriptions": [ "campaignCreated", "campaignSent", "messageStatus", "newMessage", "shortlinkClick", "campaignSending" ] } }'
GET /workspaces/:workspaceId/permission
Get Workspace Permission

Role: admin, senior, user.

Path parameters

NameTypeRequiredNotes
workspaceIdintegerYesWorkspace id.

Sample response

{
  "code": 200,
  "record": {
    "permission": "admin"
  }
}
curl -X GET "https://apiv2.entrancegrp.com/workspaces/:workspaceId/permission" \ -H "EGKS*********: uvY4tvyE*************"
GET /workspaces/:workspaceId/settings
Get All Settings

Role: admin, senior, user.

Path parameters

NameTypeRequiredNotes
workspaceIdintegerYesWorkspace id.

Query parameters

NameTypeRequiredAllowed valuesNotes
settingstringNoOne 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
  }
}
curl -X GET "https://apiv2.entrancegrp.com/workspaces/:workspaceId/settings" \ -H "EGKS*********: uvY4tvyE*************"
PUT /workspaces/:workspaceId/settings
Update Setting

Role: admin, senior.

Path parameters

NameTypeRequiredNotes
workspaceIdintegerYesWorkspace id.

Body fields (JSON)

NameTypeRequiredAllowed valuesNotes
disable_claimsbooleanNo
disallow_idle_usersbooleanNo
hide_contactsbooleanNo
segment_limitnumberNo1 to 8.
manual_numbers_limitnumberNoOne of 2000, 1600, 1200, 1000, 800, 600, 400, 200, 100, 50, 25.
auto_archive_filteredbooleanNo
auto_stop_settingnumberNo0 to 2.
cooldown_enabledbooleanNo
cooldown_timenumberNoAt least 0.
channel_lockingbooleanNo
channel_locking_dailybooleanNo
channel_lock_limitnumberNoAt least 0.
segment_budgetingbooleanNo
initial_cooldown_enabledbooleanNo
initial_cooldown_timenumberNoAt least 0.
unread_notify_user_allbooleanNo
unread_notify_admin_allbooleanNo
senior_subscriber_listsbooleanNo
shortlist_max_sizenumberNoAt least 0.
shortlist_decaynumberNoAt least 0.
shortlist_filter_againstbooleanNo
call_forwarding_auto_responsebooleanNo
call_forwarding_auto_response_messagestringNo1 to 400 characters.
block_anonymous_callsbooleanNo
allow_incoming_imagesbooleanNo
allow_outgoing_imagesbooleanNo
reassign_channel_on_idlebooleanNo
reassign_idle_timenumberNoOne of 5, 10, 15, 30, 45, 60, 90, 120, 180, 240, 480, 720, 1440.
allow_seniors_edit_usersbooleanNo
message_webhookstringNoUp to 255 characters.
allow_user_add_meta_databooleanNo
enable_block_contactsbooleanNo
open_time_restrictionstringNo5 to 5 characters.
close_time_restrictionstringNo5 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
  }
}
curl -X PUT "https://apiv2.entrancegrp.com/workspaces/:workspaceId/settings" \ -H "EGKS*********: uvY4tvyE*************" \ -H "Content-Type: application/json" \ -d '{ "channel_locking": true }'
GET /analytics/daily-stats
Get Daily Stats For Dashboard

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
}
curl -X GET "https://apiv2.entrancegrp.com/analytics/daily-stats" \ -H "EGKS*********: uvY4tvyE*************"
GET /workspaces/:workspaceId/daily-analytics
Daily Analytics

Role: admin, senior.

Path parameters

NameTypeRequiredNotes
workspaceIdintegerYesWorkspace id.

Query parameters

NameTypeRequiredAllowed valuesNotes
daysnumberNo1 to 90.How many days back. Default 7. Not with start and end.
startstringNoA date or timestamp. YYYY-MM-DD.First day, YYYY-MM-DD, America/New_York. Send with end.
endstringNoA 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
    }
  ]
}
curl -X GET "https://apiv2.entrancegrp.com/workspaces/:workspaceId/daily-analytics" \ -H "EGKS*********: uvY4tvyE*************"
GET /workspace-logs?lastid=0&limit=999&order=ASC
Get Logs

Role: admin.

Query parameters

NameTypeRequiredAllowed valuesNotes
lastidnumberNoCursor. Send the lastId from the previous page. last_id is also accepted.
orderstringNoOne of ASC, DESC.ASC or DESC. Default DESC.
limitnumberNo1 to 100.Page size. Default 20.
typestringNoOne of ALL, CALL_FORWARD, CAMPAIGN_LOG, CHANNEL_LOG.Only this kind of log.

Sample response

{
  "code": 200,
  "lastId": 0,
  "totalRecords": 0,
  "records": []
}
curl -X GET "https://apiv2.entrancegrp.com/workspace-logs?lastid=0&limit=999&order=ASC" \ -H "EGKS*********: uvY4tvyE*************"

Who has access

Assign a user to this workspace, or list who is already assigned.

GET /workspaces/:id/assigned
Get Workspace Users

Role: admin.

Path parameters

NameTypeRequiredNotes
idintegerYes

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"
    }
  ]
}
curl -X GET "https://apiv2.entrancegrp.com/workspaces/:id/assigned" \ -H "EGKS*********: uvY4tvyE*************"
POST /workspaces/:workspaceId/assign
Assign User To Workspace

Role: admin.

Path parameters

NameTypeRequiredNotes
workspaceIdintegerYesWorkspace id.

Body fields (JSON)

NameTypeRequiredAllowed valuesNotes
user_idnumberYesAt least 1.An existing user.
permissionstringNoOne 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
  }
}
curl -X POST "https://apiv2.entrancegrp.com/workspaces/:workspaceId/assign" \ -H "EGKS*********: uvY4tvyE*************" \ -H "Content-Type: application/json" \ -d '{ "user_id": 1, "permission": "user" }'
PATCH /workspaces/:workspaceId/assigned/:userId
Update User Assign Permission

Role: admin.

Path parameters

NameTypeRequiredNotes
workspaceIdintegerYesWorkspace id.
userIdintegerYes

Body fields (JSON)

NameTypeRequiredAllowed valuesNotes
permissionstringNoOne 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."
}
curl -X PATCH "https://apiv2.entrancegrp.com/workspaces/:workspaceId/assigned/:userId" \ -H "EGKS*********: uvY4tvyE*************" \ -H "Content-Type: application/json" \ -d '{ "permission": "senior" }'
DELETE /workspaces/:workspaceId/assigned/:userId
Delete User Assignment
curl -X DELETE "https://apiv2.entrancegrp.com/workspaces/:workspaceId/assigned/:userId" \ -H "EGKS*********: uvY4tvyE*************"

Automation

10 endpoints

Webhooks 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

NameTypeRequiredNotes
workspaceIdintegerYesWorkspace id.
userIdintegerYes

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.

GET /webhooks
Get All Webhooks

Role: admin.

Query parameters

NameTypeRequiredAllowed valuesNotes
lastidnumberNoAccepted, but not used.
orderstringNoOne of ASC, DESC.Accepted, but not used.
limitnumberNo1 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"
      ]
    }
  ]
}
curl -X GET "https://apiv2.entrancegrp.com/webhooks" \ -H "EGKS*********: uvY4tvyE*************"
GET /webhooks/events
Get Events

Role: admin.

Sample response

{
  "code": 200,
  "totalRecords": 9,
  "records": [
    {
      "event": "Channel Message Status",
      "subscription_name": "channelMessageStatus",
      "category": "Messages"
    }
  ]
}
curl -X GET "https://apiv2.entrancegrp.com/webhooks/events" \ -H "EGKS*********: uvY4tvyE*************"
GET /workspaces/:workspaceId/webhooks/:webhookId
Get Webhook

Role: admin.

Path parameters

NameTypeRequiredNotes
workspaceIdintegerYesWorkspace id. Only needed when the account has more than one workspace.
webhookIdintegerYes

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"
    ]
  }
}
curl -X GET "https://apiv2.entrancegrp.com/workspaces/:workspaceId/webhooks/:webhookId" \ -H "EGKS*********: uvY4tvyE*************"
POST /webhooks
Create Webhook

Role: admin.

Body fields (JSON)

NameTypeRequiredAllowed valuesNotes
namestringYes1 to 64 characters. Letters, digits, spaces, and . = & # ( ) % ? _ -.
urlstringYes1 to 512 characters. URL starting with http:// or https://.Must be unique among this workspace's webhooks.
subscriptionsarrayNoEach 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"
    ]
  }
}
curl -X POST "https://apiv2.entrancegrp.com/webhooks" \ -H "EGKS*********: uvY4tvyE*************" \ -H "Content-Type: application/json" \ -d '{ "name": "Example webhook", "url": "https://example.com/webhooks/new-message", "subscriptions": [ "newMessage" ] }'
DELETE /workspaces/:workspaceId/webhooks/:webhookId
Delete Webhook

Role: admin.

Path parameters

NameTypeRequiredNotes
workspaceIdintegerYesWorkspace id. Only needed when the account has more than one workspace.
webhookIdintegerYes

Sample response

{
  "code": 200,
  "message": "Successfully deleted workspace webhook.",
  "workspace_webhook_id": 1
}
curl -X DELETE "https://apiv2.entrancegrp.com/workspaces/:workspaceId/webhooks/:webhookId" \ -H "EGKS*********: uvY4tvyE*************"
POST /workspaces/:workspaceId/webhooks/:webhookId/subscribe
Subscribe To Events

Role: admin.

Path parameters

NameTypeRequiredNotes
workspaceIdintegerYesWorkspace id. Only needed when the account has more than one workspace.
webhookIdintegerYes

Body fields (JSON)

NameTypeRequiredAllowed valuesNotes
subscriptionsarrayYesEach 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)."
}
curl -X POST "https://apiv2.entrancegrp.com/workspaces/:workspaceId/webhooks/:webhookId/subscribe" \ -H "EGKS*********: uvY4tvyE*************" \ -H "Content-Type: application/json" \ -d '{ "subscriptions": [ "messageStatus", "newMessage" ] }'
POST /workspaces/:workspaceId/webhooks/:webhookId/unsubscribe
Unsubscribe From Events

Role: admin.

Path parameters

NameTypeRequiredNotes
workspaceIdintegerYesWorkspace id. Only needed when the account has more than one workspace.
webhookIdintegerYes

Body fields (JSON)

NameTypeRequiredAllowed valuesNotes
subscriptionsarrayYesEach 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)."
}
curl -X POST "https://apiv2.entrancegrp.com/workspaces/:workspaceId/webhooks/:webhookId/unsubscribe" \ -H "EGKS*********: uvY4tvyE*************" \ -H "Content-Type: application/json" \ -d '{ "subscriptions": [ "shortlinkClick" ] }'

Subscriber lists

List, create, and update opt-in lists. Fetching one list by id currently returns 500, so use the collection.

GET /subscriber-lists?last_id=9999999999999&limit=20&order=DESC&is_influencer_list=true
Get Subscriber Lists

Role: admin, senior.

Query parameters

NameTypeRequiredAllowed valuesNotes
lastidnumberNoCursor. Send the lastId from the previous page. last_id is also accepted.
orderstringNoOne of ASC, DESC.ASC or DESC. Default DESC.
limitnumberNo10 to 100.Page size.
is_influencer_listbooleanNoOnly influencer lists.
archivedbooleanNo
privatebooleanNo
searchstringNo1 to 24 characters.Matches the list name.
filterlistsbooleanNoReturns 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"
    }
  ]
}
curl -X GET "https://apiv2.entrancegrp.com/subscriber-lists?last_id=9999999999999&limit=20&order=DESC&is_influencer_list=true" \ -H "EGKS*********: uvY4tvyE*************"
POST /subscriber-lists
Create Subscriber List

Role: admin, senior, user.

Body fields (JSON)

NameTypeRequiredAllowed valuesNotes
namestringYes1 to 32 characters. Letters (accented too), digits, spaces, and - / . & ! _ ' ·.
isInfluencerListbooleanNotrue 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
  }
}
curl -X POST "https://apiv2.entrancegrp.com/subscriber-lists" \ -H "EGKS*********: uvY4tvyE*************" \ -H "Content-Type: application/json" \ -d '{ "name": "Spring list", "isInfluencerList": true }'
PUT /subscriber-lists/:subscriberListId
Update Subscriber List

Role: admin, senior, user.

Path parameters

NameTypeRequiredNotes
subscriberListIdintegerYes

Body fields (JSON)

NameTypeRequiredAllowed valuesNotes
namestringNo1 to 32 characters. Letters (accented too), digits, spaces, and - / . & ! _ ' ·.
privatebooleanNoA private list can only be changed by its owner or an admin.
archivebooleanNoArchive the list. This is how a list is removed.
is_influencer_listbooleanNo
influencer_number_idnumberNonull allowed.A workspace number id.
influencer_opt_in_messagestringNo1 to 800 characters.
addKeywordstringNo1 to 24 characters.Add an opt-in keyword.
removeKeywordstringNo1 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
    }
  ]
}
curl -X PUT "https://apiv2.entrancegrp.com/subscriber-lists/:subscriberListId" \ -H "EGKS*********: uvY4tvyE*************" \ -H "Content-Type: application/json" \ -d '{ "name": "Spring list", "private": true, "archive": true }'

Account

25 endpoints

Users, 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.

POST /authentication/login
Login

Role: any signed-in caller.

Body fields (JSON)

NameTypeRequiredAllowed valuesNotes
emailstringYesUp to 255 characters. Email address.
passwordstringNoRequired unless the website sends its own 2FA login code in twoFactorCode instead.
twoFactorCodestringNo6 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
    }
  }
}
curl -X POST "https://apiv2.entrancegrp.com/authentication/login" \ -H "EGKS*********: uvY4tvyE*************" \ -H "Content-Type: application/json" \ -d '{ "email": "john@example.com", "password": "example-password" }'
GET /authentication/logout
Logout

This GET ends the session.

Role: any signed-in caller.

Query parameters

NameTypeRequiredAllowed valuesNotes
client_idstringNo34 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"
  }
}
curl -X GET "https://apiv2.entrancegrp.com/authentication/logout" \ -H "EGKS*********: uvY4tvyE*************"
POST /authentication/refresh-token
Refresh Token

Role: any signed-in caller.

Body fields (JSON)

NameTypeRequiredAllowed valuesNotes
client_idstringYes34 to 34 characters.The client id.
refresh_tokenstringYesUp 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
    }
  }
}
curl -X POST "https://apiv2.entrancegrp.com/authentication/refresh-token" \ -H "EGKS*********: uvY4tvyE*************" \ -H "Content-Type: application/json" \ -d '{ "client_id": "example-client-id", "refresh_token": "example-refresh-token" }'

Users and groups

People who can log into the workspace, and the groups used by campaign permissions.

GET /user-groups/:userGroupId
Get User Group

Role: admin, senior.

Path parameters

NameTypeRequiredNotes
userGroupIdintegerYes

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"
  }
}
curl -X GET "https://apiv2.entrancegrp.com/user-groups/:userGroupId" \ -H "EGKS*********: uvY4tvyE*************"
GET /user-groups/:userGroupId/users
Get Users in Group

Role: admin, senior, user.

Path parameters

NameTypeRequiredNotes
userGroupIdintegerYes

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"
    }
  ]
}
curl -X GET "https://apiv2.entrancegrp.com/user-groups/:userGroupId/users" \ -H "EGKS*********: uvY4tvyE*************"
GET /user-groups?lastid=9999999999&limit=20&order=DESC
Get User Groups

Role: admin, senior, user.

Query parameters

NameTypeRequiredAllowed valuesNotes
lastidnumberNoCursor. Send the lastId from the previous page. last_id is also accepted.
orderstringNoOne of ASC, DESC.ASC or DESC. Default DESC.
limitnumberNoOne of 10, 20, 30, 40, 50, 60, 70, 80, 100.Page size.
allbooleanNo

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"
    }
  ]
}
curl -X GET "https://apiv2.entrancegrp.com/user-groups?lastid=9999999999&limit=20&order=DESC" \ -H "EGKS*********: uvY4tvyE*************"
GET /users/:id
Get User

Role: admin, senior, user.

Path parameters

NameTypeRequiredNotes
idintegerYes

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"
  }
}
curl -X GET "https://apiv2.entrancegrp.com/users/:id" \ -H "EGKS*********: uvY4tvyE*************"
GET /users?last_id=9999999999999&limit=20&order=DESC
Get All Workspace Users

Role: admin, senior.

Query parameters

NameTypeRequiredAllowed valuesNotes
lastidnumberNoCursor. Send the lastId from the previous page. last_id is also accepted.
orderstringNoOne of ASC, DESC.ASC or DESC. Default DESC.
limitnumberNoOne of 10, 20, 30, 40, 50, 60, 70, 80, 100.Page size.
permissionstringNoOne 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"
    }
  ]
}
curl -X GET "https://apiv2.entrancegrp.com/users?last_id=9999999999999&limit=20&order=DESC" \ -H "EGKS*********: uvY4tvyE*************"
POST /user-groups
Create User Group

Role: admin.

Body fields (JSON)

NameTypeRequiredAllowed valuesNotes
namestringYes1 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"
  }
}
curl -X POST "https://apiv2.entrancegrp.com/user-groups" \ -H "EGKS*********: uvY4tvyE*************" \ -H "Content-Type: application/json" \ -d '{ "name": "Support" }'
PATCH /user-groups/:id
Update User Group

Role: admin.

Path parameters

NameTypeRequiredNotes
idintegerYes

Body fields (JSON)

NameTypeRequiredAllowed valuesNotes
namestringNo1 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"
  }
}
curl -X PATCH "https://apiv2.entrancegrp.com/user-groups/:id" \ -H "EGKS*********: uvY4tvyE*************" \ -H "Content-Type: application/json" \ -d '{ "name": "Support" }'
DELETE /user-groups/:id
Delete User Group

Role: admin.

Path parameters

NameTypeRequiredNotes
idintegerYes

Also removes every assignment to the group.

Sample response

{
  "code": 200,
  "message": "Successfully deleted user group.",
  "user_group_id": 1
}
curl -X DELETE "https://apiv2.entrancegrp.com/user-groups/:id" \ -H "EGKS*********: uvY4tvyE*************"
POST /user-groups/:userGroupId/users
Add User To User Group

Role: admin.

Path parameters

NameTypeRequiredNotes
userGroupIdintegerYes

Body fields (JSON)

NameTypeRequiredAllowed valuesNotes
user_idnumberYesAt 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"
  }
}
curl -X POST "https://apiv2.entrancegrp.com/user-groups/:userGroupId/users" \ -H "EGKS*********: uvY4tvyE*************" \ -H "Content-Type: application/json" \ -d '{ "user_id": 1 }'
DELETE /user-groups/:userGroupId/users/:userId
Remove User From User Group

Role: admin.

Path parameters

NameTypeRequiredNotes
userGroupIdintegerYes
userIdintegerYes

Sample response

{
  "code": 200,
  "message": "User successfully deleted form the user group."
}
curl -X DELETE "https://apiv2.entrancegrp.com/user-groups/:userGroupId/users/:userId" \ -H "EGKS*********: uvY4tvyE*************"
POST /users
Add Workspace User

Role: admin.

Body fields (JSON)

NameTypeRequiredAllowed valuesNotes
emailstringYesEmail address.
firstnamestringYes1 to 20 characters. Letters (accented too), spaces, - and '. Cannot start or end with - or '.
lastnamestringYes1 to 20 characters. Letters (accented too), spaces, - and '. Cannot start or end with - or '.
phoneNumberstringYesPhone 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
  }
}
curl -X POST "https://apiv2.entrancegrp.com/users" \ -H "EGKS*********: uvY4tvyE*************" \ -H "Content-Type: application/json" \ -d '{ "email": "john@example.com", "firstname": "John", "lastname": "Doe", "phoneNumber": "15555550100" }'
PATCH /users/1
Update User

Role: any role. Fields are limited by role, see below.

Body fields (JSON)

NameTypeRequiredAllowed valuesNotes
phone_numberstringNo10 to 15 characters. Phone number, for example 15555550100.
passwordstringNo8 to 60 characters.Changes the password. Needs oldPassword. When password is sent, nothing else in the body is saved.
oldPasswordstringNo8 to 60 characters.The current password.
forward_numberstringNo10 to 15 characters. Phone number, for example 15555550100. null allowed.Where forwarded calls go. null clears it.
add_email_metabooleanNo
replace_email_metabooleanNo
call_forwarding_auto_responsebooleanNo
call_forwarding_auto_response_messagestringNo1 to 400 characters. null allowed.
firstnamestringNo1 to 20 characters. Letters (accented too), spaces, - and '. Cannot start or end with - or '.
lastnamestringNo1 to 20 characters. Letters (accented too), spaces, - and '. Cannot start or end with - or '.
view_only_personal_blastsbooleanNo
permissionstringNoOne of senior, user.Admin only.
claim_limitnumberNo1 to 32767.
claim_timenumberNo1 to 32767.
manual_blast_message_limitnumberNo1 to 32767.
disable_manual_blastsbooleanNo
manual_blast_approval_requiredbooleanNo
personal_campaignsbooleanNo
segment_budget_typestringNoOne of daily, monthly.
segment_budgetnumberNoAt least 0.
senior_personal_blasts_onlybooleanNo
push_notificationsbooleanNo
exclude_from_campaignsbooleanNo

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
    }
  ]
}
curl -X PATCH "https://apiv2.entrancegrp.com/users/1" \ -H "EGKS*********: uvY4tvyE*************" \ -H "Content-Type: application/json" \ -d '{ "exclude_from_campaigns": true }'
DELETE /users/:id?reassign_to=5
Delete Workspace User

Role: admin.

Path parameters

NameTypeRequiredNotes
idintegerYes

Query parameters

NameTypeRequiredAllowed valuesNotes
reassign_tonumberNoAt 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
}
curl -X DELETE "https://apiv2.entrancegrp.com/users/:id?reassign_to=5" \ -H "EGKS*********: uvY4tvyE*************"
POST /users/push-token
Add Push Token

Role: admin, senior, user.

Body fields (JSON)

NameTypeRequiredAllowed valuesNotes
tokenstringYes1 to 255 characters.
typestringNoOne of apns, expo, fcm.Default apns.
environmentstringNoOne 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."
}
curl -X POST "https://apiv2.entrancegrp.com/users/push-token" \ -H "EGKS*********: uvY4tvyE*************" \ -H "Content-Type: application/json" \ -d '{ "token": "ExponentPushToken[xxxxxxxxxxxxxxxxxxxxxx]" }'

API keys and billing

Keys for other users, and usage for this workspace.

GET /billing/usage
Get Usage

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
}
curl -X GET "https://apiv2.entrancegrp.com/billing/usage" \ -H "EGKS*********: uvY4tvyE*************"
GET /user-api-keys/12345
Get User Api Key

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"
  }
}
curl -X GET "https://apiv2.entrancegrp.com/user-api-keys/12345" \ -H "EGKS*********: uvY4tvyE*************"
DELETE /user-api-keys/:id
Delete User Api Key

Role: admin.

Path parameters

NameTypeRequiredNotes
idintegerYes

Sample response

{
  "code": 200,
  "message": "Successfully deleted user api key.",
  "user_api_key_id": 12345
}
curl -X DELETE "https://apiv2.entrancegrp.com/user-api-keys/:id" \ -H "EGKS*********: uvY4tvyE*************"
POST /user-api-keys/:id/refresh
Update User Api Key

Role: admin.

Path parameters

NameTypeRequiredNotes
idintegerYes

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": "…"
    }
  ]
}
curl -X POST "https://apiv2.entrancegrp.com/user-api-keys/:id/refresh" \ -H "EGKS*********: uvY4tvyE*************"
GET /user-api-keys?last_id=9999999999999&limit=20&order=DESC
Get User Api Keys in Workspace

Role: admin.

Query parameters

NameTypeRequiredAllowed valuesNotes
lastidnumberNoAccepted, but not used.
orderstringNoOne of ASC, DESC.Accepted, but not used.
limitnumberNo1 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"
    }
  ]
}
curl -X GET "https://apiv2.entrancegrp.com/user-api-keys?last_id=9999999999999&limit=20&order=DESC" \ -H "EGKS*********: uvY4tvyE*************"
POST /user-api-keys
Create User Api Key

Role: admin.

Body fields (JSON)

NameTypeRequiredAllowed valuesNotes
user_idnumberYesAt 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": "…"
  }
}
curl -X POST "https://apiv2.entrancegrp.com/user-api-keys" \ -H "EGKS*********: uvY4tvyE*************" \ -H "Content-Type: application/json" \ -d '{ "user_id": 1 }'

Phone numbers

Number pools group the numbers Entrance already assigned to the workspace.

POST /number-pools
Create

Role: admin.

Body fields (JSON)

NameTypeRequiredAllowed valuesNotes
namestringYes1 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"
  }
}
curl -X POST "https://apiv2.entrancegrp.com/number-pools" \ -H "EGKS*********: uvY4tvyE*************" \ -H "Content-Type: application/json" \ -d '{ "name": "Example profile" }'
GET /number-pools/:id
Get By Id

Role: admin, senior.

Path parameters

NameTypeRequiredNotes
idintegerYes

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"
  ]
}
curl -X GET "https://apiv2.entrancegrp.com/number-pools/:id" \ -H "EGKS*********: uvY4tvyE*************"

Node.js Module Usage

Installation

npm install entrancesms

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.

const appKey = 'EGKS*********'; const authKey = 'uvY4tvyE*************'; const response = await fetch('https://apiv2.entrancegrp.com/campaigns', { headers: { [appKey]: authKey } }); const body = await response.json();

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.

curl https://apiv2.entrancegrp.com/campaigns \ -H "EGKS*********: uvY4tvyE*************"

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.