For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
  • Get Started
    • Introduction
    • Quickstart
    • Authentication
  • API Reference
      • GETList Plans
      • GETPreview Plan Change
      • POSTCreate Checkout
  • Python SDK
    • Install
    • Usage
    • Errors
  • CLI
    • Overview
LogoLogo
API Referencebilling

List Plans

GET
/api/v1/billing/plans
GET
/api/v1/billing/plans
$curl https://api.onepin.ai/api/v1/billing/plans \
> -H "Authorization: Bearer <token>" \
> -H "Content-Type: application/json"
1{
2 "data": [
3 {
4 "id": "a3f1c9d2-4b7e-4f8a-9c2d-1e2b3f4a5c6d",
5 "name": "Pro Plan",
6 "tier": "paid",
7 "limits": {
8 "projects": 50,
9 "users": 10,
10 "storage_gb": 100
11 },
12 "billing_interval": "monthly",
13 "amount": 2999,
14 "currency": "USD",
15 "display_order": 2
16 },
17 {
18 "id": "b7d2e3f4-5a6b-4c7d-8e9f-0a1b2c3d4e5f",
19 "name": "Free Plan",
20 "tier": "free",
21 "limits": {
22 "projects": 3,
23 "users": 1,
24 "storage_gb": 1
25 },
26 "billing_interval": "monthly",
27 "amount": 0,
28 "currency": "USD",
29 "display_order": 1
30 },
31 {
32 "id": "c8e3f4a5-b6c7-4d8e-9f0a-1b2c3d4e5f6a",
33 "name": "Enterprise Plan",
34 "tier": "custom",
35 "limits": {
36 "projects": "unlimited",
37 "users": "unlimited",
38 "storage_gb": "unlimited"
39 },
40 "billing_interval": "yearly",
41 "amount": 0,
42 "currency": "USD",
43 "display_order": 3
44 }
45 ],
46 "meta": {
47 "request_id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
48 "timestamp": "2024-01-15T09:30:00Z"
49 },
50 "pagination": {
51 "limit": 10,
52 "next": "https://api.onepin.ai/api/v1/billing/plans?page=2",
53 "prev": null
54 }
55}
List available subscription plans.
Was this page helpful?
Previous

Preview Plan Change

Next
Built with

Authentication

AuthorizationBearer
Clerk JWT token

Response

Successful Response
datalist of objects
metaobject
paginationobject

Errors

422
Unprocessable Entity Error