Docs

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-KEYstringrequired

Your SDK project key. Found in Dashboard → Developer → API Key.

ENVIRONMENTstringrequired

Target environment. Use production or test. Any other value returns 400.

Endpoints

POST/generate_link

Create a new link with custom metadata, platform-specific redirects, and tracking parameters.

GET/link/:link_path

Retrieve the full details of an existing link using its unique path.

GET/metrics_for_link/:link_path

Retrieve the lifetime metrics of a single link.

GET/metrics_for_project

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

StatusMeaning
200Success. The response body contains the requested data.
400Bad 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).
403Forbidden. The PROJECT-KEY header does not match a project. Copy the key exactly from Dashboard → Developer → API Key.
404Not found. Typically a GET /link/:link_path request where the path doesn't match an existing link in the given environment.
5xxServer 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:

Bash
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.

Edit this page on GitHubLast updated 2026-09-16