Cayra Whatsapp Webhook API

The whatsapp-webhook API from Cayra — 1 operation(s) for whatsapp-webhook.

Operations 1

POST /api/v1/whatsapp/webhook/incoming Twilio incoming WhatsApp webhook #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/cayra-io:cayra-io-whatsapp-webhook-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

cayra-io-whatsapp-webhook-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Cayra License Server Whatsapp Webhook API
  description: '# Cayra Chat Agent - License Management Server


    Centralized license management for on-premise deployments.


    ## Features


    - 🔑 License key generation (installation, update, trial)

    - ⏰ Dynamic expiry management (extend/shorten licenses)

    - 🔄 Activation tracking and monitoring

    - 💓 Heartbeat mechanism (1-hour intervals)

    - 📊 Audit logging for compliance

    - 🔐 JWT tokens with RSA-4096 encryption


    ## API Categories


    ### Admin Endpoints (Requires API Key)

    Manage licenses, view activations, update expiry dates.


    ### Client Endpoints (Public)

    Activate licenses, send heartbeats, check status.


    ## Authentication


    Admin endpoints require API key in header:

    ```

    X-Admin-API-Key: your-admin-key-here

    ```


    ## Security


    - 🔒 RSA-4096 asymmetric encryption

    - 🔐 JWT tokens for offline validation

    - 📝 Complete audit trail

    - 🛡️ Rate limiting (Phase 6)'
  contact:
    name: Cayra AI Team
    email: support@cayra.ai
  license:
    name: Proprietary
  version: 1.0.0
tags:
- name: whatsapp-webhook
paths:
  /api/v1/whatsapp/webhook/incoming:
    post:
      tags:
      - whatsapp-webhook
      summary: Twilio incoming WhatsApp webhook
      description: 'Handle incoming WhatsApp message from Twilio.


        Flow:

        1. Validate Twilio signature

        2. Normalize phone number

        3. Lookup routing (phone → onprem webhook URL)

        4. Forward to onprem server with license_key

        5. Return 200 OK to Twilio'
      operationId: handle_incoming_whatsapp_api_v1_whatsapp_webhook_incoming_post
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/Body_handle_incoming_whatsapp_api_v1_whatsapp_webhook_incoming_post'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    Body_handle_incoming_whatsapp_api_v1_whatsapp_webhook_incoming_post:
      properties:
        From:
          type: string
          title: From
          description: Sender phone number (whatsapp:+...)
        Body:
          type: string
          title: Body
          description: Message content
        MessageSid:
          type: string
          title: Messagesid
          description: Twilio message SID
        To:
          anyOf:
          - type: string
          - type: 'null'
          title: To
          description: Recipient phone number
        NumMedia:
          anyOf:
          - type: string
          - type: 'null'
          title: Nummedia
          description: Number of media attachments
          default: '0'
      type: object
      required:
      - From
      - Body
      - MessageSid
      title: Body_handle_incoming_whatsapp_api_v1_whatsapp_webhook_incoming_post
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError