When your application receives a webhook from our service:Documentation Index
Fetch the complete documentation index at: https://docs.mileapp.dev/llms.txt
Use this file to discover all available pages before exploring further.
- Return HTTP 200 quickly - Do not include complex business logic in the initial processing
- Offload heavy processing - If the webhook triggers any long-running or computationally intensive tasks, offload these to a background process or a separate system
- Keep handlers efficient - This ensures that your webhook handler remains efficient and promptly returns the required HTTP 200 response
Best Practices
Do
- Acknowledge receipt immediately with HTTP 200
- Queue complex processing for background workers
- Log the webhook payload for debugging
- Validate the payload structure before processing
Don’t
- Perform database-heavy operations synchronously
- Make external API calls before responding
- Process large files inline
- Run complex calculations in the request handler