API
Links
Generate navigation links for an existing location (Tariq share URL, Google Maps, Apple Maps, and Waze) from stored coordinates.
POST
/v1/linksAuthorizations
Authorizationstringheaderrequired
Bearer token. Use a test key from the dashboard. The header is Authorization: Bearer <token>.
"Bearer trq_test_…"
Body
{
"location_id": "loc_8k2m9x"
}Response
200 · application/json
Errors
| Code | HTTP | When |
|---|---|---|
| UNAUTHORIZED | 401 | Missing or invalid API key or session token. |
| FORBIDDEN | 403 | The credential is valid but lacks permission for this action. |
| INVALID_INPUT | 400 | The request body failed validation. |
| INVALID_COORDINATES | 400 | Latitude or longitude is out of range. |
| NOT_FOUND | 404 | The location does not exist in your organization. |
| CONFLICT | 409 | Idempotency key reused with a different payload. |
| RATE_LIMITED | 429 | Too many requests. |