Repository
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
The substring which is used to filter the repositories by their path name.
The data by which the repositories are sorted.
identifierPossible values: The order of the output.
ascPossible values: The page to return.
1The maximum number of results to return.
30The result should contain only the favorite entries for the logged in user.
falseThe result should include entities from child spaces.
falseThe tags used to filter the repositories. Each entry is either a key (e.g. "team") to match any value, or a key:value pair (e.g. "team:backend"). The parameter may be repeated.
OK
source lines of code on the default branch
size of the repository in KiB
size of the repository LFS in KiB
Unauthorized
Forbidden
Not Found
Internal Server Error
GET /code/api/v1/repos?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Accept: */*
[
{
"archived": true,
"created": 1,
"created_by": 1,
"default_branch": "text",
"deleted": 1,
"description": "text",
"fork_id": 1,
"git_ssh_url": "text",
"git_url": "text",
"id": 1,
"identifier": "text",
"import_failed": true,
"importing": true,
"is_empty": true,
"is_favorite": true,
"is_public": true,
"language": "text",
"last_git_push": 1,
"loc": 1,
"num_closed_pulls": 1,
"num_forks": 1,
"num_merged_pulls": 1,
"num_open_pulls": 1,
"num_pulls": 1,
"parent_id": 1,
"path": "text",
"repo_type": "text",
"root_space_id": 1,
"root_space_identifier": "text",
"size": 1,
"size_lfs": 1,
"size_updated": 1,
"state": 1,
"tags": null,
"updated": 1,
"upstream": {
"default_branch": "text",
"fork_id": 1,
"id": 1,
"identifier": "text",
"parent_id": 1,
"path": "text",
"type": "text"
}
}
]Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Created
source lines of code on the default branch
size of the repository in KiB
size of the repository LFS in KiB
Bad Request
Unauthorized
Forbidden
Internal Server Error
POST /code/api/v1/repos?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 196
{
"default_branch": "text",
"description": "text",
"git_ignore": "text",
"identifier": "text",
"is_public": true,
"license": "text",
"parent_ref": "text",
"readme": true,
"tags": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
}{
"archived": true,
"created": 1,
"created_by": 1,
"default_branch": "text",
"deleted": 1,
"description": "text",
"fork_id": 1,
"git_ssh_url": "text",
"git_url": "text",
"id": 1,
"identifier": "text",
"import_failed": true,
"importing": true,
"is_empty": true,
"is_favorite": true,
"is_public": true,
"language": "text",
"last_git_push": 1,
"loc": 1,
"num_closed_pulls": 1,
"num_forks": 1,
"num_merged_pulls": 1,
"num_open_pulls": 1,
"num_pulls": 1,
"parent_id": 1,
"path": "text",
"repo_type": "text",
"root_space_id": 1,
"root_space_identifier": "text",
"size": 1,
"size_lfs": 1,
"size_updated": 1,
"state": 1,
"tags": null,
"updated": 1,
"upstream": {
"default_branch": "text",
"fork_id": 1,
"id": 1,
"identifier": "text",
"parent_id": 1,
"path": "text",
"type": "text"
}
}Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
OK
source lines of code on the default branch
size of the repository in KiB
size of the repository LFS in KiB
Unauthorized
Forbidden
Not Found
Internal Server Error
GET /code/api/v1/repos/{repo_identifier}?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Accept: */*
{
"archived": true,
"created": 1,
"created_by": 1,
"default_branch": "text",
"deleted": 1,
"description": "text",
"fork_id": 1,
"git_ssh_url": "text",
"git_url": "text",
"id": 1,
"identifier": "text",
"import_failed": true,
"importing": true,
"is_empty": true,
"is_favorite": true,
"is_public": true,
"language": "text",
"last_git_push": 1,
"loc": 1,
"num_closed_pulls": 1,
"num_forks": 1,
"num_merged_pulls": 1,
"num_open_pulls": 1,
"num_pulls": 1,
"parent_id": 1,
"path": "text",
"repo_type": "text",
"root_space_id": 1,
"root_space_identifier": "text",
"size": 1,
"size_lfs": 1,
"size_updated": 1,
"state": 1,
"tags": null,
"updated": 1,
"upstream": {
"default_branch": "text",
"fork_id": 1,
"id": 1,
"identifier": "text",
"parent_id": 1,
"path": "text",
"type": "text"
}
}Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
OK
Unauthorized
Forbidden
Not Found
Internal Server Error
DELETE /code/api/v1/repos/{repo_identifier}?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Accept: */*
{
"deleted_at": 1
}Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
OK
source lines of code on the default branch
size of the repository in KiB
size of the repository LFS in KiB
Bad Request
Unauthorized
Forbidden
Not Found
Internal Server Error
PATCH /code/api/v1/repos/{repo_identifier}?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 74
{
"description": "text",
"state": 1,
"tags": {
"ANY_ADDITIONAL_PROPERTY": "text"
}
}{
"archived": true,
"created": 1,
"created_by": 1,
"default_branch": "text",
"deleted": 1,
"description": "text",
"fork_id": 1,
"git_ssh_url": "text",
"git_url": "text",
"id": 1,
"identifier": "text",
"import_failed": true,
"importing": true,
"is_empty": true,
"is_favorite": true,
"is_public": true,
"language": "text",
"last_git_push": 1,
"loc": 1,
"num_closed_pulls": 1,
"num_forks": 1,
"num_merged_pulls": 1,
"num_open_pulls": 1,
"num_pulls": 1,
"parent_id": 1,
"path": "text",
"repo_type": "text",
"root_space_id": 1,
"root_space_identifier": "text",
"size": 1,
"size_lfs": 1,
"size_updated": 1,
"state": 1,
"tags": null,
"updated": 1,
"upstream": {
"default_branch": "text",
"fork_id": 1,
"id": 1,
"identifier": "text",
"parent_id": 1,
"path": "text",
"type": "text"
}
}Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
The result should contain only entries created at and after this timestamp (unix millis).
The result should contain only entries created before this timestamp (unix millis).
The page to return.
1The maximum number of results to return.
30OK
Bad Request
Unauthorized
Forbidden
Not Found
Internal Server Error
GET /code/api/v1/repos/{repo_identifier}/activities?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Accept: */*
[
{
"payload": null,
"principal_id": 1,
"repo_id": 1,
"timestamp": 1,
"type": "branch-created"
}
]Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Without an optional path parameter, all files and subdirectories of the current working directory are included in the archive. If one or more paths are specified, only these are included.
Prepend / to paths in the archive.
Look for attributes in .gitattributes files in the working tree as well
Set modification time of archive entries. Without this option the committer time is used if is a commit or tag, and the current time if it is a tree.
Specify compression level. Larger values allow the command to spend more time to compress to smaller size.
OK
Unauthorized
Forbidden
Not Found
Unprocessable Entity
Internal Server Error
GET /code/api/v1/repos/{repo_identifier}/archive/{git_ref}.{format}?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Accept: */*
textAccount Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
The git reference (branch / tag / commitID) that will be used to retrieve the data. If no value is provided the default branch of the repository is used.
{Repository Default Branch}Line number from which the file data is considered
0Line number to which the file data is considered
0OK
Unauthorized
Forbidden
Not Found
Internal Server Error
GET /code/api/v1/repos/{repo_identifier}/blame/{path}?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Accept: */*
[
{
"commit": {
"author": {
"identity": {
"email": "text",
"name": "text"
},
"when": "2026-01-01T00:00:00.000Z"
},
"committer": {
"identity": {
"email": "text",
"name": "text"
},
"when": "2026-01-01T00:00:00.000Z"
},
"file_stats": [
{}
],
"message": "text",
"parent_shas": [
"text"
],
"sha": "text",
"title": "text"
},
"lines": [
"text"
],
"previous": {
"commit_sha": "text",
"file_name": "text"
}
}
]Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Indicates whether optional commit information should be included in the response.
falseThe substring by which the branches are filtered.
The order of the output.
ascPossible values: The data by which the branches are sorted.
namePossible values: The page to return.
1The maximum number of results to return.
30If true, the summary of check for the branch commit SHA would be included in the response.
falseIf true, a list of rules that apply to this branch would be included in the response.
falseIf true, a list of pull requests from the branch would be included in the response.
falseIf true, merge queue info for the branch would be included in the response.
falseIf greater than zero, branch divergence from the default branch will be included in the response. The divergence would be calculated up the this many commits.
0OK
Git object hash
Unauthorized
Forbidden
Not Found
Internal Server Error
GET /code/api/v1/repos/{repo_identifier}/branches?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Accept: */*
[
{
"check_summary": {
"error": 1,
"failure": 1,
"failure_ignored": 1,
"pending": 1,
"running": 1,
"success": 1
},
"commit": {
"author": {
"identity": {
"email": "text",
"name": "text"
},
"when": "2026-01-01T00:00:00.000Z"
},
"committer": {
"identity": {
"email": "text",
"name": "text"
},
"when": "2026-01-01T00:00:00.000Z"
},
"message": "text",
"parent_shas": [
"text"
],
"sha": "text",
"signature": {
"created": 1,
"key_fingerprint": "text",
"key_id": "text",
"key_scheme": "pgp",
"result": "bad",
"updated": 1
},
"stats": {
"files": [
{
"changes": 1,
"deletions": 1,
"insertions": 1,
"old_path": "text",
"path": "text",
"status": "text"
}
],
"total": {
"changes": 1,
"deletions": 1,
"insertions": 1
}
},
"title": "text"
},
"commit_divergence": {
"ahead": 1,
"behind": 1
},
"is_default": true,
"merge_queue": {
"active": true
},
"name": "text",
"pull_requests": [
{
"author": {
"created": 1,
"display_name": "text",
"email": "text",
"id": 1,
"type": "service",
"uid": "text",
"updated": 1
},
"check_summary": {
"error": 1,
"failure": 1,
"failure_ignored": 1,
"pending": 1,
"running": 1,
"success": 1
},
"closed": 1,
"created": 1,
"description": "text",
"edited": 1,
"is_draft": true,
"labels": [
{
"color": "blue",
"id": 1,
"key": "text",
"scope": 1,
"value": "text",
"value_color": "blue",
"value_count": 1,
"value_id": 1
}
],
"merge_base_sha": "text",
"merge_check_status": "text",
"merge_conflicts": [
"text"
],
"merge_method": "fast-forward",
"merge_target_sha": "text",
"merge_violations_bypassed": true,
"merged": 1,
"merger": {
"created": 1,
"display_name": "text",
"email": "text",
"id": 1,
"type": "service",
"uid": "text",
"updated": 1
},
"number": 1,
"pullreq_type": "text",
"rebase_check_status": "text",
"rebase_conflicts": [
"text"
],
"root_space_id": 1,
"root_space_identifier": "text",
"rules": [
{
"identifier": "text",
"repo_path": "text",
"space_path": "text",
"state": "active",
"type": "branch"
}
],
"source_branch": "text",
"source_repo": {
"default_branch": "text",
"fork_id": 1,
"id": 1,
"identifier": "text",
"parent_id": 1,
"path": "text",
"type": "text"
},
"source_repo_id": 1,
"source_sha": "text",
"state": "closed",
"stats": {
"additions": 1,
"commits": 1,
"conversations": 1,
"deletions": 1,
"files_changed": 1,
"unresolved_count": 1
},
"substate": "",
"target_branch": "text",
"target_repo_id": 1,
"title": "text",
"updated": 1
}
],
"rules": [
{
"identifier": "text",
"repo_path": "text",
"space_path": "text",
"state": "active",
"type": "branch"
}
],
"sha": "text"
}
]Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Created
Git object hash
Bad Request
Unauthorized
Forbidden
Unprocessable Entity
Internal Server Error
POST /code/api/v1/repos/{repo_identifier}/branches?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 72
{
"bypass_rules": true,
"dry_run_rules": true,
"name": "text",
"target": "text"
}{
"commit": {
"author": {
"identity": {
"email": "text",
"name": "text"
},
"when": "2026-01-01T00:00:00.000Z"
},
"committer": {
"identity": {
"email": "text",
"name": "text"
},
"when": "2026-01-01T00:00:00.000Z"
},
"message": "text",
"parent_shas": [
"text"
],
"sha": "text",
"signature": {
"created": 1,
"key_fingerprint": "text",
"key_id": "text",
"key_scheme": "pgp",
"result": "bad",
"updated": 1
},
"stats": {
"files": [
{
"changes": 1,
"deletions": 1,
"insertions": 1,
"old_path": "text",
"path": "text",
"status": "text"
}
],
"total": {
"changes": 1,
"deletions": 1,
"insertions": 1
}
},
"title": "text"
},
"dry_run_rules": true,
"name": "text",
"rule_violations": [
{
"bypassable": true,
"bypassed": true,
"rule": {
"identifier": "text",
"repo_path": "text",
"space_path": "text",
"state": "active",
"type": "branch"
},
"violations": [
{
"code": "text",
"message": "text",
"params": []
}
]
}
],
"sha": "text"
}Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
If true, the summary of check for the branch commit SHA would be included in the response.
falseIf true, a list of rules that apply to this branch would be included in the response.
falseIf true, a list of pull requests from the branch would be included in the response.
falseIf true, merge queue info for the branch would be included in the response.
falseIf greater than zero, branch divergence from the default branch will be included in the response. The divergence would be calculated up the this many commits.
0OK
Git object hash
Unauthorized
Forbidden
Not Found
Internal Server Error
GET /code/api/v1/repos/{repo_identifier}/branches/{branch_name}?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Accept: */*
{
"check_summary": {
"error": 1,
"failure": 1,
"failure_ignored": 1,
"pending": 1,
"running": 1,
"success": 1
},
"commit": {
"author": {
"identity": {
"email": "text",
"name": "text"
},
"when": "2026-01-01T00:00:00.000Z"
},
"committer": {
"identity": {
"email": "text",
"name": "text"
},
"when": "2026-01-01T00:00:00.000Z"
},
"message": "text",
"parent_shas": [
"text"
],
"sha": "text",
"signature": {
"created": 1,
"key_fingerprint": "text",
"key_id": "text",
"key_scheme": "pgp",
"result": "bad",
"updated": 1
},
"stats": {
"files": [
{
"changes": 1,
"deletions": 1,
"insertions": 1,
"old_path": "text",
"path": "text",
"status": "text"
}
],
"total": {
"changes": 1,
"deletions": 1,
"insertions": 1
}
},
"title": "text"
},
"commit_divergence": {
"ahead": 1,
"behind": 1
},
"is_default": true,
"merge_queue": {
"active": true
},
"name": "text",
"pull_requests": [
{
"author": {
"created": 1,
"display_name": "text",
"email": "text",
"id": 1,
"type": "service",
"uid": "text",
"updated": 1
},
"check_summary": {
"error": 1,
"failure": 1,
"failure_ignored": 1,
"pending": 1,
"running": 1,
"success": 1
},
"closed": 1,
"created": 1,
"description": "text",
"edited": 1,
"is_draft": true,
"labels": [
{
"color": "blue",
"id": 1,
"key": "text",
"scope": 1,
"value": "text",
"value_color": "blue",
"value_count": 1,
"value_id": 1
}
],
"merge_base_sha": "text",
"merge_check_status": "text",
"merge_conflicts": [
"text"
],
"merge_method": "fast-forward",
"merge_target_sha": "text",
"merge_violations_bypassed": true,
"merged": 1,
"merger": {
"created": 1,
"display_name": "text",
"email": "text",
"id": 1,
"type": "service",
"uid": "text",
"updated": 1
},
"number": 1,
"pullreq_type": "text",
"rebase_check_status": "text",
"rebase_conflicts": [
"text"
],
"root_space_id": 1,
"root_space_identifier": "text",
"rules": [
{
"identifier": "text",
"repo_path": "text",
"space_path": "text",
"state": "active",
"type": "branch"
}
],
"source_branch": "text",
"source_repo": {
"default_branch": "text",
"fork_id": 1,
"id": 1,
"identifier": "text",
"parent_id": 1,
"path": "text",
"type": "text"
},
"source_repo_id": 1,
"source_sha": "text",
"state": "closed",
"stats": {
"additions": 1,
"commits": 1,
"conversations": 1,
"deletions": 1,
"files_changed": 1,
"unresolved_count": 1
},
"substate": "",
"target_branch": "text",
"target_repo_id": 1,
"title": "text",
"updated": 1
}
],
"rules": [
{
"identifier": "text",
"repo_path": "text",
"space_path": "text",
"state": "active",
"type": "branch"
}
],
"sha": "text"
}Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Bypass rule violations if possible.
falseDry run rules for operations
falseOK
Unauthorized
Forbidden
Not Found
Unprocessable Entity
Internal Server Error
DELETE /code/api/v1/repos/{repo_identifier}/branches/{branch_name}?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Accept: */*
{
"dry_run_rules": true,
"rule_violations": [
{
"bypassable": true,
"bypassed": true,
"rule": {
"identifier": "text",
"repo_path": "text",
"space_path": "text",
"state": "active",
"type": "branch"
},
"violations": [
{
"code": "text",
"message": "text",
"params": []
}
]
}
]
}Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
The git reference (branch / tag / commitID) that will be used to retrieve the data. If no value is provided the default branch of the repository is used.
{Repository Default Branch}OK
No content
Unauthorized
Forbidden
Not Found
Unprocessable Entity
Internal Server Error
GET /code/api/v1/repos/{repo_identifier}/codeowners/validate?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Accept: */*
No content
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
The git reference (branch / tag / commitID) that will be used to retrieve the data. If no value is provided the default branch of the repository is used.
{Repository Default Branch}The result should only contain commits that occurred after the provided reference.
Path for which commit information should be retrieved
""Epoch timestamp since when commit information should be retrieved.
1728348213Epoch timestamp until when commit information should be retrieved.
1746668446Committer pattern for which commit information should be retrieved.
Committer principal IDs list for which commit information should be retrieved.
Author pattern for which commit information should be retrieved.
Author principal IDs for which commit information should be retrieved.
The page to return.
1The maximum number of results to return.
30Indicates whether optional stats should be included in the response.
falseOK
Unauthorized
Forbidden
Not Found
Internal Server Error
GET /code/api/v1/repos/{repo_identifier}/commits?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Accept: */*
{
"commits": [
{
"author": {
"identity": {
"email": "text",
"name": "text"
},
"when": "2026-01-01T00:00:00.000Z"
},
"committer": {
"identity": {
"email": "text",
"name": "text"
},
"when": "2026-01-01T00:00:00.000Z"
},
"message": "text",
"parent_shas": [
"text"
],
"sha": "text",
"signature": {
"created": 1,
"key_fingerprint": "text",
"key_id": "text",
"key_scheme": "pgp",
"result": "bad",
"updated": 1
},
"stats": {
"files": [
{
"changes": 1,
"deletions": 1,
"insertions": 1,
"old_path": "text",
"path": "text",
"status": "text"
}
],
"total": {
"changes": 1,
"deletions": 1,
"insertions": 1
}
},
"title": "text"
}
],
"rename_details": [
{
"commit_sha_after": "text",
"commit_sha_before": "text",
"new_path": "text",
"old_path": "text"
}
],
"total_commits": 1
}Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
OK
Git object hash
Bad Request
Unauthorized
Forbidden
Not Found
Unprocessable Entity
Internal Server Error
POST /code/api/v1/repos/{repo_identifier}/commits?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 246
{
"actions": [
{
"action": "CREATE",
"encoding": "base64",
"path": "text",
"payload": "text",
"sha": "text"
}
],
"author": {
"email": "text",
"name": "text"
},
"branch": "text",
"bypass_rules": true,
"dry_run_rules": true,
"message": "text",
"new_branch": "text",
"title": "text"
}{
"changed_files": [
{
"blob_sha": "text",
"path": "text"
}
],
"commit_id": "text",
"dry_run_rules": true,
"rule_violations": [
{
"bypassable": true,
"bypassed": true,
"rule": {
"identifier": "text",
"repo_path": "text",
"space_path": "text",
"state": "active",
"type": "branch"
},
"violations": [
{
"code": "text",
"message": "text",
"params": []
}
]
}
]
}Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
OK
Git object hash
Git object hash
Unauthorized
Forbidden
Not Found
Internal Server Error
GET /code/api/v1/repos/{repo_identifier}/commits/{commit_sha}?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Accept: */*
{
"author": {
"identity": {
"email": "text",
"name": "text"
},
"when": "2026-01-01T00:00:00.000Z"
},
"committer": {
"identity": {
"email": "text",
"name": "text"
},
"when": "2026-01-01T00:00:00.000Z"
},
"message": "text",
"parent_shas": [
"text"
],
"sha": "text",
"signature": {
"created": 1,
"key_fingerprint": "text",
"key_id": "text",
"key_scheme": "pgp",
"result": "bad",
"updated": 1
},
"stats": {
"files": [
{
"changes": 1,
"deletions": 1,
"insertions": 1,
"old_path": "text",
"path": "text",
"status": "text"
}
],
"total": {
"changes": 1,
"deletions": 1,
"insertions": 1
}
},
"title": "text"
}Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
OK
Unauthorized
Forbidden
Not Found
Internal Server Error
GET /code/api/v1/repos/{repo_identifier}/commits/{commit_sha}/diff?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Accept: */*
textAccount Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
OK
Unauthorized
Forbidden
Not Found
Internal Server Error
POST /code/api/v1/repos/{repo_identifier}/commits/calculate-divergence?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 56
{
"max_count": 1,
"requests": [
{
"from": "text",
"to": "text"
}
]
}[
{
"ahead": 1,
"behind": 1
}
]Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
The git reference (branch / tag / commitID) that will be used to retrieve the data. If no value is provided the default branch of the repository is used.
{Repository Default Branch}Indicates whether optional commit information should be included in the response.
falseFlatten directories that contain just one subdirectory.
falseOK
Unauthorized
Forbidden
Not Found
Internal Server Error
GET /code/api/v1/repos/{repo_identifier}/content/{path}?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Accept: */*
{
"content": {
"data": "text",
"data_size": 1,
"encoding": "base64",
"lfs_object_id": "text",
"lfs_object_size": 1,
"size": 1
},
"latest_commit": {
"author": {
"identity": {
"email": "text",
"name": "text"
},
"when": "2026-01-01T00:00:00.000Z"
},
"committer": {
"identity": {
"email": "text",
"name": "text"
},
"when": "2026-01-01T00:00:00.000Z"
},
"message": "text",
"parent_shas": [
"text"
],
"sha": "text",
"signature": {
"created": 1,
"key_fingerprint": "text",
"key_id": "text",
"key_scheme": "pgp",
"result": "bad",
"updated": 1
},
"stats": {
"files": [
{
"changes": 1,
"deletions": 1,
"insertions": 1,
"old_path": "text",
"path": "text",
"status": "text"
}
],
"total": {
"changes": 1,
"deletions": 1,
"insertions": 1
}
},
"title": "text"
},
"name": "text",
"path": "text",
"sha": "text",
"type": "file"
}Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
OK
source lines of code on the default branch
size of the repository in KiB
size of the repository LFS in KiB
Bad Request
Unauthorized
Forbidden
Not Found
Internal Server Error
POST /code/api/v1/repos/{repo_identifier}/default-branch?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 15
{
"name": "text"
}{
"archived": true,
"created": 1,
"created_by": 1,
"default_branch": "text",
"deleted": 1,
"description": "text",
"fork_id": 1,
"git_ssh_url": "text",
"git_url": "text",
"id": 1,
"identifier": "text",
"import_failed": true,
"importing": true,
"is_empty": true,
"is_favorite": true,
"is_public": true,
"language": "text",
"last_git_push": 1,
"loc": 1,
"num_closed_pulls": 1,
"num_forks": 1,
"num_merged_pulls": 1,
"num_open_pulls": 1,
"num_pulls": 1,
"parent_id": 1,
"path": "text",
"repo_type": "text",
"root_space_id": 1,
"root_space_identifier": "text",
"size": 1,
"size_lfs": 1,
"size_updated": 1,
"state": 1,
"tags": null,
"updated": 1,
"upstream": {
"default_branch": "text",
"fork_id": 1,
"id": 1,
"identifier": "text",
"parent_id": 1,
"path": "text",
"type": "text"
}
}main..devAccount Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
provide path for diff operation
OK
Unauthorized
Forbidden
Internal Server Error
GET /code/api/v1/repos/{repo_identifier}/diff-stats/{range}?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Accept: */*
{
"additions": 1,
"commits": 1,
"deletions": 1,
"files_changed": 1
}main..devAccount Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
provide path for diff operation
OK
Unauthorized
Forbidden
Internal Server Error
GET /code/api/v1/repos/{repo_identifier}/diff/{range}?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Accept: */*
[
{
"additions": 1,
"changes": 1,
"deletions": 1,
"is_binary": true,
"is_submodule": true,
"old_path": "text",
"old_sha": "text",
"patch": [
1
],
"path": "text",
"sha": "text",
"status": "text"
}
]main..devAccount Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
OK
Unauthorized
Forbidden
Internal Server Error
POST /code/api/v1/repos/{repo_identifier}/diff/{range}?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 32
[
{
"path": "text",
"start_line": 1
}
][
{
"additions": 1,
"changes": 1,
"deletions": 1,
"is_binary": true,
"is_submodule": true,
"old_path": "text",
"old_sha": "text",
"patch": [
1
],
"path": "text",
"sha": "text",
"status": "text"
}
]Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Created
source lines of code on the default branch
size of the repository in KiB
size of the repository LFS in KiB
Bad Request
Unauthorized
Forbidden
Not Found
Internal Server Error
POST /code/api/v1/repos/{repo_identifier}/fork?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 62
{
"fork_branch": "text",
"identifier": "text",
"parent_ref": "text"
}{
"archived": true,
"created": 1,
"created_by": 1,
"default_branch": "text",
"deleted": 1,
"description": "text",
"fork_id": 1,
"git_ssh_url": "text",
"git_url": "text",
"id": 1,
"identifier": "text",
"import_failed": true,
"importing": true,
"is_empty": true,
"is_favorite": true,
"is_public": true,
"language": "text",
"last_git_push": 1,
"loc": 1,
"num_closed_pulls": 1,
"num_forks": 1,
"num_merged_pulls": 1,
"num_open_pulls": 1,
"num_pulls": 1,
"parent_id": 1,
"path": "text",
"repo_type": "text",
"root_space_id": 1,
"root_space_identifier": "text",
"size": 1,
"size_lfs": 1,
"size_updated": 1,
"state": 1,
"tags": null,
"updated": 1,
"upstream": {
"default_branch": "text",
"fork_id": 1,
"id": 1,
"identifier": "text",
"parent_id": 1,
"path": "text",
"type": "text"
}
}Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Git object hash
OK
Git object hash
Bad Request
Unauthorized
Forbidden
Not Found
Conflict
Internal Server Error
POST /code/api/v1/repos/{repo_identifier}/fork-sync?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 69
{
"branch": "text",
"branch_commit_sha": "text",
"branch_upstream": "text"
}{
"already_ancestor": true,
"new_commit_sha": "text"
}Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
OK
Unauthorized
Forbidden
Not Found
Internal Server Error
GET /code/api/v1/repos/{repo_identifier}/languages?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Accept: */*
[
{}
]Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
OK
Bad Request
Unauthorized
Forbidden
Not Found
Internal Server Error
GET /code/api/v1/repos/{repo_identifier}/linked/source?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Accept: */*
{
"url": "text"
}Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
OK
Bad Request
Unauthorized
Forbidden
Not Found
Internal Server Error
POST /code/api/v1/repos/{repo_identifier}/linked/sync?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 21
{
"branches": [
"text"
]
}{
"branches": [
{
"new": "text",
"old": "text",
"ref": "text"
}
]
}main..devAccount Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
provide path for diff operation
OK
Unauthorized
Forbidden
Internal Server Error
POST /code/api/v1/repos/{repo_identifier}/merge-check/{range}?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Accept: */*
{
"conflict_files": [
"text"
],
"mergeable": true
}Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Git object hash
Git object hash
OK
Git object hash
Bad Request
Unauthorized
Forbidden
Not Found
Unprocessable Entity
Internal Server Error
POST /code/api/v1/repos/{repo_identifier}/merge-commit?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 181
{
"base_branch": "text",
"base_commit_sha": "text",
"bypass_rules": true,
"dry_run": true,
"dry_run_rules": true,
"head_branch": "text",
"head_commit_sha": "text",
"message": "text",
"title": "text"
}{
"already_ancestor": true,
"conflict_files": [
"text"
],
"dry_run": true,
"dry_run_rules": true,
"new_head_branch_sha": "text",
"rule_violations": [
{
"bypassable": true,
"bypassed": true,
"rule": {
"identifier": "text",
"repo_path": "text",
"space_path": "text",
"state": "active",
"type": "branch"
},
"violations": [
{
"code": "text",
"message": "text",
"params": []
}
]
}
]
}Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
OK
Bad Request
Unauthorized
Forbidden
Not Found
Internal Server Error
GET /code/api/v1/repos/{repo_identifier}/mergequeue/{branch_name}?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Accept: */*
{
"active": true,
"entries": [
{
"merge_queue_info": {
"checks": [
{
"bypassable": true,
"check": {
"bypassed_by": {
"created": 1,
"display_name": "text",
"email": "text",
"id": 1,
"type": "service",
"uid": "text",
"updated": 1
},
"created": 1,
"ended": 1,
"id": 1,
"identifier": "text",
"link": "text",
"metadata": null,
"payload": {
"data": null,
"kind": "",
"version": "text"
},
"reported_by": {
"created": 1,
"display_name": "text",
"email": "text",
"id": 1,
"type": "service",
"uid": "text",
"updated": 1
},
"started": 1,
"status": "error",
"summary": "text",
"updated": 1
},
"required": true
}
],
"checks_commit_sha": "text",
"merge_commit_sha": "text",
"merge_method": "fast-forward",
"pull_requests_ahead": 1,
"state": "checks_in_progress"
},
"pull_request": {
"author": {
"created": 1,
"display_name": "text",
"email": "text",
"id": 1,
"type": "service",
"uid": "text",
"updated": 1
},
"check_summary": {
"error": 1,
"failure": 1,
"failure_ignored": 1,
"pending": 1,
"running": 1,
"success": 1
},
"closed": 1,
"created": 1,
"description": "text",
"edited": 1,
"is_draft": true,
"labels": [
{
"color": "blue",
"id": 1,
"key": "text",
"scope": 1,
"value": "text",
"value_color": "blue",
"value_count": 1,
"value_id": 1
}
],
"merge_base_sha": "text",
"merge_check_status": "text",
"merge_conflicts": [
"text"
],
"merge_method": "fast-forward",
"merge_target_sha": "text",
"merge_violations_bypassed": true,
"merged": 1,
"merger": {
"created": 1,
"display_name": "text",
"email": "text",
"id": 1,
"type": "service",
"uid": "text",
"updated": 1
},
"number": 1,
"pullreq_type": "text",
"rebase_check_status": "text",
"rebase_conflicts": [
"text"
],
"root_space_id": 1,
"root_space_identifier": "text",
"rules": [
{
"identifier": "text",
"repo_path": "text",
"space_path": "text",
"state": "active",
"type": "branch"
}
],
"source_branch": "text",
"source_repo": {
"default_branch": "text",
"fork_id": 1,
"id": 1,
"identifier": "text",
"parent_id": 1,
"path": "text",
"type": "text"
},
"source_repo_id": 1,
"source_sha": "text",
"state": "closed",
"stats": {
"additions": 1,
"commits": 1,
"conversations": 1,
"deletions": 1,
"files_changed": 1,
"unresolved_count": 1
},
"substate": "",
"target_branch": "text",
"target_repo_id": 1,
"title": "text",
"updated": 1
}
}
],
"setup": {
"checks_concurrency": 1,
"group_size": 1,
"max_check_duration_seconds": 1,
"required_checks": [
"text"
]
}
}Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
No Content
No content
Bad Request
Unauthorized
Forbidden
Not Found
Internal Server Error
DELETE /code/api/v1/repos/{repo_identifier}/mergequeue/{branch_name}?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Accept: */*
No content
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
The git reference (branch / tag / commitID) that will be used to retrieve the data. If no value is provided the default branch of the repository is used.
{Repository Default Branch}OK
Unauthorized
Forbidden
Not Found
Internal Server Error
POST /code/api/v1/repos/{repo_identifier}/path-details?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 18
{
"paths": [
"text"
]
}{
"details": [
{
"last_commit": {
"author": {
"identity": {
"email": "text",
"name": "text"
},
"when": "2026-01-01T00:00:00.000Z"
},
"committer": {
"identity": {
"email": "text",
"name": "text"
},
"when": "2026-01-01T00:00:00.000Z"
},
"message": "text",
"parent_shas": [
"text"
],
"sha": "text",
"signature": {
"created": 1,
"key_fingerprint": "text",
"key_id": "text",
"key_scheme": "pgp",
"result": "bad",
"updated": 1
},
"stats": {
"files": [
{
"changes": 1,
"deletions": 1,
"insertions": 1,
"old_path": "text",
"path": "text",
"status": "text"
}
],
"total": {
"changes": 1,
"deletions": 1,
"insertions": 1
}
},
"title": "text"
},
"path": "text"
}
]
}Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
The git reference (branch / tag / commitID) that will be used to retrieve the data. If no value is provided the default branch of the repository is used.
{Repository Default Branch}Indicates whether directories should be included in the response.
falseOK
Unauthorized
Forbidden
Not Found
Internal Server Error
GET /code/api/v1/repos/{repo_identifier}/paths?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Accept: */*
{
"directories": [
"text"
],
"files": [
"text"
]
}Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
The exact time the resource was delete at in epoch format.
No Content
No content
Unauthorized
Forbidden
Not Found
Internal Server Error
POST /code/api/v1/repos/{repo_identifier}/purge?accountIdentifier=text&deleted_at=1 HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Accept: */*
No content
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
The git reference (branch / tag / commitID) that will be used to retrieve the data. If no value is provided the default branch of the repository is used.
{Repository Default Branch}OK
No content
Unauthorized
Forbidden
Not Found
Internal Server Error
GET /code/api/v1/repos/{repo_identifier}/raw/{path}?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Accept: */*
No content
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Git object hash
Git object hash
OK
Git object hash
Bad Request
Unauthorized
Forbidden
Not Found
Unprocessable Entity
Internal Server Error
POST /code/api/v1/repos/{repo_identifier}/rebase?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 149
{
"base_branch": "text",
"base_commit_sha": "text",
"bypass_rules": true,
"dry_run": true,
"dry_run_rules": true,
"head_branch": "text",
"head_commit_sha": "text"
}{
"already_ancestor": true,
"conflict_files": [
"text"
],
"dry_run": true,
"dry_run_rules": true,
"new_head_branch_sha": "text",
"rule_violations": [
{
"bypassable": true,
"bypassed": true,
"rule": {
"identifier": "text",
"repo_path": "text",
"space_path": "text",
"state": "active",
"type": "branch"
},
"violations": [
{
"code": "text",
"message": "text",
"params": []
}
]
}
]
}Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
The exact time the resource was delete at in epoch format.
OK
source lines of code on the default branch
size of the repository in KiB
size of the repository LFS in KiB
Bad Request
Unauthorized
Forbidden
Not Found
Internal Server Error
POST /code/api/v1/repos/{repo_identifier}/restore?accountIdentifier=text&deleted_at=1 HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 49
{
"new_identifier": "text",
"new_parent_ref": "text"
}{
"archived": true,
"created": 1,
"created_by": 1,
"default_branch": "text",
"deleted": 1,
"description": "text",
"fork_id": 1,
"git_ssh_url": "text",
"git_url": "text",
"id": 1,
"identifier": "text",
"import_failed": true,
"importing": true,
"is_empty": true,
"is_favorite": true,
"is_public": true,
"language": "text",
"last_git_push": 1,
"loc": 1,
"num_closed_pulls": 1,
"num_forks": 1,
"num_merged_pulls": 1,
"num_open_pulls": 1,
"num_pulls": 1,
"parent_id": 1,
"path": "text",
"repo_type": "text",
"root_space_id": 1,
"root_space_identifier": "text",
"size": 1,
"size_lfs": 1,
"size_updated": 1,
"state": 1,
"tags": null,
"updated": 1,
"upstream": {
"default_branch": "text",
"fork_id": 1,
"id": 1,
"identifier": "text",
"parent_id": 1,
"path": "text",
"type": "text"
}
}Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
OK
file size limit in bytes
Bad Request
Unauthorized
Forbidden
Not Found
Internal Server Error
GET /code/api/v1/repos/{repo_identifier}/settings/general?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Accept: */*
{
"auto_merge_enabled": true,
"file_size_limit": 1,
"git_lfs_enabled": true
}Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
file size limit in bytes
OK
file size limit in bytes
Bad Request
Unauthorized
Forbidden
Not Found
Internal Server Error
PATCH /code/api/v1/repos/{repo_identifier}/settings/general?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 70
{
"auto_merge_enabled": true,
"file_size_limit": 1,
"git_lfs_enabled": true
}{
"auto_merge_enabled": true,
"file_size_limit": 1,
"git_lfs_enabled": true
}Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
OK
Bad Request
Unauthorized
Forbidden
Not Found
Internal Server Error
GET /code/api/v1/repos/{repo_identifier}/settings/security?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Accept: */*
{
"principal_committer_match": true,
"secret_scanning_enabled": true,
"vulnerability_scanning_mode": "disabled"
}Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
OK
Bad Request
Unauthorized
Forbidden
Not Found
Internal Server Error
PATCH /code/api/v1/repos/{repo_identifier}/settings/security?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 106
{
"principal_committer_match": true,
"secret_scanning_enabled": true,
"vulnerability_scanning_mode": "disabled"
}{
"principal_committer_match": true,
"secret_scanning_enabled": true,
"vulnerability_scanning_mode": "disabled"
}Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Git object hash
Git object hash
OK
Git object hash
Bad Request
Unauthorized
Forbidden
Not Found
Unprocessable Entity
Internal Server Error
POST /code/api/v1/repos/{repo_identifier}/squash?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 181
{
"base_branch": "text",
"base_commit_sha": "text",
"bypass_rules": true,
"dry_run": true,
"dry_run_rules": true,
"head_branch": "text",
"head_commit_sha": "text",
"message": "text",
"title": "text"
}{
"conflict_files": [
"text"
],
"dry_run": true,
"dry_run_rules": true,
"new_head_branch_sha": "text",
"rule_violations": [
{
"bypassable": true,
"bypassed": true,
"rule": {
"identifier": "text",
"repo_path": "text",
"space_path": "text",
"state": "active",
"type": "branch"
},
"violations": [
{
"code": "text",
"message": "text",
"params": []
}
]
}
]
}Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
OK
source lines of code on the default branch
size of the repository in KiB
Bad Request
Unauthorized
Forbidden
Not Found
Internal Server Error
GET /code/api/v1/repos/{repo_identifier}/summary?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Accept: */*
{
"branch_count": 1,
"default_branch_commit_count": 1,
"loc": 1,
"pull_req_summary": {
"closed_count": 1,
"merged_count": 1,
"open_count": 1
},
"size": 1,
"tag_count": 1
}Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Indicates whether optional commit information should be included in the response.
falseThe substring by which the tags are filtered.
The order of the output.
ascPossible values: The data by which the tags are sorted.
namePossible values: The page to return.
1The maximum number of results to return.
30OK
Git object hash
Unauthorized
Forbidden
Not Found
Internal Server Error
GET /code/api/v1/repos/{repo_identifier}/tags?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Accept: */*
[
{
"commit": {
"author": {
"identity": {
"email": "text",
"name": "text"
},
"when": "2026-01-01T00:00:00.000Z"
},
"committer": {
"identity": {
"email": "text",
"name": "text"
},
"when": "2026-01-01T00:00:00.000Z"
},
"message": "text",
"parent_shas": [
"text"
],
"sha": "text",
"signature": {
"created": 1,
"key_fingerprint": "text",
"key_id": "text",
"key_scheme": "pgp",
"result": "bad",
"updated": 1
},
"stats": {
"files": [
{
"changes": 1,
"deletions": 1,
"insertions": 1,
"old_path": "text",
"path": "text",
"status": "text"
}
],
"total": {
"changes": 1,
"deletions": 1,
"insertions": 1
}
},
"title": "text"
},
"is_annotated": true,
"message": "text",
"name": "text",
"sha": "text",
"signature": {
"created": 1,
"key_fingerprint": "text",
"key_id": "text",
"key_scheme": "pgp",
"result": "bad",
"updated": 1
},
"tagger": {
"identity": {
"email": "text",
"name": "text"
},
"when": "2026-01-01T00:00:00.000Z"
},
"title": "text"
}
]Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Created
Git object hash
Bad Request
Unauthorized
Forbidden
Conflict
Unprocessable Entity
Internal Server Error
POST /code/api/v1/repos/{repo_identifier}/tags?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 89
{
"bypass_rules": true,
"dry_run_rules": true,
"message": "text",
"name": "text",
"target": "text"
}{
"commit": {
"author": {
"identity": {
"email": "text",
"name": "text"
},
"when": "2026-01-01T00:00:00.000Z"
},
"committer": {
"identity": {
"email": "text",
"name": "text"
},
"when": "2026-01-01T00:00:00.000Z"
},
"message": "text",
"parent_shas": [
"text"
],
"sha": "text",
"signature": {
"created": 1,
"key_fingerprint": "text",
"key_id": "text",
"key_scheme": "pgp",
"result": "bad",
"updated": 1
},
"stats": {
"files": [
{
"changes": 1,
"deletions": 1,
"insertions": 1,
"old_path": "text",
"path": "text",
"status": "text"
}
],
"total": {
"changes": 1,
"deletions": 1,
"insertions": 1
}
},
"title": "text"
},
"is_annotated": true,
"message": "text",
"name": "text",
"sha": "text",
"signature": {
"created": 1,
"key_fingerprint": "text",
"key_id": "text",
"key_scheme": "pgp",
"result": "bad",
"updated": 1
},
"tagger": {
"identity": {
"email": "text",
"name": "text"
},
"when": "2026-01-01T00:00:00.000Z"
},
"title": "text"
}Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Bypass rule violations if possible.
falseDry run rules for operations
falseNo Content
No content
Unauthorized
Forbidden
Not Found
Conflict
Unprocessable Entity
Internal Server Error
DELETE /code/api/v1/repos/{repo_identifier}/tags/{tag_name}?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Accept: */*
No content
Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
Created
source lines of code on the default branch
size of the repository in KiB
size of the repository LFS in KiB
Bad Request
Unauthorized
Forbidden
Internal Server Error
POST /code/api/v1/repos/import?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 186
{
"description": "text",
"identifier": "text",
"parent_ref": "text",
"pipelines": "convert",
"provider": {
"host": "text",
"password": "text",
"type": "github",
"username": "text"
},
"provider_repo": "text"
}{
"archived": true,
"created": 1,
"created_by": 1,
"default_branch": "text",
"deleted": 1,
"description": "text",
"fork_id": 1,
"git_ssh_url": "text",
"git_url": "text",
"id": 1,
"identifier": "text",
"import_failed": true,
"importing": true,
"is_empty": true,
"is_favorite": true,
"is_public": true,
"language": "text",
"last_git_push": 1,
"loc": 1,
"num_closed_pulls": 1,
"num_forks": 1,
"num_merged_pulls": 1,
"num_open_pulls": 1,
"num_pulls": 1,
"parent_id": 1,
"path": "text",
"repo_type": "text",
"root_space_id": 1,
"root_space_identifier": "text",
"size": 1,
"size_lfs": 1,
"size_updated": 1,
"state": 1,
"tags": null,
"updated": 1,
"upstream": {
"default_branch": "text",
"fork_id": 1,
"id": 1,
"identifier": "text",
"parent_id": 1,
"path": "text",
"type": "text"
}
}Account Identifier for the Entity.
Organization Identifier for the Entity.
Project Identifier for the Entity.
OK
source lines of code on the default branch
size of the repository in KiB
size of the repository LFS in KiB
Bad Request
Unauthorized
Forbidden
Not Found
Internal Server Error
POST /code/api/v1/repos/link?accountIdentifier=text HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 127
{
"connector_ref": "text",
"description": "text",
"identifier": "text",
"is_public": true,
"parent_ref": "text",
"repo_identifier": "text"
}{
"archived": true,
"created": 1,
"created_by": 1,
"default_branch": "text",
"deleted": 1,
"description": "text",
"fork_id": 1,
"git_ssh_url": "text",
"git_url": "text",
"id": 1,
"identifier": "text",
"import_failed": true,
"importing": true,
"is_empty": true,
"is_favorite": true,
"is_public": true,
"language": "text",
"last_git_push": 1,
"loc": 1,
"num_closed_pulls": 1,
"num_forks": 1,
"num_merged_pulls": 1,
"num_open_pulls": 1,
"num_pulls": 1,
"parent_id": 1,
"path": "text",
"repo_type": "text",
"root_space_id": 1,
"root_space_identifier": "text",
"size": 1,
"size_lfs": 1,
"size_updated": 1,
"state": 1,
"tags": null,
"updated": 1,
"upstream": {
"default_branch": "text",
"fork_id": 1,
"id": 1,
"identifier": "text",
"parent_id": 1,
"path": "text",
"type": "text"
}
}Last updated
Was this helpful?