API REFERENCEv1

List Short URLs

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

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.

Search owned public links with q. Creation-date filters apply to link creation, not clicks. Recipient links and deleted links are excluded. Results are ordered newest first.

GET /v1/shorturl/index

List owned public nondeleted links, newest first.

Request parameters

FieldTypeDetails
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.
qstringOptional.
activeinteger (0, 1)Optional.
track_numbersinteger (0, 1)Optional.
exclude_optoutsinteger (0, 1)Optional.

Request example

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

Response parameters

FieldTypeDetails
Idinteger
Track_Numbersinteger
Add_Numberinteger
No_Protocolinteger
Activeinteger
Exclude_Optoutsinteger
Custom_Urlinteger
Can_Edit_Urlinteger
Titlestring
Short_Urlstring
Original_Urlstring
Date_Createdstring
Keywordstring

Response example

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

JSON response example
[  {    "Id": 123,    "Title": "Example offer",    "Short_Url": "https://ptxt.io/example123",    "Original_Url": "https://example.com/offer",    "Date_Created": "2026-01-01 10:00:00",    "Track_Numbers": 0,    "Add_Number": 0,    "No_Protocol": 0,    "Active": 1,    "Exclude_Optouts": 0,    "Keyword": "example123",    "Custom_Url": 0,    "Can_Edit_Url": 1  }]

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.

Number tracking and statistics

track_numbers requires the account tracking entitlement. add_number passes a recipient number to the destination and requires tracking. The per-link exclude_optouts reporting preference defaults off; switching it on hides currently opted-out recipients from historical and future reports without deleting clicks. Switching it off restores visibility. This setting does not change sending eligibility or consent.

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.