---
title: Chat
description: OpenAI-compatible chat completions and UAMP messaging
full: false
_openapi:
  toc:
    - depth: 2
      title: Chat completions (OpenAI-compatible)
      url: '#chat-completions-openai-compatible'
    - depth: 2
      title: UAMP messaging
      url: '#uamp-messaging'
  structuredData:
    headings:
      - content: Chat completions (OpenAI-compatible)
        id: chat-completions-openai-compatible
      - content: UAMP messaging
        id: uamp-messaging
    contents:
      - content: >-
          Send messages to a hosted agent using the OpenAI chat completions
          format. Supports streaming via SSE.
        heading: chat-completions-openai-compatible
      - content: >-
          Send UAMP (Universal Agentic Message Protocol) events to a hosted
          agent. Supports streaming via SSE with `Accept: text/event-stream`.
        heading: uamp-messaging
---

{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}

<APIPage document={"./openapi.json"} webhooks={[]} operations={[{"path":"/api/agents/{id}/chat/completions","method":"post"},{"path":"/api/agents/{id}/uamp","method":"post"}]} showTitle />