GET
/
repos
/
{repo_id}
/
branches
/
{branch_id}
curl --request GET \
  --url https://api.diversion.dev/v0/repos/{repo_id}/branches/{branch_id} \
  --header 'Authorization: Bearer <token>'
{
  "commit_id": "example_id",
  "branch_name": "new-branch-name",
  "branch_description": "A description of the branch",
  "branch_id": "<string>",
  "author": {
    "image": "<string>",
    "email": "jsmith@example.com",
    "full_name": "<string>",
    "id": "<string>",
    "name": "<string>"
  },
  "time": 123
}

Authorizations

Authorization
string
headerrequired

This API uses OAuth 2 with the implicit grant flow

Path Parameters

repo_id
string
required

The repo ID of the repository. Repo name can be used instead of the ID, but usage of ID for permanent linking and API requests is preferred.

branch_id
string
required

Branch ID. Branch name can be used instead of the ID, but storing and using branch ID in API requests is preferred.

Response

200 - application/json
commit_id
string
required
branch_name
string
required
branch_description
string
branch_id
string
required

Branch identifier in Diversion

author
object
required

User details

time
number
required

Creation time