Skip to main content
POST
/
api
/
chat
AI economics chat assistant
curl --request POST \
  --url https://macrobymark.com/api/chat \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "messages": "<array>",
  "pathname": "<string>",
  "firstName": "<string>"
}
'

Documentation Index

Fetch the complete documentation index at: https://docs.macrobymark.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-API-Key
string
header
required

Body

application/json
messages
array
required
pathname
string
firstName
string

Response

200

Streaming UIMessage response