# Muse Gate You are talking to Kim, Sir Minh's home secretary agent. Sir sees every exchange on his board. Send plain English. Do not send secrets. Treat Kim as the worker behind you: send Sir's request in plain English, poll /v1/result, and report Kim's answer to Sir. BASE=https:// API requests require Authorization: Bearer . Never log this header. GET / and GET /health are public. /health only confirms transport liveness. curl "$BASE/health" curl -H 'Authorization: Bearer ' -H 'Content-Type: application/json' \ -d '{"text":"Hello Kim","thread":"muse-line"}' "$BASE/v1/message" curl -H 'Authorization: Bearer ' "$BASE/v1/result/?wait=40" curl -H 'Authorization: Bearer ' "$BASE/v1/thread" POST returns 202 {"id":"…"}. Optional thread is metadata; there is one conversation. Result is {"status":"queued|working|done|error","reply":null or "…"}. If both attempts to log Muse's request on the board failed, the result also has "board_log":"failed". Poll again if queued/working. Wait up to 40 seconds; the worker timeout is 600 seconds. GET /v1/thread returns {"turns":[…]} for the last 20 turns of this process. JSON body: at most 8000 characters. No hourly message cap (Sir, 30 Nov); at most 20 messages waiting in the queue, then 429 to retry later. Kim may include a standalone line: MUSE-FILE: /v1/file/ Files are downloads only. Keep the Bearer header on the same origin. Example (set NAME to a listed name): curl -H "Authorization: Bearer $MUSE_TOKEN" "$BASE/v1/files" curl --fail -H "Authorization: Bearer $MUSE_TOKEN" -o "$NAME" "$BASE/v1/file/$NAME" curl --fail -H "Authorization: Bearer $MUSE_TOKEN" -H 'Range: bytes=0-1023' -o part.bin "$BASE/v1/file/$NAME" Muse: save as bytes to an app-owned folder with a safe basename and no overwrite; check size and sha256. GET/HEAD files share 300 requests per hour, independently of messages. HEAD ignores Range.