API REFERENCEv1

Short URL recipients

GEThttps://api2.protexting.com/v1/shorturl/recipients
⌘

Use Authorization: Bearer with your server-side token. Legacy access_token URLs remain supported. Replace sample values with your own. Authentication & setup →

Use your existing OAuth access_token query parameter, with the Short URL API app active. Send Accept: application/json and Content-Type: application/json for JSON writes. Action-scoped tokens can call only the permitted action. Every link action is limited to your owned, public, non-deleted parent links. Smart URLs is a separate system.

Only completed group-campaign recipients appear; their Date_Sent is the campaign completion timestamp. Other recipients use the saved send timestamp. Date filters restrict the engagement clicks and leave the recipient cohort intact; use clicked=0 or clicked=1 to filter by that engagement. The opt-out policy and account ownership remain enforced. The identical /v1/shorturl/sent-messages alias is also available.

GET /v1/shorturl/recipients

Sent recipients and human engagement. Campaigns require completed status; dates limit clicks, not send time.

Request parameters

FieldTypeDetails
idintegerRequired. Owned public link ID (or owned domain ID on domain/view).
pageintegerOptional.
per-pageintegerOptional.
numberstringOptional.
group_campaign_idintegerOptional.
from_date_timestringOptional. Inclusive database timestamp; click time is UTC. Invalid or reversed ranges fail with 422.
to_date_timestringOptional. Inclusive database timestamp; click time is UTC. Invalid or reversed ranges fail with 422.
idsstringOptional. Comma-separated row IDs, 1–100 per request; ownership and report filters still apply.
clickedinteger (0, 1)Optional. Click dates limit engagement, not send time.

Request example

Request example
# Set PROTEXTING_ACCESS_TOKEN in your environmentcurl --request GET \  "https://api2.protexting.com/v1/shorturl/recipients?id=123" \  --header 'Accept: application/json' \  --header "Authorization: Bearer ${PROTEXTING_ACCESS_TOKEN:?Set your API token}"
Server-side exampleJSON · HTTPS

Response parameters

FieldTypeDetails
Idinteger
Module_Idinteger
Reference_Idinteger
Numberstring
Date_Sentstring
Short_Urlstring
Clicksinteger
Last_Clicked_Atstring

Response example

Illustrative values only; replace IDs and URLs with your saved records.

JSON response example
[  {    "Id": 456,    "Number": "12025550123",    "Date_Sent": "2026-01-02 11:00:00",    "Module_Id": 6,    "Reference_Id": 789,    "Short_Url": "https://ptxt.io/example456",    "Clicks": 2,    "Last_Clicked_At": "2026-01-02 12:00:00"  }]

Pagination and dates

Use one-based page and per-page (1–100, default 100). Follow X-Pagination-Total-Count, X-Pagination-Page-Count, X-Pagination-Current-Page and X-Pagination-Per-Page. CSV returns one page, not an unbounded export. from_date_time/to_date_time use exact YYYY-MM-DD HH:MM:SS inclusive database timestamps; click timestamps are UTC. Invalid or reversed ranges return 422. Phone numbers are strings.

Sent messages alias

GET /v1/shorturl/sent-messages

Sent recipients and human engagement. Campaigns require completed status; dates limit clicks, not send time.

Request parameters

FieldTypeDetails
idintegerRequired. Owned public link ID (or owned domain ID on domain/view).
pageintegerOptional.
per-pageintegerOptional.
numberstringOptional.
group_campaign_idintegerOptional.
from_date_timestringOptional. Inclusive database timestamp; click time is UTC. Invalid or reversed ranges fail with 422.
to_date_timestringOptional. Inclusive database timestamp; click time is UTC. Invalid or reversed ranges fail with 422.
idsstringOptional. Comma-separated row IDs, 1–100 per request; ownership and report filters still apply.
clickedinteger (0, 1)Optional. Click dates limit engagement, not send time.

Request example

Request example
# Set PROTEXTING_ACCESS_TOKEN in your environmentcurl --request GET \  "https://api2.protexting.com/v1/shorturl/sent-messages?id=123" \  --header 'Accept: application/json' \  --header "Authorization: Bearer ${PROTEXTING_ACCESS_TOKEN:?Set your API token}"
Server-side exampleJSON · HTTPS

Response parameters

FieldTypeDetails
Idinteger
Module_Idinteger
Reference_Idinteger
Numberstring
Date_Sentstring
Short_Urlstring
Clicksinteger
Last_Clicked_Atstring

Add recipients to a group

Use the existing Contacts API with the returned numbers: find the contact, then update its GroupIds with the union of saved and selected groups. This uses the existing Contacts API entitlement and group-management behavior. No messaging request is needed.

HTTP status codes

200 success; create/add return 201; link deletion returns 204 without a body. 401: missing/invalid token or disabled API app. 403: denied scope or tracking entitlement. 404: unavailable link or disabled domain feature. 405: wrong HTTP method. 409: reset already in progress. 422: invalid input, invalid dates or unavailable/foreign domain. 503: allocation/custom-deletion failure or unavailable reset signing. Other database/provider failures remain server errors.

Reference from the ProTexting documentation catalog. Code examples are illustrative; this page does not execute API requests.