Tasks
Poll next task for an agent
Changed onget/api/tasks/queue
Request
- Base URL/ (relative, and the document was published on a file host, not at the API’s origin)
- Auth
- API key in cookie __Host-mc-session
- or API key in header x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
agentstring
Agent name. Optional when x-agent-name header is provided.
max_capacityinteger
Headers
x-agent-namestring
Agent attribution header used when agent query param is omitted.
Response
Queue poll result
Changes
- info
endpoint added
- info