Getting Started
API Reference
Getting Started
API Reference
Help Center
Login
  1. Getting Started
  • Introduction
  • Getting Started
  • Authentication
  • Rate Limits
Getting Started
API Reference
Getting Started
API Reference
Help Center
Login
  1. Getting Started

Authentication

All API requests require authentication using an API key. Include your API key in the request header:
TIP
You can generate your API key from your ReferralStack dashboard under Settings → Integrations. Keep your API key secure and never expose it in client-side code.
Example Request:
Error Response (Missing/Invalid API Key):
{
  "status": 401,
  "message": "Invalid API key. Please check your API key and try again."
}

Base URL#

All API endpoints are relative to the base URL:
https://api.referralstack.ai/api/v1
Example Request:

HTTP Status Codes#

Understanding these status codes will help you handle API responses effectively:
Status CodeDescriptionCommon Causes
200 OKRequest succeededSuccessful GET, PUT, PATCH, DELETE requests
201 CreatedResource created successfullySuccessful POST requests
400 Bad RequestInvalid request parametersMissing required fields, invalid data format, validation errors
401 UnauthorizedInvalid or missing API keyWrong API key, missing x-auth-referralstack header
403 ForbiddenInsufficient permissionsTrying to access resources outside your plan
404 Not FoundResource not foundInvalid endpoint or resource ID
422 Unprocessable EntityValidation errorInvalid data that fails business rules (e.g., Sequelize validation errors)
429 Too Many RequestsRate limit exceededToo many requests in a short period
500 Internal Server ErrorServer errorUnexpected server issue

Modified at 2026-01-05 11:14:03
Previous
Getting Started
Next
Rate Limits
Built with