दस्तावेज़ पर जाएँ
API

प्लान पढ़ें

वर्कस्पेस का प्लान, उसमें क्या शामिल है और उसका कितना उपयोग हुआ।

GET/billing

असली कॉल आपके वर्कस्पेस पर चलाता है।

GET /billing

वर्कस्पेस का प्लान, उसमें क्या शामिल है और उसका कितना उपयोग हुआ।

उदाहरण

billing:read चाहिए। यह वही है जो प्लान और बिलिंग दिखाता है: प्लान का बिल कैसे बनता है, वह कब नवीनीकृत होता है या ख़त्म होता है और अगला शुल्क, डोमेन, इस महीने के भेजे गए ईमेल, आज की AI क्रियाएँ और उपयोग के अनुसार भुगतान। null वाला limit बताता है कि प्लान की कोई सीमा नहीं है।

curl
curl "$OE/billing" -H "$AUTH"
प्रतिक्रिया
{  "object": "billing",  "workspaceId": "3d0f6c2e-8a41-4b57-9e2a-61c4f0b8d7a5",  "workspaceName": "Acme",  "plan": "business",  "planName": "Business",  "metered": true,  "interval": "month",  "renewsAt": "2026-11-01T09:00:00.000Z",  "cancelAtPeriodEnd": false,  "nextCharge": { "cents": 10000, "currency": "usd", "at": "2026-11-01T09:00:00.000Z" },  "domains": { "used": 3, "included": 500, "canAdd": true },  "usage": {    "sends": { "used": 18240, "limit": 200000, "resetsAt": "2026-11-01T00:00:00.000Z" },    "aiActions": { "used": 12, "limit": 150, "resetsAt": "2026-10-04T00:00:00.000Z" }  },  "payAsYouGo": {    "available": true,    "enabled": true,    "suspended": false,    "enrolled": true,    "switchedOn": true,    "coversSends": true,    "coversAiActions": true,    "limitCents": 5000,    "spentCents": 120,    "extraSends": 3000,    "extraAiActions": 0,    "estimatedCents": 120  },  "availablePlans": ["free", "starter", "business", "enterprise"]}

जब इस इंस्टॉल पर बिलिंग बंद होती है तो metered false होता है, और तब किसी चीज़ की सीमा नहीं होती।

बिलिंग तक सिर्फ़ वर्कस्पेस का मालिक पहुँचता है: एक API कुंजी, या ऐसा ऐक्सेस टोकन जिसे मालिक ने हर पते के साथ जोड़ा। किसी सदस्य का टोकन 403 owner_only है, और कुछ पतों या डोमेन तक सीमित कुंजी या टोकन 422 capability_unsupported है।

संदर्भ