API reference
The MessageOS API at /v1.
The API is served at https://api.messageos.ai/v1. An unknown path returns 404 not_found. Use that address unless MessageOS gave you another one. The Developers page of the dashboard shows the address for your agent, and environment in GET /v1/whoami names the environment that answered.
Send request bodies as JSON with Content-Type: application/json. A body that is not valid JSON returns 422 validation_error. A body over 1 MB returns 413 payload_too_large.
Every error body includes requestId. Most responses also send it in the X-Request-Id header. Quote it when you report a problem.
Start with Authentication, Errors, Idempotency, and Rate limits. Objects lists the fields of each object the API returns.
Each endpoint page is generated from the same contract the API checks, and a stale contract fails the docs build.
Code samples
Every endpoint page shows its request in cURL, JavaScript, Python, PHP, Ruby, Go, Java, and C#. Pick one under Language, and the page remembers it. Where an endpoint has more than one example, such as each kind of message, pick one under Example and the sample changes to match.
Each sample is a whole program that uses only what comes with the language, and prints the status and the answer. The samples send a placeholder key: replace mosc_... with your client key. Keep a real key on your server, never in a web page or an app.
Each endpoint page also has a Markdown copy with the same reference, for a coding assistant or a search: add .md to the page address. /llms-full.txt is every page in one text file.
