Submit a Billing Care Chat Request

post

/invoke/chat

The endpoint submits a Billing Care chat request through the hosted integration route. The /chat endpoint provides an equivalent compatibility alias.

Request

Header Parameters
  • Specifies the existing session's ID. The response returns the active session's ID in the X-Session-Id header and the response body.
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
Nested Schema : conversation_messages
Type: array
Specifies the optional legacy conversation history as [role, content] pairs.
Show Source
Nested Schema : operation_payload
Type: object
Additional Properties Allowed: true
The service accepts this field for compatibility. The API does not support write operations.
Nested Schema : previous_messages
Type: array
Specifies the optional conversation history.
Show Source
Nested Schema : items
Type: array
Minimum Number of Items: 2
Maximum Number of Items: 2
Nested Schema : PreviousMessage
Type: object
Show Source
Security
  • Type: http
    Description: The deployment requires bearer authentication only when it enables IDCS authentication.
Back to Top

Response

200 Response

The request was completed successfully. If the system throws a runtime error, the response code 200 is returned alongside the error message in the response body. If a request asks for another account's bill details, the response body contains status: error instead of an HTTP error response.
Headers
Body ()
Root Schema : ChatResponse
Type: object
Show Source
Nested Schema : follow_up_questions
Type: array
Show Source
Examples

401 Response

The request does not include a valid bearer token, which the deployment requires when IDCS authentication is enabled.
Body ()
Root Schema : ErrorResponse
Type: object
Show Source

422 Response

The request contains an invalid body or header.
Body ()
Root Schema : ValidationErrorResponse
Type: object
Show Source
Nested Schema : detail
Type: array
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : loc
Type: array
Show Source
Nested Schema : items
Match One Schema
Show Source

502 Response

The billing agent could not process the request.
Body ()
Root Schema : ErrorResponse
Type: object
Show Source

503 Response

The billing agent is temporarily unavailable.
Body ()
Root Schema : ErrorResponse
Type: object
Show Source
Back to Top