Settings (management API)
The Appspace’s settings: its name, web fallback, link previews, app open attribution, bot filtering and ecommerce. Changing them needs the Full permission. Changing app_open_attribution also needs confirm: "app_open_attribution". 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/settings | Get the settings | Read |
PATCH | /v1/manage/settings | Change the settings | Full |
Get the settings
Section titled “Get the settings”/v1/manage/settingsPermission: Read.
The Appspace’s name, web fallback, logo and colour, link previews, branding, app open attribution, bot filtering and ecommerce settings, by the names a change takes. The app details are GET /app-details; the referral programme GET /referrals/settings; domains GET /domains.
Response 200: the result in data.
| Field | Type | Description |
|---|---|---|
name | string | |
web_fallback_url | string or null | |
logo_url | string or null | |
primary_color | string | |
app_open_attribution | always, when_reported, never | |
app_open_attribution_meaning | string | |
branding | inherit, show, hide | ”Powered by Tolinku” on this Appspace’s pages: inherit (follow the account), show or hide. A page can choose for itself (its branding). |
branding_enabled | boolean | Whether this Appspace’s pages show “Powered by Tolinku” (unless a page chooses for itself): branding, the account’s switch, and the plan together. Free and the trial always show it. |
account_branding_enabled | boolean | The account’s switch, which branding “inherit” follows. Only the account owner changes it, in account settings in the dashboard; it isn’t in this API. |
branding_can_hide | boolean | Whether this plan can hide it: Standard and up, never Free or the trial. |
og_title | string or null | |
og_description | string or null | |
og_image | string or null | |
bot_filter_enabled | boolean | |
bot_ua_allowlist | array of string | |
bot_ua_blocklist | array of string | |
base_currency | string | |
reporting_timezone | string | |
cart_abandonment_hours | number | |
fraud_checks_enabled | boolean | |
allowed_currencies | array of string | |
max_purchase_cents | number | |
max_purchases_per_hour | number | |
updated_at | string or null | Send as expected_updated_at when changing them. |
Change the settings
Section titled “Change the settings”/v1/manage/settingsPermission: Full. Changes something: takes dry_run and Idempotency-Key, and needs the Standard plan or above.
Only the fields sent change. Checked and tidied as the Settings page does (a colour is #RRGGBB, a time zone is a real one, numbers are kept in range; Free keeps bot filtering on and its lists, Free and trial keep the branding: branding “hide” is refused with a warning and nothing changes). Changing app_open_attribution decides whether phones open the app straight from links, so it needs confirm: “app_open_attribution” (409 conflict without it). Send expected_updated_at and a change made in the meantime is refused with 412. 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 | No | The Appspace’s name, shown in the dashboard. Doesn’t change any link. |
web_fallback_url | string or null | No | Where desktop visitors go, and phones when nothing else applies, unless a route sets its own. Empty: none. |
logo_url | string or null | No | The logo’s address, shown on landing pages. Empty: none. |
primary_color | string or null | No | The brand colour for landing pages, as #RRGGBB. Empty: the default #667eea. |
app_open_attribution | always, when_reported, never | No | How app opens are counted, which also decides whether phones open the app straight from links. Always: every tap goes through Tolinku first, so opens count without the SDK, at the cost of a moment before the app opens. iPhones and Android phones don’t open the app straight from the link. When reported: the phone opens the app straight from the link, and an open counts when the SDK reports it with trackLinkOpen. Never: reported opens are refused; only taps that reach Tolinku are counted. Changing it needs confirm: “app_open_attribution”. |
branding | inherit, show, hide | No | ”Powered by Tolinku” on this Appspace’s landing and bio pages: “inherit” follows the account’s switch (on unless the owner turned it off in account settings), “show” always shows it, “hide” never does. A page can still choose for itself (its own branding). Only paid plans (Standard and up) can hide it; Free and the trial always show it, and asking them to hide it changes nothing. |
branding_enabled | boolean | No | Older form of branding: false is branding “hide”; true takes a “hide” off (back to “inherit”). Send branding instead. |
og_title | string or null | No | The default title in link previews (og:title), for routes without their own. |
og_description | string or null | No | The default description in link previews (og:description). |
og_image | string or null | No | The default image address in link previews (og:image); 1200 x 630 works everywhere. |
bot_filter_enabled | boolean | No | Leave out bots, link previews and scanners from analytics (default on). Free always filters. |
bot_ua_allowlist | array of string or null | No | User agents always counted as people, even if they look like bots: parts of the user agent, at least 3 characters each. Not on Free. Replaces the list; empty clears it. |
bot_ua_blocklist | array of string or null | No | User agents never counted: parts of the user agent, at least 3 characters each. Not on Free. Replaces the list; empty clears it. |
base_currency | string or null | No | The currency revenue is reported in, three letters such as USD. Empty keeps the current one. |
reporting_timezone | string or null | No | The time zone days are counted in for reports, such as Europe/London. Empty keeps the current one. |
cart_abandonment_hours | integer or null | No | Hours after a cart is updated before it counts as abandoned, 1 to 72. Empty: 24. |
fraud_checks_enabled | boolean | No | Check purchases for fraud (currencies, amount, how fast they come) and flag the ones that fail. |
allowed_currencies | array of string or null | No | With fraud checks, purchases in other currencies are flagged. Three-letter codes. Empty: any currency. |
max_purchase_cents | integer or null | No | With fraud checks, purchases above this (in cents of the purchase’s currency) are flagged. Empty: 10,000,000 (100,000.00). |
max_purchases_per_hour | integer or null | No | With fraud checks, more purchases than this from one user in an hour are flagged, 1 to 1,000. Empty: 10. |
confirm | string | No | Send “app_open_attribution” to confirm changing app open attribution (it changes whether phones open the app straight from links). |
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 |
|---|---|---|
name | string | |
web_fallback_url | string or null | |
logo_url | string or null | |
primary_color | string | |
app_open_attribution | always, when_reported, never | |
app_open_attribution_meaning | string | |
branding | inherit, show, hide | ”Powered by Tolinku” on this Appspace’s pages: inherit (follow the account), show or hide. A page can choose for itself (its branding). |
branding_enabled | boolean | Whether this Appspace’s pages show “Powered by Tolinku” (unless a page chooses for itself): branding, the account’s switch, and the plan together. Free and the trial always show it. |
account_branding_enabled | boolean | The account’s switch, which branding “inherit” follows. Only the account owner changes it, in account settings in the dashboard; it isn’t in this API. |
branding_can_hide | boolean | Whether this plan can hide it: Standard and up, never Free or the trial. |
og_title | string or null | |
og_description | string or null | |
og_image | string or null | |
bot_filter_enabled | boolean | |
bot_ua_allowlist | array of string | |
bot_ua_blocklist | array of string | |
base_currency | string | |
reporting_timezone | string | |
cart_abandonment_hours | number | |
fraud_checks_enabled | boolean | |
allowed_currencies | array of string | |
max_purchase_cents | number | |
max_purchases_per_hour | number | |
updated_at | string or null | Send as expected_updated_at when changing them. |