message

send event response

Sends a response (RSVP) to a calendar event message.

post/instances/{id}/client/action/send-event-response

Request

  • Base URL: https://waapi.app/api/v1
  • URL: https://waapi.app/api/v1/instances/{id}/client/action/send-event-response
  • Auth: HTTP bearer

Path parameters

idinteger required

Instance ID

Request body

eventResponse0 | 1 | 2 | 3 required

Event response value (0 = no response, 1 = going, 2 = not going, 3 = maybe)

eventMessageIdstring required

The serialized message ID of the event to respond to

Example request

{
  "eventResponse": 1,
  "eventMessageId": "true_1234567890@c.us_ABCDEF1234567890"
}

Response

Request reached the instance. data.status reports whether the action was carried out; on error data carries message and explanation. Payload: Event response sent successfully.

status'success' | 'error'

Whether the request reached the instance. success here does not mean the action was carried out — that is reported by data.status, which is the authoritative one. A malformed input arrives as status: success with data.status: error.

Example response

{
  "status": "success",
  "data": {
    "status": "success",
    "data": {
      "eventMessageId": "true_1234567890@c.us_ABCDEF1234567890",
      "success": true
    }
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.