Skip to content

REST API Quickstart

The dynm.link REST API is hosted at https://api.dynm.link. All requests must be authenticated using an API key passed in the headers.

Authentication

Add the following header to all your API requests:

http
x-api-key: $DYNM_API_KEY

You can generate and manage your API keys in the dashboard at https://www.dynm.link/account/api-keys.

To create a new redirect microlink, send a POST request to /microlinks:

bash
curl -X POST https://api.dynm.link/microlinks \
  -H "Content-Type: application/json" \
  -H "x-api-key: $DYNM_API_KEY" \
  -d '{"type":"redirect","content":{"web":"https://example.com"}}'

The API provides endpoints to list, retrieve, update, and delete your microlinks:

  • List links: GET /microlinks (filter by type or host)
  • Get link: GET /microlinks/{id}
  • Update link: PUT /microlinks/{id}
  • Delete link: DELETE /microlinks/{id}
  • QR code: GET /microlinks/{id}/qr returns a clean SVG QR code.

Query Parameters & Analytics

Microlinks support query parameter passthrough and analytics segmentation:

  • Redirect Passthrough: Redirect microlinks automatically forward incoming query parameters to the destination URL. If the same query parameter exists on both the short link and the destination, the incoming short link's value replaces the destination's value.
  • Analytics Segmentation: Arbitrary query parameters are recorded under analytics to segment your visits (e.g. tracking campaigns using ?src=yt, ?src=qr, or ?campaign=launch).
  • Reserved Parameters: Parameters whose decoded keys start with _ are reserved for system behavior and are never forwarded or recorded as analytics dimensions.
  • QR Code Analytics: GET /microlinks/{id}/qr returns a clean QR code representing the short URL directly. If you want QR-specific analytics tracking, append your own custom tags to the link (for example, generating or printing a QR with ?src=qr).

For detailed request and response schemas, see the interactive REST API Reference or the raw OpenAPI Specification.

One short link: redirect, page, file, or QR.