curl -X GET https://snip.sa/api/urls/507f1f77bcf86cd799439011 \
-H "X-API-Key: your_api_key_here"
{
"success": true,
"data": {
"url": {
"_id": "507f1f77bcf86cd799439011",
"originalUrl": "https://example.com/page",
"shortCode": "abc123",
"customCode": "mylink",
"title": "My Link",
"description": "Link description",
"tags": ["marketing"],
"clickCount": 150,
"isActive": true,
"utm": {
"source": "newsletter",
"medium": "email"
},
"creator": {
"_id": "507f1f77bcf86cd799439012",
"firstName": "John",
"lastName": "Doe",
"email": "john@example.com"
},
"createdAt": "2024-01-15T10:30:00.000Z",
"updatedAt": "2024-01-15T10:30:00.000Z"
}
}
}
Retrieve details of a specific shortened URL
curl -X GET https://snip.sa/api/urls/507f1f77bcf86cd799439011 \
-H "X-API-Key: your_api_key_here"
{
"success": true,
"data": {
"url": {
"_id": "507f1f77bcf86cd799439011",
"originalUrl": "https://example.com/page",
"shortCode": "abc123",
"customCode": "mylink",
"title": "My Link",
"description": "Link description",
"tags": ["marketing"],
"clickCount": 150,
"isActive": true,
"utm": {
"source": "newsletter",
"medium": "email"
},
"creator": {
"_id": "507f1f77bcf86cd799439012",
"firstName": "John",
"lastName": "Doe",
"email": "john@example.com"
},
"createdAt": "2024-01-15T10:30:00.000Z",
"updatedAt": "2024-01-15T10:30:00.000Z"
}
}
}
curl -X GET https://snip.sa/api/urls/507f1f77bcf86cd799439011 \
-H "X-API-Key: your_api_key_here"
{
"success": true,
"data": {
"url": {
"_id": "507f1f77bcf86cd799439011",
"originalUrl": "https://example.com/page",
"shortCode": "abc123",
"customCode": "mylink",
"title": "My Link",
"description": "Link description",
"tags": ["marketing"],
"clickCount": 150,
"isActive": true,
"utm": {
"source": "newsletter",
"medium": "email"
},
"creator": {
"_id": "507f1f77bcf86cd799439012",
"firstName": "John",
"lastName": "Doe",
"email": "john@example.com"
},
"createdAt": "2024-01-15T10:30:00.000Z",
"updatedAt": "2024-01-15T10:30:00.000Z"
}
}
}