Skip to main content

Error Handling

The My Virtual Office API uses standard HTTP status codes to indicate the success or failure of requests. This guide explains the error responses you may encounter and how to handle them.

Error Response Format

All error responses follow a consistent JSON format:

HTTP Status Codes

Success Codes

Client Error Codes

Server Error Codes

Common Errors and Solutions

Authentication Errors (401)

Solution: Include your API key in the request headers:
Solution: Verify your API key is correct. Generate a new one from Settings > API Keys if needed.
Solution: This API key has been disabled. Generate a new one from your dashboard.
Solution: This API key has passed its expiration date. Generate a new one from your dashboard.

Validation Errors (400)

Solution: Ensure all required fields are included in your request body.
Solution: Provide a valid email address in the correct format.

Business Logic Errors (403)

Solution: Upgrade your subscription to add more customers, or remove existing customers you no longer need.

Conflict Errors (409)

Solution: Each customer must have a unique email address within your account. Use a different email or update the existing customer.

Best Practices

1. Always Check Status Codes

2. Implement Retry Logic

For transient errors (5xx), implement retry with exponential backoff:

3. Log Errors for Debugging

Keep detailed logs of API errors to help with debugging:

4. Handle Rate Limiting

If you receive a 429 error, wait before retrying:

Need Help?

If you’re encountering errors that you can’t resolve, please contact our support team at hello@my-virtual-office.com with:
  • The endpoint you’re calling
  • The request body (with sensitive data removed)
  • The full error response
  • Your account email