Перейти к содержимому

Разработчикам

Requests and answers

Документация для разработчиков написана на английском языке.

Send JSON to POST /v1/ops/{operation-name}. A successful answer has a result field. An error has a code and message; some refusals also have a reason and detail. Include the request_id when asking for help.

List operations use an opaque cursor. Pass next_cursor to read the next page.

Примеры

Запрос
curl -X POST https://api.telfluent.co.il/v1/ops/billing.offers \
  -H "Authorization: Bearer <key>" \
  -H "Content-Type: application/json" \
  -d '{}'
Успешный ответ
{
  "result": {}
}
Ответ с ошибкой
{
  "error": {
    "code": "<code>",
    "reason": "<reason>",
    "message": "<message>",
    "detail": {}
  },
  "request_id": "<request_id>"
}
Следующая страница списка
curl -X POST https://api.telfluent.co.il/v1/ops/billing.ledger \
  -H "Authorization: Bearer <key>" \
  -H "Content-Type: application/json" \
  -d '{"cursor":"<next_cursor>"}'