POST
/url/create
curl \
--request POST 'https://call.xap3y.space/v1/url/create' \
--header "X-API-Key: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"url":"https://example.com","uniqueId":"string","maxUses":-1}'
Request examples
{
"url": "https://example.com",
"uniqueId": "string",
"maxUses": -1
}
Response examples (200)
{
"error": true,
"timestamp": "2025-05-04T09:42:00Z",
"uniqueId": "string",
"message": {
"uniqueId": "string",
"originalUrl": "string",
"visits": 42,
"maxUses": -1,
"createdAt": "2025-05-04T09:42:00Z",
"expiresAt": "string",
"urlSet": {
"webUrl": "https://example.com",
"portalUrl": "https://example.com",
"rawUrl": "https://example.com",
"shortUrl": "https://example.com",
"customUrl": "https://example.com"
},
"uploader": {
"uid": 42,
"username": "string",
"role": "OWNER",
"avatar": "string",
"createdAt": "2025-05-04T09:42:00Z",
"invitor": {
"uid": 42,
"username": "string",
"role": "OWNER",
"avatar": "string",
"createdAt": "2025-05-04T09:42:00Z"
}
}
}
}
Response examples (400)
{
"error": true,
"timestamp": "2025-05-04T09:42:00Z",
"uniqueId": "string"
}