Short URL click details
https://api2.protexting.com/v1/shorturl/detailsUse 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.
The established view-short-url documentation address still describes /v1/shorturl/details. The endpoint returns individual human click events by default. group_by_number=1 returns the latest matching event per number, with anonymous public clicks in one group. ids selects up to 100 row IDs while retaining ownership and report filters. Proven bots and deleted/reset events are excluded. Currently opted-out recipients are hidden only when the link preference is enabled; anonymous public clicks remain. country filters the stored country name. Raw automated request logs are not exposed.
GET /v1/shorturl/details
Paginated canonical human clicks with opt-out policy. Includes public anonymous clicks and excludes proven bots, deleted events and foreign recipient mappings.
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. |
| group_by_number | integer (0, 1) | Optional. Return the latest matching human click per recipient number. Anonymous public clicks form one group. |
| city | string | Optional. |
| state | string | Optional. |
| country | string | Optional. |
| device | string | Optional. |
Request example
# Set PROTEXTING_ACCESS_TOKEN in your environmentcurl --request GET \ "https://api2.protexting.com/v1/shorturl/details?id=123" \ --header 'Accept: application/json' \ --header "Authorization: Bearer ${PROTEXTING_ACCESS_TOKEN:?Set your API token}"Response parameters
| Field | Type | Details |
|---|---|---|
| Number | string | |
| DateTime | string | |
| City | string | |
| State | string | |
| Country | string | |
| Country_Code | string | |
| Device | string | |
| Short_Url | string | |
| Referrer | string | |
| IP_Address | string | |
| Id | integer | |
| Campaign_Id | integer |
Response example
Illustrative values only; replace IDs and URLs with your saved records.
[ { "Id": 456, "Number": "12025550123", "DateTime": "2026-01-02 12:00:00", "City": "Example city", "State": "Example region", "Country": "United States", "Country_Code": "US", "Device": "phone", "Short_Url": "https://ptxt.io/example456", "Referrer": "", "IP_Address": "192.0.2.1", "Campaign_Id": 789 }]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.
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.