Skip to content

Errors

The XingZap API uses the following error codes:

Error CodeMeaning
400Bad Request - Your request is invalid.
403Forbidden - Access denied. Check your API key.
429Too Many Requests - You’re exceeding the rate limit.
500Internal Server Error - We had a problem with our server. Please contact us!

Check that your request body contains valid JSON and all required parameters. Refer to the specific endpoint documentation for required fields.

Ensure your X-Api-Key header is present and contains a valid API key. If you don’t have an API key, request one here.

You’ve exceeded the rate limit of 1 request per second. Implement exponential backoff in your application:

import time
def make_request_with_retry(max_retries=3):
for attempt in range(max_retries):
response = make_api_request()
if response.status_code == 429:
wait_time = 2 ** attempt # 1, 2, 4 seconds
time.sleep(wait_time)
continue
return response
raise Exception("Max retries exceeded")

This is a server-side issue. Please contact support if the problem persists.