Overview
Plans define what a customer can buy — price, billing interval, and the product they unlock. Use these endpoints to retrieve a specific plan, or to resolve the free plans a caller is eligible for by IP address or email domain.
How It Works
- Retrieve a plan —
POSTorGET /planwith aplan_idreturns the full plan and its parent product. - Find eligible free plans — resolve the active, free plans a caller qualifies for, either by their IP address (
/plan/ip/authorization) or by their email domain (/plan/domain/authorization).
API Endpoints
| Method | Endpoint | Description |
|---|---|---|
POST | /api/v1/sdk/plan | Retrieve a plan by ID |
GET | /api/v1/sdk/plan/ip/authorization | Plans matching the requester IP |
GET | /api/v1/sdk/plan/domain/authorization | Plans matching an email domain |
Important Behaviors
- Retrieving a plan requires both
site_idandplan_id; the plan is returned only when its product belongs to that site. - The authorization endpoints return only active, free plans (amount
0) whose IP/domain allow-list matches the caller, along witheligibleandfilteredcounts. - These endpoints are served from the global edge for fast, low-latency responses.
