Base URL
All API requests should be made to:The legacy
/sdk path is still supported for backward compatibility but is deprecated.
New integrations should use /api/v1.API Playground
To use the API playground:- Get your API key from Dashboard → Settings → API Keys
- Click on any endpoint in the sidebar
- Enter your API key in the Authorization field (format:
gately_sk_live_xxxxx) - Fill in the parameters and click Send
Available Endpoints
The Gately API provides endpoints for:| Category | Description |
|---|---|
| Authentication | Login, signup, magic links, SSO |
| Members | CRUD operations for project members |
| Forms | Form management and submissions |
| Analytics | Page views, events, and statistics |
| Plans | Subscription plans and management |
| Discussions | Community discussions and comments |
| Ecommerce | Products, cart, and orders |
| Help Center | Knowledge base articles and search |
| Feedback | Customer feedback collection |
| LMS | Courses, enrollments, and progress |
| Member Content | Page protection rules |
| Storage | File uploads |
| Webhooks | Event notifications |
Authentication
The API uses API key authentication. Your API key contains the project context, so no separate project ID is needed.API Key Authentication
Include your API key in theAuthorization header:
JWT Authentication (Client-side)
For client-side requests from authenticated users, use the JWT token from a user session:Request Headers
All requests must include:| Header | Description |
|---|---|
Authorization | Bearer token (API key or JWT) |
Content-Type | application/json for POST/PUT requests |
Response Format
All responses are returned in JSON format:Error Responses
HTTP Status Codes
| Code | Description |
|---|---|
200 | Success |
201 | Created |
400 | Bad Request - Invalid parameters |
401 | Unauthorized - Invalid or missing authentication |
403 | Forbidden - Insufficient permissions |
404 | Not Found - Resource doesn’t exist |
422 | Validation Error - Invalid input data |
429 | Rate Limited - Too many requests |
500 | Server Error - Something went wrong |
Rate Limiting
API requests are rate limited to ensure fair usage:- Standard: 100 requests per minute
- Authentication endpoints: 20 requests per minute
Pagination
List endpoints support pagination:Filtering & Sorting
Many endpoints support filtering and sorting:SDKs & Libraries
We provide official SDKs for common platforms:JavaScript SDK
For browsers and Node.js
React Hooks
React-specific hooks and components
Need Help?
API Keys
Learn how to create and manage API keys
Webhooks
Set up real-time event notifications
