API REFERENCEv1

Short URL response time frames

GEThttps://api2.protexting.com/v1/shorturl/response-windows
⌘

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.

These are presentation preferences, not sending schedules. Supply 1–8 windows. Elapsed units are seconds, minutes, hours, days, weeks and months; months mean 30 days and the maximum duration is 366 days. Calendar windows use inclusive from/to dates between 2000-01-01 and 2100-12-31, spanning at most 366 days. Calendar and campaign-completion behavior follow the account/UI timezone and DST rules. Saving time frames sends nothing.

GET /v1/shorturl/response-windows

Read saved presentation time frames.

Request parameters

FieldTypeDetails
idintegerRequired. Owned public link ID (or owned domain ID on domain/view).

Request example

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

Response parameters

FieldTypeDetails
windowsarray

Response example

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

JSON response example
{  "windows": [    {      "type": "elapsed",      "value": 5,      "unit": "minutes"    },    {      "type": "calendar",      "from": "2026-01-01",      "to": "2026-01-02"    }  ]}
PUT alternative

PUT /v1/shorturl/response-windows

Save 1–8 presentation time frames. Elapsed duration maximum 366 days; months mean 30 days. Calendar dates follow the shared UI validation and timezone rules.

Request parameters

FieldTypeDetails
idintegerRequired. Owned public link ID (or owned domain ID on domain/view).

JSON body

FieldTypeDetails
windowsarrayRequired.

Request example

Request example
# Set PROTEXTING_ACCESS_TOKEN in your environmentcurl --request PUT \  "https://api2.protexting.com/v1/shorturl/response-windows?id=123" \  --header 'Accept: application/json' \  --header "Authorization: Bearer ${PROTEXTING_ACCESS_TOKEN:?Set your API token}" \  --header 'Content-Type: application/json' \  --data '{  "windows": [    {      "type": "elapsed",      "value": 5,      "unit": "minutes"    },    {      "type": "calendar",      "from": "2026-01-01",      "to": "2026-01-02"    }  ]}'
Server-side exampleJSON · HTTPS
POST alternative

POST /v1/shorturl/response-windows

Save 1–8 presentation time frames. Elapsed duration maximum 366 days; months mean 30 days. Calendar dates follow the shared UI validation and timezone rules.

Request parameters

FieldTypeDetails
idintegerRequired. Owned public link ID (or owned domain ID on domain/view).

JSON body

FieldTypeDetails
windowsarrayRequired.

Request example

Request example
# Set PROTEXTING_ACCESS_TOKEN in your environmentcurl --request POST \  "https://api2.protexting.com/v1/shorturl/response-windows?id=123" \  --header 'Accept: application/json' \  --header "Authorization: Bearer ${PROTEXTING_ACCESS_TOKEN:?Set your API token}" \  --header 'Content-Type: application/json' \  --data '{  "windows": [    {      "type": "elapsed",      "value": 5,      "unit": "minutes"    },    {      "type": "calendar",      "from": "2026-01-01",      "to": "2026-01-02"    }  ]}'
Server-side exampleJSON · HTTPS

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.