Skip to content

API reference

API: Your agent

Markdown version

MethodPathWhat it doesScope
GET/v1/agent/conversationsYour conversations with the assistant, newest activity first (web app only)agents:read
POST/v1/agent/conversationsStart a conversation with the assistant (web app only)agents:read
GET/v1/agent/conversations/:idOne page of a conversation (web app only)agents:read
PATCH/v1/agent/conversations/:idRename, change the mode or credit limit of, make repeat, archive or bring back a conversation (web app only)agents:read
GET/v1/agent/conversations/:id/eventsA conversation's events as they happen (server-sent events, resumable) (web app only)agents:read
POST/v1/agent/conversations/:id/messagesSend the assistant a message (web app only)agents:read
POST/v1/agent/conversations/:id/stopStop: nothing new starts; a call already running finishes and is reported (web app only)agents:read
POST/v1/agent/conversations/searchLook for your conversations by title (read only; the words stay out of the address) (web app only)agents:read
POST/v1/agent/requestsAsk your marketing agent to do something, in your own wordsagents:write
GET/v1/agent/requests/:idWhere a request to your agent stands: its answer, question, or what waits for a personagents:read
POST/v1/agent/requests/:id/answerAnswer your agent's question; it carries onagents:write
POST/v1/agent/requests/:id/stopStop a request; anything of it still waiting is withdrawnagents:write
GET/v1/agent/skillsThe jobs your agent knows how to do (its skills)agents:read
GET/v1/agent/skills/:nameOne of your agent's skills, with its instructionsagents:read
GET/v1/agent/standingYour standing requests (repeating work you asked your agent for)agents:read
POST/v1/agent/standing/:id/startStart a standing request your agent proposed (web app only)agents:write
POST/v1/agent/standing/:id/stopPause or stop a standing requestagents:write
GET/v1/agent/threadYour conversation with your agent, newest last (30 a page)agents:read

Examples

POST /v1/agent/requests

Ask your marketing agent to do something, in your own words

curl -s -X POST "https://api.scheeleworks.com/v1/agent/requests" \
  -H "Authorization: Bearer $MA_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.scheeleworks.com/v1/agent/requests`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();

GET /v1/agent/requests/$ID

Where a request to your agent stands: its answer, question, or what waits for a person

curl -s "https://api.scheeleworks.com/v1/agent/requests/$ID" \
  -H "Authorization: Bearer $MA_API_KEY"
const res = await fetch(`https://api.scheeleworks.com/v1/agent/requests/${id}`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();

POST /v1/agent/requests/$ID/answer

Answer your agent's question; it carries on

curl -s -X POST "https://api.scheeleworks.com/v1/agent/requests/$ID/answer" \
  -H "Authorization: Bearer $MA_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.scheeleworks.com/v1/agent/requests/${id}/answer`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();

POST /v1/agent/requests/$ID/stop

Stop a request; anything of it still waiting is withdrawn

curl -s -X POST "https://api.scheeleworks.com/v1/agent/requests/$ID/stop" \
  -H "Authorization: Bearer $MA_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.scheeleworks.com/v1/agent/requests/${id}/stop`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();

GET /v1/agent/skills

The jobs your agent knows how to do (its skills)

curl -s "https://api.scheeleworks.com/v1/agent/skills" \
  -H "Authorization: Bearer $MA_API_KEY"
const res = await fetch(`https://api.scheeleworks.com/v1/agent/skills`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();

GET /v1/agent/skills/$NAME

One of your agent's skills, with its instructions

curl -s "https://api.scheeleworks.com/v1/agent/skills/$NAME" \
  -H "Authorization: Bearer $MA_API_KEY"
const res = await fetch(`https://api.scheeleworks.com/v1/agent/skills/${name}`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();

GET /v1/agent/standing

Your standing requests (repeating work you asked your agent for)

curl -s "https://api.scheeleworks.com/v1/agent/standing" \
  -H "Authorization: Bearer $MA_API_KEY"
const res = await fetch(`https://api.scheeleworks.com/v1/agent/standing`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();

POST /v1/agent/standing/$ID/stop

Pause or stop a standing request

curl -s -X POST "https://api.scheeleworks.com/v1/agent/standing/$ID/stop" \
  -H "Authorization: Bearer $MA_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.scheeleworks.com/v1/agent/standing/${id}/stop`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();

GET /v1/agent/thread

Your conversation with your agent, newest last (30 a page)

curl -s "https://api.scheeleworks.com/v1/agent/thread" \
  -H "Authorization: Bearer $MA_API_KEY"
const res = await fetch(`https://api.scheeleworks.com/v1/agent/thread`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();

Request and response schemas: https://www.scheeleworks.com/openapi.json. All resources: API reference.

Send feedback

Tell us what's broken, confusing or missing on this page, or an idea. It goes to the team that builds the product.
Please don't include passwords or card numbers.
Only to reply about this. Never added to any mailing list.