Get a branch's description
GET
/api/orgs/{org}/projects/{project}/description
const url = 'https://api.wrktr.com/api/orgs/example/projects/example/description?branch=example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.wrktr.com/api/orgs/example/projects/example/description?branch=example' \ --header 'Authorization: Bearer <token>'What the branch does, as the review agent describes it: a title, a summary, the changes by area, risks and how to check it.
Authorizations
Section titled “Authorizations”- bearer
- None
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”org
required
string
project
required
string
Query Parameters
Section titled “Query Parameters”branch
required
string
Responses
Section titled “Responses”BranchDescription
Media typeapplication/json
object
branch
required
string
headSha
required
string
status
required
string
description
required
Example
{ "status": "ready", "description": { "kind": "feat" }, "generatedAt": "Infinity"}Unauthorized
Media typeapplication/json
object
_tag
required
string
message
required
string
Example
{ "_tag": "Unauthorized"}ProjectNotFound | BranchNotFound