An API key is required to use the shortcut. Get one from your dashboard before you start. See API keys for instructions.
Use the premade shortcut
Manual setup
If you prefer to build the shortcut yourself or need to customise it, follow the steps below in the iOS Shortcuts app.Add a URL action
Create a new shortcut and add a URL action. Set the value to:This is the endpoint the shortcut will send requests to.
Add a Get Contents of URL action
Add a Get Contents of URL action and configure it as follows:
- Method: POST
- Headers:
Authorization→Bearer YOUR_API_KEYContent-Type→application/json
- Request body: JSON
- Add a field with the key
urland set the value to the URL you want to shorten (you can use a variable such as Shortcut Input here)
- Add a field with the key
Extract the short URL from the response
Add a Get Dictionary Value action. Set it to get the value for the key
shortUrl from the Contents of URL result.This extracts the shortened URL string from the JSON response.Next steps
API keys
Generate and manage API keys for your account.
API reference
Explore the full API if you want to build deeper integrations.