curl --request POST \
--url https://api.smartlyq.com/v1/urls/shorten \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "<string>",
"slug": "<string>"
}
'{
"success": true,
"data": {
"id": 123,
"short_url": "<string>",
"long_url": "<string>",
"slug": "<string>",
"created_at": "2023-11-07T05:31:56Z"
},
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
}curl --request POST \
--url https://api.smartlyq.com/v1/urls/shorten \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "<string>",
"slug": "<string>"
}
'{
"success": true,
"data": {
"id": 123,
"short_url": "<string>",
"long_url": "<string>",
"slug": "<string>",
"created_at": "2023-11-07T05:31:56Z"
},
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
}