Routes (management API)
Routes are your deep link paths, such as /product/:token. Any endpoint that takes {route} accepts the route’s ID, prefix, short code or name. For what each setting does, see the user guide.
Every path also works under /v1/manage/appspaces/{appspace}, which you need when an OAuth token reaches more than one Appspace. See the management API overview for signing in, errors, dry runs and paging.
| Method | Path | What it does | Permission |
|---|---|---|---|
GET | /v1/manage/routes | List routes | Read |
POST | /v1/manage/routes | Create a route | Read and write |
GET | /v1/manage/routes/{route} | Get a route | Read |
PATCH | /v1/manage/routes/{route} | Change a route | Read and write |
DELETE | /v1/manage/routes/{route} | Delete a route | Read and write |
PUT | /v1/manage/routes/qr-style | Set the QR code style | Read and write |
POST | /v1/manage/routes/{route}/restore | Restore a deleted route | Read and write |
POST | /v1/manage/routes/{route}/short-code | Make a new short code | Read and write |
List routes
Section titled “List routes”/v1/manage/routesPermission: Read.
The Appspace’s routes, oldest first, paged with cursor.
Query parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
search | string | No | Only routes whose name or prefix contains this text. |
limit | integer | No | How many to return, 1 to 100 (default 50). |
cursor | string | No | From the previous page’s next_cursor, to get the page after it. |
Response 200: a page of results in data, and next_cursor for the next page (see Paging). Each item:
| Field | Type | Description |
|---|---|---|
id | string | The route’s id. Any endpoint taking {route} also takes its prefix, short code or name. |
name | string | |
prefix | string | The path it answers; {token} marks where the link’s value sits. |
link | string | The full link on the primary domain, with :token where the value goes. |
short_link | string or null | |
type | static, dynamic | |
template | string | What people without the app see, in words. |
web_fallback_url | string or null | |
created | string | |
updated | string | |
updated_at | string | Send as expected_updated_at when changing it, so a change made since isn’t overwritten. |
Create a route
Section titled “Create a route”/v1/manage/routesPermission: Read and write. Changes something: takes dry_run and Idempotency-Key, and needs the Standard plan or above.
The dashboard’s rules apply: the plan’s route limit (403 plan_limit), a path another route already answers (409 conflict), reserved prefixes, and a landing page for the custom template. Send Idempotency-Key so a retry never makes two. With dry_run, nothing changes: the answer is { dry_run: true, before, after, changes, warnings }.
Query parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
dry_run | true, false | No | true: check and preview the change without making it (the same as dry_run in the body). |
Request body (JSON):
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | The route’s name, for your team, such as “Product pages”. |
prefix | string | No | The path the route answers, such as product (links look like /product/42) or product/:token/reviews when the value sits in the middle. Letters, numbers and hyphens, up to 3 parts. A static route may leave it out, and gets its short code as its path. |
description | string or null | No | A note for your team about what the route is for. Not shown to visitors. |
type | dynamic, static | No | dynamic (default): the link carries a value, such as /product/42, and the app gets it. static: one fixed link, such as /spring-sale, with no value. |
template | standard, generic, custom, none | No | What people without the app see. standard (also written generic): Tolinku’s page with your app icon and store buttons. custom: a landing page you designed (set landing_page_id). none: no page, straight to the app, the store or the web fallback. A new dynamic route defaults to standard, a new static one to none. |
landing_page_id | string or null | No | The landing page to show, for the custom template. Must be one of this Appspace’s landing pages. |
web_fallback_url | string or null | No | Where desktop visitors (and phones without the app, with the none template and no store link) go. May contain {token}, replaced by the link’s value. Empty: the Appspace’s web fallback. |
root_url | string or null | No | Dynamic routes only: where the route goes when opened with no value (/product on its own). Empty: the web fallback with {token} removed. |
data_endpoint | string or null | No | An address your app can fetch for the link’s data (the data endpoint), passed to the app with the link. |
social_title | string or null | No | The title shown when the link is pasted into a chat or a post (og:title). |
social_description | string or null | No | The description in link previews (og:description). |
social_image | string or null | No | The image address for link previews (og:image). |
social_from_fallback | boolean | No | Take the link preview from the web fallback page instead. |
universal_links | boolean | No | Whether iPhones open the app straight from this route (Universal Links). Default true. When false, iOS sends the tap to Tolinku first. |
forward_query_params | boolean | No | Pass the link’s query parameters (?utm_source=…) on to the app and the web fallback. |
prefer_web_on_mobile | boolean | No | With the none template: send phones without the app to the web fallback instead of the store. |
return_to_fallback | boolean | No | With the none template and a web fallback: after the store, send people on to the web fallback. Default true. |
expires_at | string or null | No | When the route stops working (ISO 8601, such as 2026-12-31T23:59:00Z). A new time in the past means no expiry; on a change, the route’s current expiry sent back as it is stays, even once past. Empty: never expires. |
max_clicks | integer or null | No | Stop working after this many clicks. Empty: no limit. |
expired_redirect_url | string or null | No | Where people go once the route has expired or reached its click limit. Empty: an expired page. |
Response 201: the result in data, with warnings. With dry_run, a preview instead.
| Field | Type | Description |
|---|---|---|
id | string | The route’s id. Any endpoint taking {route} also takes its prefix, short code or name. |
name | string | |
prefix | string | The path it answers; {token} marks where the link’s value sits. |
link | string | The full link on the primary domain, with :token where the value goes. |
short_link | string or null | |
type | static, dynamic | |
template | string | What people without the app see, in words. |
web_fallback_url | string or null | |
created | string | |
updated | string | |
updated_at | string | Send as expected_updated_at when changing it, so a change made since isn’t overwritten. |
description | string or null | |
destinations | object | |
destinations.in_app_path | string | |
destinations.web_fallback_url | string or null | |
destinations.root_url | string or null | |
destinations.expired_redirect_url | string or null | |
destinations.landing_page | string or null | |
universal_links | boolean | |
forward_query_params | boolean | |
prefer_web_on_mobile | boolean | |
expires_at | string or null | |
max_clicks | number or null | |
social_preview | object or null | |
social_preview.title | string or null | |
social_preview.description | string or null |
Get a route
Section titled “Get a route”/v1/manage/routes/{route}Permission: Read.
One route in full: destinations, Universal Links, query forwarding, expiry and click limit, link preview.
Path parameters:
| Parameter | Description |
|---|---|
route | The route: its id, prefix (product), short code or name. URL-encode a prefix with slashes. |
Response 200: the result in data.
| Field | Type | Description |
|---|---|---|
id | string | The route’s id. Any endpoint taking {route} also takes its prefix, short code or name. |
name | string | |
prefix | string | The path it answers; {token} marks where the link’s value sits. |
link | string | The full link on the primary domain, with :token where the value goes. |
short_link | string or null | |
type | static, dynamic | |
template | string | What people without the app see, in words. |
web_fallback_url | string or null | |
created | string | |
updated | string | |
updated_at | string | Send as expected_updated_at when changing it, so a change made since isn’t overwritten. |
description | string or null | |
destinations | object | |
destinations.in_app_path | string | |
destinations.web_fallback_url | string or null | |
destinations.root_url | string or null | |
destinations.expired_redirect_url | string or null | |
destinations.landing_page | string or null | |
universal_links | boolean | |
forward_query_params | boolean | |
prefer_web_on_mobile | boolean | |
expires_at | string or null | |
max_clicks | number or null | |
social_preview | object or null | |
social_preview.title | string or null | |
social_preview.description | string or null |
Change a route
Section titled “Change a route”/v1/manage/routes/{route}Permission: Read and write. Changes something: takes dry_run and Idempotency-Key, and needs the Standard plan or above.
Only the fields sent change. Send expected_updated_at (the updated_at you read) and a change made in the meantime is refused with 412 instead of overwritten. With dry_run, nothing changes: the answer is { dry_run: true, before, after, changes, warnings }.
Path parameters:
| Parameter | Description |
|---|---|
route | The route: its id, prefix (product), short code or name. URL-encode a prefix with slashes. |
Query parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
dry_run | true, false | No | true: check and preview the change without making it (the same as dry_run in the body). |
Request body (JSON):
| Field | Type | Required | Description |
|---|---|---|---|
name | string | No | A new name. |
prefix | string | No | A new path. Links already shared with the old one stop working. |
description | string or null | No | A note for your team about what the route is for. Not shown to visitors. |
type | dynamic, static | No | dynamic (default): the link carries a value, such as /product/42, and the app gets it. static: one fixed link, such as /spring-sale, with no value. |
template | standard, generic, custom, none | No | What people without the app see. standard (also written generic): Tolinku’s page with your app icon and store buttons. custom: a landing page you designed (set landing_page_id). none: no page, straight to the app, the store or the web fallback. A new dynamic route defaults to standard, a new static one to none. |
landing_page_id | string or null | No | The landing page to show, for the custom template. Must be one of this Appspace’s landing pages. |
web_fallback_url | string or null | No | Where desktop visitors (and phones without the app, with the none template and no store link) go. May contain {token}, replaced by the link’s value. Empty: the Appspace’s web fallback. |
root_url | string or null | No | Dynamic routes only: where the route goes when opened with no value (/product on its own). Empty: the web fallback with {token} removed. |
data_endpoint | string or null | No | An address your app can fetch for the link’s data (the data endpoint), passed to the app with the link. |
social_title | string or null | No | The title shown when the link is pasted into a chat or a post (og:title). |
social_description | string or null | No | The description in link previews (og:description). |
social_image | string or null | No | The image address for link previews (og:image). |
social_from_fallback | boolean | No | Take the link preview from the web fallback page instead. |
universal_links | boolean | No | Whether iPhones open the app straight from this route (Universal Links). Default true. When false, iOS sends the tap to Tolinku first. |
forward_query_params | boolean | No | Pass the link’s query parameters (?utm_source=…) on to the app and the web fallback. |
prefer_web_on_mobile | boolean | No | With the none template: send phones without the app to the web fallback instead of the store. |
return_to_fallback | boolean | No | With the none template and a web fallback: after the store, send people on to the web fallback. Default true. |
expires_at | string or null | No | When the route stops working (ISO 8601, such as 2026-12-31T23:59:00Z). A new time in the past means no expiry; on a change, the route’s current expiry sent back as it is stays, even once past. Empty: never expires. |
max_clicks | integer or null | No | Stop working after this many clicks. Empty: no limit. |
expired_redirect_url | string or null | No | Where people go once the route has expired or reached its click limit. Empty: an expired page. |
expected_updated_at | string | No | The updated_at you read. If the thing has changed since, nothing is saved and the answer is 412 precondition_failed: read it again and retry. |
Response 200: the result in data, with warnings. With dry_run, a preview instead.
| Field | Type | Description |
|---|---|---|
id | string | The route’s id. Any endpoint taking {route} also takes its prefix, short code or name. |
name | string | |
prefix | string | The path it answers; {token} marks where the link’s value sits. |
link | string | The full link on the primary domain, with :token where the value goes. |
short_link | string or null | |
type | static, dynamic | |
template | string | What people without the app see, in words. |
web_fallback_url | string or null | |
created | string | |
updated | string | |
updated_at | string | Send as expected_updated_at when changing it, so a change made since isn’t overwritten. |
description | string or null | |
destinations | object | |
destinations.in_app_path | string | |
destinations.web_fallback_url | string or null | |
destinations.root_url | string or null | |
destinations.expired_redirect_url | string or null | |
destinations.landing_page | string or null | |
universal_links | boolean | |
forward_query_params | boolean | |
prefer_web_on_mobile | boolean | |
expires_at | string or null | |
max_clicks | number or null | |
social_preview | object or null | |
social_preview.title | string or null | |
social_preview.description | string or null |
Delete a route
Section titled “Delete a route”/v1/manage/routes/{route}Permission: Read and write. Changes something: takes dry_run and Idempotency-Key, and needs the Standard plan or above.
Its links stop working at once. The route (with its A/B test) goes to the trash and can be restored for 30 days. The install route can’t be deleted. With dry_run, nothing changes: the answer is { dry_run: true, before, after, changes, warnings }.
Path parameters:
| Parameter | Description |
|---|---|
route | The route: its id, prefix (product), short code or name. URL-encode a prefix with slashes. |
Query parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
dry_run | true, false | No | true: check and preview the change without making it (the same as dry_run in the body). |
Response 200: the result in data, with warnings. With dry_run, a preview instead.
| Field | Type | Description |
|---|---|---|
deleted | true | |
id | string | |
name | string | |
trash_id | string | The trash entry: POST /trash/{id}/restore, or POST /routes/{route}/restore, brings it back. |
restorable_until | string |
Set the QR code style
Section titled “Set the QR code style”/v1/manage/routes/qr-stylePermission: Read and write. Changes something: takes dry_run and Idempotency-Key, and needs the Standard plan or above.
The Appspace’s QR code style, used for every route’s QR code: send only what changes. With dry_run, nothing changes: the answer is { dry_run: true, before, after, changes, warnings }.
Query parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
dry_run | true, false | No | true: check and preview the change without making it (the same as dry_run in the body). |
Request body (JSON):
| Field | Type | Required | Description |
|---|---|---|---|
dots | square, rounded, dots, classy, classy-rounded, extra-rounded | No | The shape of the dots. |
corners | square, extra-rounded, dot | No | The shape of the three corner squares. |
corner_dots | square, dot | No | The shape of the dot inside each corner square. |
dot_color | string | No | The dots’ colour, #RRGGBB. |
corner_color | string | No | The corners’ colour, #RRGGBB (ignored while corners_match_dots is true). |
background | string | No | The background colour, #RRGGBB. |
corners_match_dots | boolean | No | Give the corners the dots’ colour. |
logo | app, logo, media, none | No | What sits in the middle: app (the app icon), logo (the Appspace’s logo), media (an image from Media, set logo_media_id), or none. |
logo_media_id | string or null | No | The Media entry for logo “media”. Must be in this Appspace’s Media. |
logo_size | s, m, l | No | s, m or l. |
logo_shape | square, rounded, circle | No | The logo’s corners: square, rounded or circle. |
Response 200: the result in data, with warnings. With dry_run, a preview instead.
| Field | Type | Description |
|---|---|---|
dots | square, rounded, dots, classy, classy-rounded, extra-rounded | The shape of the dots. |
corners | square, extra-rounded, dot | The shape of the three corner squares. |
corner_dots | square, dot | The shape of the dot inside each corner square. |
dot_color | string | The dots’ colour, #RRGGBB. |
corner_color | string | The corners’ colour, #RRGGBB (ignored while corners_match_dots is true). |
background | string | The background colour, #RRGGBB. |
corners_match_dots | boolean | Give the corners the dots’ colour. |
logo | app, logo, media, none | What sits in the middle: app (the app icon), logo (the Appspace’s logo), media (an image from Media, set logo_media_id), or none. |
logo_media_id | string or null | The Media entry for logo “media”. Must be in this Appspace’s Media. |
logo_size | s, m, l | s, m or l. |
logo_shape | square, rounded, circle | The logo’s corners: square, rounded or circle. |
Restore a deleted route
Section titled “Restore a deleted route”/v1/manage/routes/{route}/restorePermission: Read and write. Changes something: takes dry_run and Idempotency-Key, and needs the Standard plan or above.
Brings a route deleted in the last 30 days back with the same id, short code and A/B test. {route} is its old id, prefix, short code or name, or the trash entry’s id. Refused with 409 conflict when another route answers its path or uses its short code now, and with 409 when the plan’s route limit is reached. With dry_run, nothing changes: the answer is { dry_run: true, before, after, changes, warnings }.
Path parameters:
| Parameter | Description |
|---|---|
route | The deleted route: its old id, prefix, short code or name, or the trash entry’s id. |
Query parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
dry_run | true, false | No | true: check and preview the change without making it (the same as dry_run in the body). |
Response 200: the result in data, with warnings. With dry_run, a preview instead.
| Field | Type | Description |
|---|---|---|
id | string | The route’s id. Any endpoint taking {route} also takes its prefix, short code or name. |
name | string | |
prefix | string | The path it answers; {token} marks where the link’s value sits. |
link | string | The full link on the primary domain, with :token where the value goes. |
short_link | string or null | |
type | static, dynamic | |
template | string | What people without the app see, in words. |
web_fallback_url | string or null | |
created | string | |
updated | string | |
updated_at | string | Send as expected_updated_at when changing it, so a change made since isn’t overwritten. |
description | string or null | |
destinations | object | |
destinations.in_app_path | string | |
destinations.web_fallback_url | string or null | |
destinations.root_url | string or null | |
destinations.expired_redirect_url | string or null | |
destinations.landing_page | string or null | |
universal_links | boolean | |
forward_query_params | boolean | |
prefer_web_on_mobile | boolean | |
expires_at | string or null | |
max_clicks | number or null | |
social_preview | object or null | |
social_preview.title | string or null | |
social_preview.description | string or null |
Make a new short code
Section titled “Make a new short code”/v1/manage/routes/{route}/short-codePermission: Read and write. Changes something: takes dry_run and Idempotency-Key, and needs the Standard plan or above.
The route gets a new short link; the old one stops working at once, including in QR codes already printed. With dry_run, nothing changes: the answer is { dry_run: true, before, after, changes, warnings }.
Path parameters:
| Parameter | Description |
|---|---|
route | The route: its id, prefix (product), short code or name. URL-encode a prefix with slashes. |
Query parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
dry_run | true, false | No | true: check and preview the change without making it (the same as dry_run in the body). |
Response 200: the result in data, with warnings. With dry_run, a preview instead.
| Field | Type | Description |
|---|---|---|
id | string | The route’s id. Any endpoint taking {route} also takes its prefix, short code or name. |
name | string | |
prefix | string | The path it answers; {token} marks where the link’s value sits. |
link | string | The full link on the primary domain, with :token where the value goes. |
short_link | string or null | |
type | static, dynamic | |
template | string | What people without the app see, in words. |
web_fallback_url | string or null | |
created | string | |
updated | string | |
updated_at | string | Send as expected_updated_at when changing it, so a change made since isn’t overwritten. |
description | string or null | |
destinations | object | |
destinations.in_app_path | string | |
destinations.web_fallback_url | string or null | |
destinations.root_url | string or null | |
destinations.expired_redirect_url | string or null | |
destinations.landing_page | string or null | |
universal_links | boolean | |
forward_query_params | boolean | |
prefer_web_on_mobile | boolean | |
expires_at | string or null | |
max_clicks | number or null | |
social_preview | object or null | |
social_preview.title | string or null | |
social_preview.description | string or null |