Skip to content
Navigation

Create thread (idempotent requestId)

Creates an approval pointer; execution still requires human approval. Org API-key runtime calls return 501 until tenant runtime routing is configured.

POST
/api/v1/threads

Authorization

  • bearerAuth
    optional
    HTTP Bearer (API key)
    Authorization: Bearer <token>
  • cookieAuth
    optional
    API key in cookie

Request body JSON

  • requestId
    string
    required
    maxLength: 191
  • projectId
    optional
    string

    Repository URL in self-hosted shiba.

  • repoUrl
    optional
    string
  • message
    optional
    string
  • task
    optional
    string
  • publishPullRequest
    optional
    boolean
  • customAgentId
    optional
    string

    Select an available org-scoped bot profile; effective instructions, route, version and expected outputs freeze into the human approval.

  • expectedDeliverables
    optional
    array of
    string

    Optional approval-frozen output paths, in delivery order. Paths are unique ignoring case, relative and non-hidden. Formats: MD, TXT, JSON, CSV (16 KiB each, 64 KiB combined); HTML (512 KiB) and PDF (10 MiB), with a 10.5 MiB combined budget; XLSX, DOCX, PPTX, PNG, JPG/JPEG, WebP, GIF (5 MiB each) and MP4 (12 MiB), with a 16 MiB combined budget. Binary formats must match their file signature. Collection checks do not assess semantic quality.

    maxLength: 240 · minLength: 1 · pattern: ^(?!.* (?:/|$))(?:[A-Za-z0-9][A-Za-z0-9._ -]*/)*[A-Za-z0-9][A-Za-z0-9._ -]*\.(?:[mM][dD]|[tT][xX][tT]|[jJ][sS][oO][nN]|[cC][sS][vV]|[hH][tT][mM][lL]|[pP][dD][fF]|[xX][lL][sS][xX]|[dD][oO][cC][xX]|[pP][pP][tT][xX]|[pP][nN][gG]|[jJ][pP][eE]?[gG]|[wW][eE][bB][pP]|[gG][iI][fF]|[mM][pP]4)$

Returns

200

Thread or approval receipt

501

Tenant runtime unavailable for org API keys

Type to search…

↑↓ navigate↵ selectEsc close