API Reference
API Overview
Build integrations with the Veya API
Introduction
The Veya API allows you to programmatically interact with the platform. Send messages, manage contacts, and build custom integrations.
Base URL
All API requests should be made to:
https://api.veya.cloud/apiInteractive Documentation
Explore our API interactively at:
Request Format
All requests should:
- Use HTTPS
- Include authentication header
- Send JSON body for POST/PUT/PATCH requests
- Accept JSON responses
Example Request
curl -X POST https://api.veya.cloud/api/messages \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"to": "+1234567890",
"type": "text",
"text": "Hello from API!"
}'Response Format
All responses are JSON with consistent structure:
Success Response
{
"success": true,
"data": {
"id": "msg_123",
"status": "sent"
}
}Error Response
{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "Phone number is required"
}
}HTTP Status Codes
| Code | Description |
|---|---|
200 | Success |
201 | Created |
400 | Bad Request - Invalid input |
401 | Unauthorized - Invalid/missing API key |
403 | Forbidden - No permission |
404 | Not Found |
429 | Too Many Requests - Rate limited |
500 | Internal Server Error |
Rate Limits
API requests are rate limited:
- Standard: 100 requests/minute
- Messages: 50 messages/second
Rate limit headers:
X-RateLimit-Limit: Total allowedX-RateLimit-Remaining: Remaining requestsX-RateLimit-Reset: Reset timestamp
SDKs & Libraries
Currently, we provide a REST API with OpenAPI specification. Use any HTTP client or generate SDKs from our OpenAPI spec.
Next Steps
- Authentication - Set up API access
- Interactive Docs - Try the API