Reset Short URL click data
https://api2.protexting.com/v1/shorturl/reset-clicksUse 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.
This action clears all recorded clicks for the selected public link and its owned recipient links, including clicks hidden by the opt-out setting. It leaves other links/accounts untouched. Confirm with confirm=RESET. Each response processes bounded batches. If complete=false, send the returned signed continuation with the same confirmation, sequentially, until complete=true. processed counts rows changed in this call. Tokens are bound to account/link and expire after one hour. Retain them only while completing the reset; stale retries may clear newer clicks within scope. An expired token requires starting again with confirmation. Reporting caches are invalidated during a partial reset too.
POST /v1/shorturl/reset-clicks
Reset a bounded batch including hidden clicks. Confirm RESET and sequentially follow signed account/link-bound continuation tokens until complete. Tokens expire after one hour. Retain them only while completing the reset; stale retries may clear newer clicks.
Request parameters
| Field | Type | Details |
|---|---|---|
| id | integer | Required. Owned public link ID (or owned domain ID on domain/view). |
JSON body
| Field | Type | Details |
|---|---|---|
| confirm | string (RESET) | Required. |
| continuation | string | Optional. |
Request example
# Set PROTEXTING_ACCESS_TOKEN in your environmentcurl --request POST \ "https://api2.protexting.com/v1/shorturl/reset-clicks?id=123" \ --header 'Accept: application/json' \ --header "Authorization: Bearer ${PROTEXTING_ACCESS_TOKEN:?Set your API token}" \ --header 'Content-Type: application/json' \ --data '{ "confirm": "RESET"}'Response parameters
| Field | Type | Details |
|---|---|---|
| complete | boolean | |
| processed | integer | |
| continuation | string |
Response example
Illustrative values only; replace IDs and URLs with your saved records.
{ "complete": false, "processed": 1000, "continuation": "<signed continuation returned by the API>"}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.