Mon-Fri 10am - 6pm
Get URL Link Details
Base URL for your account: https://cpaas.studio
GET
/api/v1/urlinks/{id}
Fetches detailed information for a specific URL link.
Parameters
| Param | Type | Required | Notes |
|---|---|---|---|
id |
integer | yes | The ID of the URL link. |
Request example
curl -X GET "https://cpaas.studio/api/v1/urlinks/15" \
-H "X-API-KEY: cpk_xxxxxxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
<?php
$ch = curl_init('https://cpaas.studio/api/v1/urlinks/15');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['X-API-KEY: cpk_xxxxxxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'],
]);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);
Success response (data)
{
"id": 15,
"name": "Summer Promo Landing Page",
"slug": "summer-promo",
"redirect_url": "https://example.com/promotions/summer-2026",
"status": "approved",
"auto_renew": true,
"clicks_count": 42,
"rejection_reason": null,
"credits_consumed": 1,
"refunded_credits": 0,
"approved_at": "2026-09-16T18:00:00+00:00",
"last_renewed_at": null,
"expires_at": "2027-09-16T17:46:25+00:00",
"created_at": "2026-09-16T17:46:25+00:00"
}
Errors
| Code | Status | When |
|---|---|---|
URL_LINK_NOT_FOUND |
404 | No link with that ID belongs to your account. |
Need more context? See Getting started for authentication, the response envelope, and the full error-code reference.