Skip to main content
POST
/
api
/
agent
/
pr
/
create
Agent Create Pr
curl --request POST \
  --url https://api.example.com/api/agent/pr/create \
  --header 'Content-Type: application/json' \
  --data '
{
  "head_branch": "<string>",
  "repository": "<string>",
  "title": "<string>",
  "body": ""
}
'
{
  "pr_number": 123,
  "pr_url": "<string>",
  "pr_state": "open"
}

Documentation Index

Fetch the complete documentation index at: https://docs.codecobra.ai/llms.txt

Use this file to discover all available pages before exploring further.

Body

application/json

Body sent by the agent's git skill to open a PR for the current task.

head_branch
string
required
repository
string
required
title
string
required
body
string
default:""

Response

Successful Response

pr_number
integer
required
pr_url
string
required
pr_state
string
default:open