API & Webhook

👍

Recommended reading

Read the complete Meya API reference to understand the best usage of the API & Webhook integration.

On Meya:

  1. Create a Meya bot (or use existing bot)
  2. Add a "API & Webhook" integration
  3. Note your API key (keep it private)
  4. Optionally, set your Webhook URL to subscribe to events

User profile data

Field NameDescription
user_idMeya user id

Webhook timeout

If you're API is slow to respond, you may get an External request timeout error.

501

An example using the API & Webhook integration.

These errors appear when your API doesn't respond within 3 seconds. If this is happening regularly, consider the following options.

  • Look for optimizations you can make to the API code so it responds faster.
  • Look for optimizations you can make to the bot code.

If neither of these are possible, or you've already attempted to optimize the code, you may request an increased timeout limit by contacting [email protected]. Note that your request may not be approved.