API → Shortlinks → 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": "C6gMGtQqkLzZN2",
"restrict_to_org": true,
"url": "https://tOFJt5SHSwbR.nn2Jub65Qtc.com/hfKzLv/9MXaTgib"
}'
201 Created
Response{
"key": "vbn",
"url": "https://r9zOjd3YF..com/nEnya9FcKVuB/TQLh1i"
}