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": "jK3yPCK",
"restrict_to_org": false,
"url": "https://eL.O49PQXkw.com/Q/rDu"
}'
201 Created
Response{
"key": "6AVzEDtWZtf2WUpL4h",
"url": "https://vZR2m.AAnZUXqWDnS.com/UrOVL8s9Q/oq9010Gu"
}