Mailosaur
Mailosaur

Usage

The Usage API allows you to view your account limits, as well as list usage history to better understand how your Mailosaur account is utilized.

GET/api/usage/limits

Retrieve account usage limits. Details the current limits and usage for your account. This endpoint requires authentication with an account-level API key.

Run in PostmanRun in Insomnia
Example request
curl \
  -u api:YOUR_API_KEY \
  https://mailosaur.com/api/usage/limits
Example response
{
  "servers": {
    "current": 27,
    "limit": 50
  },
  "users": {
    "current": 16,
    "limit": 25
  },
  "email": {
    "current": 12356,
    "limit": 20000
  },
  "sms": {
    "current": 271,
    "limit": 500
  },
  "previews": {
    "current": 89,
    "limit": 200
  },
  "numbers": {
    "current": 2,
    "limit": 5
  }
}
GET/api/usage/transactions

Retrieves the last 31 days of transactional usage. This endpoint requires authentication with an account-level API key.

Run in PostmanRun in Insomnia
Example request
curl \
  -u api:YOUR_API_KEY \
  https://mailosaur.com/api/usage/transactions
Example response
{
  "items": [
    {
      "timestamp": "2021-01-31T00:00:00Z",
      "email": 2000,
      "sms": 51,
      "previews": 0
    }
  ]
}
Previous