API Documentation

Webhook endpoints and API reference

POST
/api/genesys/sms/inbound
Telnyx inbound message webhook - forwards SMS to Genesys Cloud Open Messaging

Request Body

{
  "data": {
    "event_type": "message.received",
    "payload": {
      "id": "msg_123",
      "from": {
        "phone_number": "+12125551234"
      },
      "text": "Hello",
      "tags": ["+12125551234", "listId", "contactId"]
    }
  }
}

Event Types

EventAction
message.receivedForward to Genesys Cloud
message.sentUpdate contact list status
message.finalizedUpdate contact list status
POST
/api/webhooks/telnyx/insights
Verified Telnyx insights webhook for conversation.insights.completed, call.conversation_insights.generated, and conversation_insight_result

Configure this URL on an AI Insight Group. The endpoint verifies the exact raw request body with TELNYX_PUBLIC_KEY before accepting the event.

Required headerValue
telnyx-signature-ed25519Base64 Ed25519 signature
telnyx-timestampUnix timestamp with a five-minute replay window
POST
/api/genesys/sms/outbound
Genesys Cloud outbound message webhook - sends SMS via Telnyx

Request Body

{
  "type": "Text",
  "text": "Hello from agent",
  "channel": {
    "to": {
      "id": "+12125551234|listId|contactId"
    }
  }
}

Headers

HeaderValue
x-hub-signature-256HMAC SHA-256 signature
Content-Typeapplication/json
POST
/api/genesys/sms/agentless
Send SMS without agent assignment

Request Body

{
  "number": "+12125551234",
  "text": "Your message here"
}

Response

{
  "success": true,
  "conversationId": "abc-123"
}
GET
/api/health
Health check endpoint

Response

{
  "status": "ok",
  "timestamp": "2024-02-07T12:00:00.000Z",
  "service": "telnyx-genesys-integrations"
}
Message Tags & Campaign Tracking
How to track campaign delivery status in Genesys contact lists

Messages can include tags for campaign tracking. Format: number|listId|contactId

Contact List Fields (Auto-Updated)

FieldDescription
TELNYX_STATUSDelivery status (sent, delivered, etc.)
TELNYX_TIMETimestamp (ISO 8601)
TELNYX_PRICEMessage cost (USD)
TELNYX_MESSAGE_IDTelnyx message ID
TELNYX_MESSAGEMessage text