Short URL recipients
https://api2.protexting.com/v1/shorturl/recipientsUse 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
| Field | Type | Details |
|---|---|---|
| id | integer | Required. Owned public link ID (or owned domain ID on domain/view). |
| page | integer | Optional. |
| per-page | integer | Optional. |
| number | string | Optional. |
| group_campaign_id | integer | Optional. |
| from_date_time | string | Optional. Inclusive database timestamp; click time is UTC. Invalid or reversed ranges fail with 422. |
| to_date_time | string | Optional. Inclusive database timestamp; click time is UTC. Invalid or reversed ranges fail with 422. |
| ids | string | Optional. Comma-separated row IDs, 1–100 per request; ownership and report filters still apply. |
| clicked | integer (0, 1) | Optional. Click dates limit engagement, not send time. |
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}"Response parameters
| Field | Type | Details |
|---|---|---|
| Id | integer | |
| Module_Id | integer | |
| Reference_Id | integer | |
| Number | string | |
| Date_Sent | string | |
| Short_Url | string | |
| Clicks | integer | |
| Last_Clicked_At | string |
Response example
Illustrative values only; replace IDs and URLs with your saved records.
[ { "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
| Field | Type | Details |
|---|---|---|
| id | integer | Required. Owned public link ID (or owned domain ID on domain/view). |
| page | integer | Optional. |
| per-page | integer | Optional. |
| number | string | Optional. |
| group_campaign_id | integer | Optional. |
| from_date_time | string | Optional. Inclusive database timestamp; click time is UTC. Invalid or reversed ranges fail with 422. |
| to_date_time | string | Optional. Inclusive database timestamp; click time is UTC. Invalid or reversed ranges fail with 422. |
| ids | string | Optional. Comma-separated row IDs, 1–100 per request; ownership and report filters still apply. |
| clicked | integer (0, 1) | Optional. Click dates limit engagement, not send time. |
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}"Response parameters
| Field | Type | Details |
|---|---|---|
| Id | integer | |
| Module_Id | integer | |
| Reference_Id | integer | |
| Number | string | |
| Date_Sent | string | |
| Short_Url | string | |
| Clicks | integer | |
| Last_Clicked_At | string |
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.
Related Short URL reference
Reference from the ProTexting documentation catalog. Code examples are illustrative; this page does not execute API requests.