Create Link
POST
https://api-sandbox.slimlinkdev.com/api/v1/links/
Create Link
Request body
{
"longUrl": "https://example.com/",
"domain": "06a447a7-5734-48b0-9dab-021576f0e0d1",
"path": "zgdssgd",
"title": "example",
"deepLink": "string",
"tags": [],
"expiredAt": "2024-01-01T00:00:00Z"
}
Responses
200
Successful operation
401
Unauthorized
422
Validation error
Example response · 200
{
"data": {
"id": "06a447a7-5734-48b0-9dab-021576f0e0d1",
"path": "zgdssgd",
"shortUrl": "https://short.link/zgdssgd",
"longUrl": "https://example.com/",
"title": "example",
"domain": "06a447a7-5734-48b0-9dab-021576f0e0d1",
"tags": [],
"totalNumberOfClick": 0,
"createdAt": "2024-01-01T00:00:00Z",
"updatedAt": "2024-01-01T00:00:00Z",
"expiredAt": "2024-01-01T00:00:00Z"
},
"error_code": 0,
"message": "Request successful"
}