Skip to content

Routes (management API)

View as Markdown

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.

MethodPathWhat it doesPermission
GET/v1/manage/routesList routesRead
POST/v1/manage/routesCreate a routeRead and write
GET/v1/manage/routes/{route}Get a routeRead
PATCH/v1/manage/routes/{route}Change a routeRead and write
DELETE/v1/manage/routes/{route}Delete a routeRead and write
PUT/v1/manage/routes/qr-styleSet the QR code styleRead and write
POST/v1/manage/routes/{route}/restoreRestore a deleted routeRead and write
POST/v1/manage/routes/{route}/short-codeMake a new short codeRead and write
GET/v1/manage/routes

Permission: Read.

The Appspace’s routes, oldest first, paged with cursor.

Query parameters:

ParameterTypeRequiredDescription
searchstringNoOnly routes whose name or prefix contains this text.
limitintegerNoHow many to return, 1 to 100 (default 50).
cursorstringNoFrom 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:

FieldTypeDescription
idstringThe route’s id. Any endpoint taking {route} also takes its prefix, short code or name.
namestring
prefixstringThe path it answers; {token} marks where the link’s value sits.
linkstringThe full link on the primary domain, with :token where the value goes.
short_linkstring or null
typestatic, dynamic
templatestringWhat people without the app see, in words.
web_fallback_urlstring or null
createdstring
updatedstring
updated_atstringSend as expected_updated_at when changing it, so a change made since isn’t overwritten.
POST/v1/manage/routes

Permission: 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:

ParameterTypeRequiredDescription
dry_runtrue, falseNotrue: check and preview the change without making it (the same as dry_run in the body).

Request body (JSON):

FieldTypeRequiredDescription
namestringYesThe route’s name, for your team, such as “Product pages”.
prefixstringNoThe 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.
descriptionstring or nullNoA note for your team about what the route is for. Not shown to visitors.
typedynamic, staticNodynamic (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.
templatestandard, generic, custom, noneNoWhat 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_idstring or nullNoThe landing page to show, for the custom template. Must be one of this Appspace’s landing pages.
web_fallback_urlstring or nullNoWhere 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_urlstring or nullNoDynamic routes only: where the route goes when opened with no value (/product on its own). Empty: the web fallback with {token} removed.
data_endpointstring or nullNoAn address your app can fetch for the link’s data (the data endpoint), passed to the app with the link.
social_titlestring or nullNoThe title shown when the link is pasted into a chat or a post (og:title).
social_descriptionstring or nullNoThe description in link previews (og:description).
social_imagestring or nullNoThe image address for link previews (og:image).
social_from_fallbackbooleanNoTake the link preview from the web fallback page instead.
universal_linksbooleanNoWhether iPhones open the app straight from this route (Universal Links). Default true. When false, iOS sends the tap to Tolinku first.
forward_query_paramsbooleanNoPass the link’s query parameters (?utm_source=…) on to the app and the web fallback.
prefer_web_on_mobilebooleanNoWith the none template: send phones without the app to the web fallback instead of the store.
return_to_fallbackbooleanNoWith the none template and a web fallback: after the store, send people on to the web fallback. Default true.
expires_atstring or nullNoWhen 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_clicksinteger or nullNoStop working after this many clicks. Empty: no limit.
expired_redirect_urlstring or nullNoWhere 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.

FieldTypeDescription
idstringThe route’s id. Any endpoint taking {route} also takes its prefix, short code or name.
namestring
prefixstringThe path it answers; {token} marks where the link’s value sits.
linkstringThe full link on the primary domain, with :token where the value goes.
short_linkstring or null
typestatic, dynamic
templatestringWhat people without the app see, in words.
web_fallback_urlstring or null
createdstring
updatedstring
updated_atstringSend as expected_updated_at when changing it, so a change made since isn’t overwritten.
descriptionstring or null
destinationsobject
destinations.in_app_pathstring
destinations.web_fallback_urlstring or null
destinations.root_urlstring or null
destinations.expired_redirect_urlstring or null
destinations.landing_pagestring or null
universal_linksboolean
forward_query_paramsboolean
prefer_web_on_mobileboolean
expires_atstring or null
max_clicksnumber or null
social_previewobject or null
social_preview.titlestring or null
social_preview.descriptionstring or null
GET/v1/manage/routes/{route}

Permission: Read.

One route in full: destinations, Universal Links, query forwarding, expiry and click limit, link preview.

Path parameters:

ParameterDescription
routeThe route: its id, prefix (product), short code or name. URL-encode a prefix with slashes.

Response 200: the result in data.

FieldTypeDescription
idstringThe route’s id. Any endpoint taking {route} also takes its prefix, short code or name.
namestring
prefixstringThe path it answers; {token} marks where the link’s value sits.
linkstringThe full link on the primary domain, with :token where the value goes.
short_linkstring or null
typestatic, dynamic
templatestringWhat people without the app see, in words.
web_fallback_urlstring or null
createdstring
updatedstring
updated_atstringSend as expected_updated_at when changing it, so a change made since isn’t overwritten.
descriptionstring or null
destinationsobject
destinations.in_app_pathstring
destinations.web_fallback_urlstring or null
destinations.root_urlstring or null
destinations.expired_redirect_urlstring or null
destinations.landing_pagestring or null
universal_linksboolean
forward_query_paramsboolean
prefer_web_on_mobileboolean
expires_atstring or null
max_clicksnumber or null
social_previewobject or null
social_preview.titlestring or null
social_preview.descriptionstring or null
PATCH/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:

ParameterDescription
routeThe route: its id, prefix (product), short code or name. URL-encode a prefix with slashes.

Query parameters:

ParameterTypeRequiredDescription
dry_runtrue, falseNotrue: check and preview the change without making it (the same as dry_run in the body).

Request body (JSON):

FieldTypeRequiredDescription
namestringNoA new name.
prefixstringNoA new path. Links already shared with the old one stop working.
descriptionstring or nullNoA note for your team about what the route is for. Not shown to visitors.
typedynamic, staticNodynamic (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.
templatestandard, generic, custom, noneNoWhat 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_idstring or nullNoThe landing page to show, for the custom template. Must be one of this Appspace’s landing pages.
web_fallback_urlstring or nullNoWhere 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_urlstring or nullNoDynamic routes only: where the route goes when opened with no value (/product on its own). Empty: the web fallback with {token} removed.
data_endpointstring or nullNoAn address your app can fetch for the link’s data (the data endpoint), passed to the app with the link.
social_titlestring or nullNoThe title shown when the link is pasted into a chat or a post (og:title).
social_descriptionstring or nullNoThe description in link previews (og:description).
social_imagestring or nullNoThe image address for link previews (og:image).
social_from_fallbackbooleanNoTake the link preview from the web fallback page instead.
universal_linksbooleanNoWhether iPhones open the app straight from this route (Universal Links). Default true. When false, iOS sends the tap to Tolinku first.
forward_query_paramsbooleanNoPass the link’s query parameters (?utm_source=…) on to the app and the web fallback.
prefer_web_on_mobilebooleanNoWith the none template: send phones without the app to the web fallback instead of the store.
return_to_fallbackbooleanNoWith the none template and a web fallback: after the store, send people on to the web fallback. Default true.
expires_atstring or nullNoWhen 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_clicksinteger or nullNoStop working after this many clicks. Empty: no limit.
expired_redirect_urlstring or nullNoWhere people go once the route has expired or reached its click limit. Empty: an expired page.
expected_updated_atstringNoThe 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.

FieldTypeDescription
idstringThe route’s id. Any endpoint taking {route} also takes its prefix, short code or name.
namestring
prefixstringThe path it answers; {token} marks where the link’s value sits.
linkstringThe full link on the primary domain, with :token where the value goes.
short_linkstring or null
typestatic, dynamic
templatestringWhat people without the app see, in words.
web_fallback_urlstring or null
createdstring
updatedstring
updated_atstringSend as expected_updated_at when changing it, so a change made since isn’t overwritten.
descriptionstring or null
destinationsobject
destinations.in_app_pathstring
destinations.web_fallback_urlstring or null
destinations.root_urlstring or null
destinations.expired_redirect_urlstring or null
destinations.landing_pagestring or null
universal_linksboolean
forward_query_paramsboolean
prefer_web_on_mobileboolean
expires_atstring or null
max_clicksnumber or null
social_previewobject or null
social_preview.titlestring or null
social_preview.descriptionstring or null
DELETE/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:

ParameterDescription
routeThe route: its id, prefix (product), short code or name. URL-encode a prefix with slashes.

Query parameters:

ParameterTypeRequiredDescription
dry_runtrue, falseNotrue: 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.

FieldTypeDescription
deletedtrue
idstring
namestring
trash_idstringThe trash entry: POST /trash/{id}/restore, or POST /routes/{route}/restore, brings it back.
restorable_untilstring
PUT/v1/manage/routes/qr-style

Permission: 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:

ParameterTypeRequiredDescription
dry_runtrue, falseNotrue: check and preview the change without making it (the same as dry_run in the body).

Request body (JSON):

FieldTypeRequiredDescription
dotssquare, rounded, dots, classy, classy-rounded, extra-roundedNoThe shape of the dots.
cornerssquare, extra-rounded, dotNoThe shape of the three corner squares.
corner_dotssquare, dotNoThe shape of the dot inside each corner square.
dot_colorstringNoThe dots’ colour, #RRGGBB.
corner_colorstringNoThe corners’ colour, #RRGGBB (ignored while corners_match_dots is true).
backgroundstringNoThe background colour, #RRGGBB.
corners_match_dotsbooleanNoGive the corners the dots’ colour.
logoapp, logo, media, noneNoWhat 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_idstring or nullNoThe Media entry for logo “media”. Must be in this Appspace’s Media.
logo_sizes, m, lNos, m or l.
logo_shapesquare, rounded, circleNoThe logo’s corners: square, rounded or circle.

Response 200: the result in data, with warnings. With dry_run, a preview instead.

FieldTypeDescription
dotssquare, rounded, dots, classy, classy-rounded, extra-roundedThe shape of the dots.
cornerssquare, extra-rounded, dotThe shape of the three corner squares.
corner_dotssquare, dotThe shape of the dot inside each corner square.
dot_colorstringThe dots’ colour, #RRGGBB.
corner_colorstringThe corners’ colour, #RRGGBB (ignored while corners_match_dots is true).
backgroundstringThe background colour, #RRGGBB.
corners_match_dotsbooleanGive the corners the dots’ colour.
logoapp, logo, media, noneWhat 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_idstring or nullThe Media entry for logo “media”. Must be in this Appspace’s Media.
logo_sizes, m, ls, m or l.
logo_shapesquare, rounded, circleThe logo’s corners: square, rounded or circle.
POST/v1/manage/routes/{route}/restore

Permission: 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:

ParameterDescription
routeThe deleted route: its old id, prefix, short code or name, or the trash entry’s id.

Query parameters:

ParameterTypeRequiredDescription
dry_runtrue, falseNotrue: 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.

FieldTypeDescription
idstringThe route’s id. Any endpoint taking {route} also takes its prefix, short code or name.
namestring
prefixstringThe path it answers; {token} marks where the link’s value sits.
linkstringThe full link on the primary domain, with :token where the value goes.
short_linkstring or null
typestatic, dynamic
templatestringWhat people without the app see, in words.
web_fallback_urlstring or null
createdstring
updatedstring
updated_atstringSend as expected_updated_at when changing it, so a change made since isn’t overwritten.
descriptionstring or null
destinationsobject
destinations.in_app_pathstring
destinations.web_fallback_urlstring or null
destinations.root_urlstring or null
destinations.expired_redirect_urlstring or null
destinations.landing_pagestring or null
universal_linksboolean
forward_query_paramsboolean
prefer_web_on_mobileboolean
expires_atstring or null
max_clicksnumber or null
social_previewobject or null
social_preview.titlestring or null
social_preview.descriptionstring or null
POST/v1/manage/routes/{route}/short-code

Permission: 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:

ParameterDescription
routeThe route: its id, prefix (product), short code or name. URL-encode a prefix with slashes.

Query parameters:

ParameterTypeRequiredDescription
dry_runtrue, falseNotrue: 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.

FieldTypeDescription
idstringThe route’s id. Any endpoint taking {route} also takes its prefix, short code or name.
namestring
prefixstringThe path it answers; {token} marks where the link’s value sits.
linkstringThe full link on the primary domain, with :token where the value goes.
short_linkstring or null
typestatic, dynamic
templatestringWhat people without the app see, in words.
web_fallback_urlstring or null
createdstring
updatedstring
updated_atstringSend as expected_updated_at when changing it, so a change made since isn’t overwritten.
descriptionstring or null
destinationsobject
destinations.in_app_pathstring
destinations.web_fallback_urlstring or null
destinations.root_urlstring or null
destinations.expired_redirect_urlstring or null
destinations.landing_pagestring or null
universal_linksboolean
forward_query_paramsboolean
prefer_web_on_mobileboolean
expires_atstring or null
max_clicksnumber or null
social_previewobject or null
social_preview.titlestring or null
social_preview.descriptionstring or null
Was this page helpful?