Billing

Статистика использования

GET
/v1/billing/usage

Authorization

X-Signature<token>

HMAC-SHA256 подпись канонической строки. . Обязательный заголовок

In: header

Query Parameters

period?string
date_from?string
date_to?string

Response Body

application/json

curl -X GET "https://example.com/v1/billing/usage"
{
  "period": {
    "from": "2019-08-24",
    "to": "2019-08-24"
  },
  "total_transcriptions": 1523,
  "total_minutes": 15280.5,
  "total_cost": 4250.75,
  "by_priority": {
    "lightning": {
      "count": 0,
      "minutes": 0,
      "cost": 0
    },
    "queue": {
      "count": 0,
      "minutes": 0,
      "cost": 0
    }
  },
  "by_status": {
    "completed": 0,
    "failed": 0,
    "cancelled": 0
  }
}