Entitlements (billing)
/api/v1/billing/entitlementsRequest
/api/v1/billing/entitlementscurl -X GET 'https://app.mailyte.com/api/v1/billing/entitlements' \
-H 'Authorization: Bearer mk_live_YOUR_API_KEY'const response = await fetch('https://app.mailyte.com/api/v1/billing/entitlements', {
method: 'GET',
headers: {
Authorization: 'Bearer mk_live_YOUR_API_KEY',
},
});
const { data } = await response.json();import requests
response = requests.get(
"https://app.mailyte.com/api/v1/billing/entitlements",
headers={"Authorization": "Bearer mk_live_YOUR_API_KEY"},
)
data = response.json()["data"]<?php
$response = Http::withToken('mk_live_YOUR_API_KEY')
->get('https://app.mailyte.com/api/v1/billing/entitlements');
$data = $response->json('data');require "net/http"
require "json"
uri = URI("https://app.mailyte.com/api/v1/billing/entitlements")
request = Net::HTTP::Get.new(uri)
request["Authorization"] = "Bearer mk_live_YOUR_API_KEY"
response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(request) }Response
Success.
dataobjectobjectstringentitlementsplanobjectWhat you have bought.
tierstringfree | paidfreeorpaid. Every account has one: an account that has bought nothing readsfree.statusstringpending | active | past_due | suspended | cancelledThe subscription's status. Null means there is no subscription.
seatsobjectPaid seats bought and in use, per tier. What a null on any leaf below means is stated ON THAT LEAF — this heading does not reach the field you are indexing into, and a caller reads the field it is using.
standardobjectSeats of the standard tier. Both figures come from the entitlement snapshot, which counts them locally.
ownedintegerSeats bought at this tier. Null means unknown.
assignedintegerSeats in use. This can be more than
ownedafter a downgrade. Null means unknown.
proobjectSeats of the pro tier. Both figures come from the entitlement snapshot, which counts them locally.
ownedintegerSeats bought at this tier. Null means unknown.
assignedintegerSeats in use. This can be more than
ownedafter a downgrade. Null means unknown.
workplaceobjectSeats of the workplace tier. Both figures come from the entitlement snapshot, which counts them locally.
ownedintegerSeats bought at this tier. Null means unknown.
assignedintegerSeats in use. This can be more than
ownedafter a downgrade. Null means unknown.
mailbox_tiersobjectWhat each mailbox tier gives one mailbox, the free tier included. For
daily_send_limit, null means no limit; forstorage_bytesandassistant_actions, null means unknown.freeobjectWhat the free tier grants ONE mailbox.
storage_bytesintegerStorage per mailbox, in bytes. Null means unknown.
daily_send_limitintegerEmails one mailbox of this tier may send per day. Null means no limit.
assistant_actionsintegerAssistant actions per mailbox per month.
0means none. Null means unknown.
standardobjectWhat the standard tier grants ONE mailbox.
storage_bytesintegerStorage per mailbox, in bytes. Null means unknown.
daily_send_limitintegerEmails one mailbox of this tier may send per day. Null means no limit.
assistant_actionsintegerAssistant actions per mailbox per month.
0means none. Null means unknown.
proobjectWhat the pro tier grants ONE mailbox.
storage_bytesintegerStorage per mailbox, in bytes. Null means unknown.
daily_send_limitintegerEmails one mailbox of this tier may send per day. Null means no limit.
assistant_actionsintegerAssistant actions per mailbox per month.
0means none. Null means unknown.
workplaceobjectWhat the workplace tier grants ONE mailbox.
storage_bytesintegerStorage per mailbox, in bytes. Null means unknown.
daily_send_limitintegerEmails one mailbox of this tier may send per day. Null means no limit.
assistant_actionsintegerAssistant actions per mailbox per month.
0means none. Null means unknown.
limitsobjectLimits for your whole account. Null means no limit.
max_mailboxesintegerFree mailboxes you may have: five, or more if you had more before the pricing change. Mailboxes on seats are limited by your seats instead. Null means no limit.
max_domainsintegerDomains you may add. Null means no limit.
max_aliases_per_mailboxintegerAliases each mailbox may have. Null means no limit.
max_team_membersintegerPeople you may invite to your account. Null means no limit.
allowancesobjectapp_send_monthlyintegerEmails a month from your Send plan and seats.
0when you have none. Null means unknown. For today's limit, seeGET /billing/usage.send_credit_balanceintegerYour send credit balance, counted in emails, not money. To decide whether you can send right now, read
GET /billing/usage, which shows the live figure. Null means unknown.
featuresobjectFeature entitlements. Whether a feature is GRANTED, not whether it is configured.
branded_webmailbooleanpriority_supportbooleandedicated_ipbooleanWhether a dedicated IP may be requested. Its state is at
GET /dedicated-ip.
productsobjectSend (email from your apps) and Marketing (campaigns and journeys), each bought separately from mailboxes.
sendobjectstatusstringpending | active | past_due | suspended | cancelledThe Send subscription's status. Null means there is no Send subscription.
planstringThe Send plan you have. Null means none, so the free plan applies.
familystringfree | pro | scaleWhich Send plan sets the limits below:
freewhen nothing is bought.included_monthlyintegerEmails a month the Send plan includes;
0on the free plan. Null means unknown.log_daysintegerHow many days of delivery logs you can see. Null means unknown.
webhooksintegerWebhooks you may add. Null means no limit.
sandbox_inboxesintegerSandbox inboxes you may have. Null means unknown.
sandbox_monthlyintegerEmails a month your Sandbox accepts. Null means unknown.
marketingobjectstatusstringpending | active | past_due | suspended | cancelledThe Marketing subscription's status. Null means there is no Marketing subscription.
planstringThe Marketing plan you have. Null means none;
familysays what applies.familystringlegacy | free | starter | growth | premiumWhich Marketing plan sets the limits below.
legacyis an account made before Marketing plans existed, without one: no limits, and campaigns are paid from send credits.contactsintegerSubscribed contacts the plan covers. Null means no limit.
emails_monthlyintegerMarketing emails a month. Null means no limit (on
legacy, each email is paid from credits).segmentsintegerSegments you may have. Null means no limit.
journeysintegerJourneys that may be live or paused at once. Null means no limit.
journey_stepsintegerSteps one journey may have. Null means no limit.
usersintegerTeam members who may use Marketing. Null means no limit.
support_levelstringcommunity | email | priority | namedThe best support any product held includes.
Returned inside the standard envelope.
Errors
| Status | When |
|---|---|
401 | The API key is missing, unknown, revoked or expired. All four answer identically, on purpose: distinguishing them would confirm which keys exist. |
403 | The key is valid but may not do this: it lacks the required scope, its IP allowlist does not include you, or this endpoint does not accept API keys. |
404 | No such resource in this organization. |
422 | The request was understood but the values were not acceptable. |
429 | Too many requests, or the organization has spent its sending allowance. `Retry-After` says how long to wait. |
Every status, with what causes it and what to do, is on the error reference.