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