Skip to main content

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

Error Codes

Authentication Errors

INVALID_API_KEY
401
The provided API key is invalid, revoked, or expired
Solutions:
  • Verify API key format
  • Check if key was revoked in dashboard
  • Ensure key hasn’t expired
API_KEY_SUSPENDED
401
The API key has been temporarily suspended
Solution: Contact support or check dashboard for details

Permission Errors

INSUFFICIENT_PERMISSIONS
403
API key lacks required scope
Solution: Add required scope to API key or create new key
RESOURCE_ACCESS_DENIED
403
Resource belongs to different company
Solutions:
  • Verify resource belongs to your company
  • Check if using correct companyId (ATS keys)
  • Ensure resource hasn’t been deleted

Validation Errors

VALIDATION_ERROR
400
Request validation failed
Solution: Fix validation errors in request body
MISSING_REQUIRED_FIELD
400
Required field not provided

Resource Errors

RESOURCE_NOT_FOUND
404
Requested resource doesn’t exist
RESOURCE_CONFLICT
409
Resource already exists or state conflict

Rate Limiting

RATE_LIMIT_EXCEEDED
429
Too many requests
Solution: Wait for retryAfter seconds, implement exponential backoff

Business Logic Errors

BILLING_LIMIT_EXCEEDED
403
Company billing limit reached
Solution: Upgrade plan or wait for monthly reset
INVALID_STATE_TRANSITION
422
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

Next Steps

Rate Limiting

Handle rate limits properly

Best Practices

Production-ready patterns

Authentication

Fix authentication errors

API Reference

See all error codes per endpoint