POST
/
v1
/
organizations
/
{org_id}
/
agent
/
run
/
resume
Resume Agent Run
curl --request POST \
  --url https://api.codegen.com/v1/organizations/{org_id}/agent/run/resume \
  --header 'Content-Type: application/json' \
  --data '{
  "agent_run_id": 123,
  "prompt": "<string>",
  "images": [
    "<string>"
  ]
}'
{
  "id": 123,
  "organization_id": 123,
  "status": "<string>",
  "created_at": "<string>",
  "web_url": "<string>",
  "result": "<string>",
  "summary": "<string>",
  "source_type": "LOCAL",
  "github_pull_requests": [
    {
      "id": 123,
      "title": "<string>",
      "url": "<string>",
      "created_at": "<string>",
      "head_branch_name": "<string>"
    }
  ],
  "metadata": {}
}

Headers

authorization
any

Path Parameters

org_id
integer
required

Body

application/json
agent_run_id
integer
required
prompt
string
required
images
string[] | null

List of base64 encoded data URIs representing images to be processed by the agent

Response

Successful Response

Represents an agent run in API responses

id
integer
required
organization_id
integer
required
status
string | null
created_at
string | null
web_url
string | null
result
string | null
summary
string | null
source_type
enum<string> | null
Available options:
LOCAL,
SLACK,
GITHUB,
GITHUB_CHECK_SUITE,
GITHUB_PR_REVIEW,
LINEAR,
API,
CHAT,
JIRA,
CLICKUP,
MONDAY,
SETUP_COMMANDS
github_pull_requests
GithubPullRequestResponse · object[] | null
metadata
object | null