---
title: "Chat Message"
method: POST
path: "/v2/chat/message"
tags: ["v2 - Chat"]
---

# Chat Message

`POST /v2/chat/message`

## Request

- Base URL: `https://api.jubjubapp.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.jubjubapp.com/v2/chat/message`
- Auth: HTTP bearer

Send a message to the user's active AI provider.

Returns the AI reply as JSON. Uses the creator's own API key
from ai_credentials_v1.

## Headers

- `Authorization` string
- `X-JubJub-Service-Key` string
- `X-JubJub-Agent-Key` string
- `X-JubJub-Platform-Key` string
- `Origin` string
- `Referer` string
- `X-JubJub-Trial-Token` string

## Request body

- ChatMessageRequest
  - `message` string, required
  - `context` ChatContext
    - `profile_id` string, nullable
    - `page` string, nullable
    - `surface` string, nullable
    - `content_id` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/jubjubapp/apis/jubjub-api.md) - [All operations](https://skmtc.dev/jubjubapp/apis/jubjub-api/llms.txt) - [OpenAPI document](https://skmtc.dev/jubjubapp/apis/jubjub-api/revisions/353157b296f2?raw)
