Billing
Plans, subscriptions, and billing management
2 endpoints
Endpoints
| Method | Path | Description |
| GET | /v1/billing/plans | List all available plans with their prices and limits. |
| GET | /v1/billing/subscription | Get the current account's subscription status. |
GET /v1/billing/plans
List all available plans with their prices and limits.
Responses
| Status | Description |
| 200 | Available billing plans |
Example
curl -X GET https://api.euromail.dev/v1/billing/plans \
-H "X-EuroMail-Api-Key: em_live_..."
import { EuroMail } from "@euromail/sdk";
const euromail = new EuroMail({ apiKey: "em_live_..." });
const result = await euromail.getBilling();
from euromail import EuroMail
client = EuroMail(api_key="em_live_...")
result = client.get_billing()
use euromail::EuroMail;
let client = EuroMail::new("em_live_...");
let result = client.get_billing().await?;
client := euromail.NewClient("em_live_...")
result, err := client.GetBilling(ctx)
GET /v1/billing/subscription
Get the current account's subscription status.
Responses
| Status | Description |
| 200 | Current subscription details |
| 401 | Unauthorized |
Example
curl -X GET https://api.euromail.dev/v1/billing/subscription \
-H "X-EuroMail-Api-Key: em_live_..."
import { EuroMail } from "@euromail/sdk";
const euromail = new EuroMail({ apiKey: "em_live_..." });
const result = await euromail.getBilling();
from euromail import EuroMail
client = EuroMail(api_key="em_live_...")
result = client.get_billing()
use euromail::EuroMail;
let client = EuroMail::new("em_live_...");
let result = client.get_billing().await?;
client := euromail.NewClient("em_live_...")
result, err := client.GetBilling(ctx)