AurionAI Docs

Push Notify Internal

Trigger push notification for a ticket event — internal use only (AC4). Called by twilio-webhooks after Freshservice ticket status changes. Routes to the appropriate PushNotificationService method based on event_type. Accepts requester_id directly, or requester_email/phone to resolve it. Requires X-Internal-Secret header (fail-closed: rejects if not configured). Issue #398 S4: changed from fail-open to fail-closed.

POST
/api/internal/push-notify

Trigger push notification for a ticket event — internal use only (AC4).

Called by twilio-webhooks after Freshservice ticket status changes. Routes to the appropriate PushNotificationService method based on event_type. Accepts requester_id directly, or requester_email/phone to resolve it. Requires X-Internal-Secret header (fail-closed: rejects if not configured). Issue #398 S4: changed from fail-open to fail-closed.

Header Parameters

X-Internal-Secret?string|null

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://loading/api/internal/push-notify" \  -H "Content-Type: application/json" \  -d '{    "event_type": "ticket.created",    "tenant_id": "string",    "ticket_id": "string",    "ticket_subject": "string"  }'
{}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}