MailLeader
  1. Billing
MailLeader
  • Inicio
  • Comece Aqui
  • Comece a receber e-mails
  • Api
    • Authentication
      • Api Keys
        • Create ApiKey
        • Search ApiKeys
        • Remove ApiKey
    • User
      • Get authenticated user
    • Domain
      • Accounts
        • Create Account
        • List Accounts
        • Delete Account
      • Create Domain
      • Domains
      • Delete Domain
    • Mail
      • Send Mail
    • Billing
      • Licenses
        • Search License
        • Get License
      • Invoice
        • Get Invoice Details
        • Search Invoices
        • Get Invoice
      • Expenses
        • List Expenses
      • Profile
      • Domain Usage
        GET
      • Domain Usage Operational
        GET
      • Usage
        GET
      • Current License
        GET
    • Webhook
      • Create Webhook
      • Update Webhook
      • Search Webhook
  1. Billing

Domain Usage

GET
https://mail.devtcloud.com/api/v1/billing/{domainId}/civil/usage

Requisição

Authorization
Adicionar parâmetro em header
x-api-key
Exemplo:
x-api-key: ********************
Parâmetros de Caminho

Parâmetros Bodyapplication/x-www-form-urlencoded

Respostas

🟢200Sucesso
application/json
Body

Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://mail.devtcloud.com/api/v1/billing//civil/usage' \
--header 'x-api-key: <api-key>'
Response Response Example
{
  "total": 1,
  "value": 0.0005,
  "metrics": [
    {
      "id": "100000000000000100",
      "account": "contato@exemplo.com",
      "relay": false,
      "domainId": "100000000000000200",
      "createdAt": "2025-01-01T12:00:00.000Z",
      "updatedAt": "2025-01-01T12:00:00.000Z",
      "totalMails": "1"
    },
    {
      "id": "100000000000000101",
      "account": "no-reply@exemplo.com",
      "relay": true,
      "domainId": "100000000000000200",
      "createdAt": "2025-01-02T09:30:00.000Z",
      "updatedAt": "2025-01-02T09:30:00.000Z",
      "totalMails": "0"
    }
  ],
  "history": [
    {
      "month": "05/2025",
      "total": 0,
      "cost": 0
    },
    {
      "month": "06/2025",
      "total": 0,
      "cost": 0
    },
    {
      "month": "07/2025",
      "total": 0,
      "cost": 0
    },
    {
      "month": "08/2025",
      "total": 0,
      "cost": 0
    },
    {
      "month": "09/2025",
      "total": 0,
      "cost": 0
    },
    {
      "month": "10/2025",
      "total": 1,
      "cost": 0.0005
    }
  ]
}
Modificado em 2025-11-26 13:54:43
Página anterior
List Expenses
Próxima página
Domain Usage Operational
Built with