UChat Webhook System
Overview
The Bot Webhook API provides functionality to manage user interactions in a messaging system, including user creation, field updates, and flow management. This API integrates with uChat's backend API services.
Important Notes:
This API is FREE and will continue to remain free.
IMPORTANT: Authentication process will be updated in future releases.
Currently works best for whatsapp bots. We plan to expend this to support multiple channels.
For support contact: hey@manojlk.work
Endpoint URL: https://api.yetanotherapi.com/bot-webhook
Authentication
All API requests require Bearer token authentication.
Your API token can be obtained from the UChat account settings.
Endpoints
Send Bot Webhook
POST /bot-webhook
Handles user management and flow distribution in the messaging system.
Request
Headers:
Content-Type: application/json
(Required)Authorization: Bearer <token>
(Required)
Body Parameters:
Response
Success Response (200 OK)
Partial Success Response (206 Partial Content) Returned when some operations succeed but others fail.
Error Responses:
400 Bad Request
: Missing required fields or invalid JSON404 Not Found
: User not found and creation failed500 Internal Server Error
: Server-side error
Each response includes a unique request_id
in both the response body and header (X-Request-ID
).
Example Request
Error Handling
The API implements a robust error handling system with:
Input validation
Retry mechanism (max 3 retries) for user retrieval
Detailed error messages in responses
Comprehensive error logging
Logging and Monitoring
All API interactions are logged with:
Request details
API call traces
Execution timestamps
Response data
Error information
Each request can be tracked using its unique request_id
.
Support
For any queries or support, please contact: hey@manojlk.work
Last updated
Was this helpful?