Skip to main content
POST
CSharp (SDK)

Authorizations

Authorization
string
header
required

Send Authorization: Bearer , using an MKA1 API key for automation or an OAuth API access token for a signed-in application. Use a dynamic security callback to refresh OAuth access tokens. Browser session-only operations still require their declared cookie.

Headers

X-On-Behalf-Of
string

Optional external end-user identifier forwarded by the API gateway.

Path Parameters

session_id
string
required

Body

application/json

Public operation request.

It deliberately has no repository field: the repository is the session's clone binding. The head branch is the caller's — the branch the agent pushed.

branch
string
required
Required string length: 1 - 255
title
string
required
Required string length: 1 - 256
body
string
default:""
Maximum string length: 65536
base
string | null
Required string length: 1 - 255
draft
boolean
default:false
checkout_path
string
default:""
Maximum string length: 512

Response

Successful Response

session_id
string
required
repository_id
integer
required
owner
string
required
repository
string
required
number
integer
required
url
string
required
state
string
required
draft
boolean
required
head_branch
string
required
base_branch
string | null
required
created
boolean
required