Перейти к содержанию

CallBox API

Базовый URL

  • Внутренний: http://10.10.19.21:8000 (web-1), http://10.10.19.22:8000 (web-2)
  • Внешний: https://b2g.kz/api
  • Swagger: http://10.10.19.21:8000/docs

Авторизация

JWT Bearer токены. Access token: 60 минут, Refresh token: 7 дней.

Основные эндпоинты

Авторизация: POST /auth/login, POST /auth/refresh

Организации: GET /organizations/{tenant_id}/info

Операторы: GET/POST /organizations/{tenant_id}/operators, PUT /organizations/{tenant_id}/operators/{id}

Очереди: GET/POST /organizations/{tenant_id}/queues

SIP эндпоинты: GET /organizations/{tenant_id}/endpoints, GET .../endpoints/status

Маршруты: GET/POST /organizations/{tenant_id}/routes

Расписание: GET /organizations/{tenant_id}/working-hours/queue/{queue}, POST .../working-hours/bulk

Статистика: POST /organizations/{tenant_id}/statistics/call-center, POST .../statistics/terminals, POST .../statistics/operators

Мониторинг: GET /organizations/{tenant_id}/monitoring, GET .../monitoring/queues/{queue}

Записи: GET /organizations/{tenant_id}/recordings/{cdr_id}, GET .../recordings/{cdr_id}/download

TTS: POST /organizations/{tenant_id}/tts/generate