API Reference
Grovs REST API for programmatic link generation and management
The Grovs REST API lets you create and manage links from your server-side applications. Use it to generate dynamic links programmatically and retrieve link metadata without the dashboard.
Base URL
https://sdk.sqd.link/api/v1/sdk
Authentication
All requests require two headers for authentication:
PROJECT-KEYstringrequiredYour SDK project key. Found in Dashboard → Developer → API Key.
ENVIRONMENTstringrequiredTarget environment. Use production or test. Any other value returns 400.
Endpoints
/generate_linkCreate a new link with custom metadata, platform-specific redirects, and tracking parameters.
/link/:link_pathRetrieve the full details of an existing link using its unique path.
/metrics_for_link/:link_pathRetrieve the lifetime metrics of a single link.
/metrics_for_projectRetrieve the lifetime metrics of every active link in the project.
Errors
The API uses standard HTTP status codes. Treat the status code as the source of truth when handling failures:
| Status | Meaning |
|---|---|
200 | Success. The response body contains the requested data. |
400 | Bad request. The PROJECT-KEY header is missing, the ENVIRONMENT header is not production or test, or the body is malformed JSON. Note that data or tags passed as a raw object or array instead of stringified JSON are not rejected: they are silently dropped and the link is created without them (see Generate a Link). |
403 | Forbidden. The PROJECT-KEY header does not match a project. Copy the key exactly from Dashboard → Developer → API Key. |
404 | Not found. Typically a GET /link/:link_path request where the path doesn't match an existing link in the given environment. |
5xx | Server error on the Grovs side. Retry with backoff; if it persists, contact [email protected]. |
A link created in one environment isn't visible in the other — if a request unexpectedly returns 404, check that the ENVIRONMENT header matches the environment the link was created in.
Quick Start
Generate your first link with a single cURL command:
curl -X POST https://sdk.sqd.link/api/v1/sdk/generate_link \
-H "PROJECT-KEY: YOUR_PROJECT_KEY" \
-H "ENVIRONMENT: production" \
-H "Content-Type: application/json" \
-d '{"title": "My First Link", "data": "{\"screen\": \"home\"}"}'Postman Collection
Import the Grovs Postman Collection to explore and test all endpoints interactively.