Send a JSON-RPC request
Changed onThe single entry point for a session and for talking to the assistant. Set method to initialize (open a session), notifications/initialized (confirm it), message/send (send the member's message) or action/invoke (run a button's action; v1alpha1 only). See the request examples for each. Send the Anvil-Session-Id header returned by initialize on the other calls.
Any request that reaches this endpoint answers HTTP 200. Success carries result and failure carries error.
Error bodies are described in the error contract.
Request
- Base URLhttps://api.trademeai.co.nz (the document declares no server; this is the origin it was published from)
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Headers
Request body
Response
JSON-RPC 2.0 response. HTTP status is always 200 for any request that reaches the dispatcher; success vs error is signalled by the presence of result vs error in the body. On error, error.code is one of: -32600 Invalid Request, -32602 validation, -32001 quota, -32002 safety, -32003 rate_limit, -32004 action, -32603 internal. See the error contract reference for envelope shape and per-category data.kind registry. Non-200 responses (401/403 auth, 422 malformed body, 404 unknown route, 429 edge rate-limit/capacity) are resolved before the JSON-RPC envelope exists and are not part of this body contract.
Changes
- breaking
added to the
/////response propertyoneOflist for the response status - breaking
added to the
////////response propertyoneOflist for the response status - info
added
watchlist_togglediscriminator mapping keys to the/////response property for the response status - info
added
watchlist_togglediscriminator mapping keys to the////////response property for the response status
- breaking
- breaking
added to the
/////response propertyoneOflist for the response status - breaking
added to the
////////response propertyoneOflist for the response status - info
added
text_inputdiscriminator mapping keys to the/////response property for the response status - info
added
text_inputdiscriminator mapping keys to the////////response property for the response status
- breaking