Deep Links
Resolve a tracked slug, record a click, fetch link config.
Endpoints
| Method | Path | Description |
|---|---|---|
| GET | /client/deep-links/resolve/:slug | Resolve a slug to its destination URL. |
| POST | /client/deep-links/click | Record a click (atomic INSERT + counter increment). |
| GET | /client/deep-links/config | Fetch the project's deep-link config (url_scheme, domain, fallback). |
GET /client/deep-links/resolve/:slug
Response 200
url is the link's destination and short_code its slug (the SDKs' DeepLink fields); destination_url and slug carry the same values.
Errors
404 NOT_FOUND.
Try it:
GET
client auth/client/deep-links/resolve/%7B%7Bslug%7D%7Dcurl -X GET 'https://api.amba.dev/v1/client/deep-links/resolve/%7B%7Bslug%7D%7D'Loading auth… Configure auth in the settings drawer (top-right) to run this request.
Curl:
POST /client/deep-links/click
Inserts into link_clicks and increments tracked_links.click_count in a single tx. Records the link, the signed-in user, the platform you send, and the time. The click stores no IP address. Deleting the user clears the user on each of their clicks and keeps the click in the link's stats.
Request
| Field | Type | Required |
|---|---|---|
tracked_link_id | uuid | yes |
platform | string | no |
Response 201
Errors
500 CREATE_FAILED.
Try it:
POST
client auth/client/deep-links/clickcurl -X POST 'https://api.amba.dev/v1/client/deep-links/click' \
-H 'Content-Type: application/json' \
-d '{
"tracked_link_id": "<tracked_link_id>",
"platform": "ios"
}'Loading auth… Configure auth in the settings drawer (top-right) to run this request.
Curl:
GET /client/deep-links/config
Returns public-safe config fields only (url_scheme, universal_link_domain, fallback_url). Returns data: null if no config exists (or on read failure — this endpoint never 500s).
Response 200
Try it:
GET
client auth/client/deep-links/configcurl -X GET 'https://api.amba.dev/v1/client/deep-links/config'Loading auth… Configure auth in the settings drawer (top-right) to run this request.
Curl: