Docs

API Reference

Complete reference for all APIs and SDKs

API Reference

This section provides detailed reference documentation for all APIs, SDKs, and technical specifications.

Overview

The API reference is organized into the following categories:

CategoryDescription
Rate LimitingAPI rate limits and throttling policies
Error CodesHTTP status codes and error responses
WebhooksStripe webhook events and handling

Base URLs

All API endpoints use the following base URLs depending on your environment:

EnvironmentBase URL
Productionhttps://api.yourapp.com
Staginghttps://api.staging.yourapp.com
Localhttp://localhost:3000

Authentication

All API requests must include authentication. See the Authentication Guide for details.

Content Types

API requests and responses use JSON format with the following content type:

Content-Type: application/json

Versioning

The API is versioned through the URL path. The current version is v1:

/api/v1/endpoint

Pagination

List endpoints support pagination using cursor-based pagination:

interface PaginatedResponse<T> {
  data: T[];
  nextCursor: string | null;
  hasMore: boolean;
  total: number;
}

Request parameters:

ParameterTypeDefaultDescription
limitnumber20Number of items per page (max 100)
cursorstring-Cursor for the next page

Common Headers

HeaderRequiredDescription
AuthorizationYesBearer token or API key
Content-TypeYesMust be application/json
X-Request-IDNoUnique identifier for request tracing
X-API-VersionNoAPI version (defaults to v1)

SDK Reference

SDKLanguagePackage
JavaScript/TypeScriptNode.js@yourapp/sdk
PythonPython 3.8+yourapp-sdk
GoGo 1.21+github.com/yourapp/sdk-go

Support

For API support and questions:

On this page