← All API sections

Billing

Plans, subscriptions, and billing management

2 endpoints

Endpoints

MethodPathDescription
GET/v1/billing/plansList all available plans with their prices and limits.
GET/v1/billing/subscriptionGet the current account's subscription status.

GET /v1/billing/plans

List all available plans with their prices and limits.

Responses

StatusDescription
200Available 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

StatusDescription
200Current subscription details
401Unauthorized

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)