REST API
Yeti-Switch providing two REST API interfaces for integrations with external systems.
Admin API
Admin API is designed automate Yeti-Switch configuration and data provisioning from external systems. Access to Admin API controlled at System->Admin Users because Admin API client has same access level as regular system administrator. Administration API based on JSONAPI speficication.
Automatically generated API documentation included to yeti-web distribution and available at path /doc/api/admin/index.html
API documentation on demo instance https://demo.yeti-switch.org/doc/api/admin/index.html
Warning
Access to admin API endpoint /api/rest/admin/ is blocked by default in supplied NGINX configuration file yeti-web.dist.nginx
Customer API
Customer API is designed to be backend for customer portals to allow end-user fetch Rates, Account information, CDRs, Statistics and other customer-specific data. Access to Customer API controlled at Customer Portal Logins Admin WEB Interface section. Customer API based on JSONAPI speficication and perfectly fit for JS SPA clients.
Automatically generated API documentation included to yeti-web distribution and available at path /doc/api/customer/v1/index.html
API documentation on demo instance https://demo.yeti-switch.org/doc/api/customer/v1/index.html
Logging
All API requests logged. Logs located in Admin Web interface Logs->Api Log
Debug mode
By default API log doesn’t contain request payload(body) and response. To enable verbose debug mode - create record in System->Api Log Configs