Update only the status of a URL (ACTIVE / INACTIVE).
Toggle a URL between active and inactive without modifying other properties.
Authentication: Required — you must own the URL.
API Key Scope: urls:manage or admin:all
Rate Limits: 120/min, 2,000/day
Status Values:
ACTIVE — URL is accessible and redirects normallyINACTIVE — URL is disabled and returns an error pageUse Cases:
INACTIVE to temporarily disable redirects without deleting the URLACTIVE to re-enable a previously disabled URLAPI key authentication. Pass your key as: Bearer spoo_<your_key>
Unique identifier of the URL
Request body for updating only the status of a shortened URL.
New status for the URL. ACTIVE enables redirects, INACTIVE disables them.
ACTIVE, INACTIVE "ACTIVE"
Successful Response
Response body after a successful URL update (PATCH /api/v1/urls/{url_id}).
MongoDB ObjectId of the URL.
"507f1f77bcf86cd799439011"
Whether the URL is password-protected.
Last update time as Unix timestamp.
1704067200
Short code.
"mylink"
Destination URL.
"https://example.com/long/url"
URL status.
"ACTIVE"
Click limit, or null if unlimited.
100
Expiration as Unix timestamp, or null.
1735689599
Whether bot blocking is enabled.
Whether statistics are private.