Skip to main content
POST
Typescript (SDK)

Authorizations

Authorization
string
header
required

Gateway auth: send Authorization: Bearer <mka1-api-key>. For multi-user server-side integrations, you can also send X-On-Behalf-Of: <external-user-id>.

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

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