πŸ’‘ Pro feature
This functionality is only available on the Pro plan.

URL Shortening

We support URL shortening for Pro projects!

You can shorten your links either via the Dynalinks Console UI or by using our REST API.

  1. Go to your project’s console page.
  2. Click on Links in the top bar.
  3. Find the existing link you want to shorten and click on the three dots on the right side.
  4. Click Edit.
  5. In the Edit Link form, click on Generate next to the Shortened Path field.

After generating, the shortened link will be ready to use!


Keep in mind, that you need to create a link first before you can shorten it.
You can shorten a link programmatically using the following endpoint:

POST https://dynalinks.app/api/v1/short_links/

Example payload:

{
  "url": "https://your-project-subdomain.dynalinks.app/yourExistingLink"
}

Example response:

{
  "shortened_path": "4vsz"
}

You can now access your link via:

https://your-project-subdomain.dynalinks.app/{shortened_path}

If you want to retrieve the original link from a shortened one, use:

POST /api/v1/short_links/resolve

Example payload:

{
  "url": "https://your-project-subdomain.dynalinks.app/4vsz"
}

Example response:

{
  "path": "yourOriginalPath"
}

For more details about our REST API, please refer to the API documentation.