Integrate Relink directly with your own tools using the REST API.
All API requests should be made to the base URL of your Relink instance. If you are running locally, this is usually http://localhost:3000/api.
The Relink API uses Bearer token authentication. You can generate an API token from the Account page in the dashboard.
Include your token in the Authorization header of every request:
Authorization: Bearer nlk_YOUR_API_TOKENSecurity Warning: Never expose your API token in client-side code (like generic frontend React applications without a backend proxy). It has full read/write access to your Relink account.
Relink uses standard HTTP status codes to indicate the success or failure of an API request. Failed requests will always return a JSON object with a single error property containing a human-readable message.
| Status | Meaning |
|---|---|
| 2xx | Success. Request completed successfully. |
| 400 | Bad request (e.g., missing required parameters). |
| 401 | Unauthorized. Invalid or missing API token. |
| 404 | Not found. The requested resource does not exist. |
| 500 | Internal server error. Something went wrong on our end. |