Skip to main content
POST
Have Jam do an action

Authorizations

Authorization
string
header
required

A workspace API key issued in Settings → Developer, sent as Bearer sk_….

Path Parameters

actionId
string<uuid>
required
Example:

"0b6f2c1e-6d2a-4c3e-9a1f-5e8d7c4b3a21"

Body

application/json
mode
enum<string>

one_shot (the default, unchanged): Jam drafts the article, or prepares a code change for you to preview (no pull request until you ask). agent: Jam starts a background agent run in its own chat (runId, chatUrl); it can also do outreach and community work, and it may open the pull request for a content-only change itself.

Available options:
one_shot,
agent
Example:

"agent"

Response

The work is accepted.

status
enum<string>
required
Available options:
accepted
work
enum<string>
required

draft: Jam is writing the article (follow opportunityId in /v1/opportunities and /v1/content). site_change: Jam is preparing a code change (follow changeId in /v1/site-changes/{changeId}; in the default mode no pull request is opened until you ask). agent_task (agent mode only): outreach or community drafts. In agent mode the ids may be null at first: GET /v1/actions/{actionId} carries opportunityId and change once the run creates them.

Available options:
draft,
site_change,
agent_task
opportunityId
string<uuid> | null
required
changeId
string<uuid> | null
required
runId
string<uuid> | null
required

Agent mode: the background agent run doing the work; a second request while it runs returns the same run. Null in the default mode.

chatUrl
string<uri> | null
required

Agent mode: the run's chat in the Jam app, where the work can be followed, stopped or edited. Null in the default mode.