API → UsersCreate a shortlink for a user

Parameters

Name

Type

Req.

Returns

  • 201 Created

    successful creation

    Name

    Type

    Req.

    body

    object
    optional
    Object Properties
    • key

      string
      optional
    • url

      string / URL
      optional
post
/user/shortlinks
$ curl -X POST "https://api.zoo.dev/user/shortlinks" \
	--header "Authorization: Bearer $TOKEN" \
	--header "Content-Type: application/json" \
	--data '{
  "password": "GO4MDN5jOHzGw9H9uq7hrnj",
  "restrict_to_org": true,
  "url": "https://w.ZJ.com/F4m6D6hrBzL/"
}'
201 Created
Response
{
  "key": "NgQDniSqE7I35bl24",
  "url": "https://KTkOkHhc.aRF.com/NW/U"
}