Overview
The Billing API provides read-only access to your usage statistics. InstaView supports two billing systems and the same endpoint serves both:- Minutes (legacy) — companies are billed by interview minutes consumed. Subscription plans include a minutes allowance and an overage rate per minute.
- Credits (new) — companies are billed in credits, with a per-product price (
baseCostpluscostPerMinutebeyond anincludedMinuteswindow) determined by the agent focus.
Required Scope:
read:billing is required to access billing and usage endpoints.Usage Endpoint
Get Usage Statistics
Query Parameters
start(optional): Start date for the usage period (ISO 8601 format)end(optional): End date for the usage period (ISO 8601 format)- If not provided, defaults to the last 30 days
Response Structure (Minutes-Based Company)
Response Structure (Credits-Based Company)
Field Descriptions
- companies: Array of company-level usage (for ATS keys managing multiple companies, this contains all companies)
- billingSystem (per company):
"minutes"or"credits". Determines which usage fields are populated. - totalMinutesUsed: Total interview minutes consumed in the period. Present for minutes-based companies (and for ATS keys, aggregated across the managed companies); omitted otherwise.
- totalCreditsUsed: Total credits consumed in the period. Present for credits-based companies; omitted otherwise.
- totalInterviews: Total number of interviews conducted.
- breakdownByCostKey: Usage breakdown by cost category. Each entry exposes
costKey,events, and eitherminutesUsed(minutes-based) orcreditsUsed(credits-based). Per-company breakdowns never mix the two units.
Subscription Plans
Subscription plans are defined by:- maxInterviewMinutes: Interview minutes included in the plan (minutes-based companies)
- pricePerMonth: Monthly subscription cost
- pricePerYear: Annual subscription cost (if applicable)
- pricePerMinute: Per-minute cost for usage beyond included minutes (minutes-based companies)
- Feature flags: Various boolean flags for features like custom voices, phone numbers, ATS integrations, etc.
baseCost, includedMinutes, and costPerMinute per agent focus). Custom overrides may apply per company.
Plan details, credit pricing rules, and any custom overrides are managed through your company dashboard. Contact sales for custom pricing.
Monitoring Usage
Check Period Usage
Usage Alerts
Set up monitoring to track usage patterns:ATS Integration Keys
For ATS integration keys managing multiple companies, the usage endpoint returns aggregated data across all managed companies:Usage Reporting
Monthly Usage Report
Date Range Analysis
Cost Breakdown
ThebreakdownByCostKey field provides granular usage tracking. Each bucket carries minutesUsed for minutes-based companies and creditsUsed for credits-based companies.
Best Practices
Cache Usage Data
Cache Usage Data
Cache usage statistics to reduce API calls:
Set Usage Alerts
Set Usage Alerts
Monitor usage and set up alerts:
Track Per-Company Usage
Track Per-Company Usage
For ATS integrations, monitor usage per company:
Managing Subscriptions
For subscription changes:- Log in to app.instaview.sk
- Navigate to Settings → Billing
- View available plans and make changes
- Or contact sales: sales@instaview.sk
Next Steps
Interview API
Schedule and manage interviews
Best Practices
Optimize your API usage
Error Handling
Handle billing errors gracefully
Scopes & Permissions
Understand API key scopes