API Documentation

Integrate CX Tools directly into your applications with our powerful API.

Authentication

All API requests require authentication using an API key. You can generate an API key in your dashboard settings.

curl -H "Authorization: Bearer YOUR_API_KEY" https://api.cxtools.xyz/v1/endpoint

Rate Limits

Rate limits vary by plan:

  • Free: 100 requests/hour
  • Pro: 1,000 requests/hour
  • Enterprise: Custom limits

Available Endpoints

GRXML Validation

Validate GRXML grammar files.

POST /v1/grxml/validate
Content-Type: application/xml

<grammar>...</grammar>

IVR Flow Testing

Test IVR flows with simulated user input.

POST /v1/ivr/test
Content-Type: application/json

{
  "flow": "customer_service",
  "input": "1"
}

Voice Generation

Generate voice prompts using AI.

POST /v1/voice/generate
Content-Type: application/json

{
  "text": "Welcome to our service",
  "voice": "en-US-Neural2-F"
}

Error Handling

The API uses standard HTTP response codes:

  • 200 - Success
  • 400 - Bad Request
  • 401 - Unauthorized
  • 403 - Forbidden
  • 429 - Too Many Requests
  • 500 - Server Error

Support

Need help with the API? Contact our support team: