Skip to main content
The Gately API is a RESTful API that allows you to programmatically interact with your Gately project. Use it to manage users, forms, content, and more.

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

Try it live! Each API endpoint page has an interactive playground. Enter your API key and test requests directly from the documentation.
To use the API playground:
  1. Get your API key from Dashboard → Settings → API Keys
  2. Click on any endpoint in the sidebar
  3. Enter your API key in the Authorization field (format: gately_sk_live_xxxxx)
  4. Fill in the parameters and click Send
Make sure you’re using a valid API key that starts with gately_. Project IDs won’t work - you need an actual API key from your dashboard.

Available Endpoints

The Gately API provides endpoints for:

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 the Authorization 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:

Response Format

All responses are returned in JSON format:

Error Responses

HTTP Status Codes

Rate Limiting

API requests are rate limited to ensure fair usage:
  • Standard: 100 requests per minute
  • Authentication endpoints: 20 requests per minute
Rate limit headers are included in responses:

Pagination

List endpoints support pagination:
Response includes pagination metadata:

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