API → Users → Create a shortlink for a user
Parameters
Name
Type
Req.
bodyapplication/json
objectoptionalObject Properties
Returns
- 201 Created
successful creation
Name
Type
Req.
post
/user/shortlinks$ curl -X POST "https://api.zoo.dev/user/shortlinks" \
--header "Authorization: Bearer $TOKEN" \
--header "Content-Type: application/json" \
--data '{
"password": "YV4QeClv",
"restrict_to_org": false,
"url": "https://uMWdZiU.Nt8S7FrcMRrc.com//K"
}'
201 Created
Response{
"key": "N5CAkgCeGRJ9wQ",
"url": "https://oZnK7eDu8BJB.pq5PSp8.com/jIGFMx/we2nshPN"
}