- Products
- Solutions Use casesBy industry
- Developers
- Resources Connect
- Pricing
When it comes to integrating with the Nylas API (or any other API for that matter), we know managing your resources is an important consideration. Let’s take a look at how you can easily stay on top of your paid invoices and get this year off on the right foot.
First, let’s get a quick overview of how billing works at Nylas. Nylas bills on the first of the month for the previous month’s usage – and usage is determined by multiplying the number of active accounts by the effective price per account for your organization’s billing plan.
How exactly is an active account defined? An active account is defined as one that has its billing_state
set to paid
for any period of time within a given month. In order to check an account’s billing state, you can make a GET call to the /accounts/{account_id} endpoint:
curl -X GET 'https://api.nylas.com/a/{client_id}/accounts/{account_id}}' \ -H 'Content-Type: application/json' \ -H 'Authorization: {client_secret}' \
The account object you receive in response will have the ‘billing_state’ as an attribute and look something like this:
{ "account_id": "9c5cf3x4hgvwaoox2txxxxxxx", "billing_state": "paid", "email": "[email protected]", "id": "9c5cf3x4hgvwaoox2txxxxxxx", "provider": "eas", "sync_state": "running", "trial": false }
The first time an account is added it will automatically have a billing_state
that is paid
.
For more information about how billing works, check out our docs here!
Now, you can view your paid invoice by at any point by logging into your Nylas dashboard. In the top right corner, click on the drop-down menu next to your name, and you will see ‘Billing’ underneath ‘Organization’. Clicking on ‘Billing’ will take you to a screen that looks like this:
In one place, you can conveniently see how many accounts are active, add or remove a card, and download a PDF of paid invoices. Now that you’ve got that sorted, go ahead and explore what the Nylas API can do!
Get Started – Build your first integration with Nylas in 15 minutes.
Quickstart Guides – Get up to speed quickly with our SDKs for Python, Node.js, and Ruby or explore the Nylas Email, Calendar, and Contacts APIs.
How Nylas Works – Take a look at the Nylas architecture to see how we sync billions of emails.
Tutorials – Check out our tutorials to learn how to carry out common functionality like creating, reading and RSVP-ing to calendar events.
Integration Guides – Ready to start building your integration? Our integration guides cover what it takes to incorporate email functionality into your app. They cover best practices for using the Nylas Communications Platform and provider-specific advice for Google, Microsoft, IMAP, and more.
Set up Postman – Postman makes it easy to explore the Nylas Email API.
What is a CRM? CRM stands for Customer Relationship Management, and it’s basically a way…
Learn how to create an appointment scheduler in your React app using Nylas Scheduler. Streamline bookings and UX with step-by-step guidance.
Dive into the world of smart Web Components for advanced API integration solutions. Design elegant, customizable elements to elevate user experiences.
Jieun Kim is a technical writer based in NYC. In her spare time, she enjoys contemplating shapes of all kinds and accumulating large stacks of books.