Utwórz krótki URL
Tworzy nowy krótki URL dla linku docelowego. Opcjonalnie można ustawić własny slug, ochronę hasłem, czas wygaśnięcia i tagi do organizacji.
Header Parameters
Request Body
application/json
Short URL configuration
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/api/v1/shorten" \ -H "Authorization: string" \ -H "Content-Type: application/json" \ -d '{ "domain": "s.ee", "target_url": "string" }'{ "code": 0, "data": { "custom_slug": "string", "short_url": "string", "slug": "string" }, "message": "string"}