Overview
The InstaView API uses standard HTTP status codes and returns structured error responses to help you diagnose and handle issues in your integration.Response Structure
All API responses follow a consistent format:Success Response
Error Response
HTTP Status Codes
- 2xx Success
- 4xx Client Errors
- 5xx Server Errors
| Code | Meaning | Usage |
|---|---|---|
| 200 | OK | Successful GET, PATCH, DELETE requests |
| 201 | Created | Successful POST request creating a resource |
Error Codes
Authentication Errors
The provided API key is invalid, revoked, or expiredSolutions:
- Verify API key format
- Check if key was revoked in dashboard
- Ensure key hasn’t expired
The API key has been temporarily suspendedSolution: Contact support or check dashboard for details
Permission Errors
API key lacks required scopeSolution: Add required scope to API key or create new key
Resource belongs to different companySolutions:
- Verify resource belongs to your company
- Check if using correct companyId (ATS keys)
- Ensure resource hasn’t been deleted
Validation Errors
Request validation failedSolution: Fix validation errors in request body
Required field not provided
Resource Errors
Requested resource doesn’t exist
Resource already exists or state conflict
Rate Limiting
Too many requestsSolution: Wait for
retryAfter seconds, implement exponential backoffBusiness Logic Errors
Company billing limit reachedSolution: Upgrade plan or wait for monthly reset
Invalid resource state change
Error Handling Patterns
Basic Error Handling
Comprehensive Error Handler
Retry with Exponential Backoff
Validation Error Handling
Handle field-level validation errors:Idempotency
Implement idempotency for safe retries:Logging and Monitoring
Log errors for debugging and monitoring:Best Practices
Always Check success Field
Always Check success Field
Provide Context in Errors
Provide Context in Errors
Don't Expose Sensitive Data
Don't Expose Sensitive Data
Implement Circuit Breakers
Implement Circuit Breakers