---
title: "Send a message to the support agent"
url: "https://kongnet.kongai.uk/apis/kongnet-support-agent-api-1/versions/264e8f23-19dc-499a-b70f-1580e5d5e058/operations/invokeSupportAgent"
---

> Full API specification: https://kongnet.kongai.uk/apis/kongnet-support-agent-api-1/versions/264e8f23-19dc-499a-b70f-1580e5d5e058.md

# Send a message to the support agent

`POST` `/agents/support/invoke`

Operation ID: `invokeSupportAgent`

## Header parameters

- `X-Customer-Id` (string, required)
- `X-Session-Id` (string, required)

## Request body (required)

Content types: `application/json`

## Responses

- `200` - Event stream
- `401` - Missing or invalid key

## OpenAPI definition

```yaml
openapi: 3.0.3
info:
  title: KongNet Support Agent
  version: 1.0.0
servers:
  - url: http://localhost:8010
    description: Demo data plane
paths:
  /agents/support/invoke:
    post:
      operationId: invokeSupportAgent
      summary: Send a message to the support agent
      tags:
        - Agent
      parameters:
        - name: X-Customer-Id
          in: header
          required: true
          schema:
            type: string
        - name: X-Session-Id
          in: header
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - session_id
              properties:
                session_id:
                  type: string
                message:
                  type: string
                model_alias:
                  type: string
                confirm:
                  type: object
                  properties:
                    id:
                      type: string
                    approved:
                      type: boolean
      responses:
        "200":
          description: Event stream
          content:
            text/event-stream:
              schema:
                type: string
        "401":
          description: Missing or invalid key
security:
  - apikey: []
components:
  securitySchemes:
    apikey:
      type: apiKey
      in: header
      name: apikey
```
