Plan & usage
Get plan and usage
GET /my_suscription
GET
/my_suscriptionReturns the plan (tier) and expiry date of the account, its limits (subscribers, audiences, automations, triggers, landing pages) and what has been used so far, including credits, AI cost and SMS credits. A limit of -1 means unlimited. When the call is made on behalf of a user, it also returns that user's name, email, role and time zone.
When to use: To know whether the account is within its plan before creating something that counts against a limit, or to check that a key or token works and which account it belongs to.
When not to use: For invoices use list_invoices.
Permissions: No specific permission.
X-Auth-Token<token>
Value for the X-Auth-Token header parameter.
In: header
Response Body
application/problem+json
application/problem+json
curl -X GET "https://api.easymailing.com/my_suscription" \ -H "X-Auth-Token: YOUR_API_KEY"{ "credits": 0, "credits_used": 0, "subscribers_used": 0, "max_subscribers": 0, "audiences": 0, "automations": 0, "automation_triggers": 0, "websites": 0, "expiration_date": "2019-08-24T14:15:22Z", "domain": "string", "tier": "string", "locale": "string", "ai_cost_used_cents": 0, "ai_cost_limit_cents": 0, "allow_ai_overage": true, "ai_overage_limit_cents": 0, "can_have_ai_overage": true, "sms_credits": 0, "sms_credits_used": 0, "sms_credits_remaining": 0, "sms_campaigns_enabled": true, "user": { "firstname": "string", "lastname": "string", "email": "string", "role": "string", "timezone": "string" }}