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": "znU909zZYfUnRvZGNc",
"restrict_to_org": true,
"url": "https://yxxqCZIRmUtc.IRQ.com/4cZ/Iog1xbPZXt"
}'
201 Created
Response{
"key": "c",
"url": "https://f82avI2bUy.h.com/DrQIZ4Jy/RgzL4"
}