# Bitbucket API API

> Bitbucket API API on Apizie: 307 endpoints (Update an installed app, Delete an app, List linkers for an app, Get a linker for an app, …) returned as clean JSON through one API key. Send your own provider key in the x-upstream-key header. Call it over REST at https://zieapi.vercel.app/v1/dev-tools:bitbucket/{endpoint} or from Claude, ChatGPT and Cursor through the Apizie MCP server. Free plan: 1,000 requests a month.

- Project key: `dev-tools:bitbucket`
- Category: Dev Tools
- Status: byok
- Source: https://bitbucket.org/product
- Page: https://zieapi.vercel.app/api/dev-tools/bitbucket
- OpenAPI: https://zieapi.vercel.app/api/dev-tools/bitbucket/openapi.json

Code against the Bitbucket API to automate simple tasks, embed Bitbucket data into your own site, build mobile or desktop apps, or even add custom UI add-ons into Bitbucket itself using the Connect framework.

## Endpoints

### Update an installed app
`POST https://zieapi.vercel.app/v1/dev-tools:bitbucket/addon-update-app-installation` (byok)

### Delete an app
`POST https://zieapi.vercel.app/v1/dev-tools:bitbucket/addon-delete-user-app` (byok)

### List linkers for an app
`GET https://zieapi.vercel.app/v1/dev-tools:bitbucket/addon-list-linkers` (byok)

### Get a linker for an app
`GET https://zieapi.vercel.app/v1/dev-tools:bitbucket/addon-get-linker` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| linker_key | string | yes | The unique key of a [linker module](https://dac-static.atlassian.com) as defined in an application descriptor. |

### List linker values for a linker
`GET https://zieapi.vercel.app/v1/dev-tools:bitbucket/addon-list-linker-values` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| linker_key | string | yes | The unique key of a [linker module](https://dac-static.atlassian.com) as defined in an application descriptor. |

### Create a linker value
`POST https://zieapi.vercel.app/v1/dev-tools:bitbucket/addon-create-linker-value` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| linker_key | string | yes | The unique key of a [linker module](https://dac-static.atlassian.com) as defined in an application descriptor. |

### Update a linker value
`POST https://zieapi.vercel.app/v1/dev-tools:bitbucket/addon-update-linker-values` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| linker_key | string | yes | The unique key of a [linker module](https://dac-static.atlassian.com) as defined in an application descriptor. |

### Delete all linker values
`POST https://zieapi.vercel.app/v1/dev-tools:bitbucket/addon-delete-linker-values` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| linker_key | string | yes | The unique key of a [linker module](https://dac-static.atlassian.com) as defined in an application descriptor. |

### Get a linker value
`GET https://zieapi.vercel.app/v1/dev-tools:bitbucket/addon-get-linker-value` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| linker_key | string | yes | The unique key of a [linker module](https://dac-static.atlassian.com) as defined in an application descriptor. |
| value_id | integer | yes | The numeric ID of the linker value. |

### Delete a linker value
`POST https://zieapi.vercel.app/v1/dev-tools:bitbucket/addon-delete-linker-value` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| linker_key | string | yes | The unique key of a [linker module](https://dac-static.atlassian.com) as defined in an application descriptor. |
| value_id | integer | yes | The numeric ID of the linker value. |

### Get a webhook resource
`GET https://zieapi.vercel.app/v1/dev-tools:bitbucket/webhooks-get-resource-events` (byok)

### List subscribable webhook types
`GET https://zieapi.vercel.app/v1/dev-tools:bitbucket/webhooks-list-subscribable-types` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| subject_type | string | yes | A resource or subject type. |

### List pull requests for a user
`GET https://zieapi.vercel.app/v1/dev-tools:bitbucket/pullrequests-list-for-user` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| selected_user | string | yes | This can either be the username of the pull request author, the author's UUID surrounded by curly-braces, for example: `{account UUID}`,… |
| state | string | no | Only return pull requests that are in this state. This parameter can be repeated. |

### List public repositories
`GET https://zieapi.vercel.app/v1/dev-tools:bitbucket/repositories-list-public-repositories` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| after | string | no | Filter the results to include only repositories created on or after this [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.… |
| role | string | no | Filters the result based on the authenticated user's role on each repository. * **member**: returns repositories to which the user has… |
| q | string | no | Query string to narrow down the response as per [filtering and sorting](/cloud/bitbucket/rest/intro/#filtering). `role` parameter must… |
| sort | string | no | Field by which the results should be sorted as per [filtering and sorting](/cloud/bitbucket/rest/intro/#filtering). |

### List repositories in a workspace
`GET https://zieapi.vercel.app/v1/dev-tools:bitbucket/repositories-list-in-workspace` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |
| role | string | no | Filters the result based on the authenticated user's role on each repository. * **member**: returns repositories to which the user has… |
| q | string | no | Query string to narrow down the response as per [filtering and sorting](/cloud/bitbucket/rest/intro/#filtering). |
| sort | string | no | Field by which the results should be sorted as per [filtering and sorting](/cloud/bitbucket/rest/intro/#filtering). |

### Get a repository
`GET https://zieapi.vercel.app/v1/dev-tools:bitbucket/repositories-get-repository-details` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |

### Create a repository
`POST https://zieapi.vercel.app/v1/dev-tools:bitbucket/repositories-create-repo` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |
| body | object | no | JSON request body |

### Update a repository
`POST https://zieapi.vercel.app/v1/dev-tools:bitbucket/repositories-create-or-update` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |
| body | object | no | JSON request body |

### Delete a repository
`POST https://zieapi.vercel.app/v1/dev-tools:bitbucket/repositories-delete-repository` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |
| redirect_to | string | no | If a repository has been moved to a new location, use this parameter to show users a friendly message in the Bitbucket UI that the… |

### List branch restrictions
`GET https://zieapi.vercel.app/v1/dev-tools:bitbucket/branch-restrictions-list-branch-restrictions` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |
| kind | string | no | Branch restrictions of this type |
| pattern | string | no | Branch restrictions applied to branches of this pattern |

### Create a branch restriction rule
`POST https://zieapi.vercel.app/v1/dev-tools:bitbucket/branch-restrictions-create-rule` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |
| body | object | yes | JSON request body |

### Get a branch restriction rule
`GET https://zieapi.vercel.app/v1/dev-tools:bitbucket/branch-restrictions-get-rule` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | yes | The restriction rule's id |
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |

### Update a branch restriction rule
`POST https://zieapi.vercel.app/v1/dev-tools:bitbucket/branch-restrictions-update-rule` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | yes | The restriction rule's id |
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |
| body | object | yes | JSON request body |

### Delete a branch restriction rule
`POST https://zieapi.vercel.app/v1/dev-tools:bitbucket/branch-restrictions-delete-rule` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | yes | The restriction rule's id |
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |

### Get the branching model for a repository
`GET https://zieapi.vercel.app/v1/dev-tools:bitbucket/branching-model-get-branching-model` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |

### Get the branching model config for a repository
`GET https://zieapi.vercel.app/v1/dev-tools:bitbucket/branching-model-get-repository-branching-settings` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |

### Update the branching model config for a repository
`POST https://zieapi.vercel.app/v1/dev-tools:bitbucket/branching-model-update-config` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |

### Get a commit
`GET https://zieapi.vercel.app/v1/dev-tools:bitbucket/commits-get-commit-details` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| commit | string | yes | The commit's SHA1. |
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |

### Approve a commit
`POST https://zieapi.vercel.app/v1/dev-tools:bitbucket/commits-approve-commit` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| commit | string | yes | The commit's SHA1. |
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |

### Unapprove a commit
`POST https://zieapi.vercel.app/v1/dev-tools:bitbucket/commits-unapprove-commit` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| commit | string | yes | The commit's SHA1. |
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |

### List a commit's comments
`GET https://zieapi.vercel.app/v1/dev-tools:bitbucket/commits-list-comments` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| commit | string | yes | The commit's SHA1. |
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |
| q | string | no | Query string to narrow down the response as per [filtering and sorting](/cloud/bitbucket/rest/intro/#filtering). |
| sort | string | no | Field by which the results should be sorted as per [filtering and sorting](/cloud/bitbucket/rest/intro/#filtering). |

### Create comment for a commit
`POST https://zieapi.vercel.app/v1/dev-tools:bitbucket/commits-create-comment` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| commit | string | yes | The commit's SHA1. |
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |
| body | object | yes | JSON request body |

### Get a commit comment
`GET https://zieapi.vercel.app/v1/dev-tools:bitbucket/commits-get-commit-comment` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| comment_id | integer | yes | The id of the comment. |
| commit | string | yes | The commit's SHA1. |
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |

### Update a commit comment
`POST https://zieapi.vercel.app/v1/dev-tools:bitbucket/commits-update-comment` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| comment_id | integer | yes | The id of the comment. |
| commit | string | yes | The commit's SHA1. |
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |
| body | object | yes | JSON request body |

### Delete a commit comment
`POST https://zieapi.vercel.app/v1/dev-tools:bitbucket/commits-delete-comment` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| comment_id | integer | yes | The id of the comment. |
| commit | string | yes | The commit's SHA1. |
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |

### Get a commit application property
`GET https://zieapi.vercel.app/v1/dev-tools:bitbucket/properties-get-value` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| workspace | string | yes | The repository container; either the workspace slug or the UUID in curly braces. |
| repo_slug | string | yes | The repository. |
| commit | string | yes | The commit. |
| app_key | string | yes | The key of the Connect app. |
| property_name | string | yes | The name of the property. |

### Update a commit application property
`POST https://zieapi.vercel.app/v1/dev-tools:bitbucket/properties-update-commit-application-property` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| workspace | string | yes | The repository container; either the workspace slug or the UUID in curly braces. |
| repo_slug | string | yes | The repository. |
| commit | string | yes | The commit. |
| app_key | string | yes | The key of the Connect app. |
| property_name | string | yes | The name of the property. |
| body | object | yes | JSON request body |

### Delete a commit application property
`POST https://zieapi.vercel.app/v1/dev-tools:bitbucket/properties-delete-commit-application-property` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| workspace | string | yes | The repository container; either the workspace slug or the UUID in curly braces. |
| repo_slug | string | yes | The repository. |
| commit | string | yes | The commit. |
| app_key | string | yes | The key of the Connect app. |
| property_name | string | yes | The name of the property. |

### List pull requests that contain a commit
`GET https://zieapi.vercel.app/v1/dev-tools:bitbucket/pullrequests-list-containing-commit` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces |
| repo_slug | string | yes | The repository; either the UUID in curly braces, or the slug |
| commit | string | yes | The SHA1 of the commit |
| page | integer | no | Which page to retrieve |
| pagelen | integer | no | How many pull requests to retrieve per page |

### List reports
`GET https://zieapi.vercel.app/v1/dev-tools:bitbucket/reports-list-linked-reports` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example `{workspace UUID}`. |
| repo_slug | string | yes | The repository. |
| commit | string | yes | The commit for which to retrieve reports. |

### Get a report
`GET https://zieapi.vercel.app/v1/dev-tools:bitbucket/reports-get-single-report` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example `{workspace UUID}`. |
| repo_slug | string | yes | The repository. |
| commit | string | yes | The commit the report belongs to. |
| reportId | string | yes | Either the uuid or external-id of the report. |

### Create or update a report
`POST https://zieapi.vercel.app/v1/dev-tools:bitbucket/reports-commit-report-create-or-update` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example `{workspace UUID}`. |
| repo_slug | string | yes | The repository. |
| commit | string | yes | The commit the report belongs to. |
| reportId | string | yes | Either the uuid or external-id of the report. |
| body | object | yes | JSON request body |

### Delete a report
`POST https://zieapi.vercel.app/v1/dev-tools:bitbucket/reports-delete-report` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example `{workspace UUID}`. |
| repo_slug | string | yes | The repository. |
| commit | string | yes | The commit the report belongs to. |
| reportId | string | yes | Either the uuid or external-id of the report. |

### List annotations
`GET https://zieapi.vercel.app/v1/dev-tools:bitbucket/reports-list-annotations` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example `{workspace UUID}`. |
| repo_slug | string | yes | The repository. |
| commit | string | yes | The commit for which to retrieve reports. |
| reportId | string | yes | Uuid or external-if of the report for which to get annotations for. |

### Bulk create or update annotations
`POST https://zieapi.vercel.app/v1/dev-tools:bitbucket/reports-bulk-create-or-update-annotations` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example `{workspace UUID}`. |
| repo_slug | string | yes | The repository. |
| commit | string | yes | The commit for which to retrieve reports. |
| reportId | string | yes | Uuid or external-if of the report for which to get annotations for. |
| body | object | yes | JSON request body |

### Get an annotation
`GET https://zieapi.vercel.app/v1/dev-tools:bitbucket/reports-get-annotation` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example `{workspace UUID}`. |
| repo_slug | string | yes | The repository. |
| commit | string | yes | The commit the report belongs to. |
| reportId | string | yes | Either the uuid or external-id of the report. |
| annotationId | string | yes | Either the uuid or external-id of the annotation. |

### Create or update an annotation
`POST https://zieapi.vercel.app/v1/dev-tools:bitbucket/reports-commit-annotations` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example `{workspace UUID}`. |
| repo_slug | string | yes | The repository. |
| commit | string | yes | The commit the report belongs to. |
| reportId | string | yes | Either the uuid or external-id of the report. |
| annotationId | string | yes | Either the uuid or external-id of the annotation. |
| body | object | yes | JSON request body |

### Delete an annotation
`POST https://zieapi.vercel.app/v1/dev-tools:bitbucket/reports-delete-annotation` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example `{workspace UUID}`. |
| repo_slug | string | yes | The repository. |
| commit | string | yes | The commit the annotation belongs to. |
| reportId | string | yes | Either the uuid or external-id of the annotation. |
| annotationId | string | yes | Either the uuid or external-id of the annotation. |

### List commit statuses for a commit
`GET https://zieapi.vercel.app/v1/dev-tools:bitbucket/commit-statuses-list-for-commit` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| commit | string | yes | The commit's SHA1. |
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |
| q | string | no | Query string to narrow down the response as per [filtering and sorting](/cloud/bitbucket/rest/intro/#filtering). |
| sort | string | no | Field by which the results should be sorted as per [filtering and sorting](/cloud/bitbucket/rest/intro/#filtering). Defaults to… |

### Create a build status for a commit
`POST https://zieapi.vercel.app/v1/dev-tools:bitbucket/commit-statuses-create-build-status` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| commit | string | yes | The commit's SHA1. |
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |
| body | object | no | JSON request body |

### Get a build status for a commit
`GET https://zieapi.vercel.app/v1/dev-tools:bitbucket/commit-statuses-get-build-status` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| commit | string | yes | The commit's SHA1. |
| key | string | yes | The build status' unique key |
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |

### Update a build status for a commit
`POST https://zieapi.vercel.app/v1/dev-tools:bitbucket/commit-statuses-update-build-status` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| commit | string | yes | The commit's SHA1. |
| key | string | yes | The build status' unique key |
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |
| body | object | no | JSON request body |

### List commits
`GET https://zieapi.vercel.app/v1/dev-tools:bitbucket/commits-list` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |

### List commits with include/exclude
`POST https://zieapi.vercel.app/v1/dev-tools:bitbucket/commits-list-with-include-exclude` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |

### List commits for revision
`GET https://zieapi.vercel.app/v1/dev-tools:bitbucket/commits-list-for-revision` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| revision | string | yes | A commit SHA1 or ref name. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |

### List commits for revision using include/exclude
`POST https://zieapi.vercel.app/v1/dev-tools:bitbucket/commits-list-for-revision-2` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| revision | string | yes | A commit SHA1 or ref name. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |

### List components
`GET https://zieapi.vercel.app/v1/dev-tools:bitbucket/issue-tracker-list-components` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |

### Get a component for issues
`GET https://zieapi.vercel.app/v1/dev-tools:bitbucket/issue-tracker-get-component` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| component_id | integer | yes | The component's id |
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |

### List default reviewers
`GET https://zieapi.vercel.app/v1/dev-tools:bitbucket/pullrequests-list-default-reviewers` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |

### Get a default reviewer
`GET https://zieapi.vercel.app/v1/dev-tools:bitbucket/pullrequests-get-default-reviewer` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| target_username | string | yes | This can either be the username or the UUID of the default reviewer, surrounded by curly-braces, for example: `{account UUID}`. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |

### Add a user to the default reviewers
`POST https://zieapi.vercel.app/v1/dev-tools:bitbucket/pullrequests-add-user-to-default-reviewers` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| target_username | string | yes | This can either be the username or the UUID of the default reviewer, surrounded by curly-braces, for example: `{account UUID}`. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |

### Remove a user from the default reviewers
`POST https://zieapi.vercel.app/v1/dev-tools:bitbucket/pullrequests-remove-default-reviewer` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| target_username | string | yes | This can either be the username or the UUID of the default reviewer, surrounded by curly-braces, for example: `{account UUID}`. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |

### List repository deploy keys
`GET https://zieapi.vercel.app/v1/dev-tools:bitbucket/deployments-list-repository-deploy-keys` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |

### Add a repository deploy key
`POST https://zieapi.vercel.app/v1/dev-tools:bitbucket/deployments-add-repository-deploy-key` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |

### Get a repository deploy key
`GET https://zieapi.vercel.app/v1/dev-tools:bitbucket/deployments-get-deploy-key` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| key_id | string | yes | The key ID matching the deploy key. |
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |

### Update a repository deploy key
`POST https://zieapi.vercel.app/v1/dev-tools:bitbucket/deployments-update-repository-deploy-key` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| key_id | string | yes | The key ID matching the deploy key. |
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |

### Delete a repository deploy key
`POST https://zieapi.vercel.app/v1/dev-tools:bitbucket/deployments-repository-key-delete` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| key_id | string | yes | The key ID matching the deploy key. |
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |

### List deployments
`GET https://zieapi.vercel.app/v1/dev-tools:bitbucket/deployments-list-deployments` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example `{workspace UUID}`. |
| repo_slug | string | yes | The repository. |

### Get a deployment
`GET https://zieapi.vercel.app/v1/dev-tools:bitbucket/deployments-get-single-deployment` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example `{workspace UUID}`. |
| repo_slug | string | yes | The repository. |
| deployment_uuid | string | yes | The deployment UUID. |

### List variables for an environment
`GET https://zieapi.vercel.app/v1/dev-tools:bitbucket/pipelines-list-environment-variables` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example `{workspace UUID}`. |
| repo_slug | string | yes | The repository. |
| environment_uuid | string | yes | The environment. |

### Create a variable for an environment
`POST https://zieapi.vercel.app/v1/dev-tools:bitbucket/pipelines-create-deployment-environment-variable` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example `{workspace UUID}`. |
| repo_slug | string | yes | The repository. |
| environment_uuid | string | yes | The environment. |
| body | object | yes | JSON request body |

### Update a variable for an environment
`POST https://zieapi.vercel.app/v1/dev-tools:bitbucket/pipelines-update-environment-variable` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example `{workspace UUID}`. |
| repo_slug | string | yes | The repository. |
| environment_uuid | string | yes | The environment. |
| variable_uuid | string | yes | The UUID of the variable to update. |
| body | object | yes | JSON request body |

### Delete a variable for an environment
`POST https://zieapi.vercel.app/v1/dev-tools:bitbucket/pipelines-delete-variable-for-environment` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example `{workspace UUID}`. |
| repo_slug | string | yes | The repository. |
| environment_uuid | string | yes | The environment. |
| variable_uuid | string | yes | The UUID of the variable to delete. |

### Compare two commits
`GET https://zieapi.vercel.app/v1/dev-tools:bitbucket/commits-compare-two-commits-diff` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| spec | string | yes | A commit SHA (e.g. `3a8b42`) or a commit range using double dot notation (e.g. `3a8b42..9ff173`). |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |
| context | integer | no | Generate diffs with lines of context instead of the usual three. |
| path | string | no | Limit the diff to a particular file (this parameter can be repeated for multiple paths). |
| ignore_whitespace | boolean | no | Generate diffs that ignore whitespace. |
| binary | boolean | no | Generate diffs that include binary files, true if omitted. |
| renames | boolean | no | Whether to perform rename detection, true if omitted. |
| merge | boolean | no | This parameter is deprecated. The 'topic' parameter should be used instead. The 'merge' and 'topic' parameters cannot be both used at the… |
| topic | boolean | no | If true, returns 2-way 'three-dot' diff. This is a diff between the source commit and the merge base of the source commit and the… |

### Compare two commit diff stats
`GET https://zieapi.vercel.app/v1/dev-tools:bitbucket/commits-compare-diff-stats` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| ignore_whitespace | boolean | no | Generate diffs that ignore whitespace |
| merge | boolean | no | This parameter is deprecated. The 'topic' parameter should be used instead. The 'merge' and 'topic' parameters cannot be both used at the… |
| path | string | no | Limit the diffstat to a particular file (this parameter can be repeated for multiple paths). |
| renames | boolean | no | Whether to perform rename detection, true if omitted. |
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| spec | string | yes | A commit SHA (e.g. `3a8b42`) or a commit range using double dot notation (e.g. `3a8b42..9ff173`). |
| topic | boolean | no | If true, returns 2-way 'three-dot' diff. This is a diff between the source commit and the merge base of the source commit and the… |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |

### List download artifacts
`GET https://zieapi.vercel.app/v1/dev-tools:bitbucket/downloads-list-artifacts` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |

### Upload a download artifact
`POST https://zieapi.vercel.app/v1/dev-tools:bitbucket/downloads-upload-artifact` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |

### Get a download artifact link
`GET https://zieapi.vercel.app/v1/dev-tools:bitbucket/downloads-artifact-link-get` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| filename | string | yes | Name of the file. |
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |

### Delete a download artifact
`POST https://zieapi.vercel.app/v1/dev-tools:bitbucket/downloads-delete-artifact` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| filename | string | yes | Name of the file. |
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |

### Get the effective, or currently applied, branching model for a repository
`GET https://zieapi.vercel.app/v1/dev-tools:bitbucket/branching-model-get-effective-branching-model` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |

### List effective default reviewers
`GET https://zieapi.vercel.app/v1/dev-tools:bitbucket/pullrequests-list-effective-default-reviewers` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |

### List environments
`GET https://zieapi.vercel.app/v1/dev-tools:bitbucket/deployments-list-environments` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example `{workspace UUID}`. |
| repo_slug | string | yes | The repository. |

### Create an environment
`POST https://zieapi.vercel.app/v1/dev-tools:bitbucket/deployments-create-environment` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example `{workspace UUID}`. |
| repo_slug | string | yes | The repository. |
| body | object | yes | JSON request body |

### Get an environment
`GET https://zieapi.vercel.app/v1/dev-tools:bitbucket/deployments-get-environment` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example `{workspace UUID}`. |
| repo_slug | string | yes | The repository. |
| environment_uuid | string | yes | The environment UUID. |

### Delete an environment
`POST https://zieapi.vercel.app/v1/dev-tools:bitbucket/deployments-delete-environment` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example `{workspace UUID}`. |
| repo_slug | string | yes | The repository. |
| environment_uuid | string | yes | The environment UUID. |

### Update an environment
`POST https://zieapi.vercel.app/v1/dev-tools:bitbucket/deployments-update-environment` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example `{workspace UUID}`. |
| repo_slug | string | yes | The repository. |
| environment_uuid | string | yes | The environment UUID. |

### List commits that modified a file
`GET https://zieapi.vercel.app/v1/dev-tools:bitbucket/source-filehistory-list-commits` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| commit | string | yes | The commit's SHA1. |
| path | string | yes | Path to the file. |
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |
| renames | string | no | When `true`, Bitbucket will follow the history of the file across renames (this is the default behavior). This can be turned off by… |
| q | string | no | Query string to narrow down the response as per [filtering and sorting](/cloud/bitbucket/rest/intro/#filtering). |
| sort | string | no | Name of a response property sort the result by as per [filtering and sorting](/cloud/bitbucket/rest/intro/#sorting-query-results). |

### List repository forks
`GET https://zieapi.vercel.app/v1/dev-tools:bitbucket/repositories-list-forks` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |
| role | string | no | Filters the result based on the authenticated user's role on each repository. * **member**: returns repositories to which the user has… |
| q | string | no | Query string to narrow down the response as per [filtering and sorting](/cloud/bitbucket/rest/intro/#filtering). |
| sort | string | no | Field by which the results should be sorted as per [filtering and sorting](/cloud/bitbucket/rest/intro/#filtering). |

### Fork a repository
`POST https://zieapi.vercel.app/v1/dev-tools:bitbucket/repositories-fork-repository` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |
| body | object | no | JSON request body |

### List webhooks for a repository
`GET https://zieapi.vercel.app/v1/dev-tools:bitbucket/repositories-list-webhooks` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |

### Create a webhook for a repository
`POST https://zieapi.vercel.app/v1/dev-tools:bitbucket/repositories-create-webhook` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |

### Get a webhook for a repository
`GET https://zieapi.vercel.app/v1/dev-tools:bitbucket/repositories-get-webhook-by-uid` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| uid | string | yes | Installed webhook's ID |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |

### Update a webhook for a repository
`POST https://zieapi.vercel.app/v1/dev-tools:bitbucket/repositories-update-webhook-subscription` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| uid | string | yes | Installed webhook's ID |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |

### Delete a webhook for a repository
`POST https://zieapi.vercel.app/v1/dev-tools:bitbucket/repositories-delete-webhook` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| uid | string | yes | Installed webhook's ID |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |

### List issues
`GET https://zieapi.vercel.app/v1/dev-tools:bitbucket/issue-tracker-list-issues-in-workspace` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |

### Create an issue
`POST https://zieapi.vercel.app/v1/dev-tools:bitbucket/issue-tracker-create-new-issue` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |
| body | object | yes | JSON request body |

### Export issues
`POST https://zieapi.vercel.app/v1/dev-tools:bitbucket/issue-tracker-initiate-job` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |
| body | object | no | JSON request body |

### Check issue export status
`GET https://zieapi.vercel.app/v1/dev-tools:bitbucket/issue-tracker-check-export-status` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| repo_name | string | yes | The name of the repo |
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| task_id | string | yes | The ID of the export task |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |

### Check issue import status
`GET https://zieapi.vercel.app/v1/dev-tools:bitbucket/issue-tracker-check-import-status` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |

### Import issues
`POST https://zieapi.vercel.app/v1/dev-tools:bitbucket/issue-tracker-import-issues-from-zip` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |

### Get an issue
`GET https://zieapi.vercel.app/v1/dev-tools:bitbucket/issue-tracker-get-issue-by-id` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| issue_id | string | yes | The issue id |
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |

### Update an issue
`POST https://zieapi.vercel.app/v1/dev-tools:bitbucket/issue-tracker-update-issue` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| issue_id | string | yes | The issue id |
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |

### Delete an issue
`POST https://zieapi.vercel.app/v1/dev-tools:bitbucket/issue-tracker-delete-issue` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| issue_id | string | yes | The issue id |
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |

### List attachments for an issue
`GET https://zieapi.vercel.app/v1/dev-tools:bitbucket/issue-tracker-list-attachments-for-issue` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| issue_id | string | yes | The issue id |
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |

### Upload an attachment to an issue
`POST https://zieapi.vercel.app/v1/dev-tools:bitbucket/issue-tracker-upload-attachment` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| issue_id | string | yes | The issue id |
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |

### Get attachment for an issue
`GET https://zieapi.vercel.app/v1/dev-tools:bitbucket/issue-tracker-get-attachment-contents` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| issue_id | string | yes | The issue id |
| path | string | yes | Path to the file. |
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |

### Delete an attachment for an issue
`POST https://zieapi.vercel.app/v1/dev-tools:bitbucket/issue-tracker-delete-attachment` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| issue_id | string | yes | The issue id |
| path | string | yes | Path to the file. |
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |

### List changes on an issue
`GET https://zieapi.vercel.app/v1/dev-tools:bitbucket/issue-tracker-list-issue-changes` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| issue_id | string | yes | The issue id |
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |
| q | string | no | Query string to narrow down the response. See [filtering and sorting](/cloud/bitbucket/rest/intro/#filtering) for details. |
| sort | string | no | Name of a response property to sort results. See [filtering and sorting](/cloud/bitbucket/rest/intro/#sorting-query-results) for details. |

### Modify the state of an issue
`POST https://zieapi.vercel.app/v1/dev-tools:bitbucket/issue-tracker-modify-issue-state` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| issue_id | string | yes | The issue id |
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |
| body | object | yes | JSON request body |

### Get issue change object
`GET https://zieapi.vercel.app/v1/dev-tools:bitbucket/issue-tracker-get-issue-change` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| change_id | string | yes | The issue change id |
| issue_id | string | yes | The issue id |
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |

### List comments on an issue
`GET https://zieapi.vercel.app/v1/dev-tools:bitbucket/issue-tracker-list-comments-on-issue` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| issue_id | string | yes | The issue id |
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |
| q | string | no | Query string to narrow down the response as per [filtering and sorting](/cloud/bitbucket/rest/intro/#filtering). |

### Create a comment on an issue
`POST https://zieapi.vercel.app/v1/dev-tools:bitbucket/issue-tracker-create-comment-on-issue` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| issue_id | string | yes | The issue id |
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |
| body | object | yes | JSON request body |

### Get a comment on an issue
`GET https://zieapi.vercel.app/v1/dev-tools:bitbucket/issue-tracker-get-comment` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| comment_id | integer | yes | The id of the comment. |
| issue_id | string | yes | The issue id |
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |

### Update a comment on an issue
`POST https://zieapi.vercel.app/v1/dev-tools:bitbucket/issue-tracker-update-issue-comment-content` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| comment_id | integer | yes | The id of the comment. |
| issue_id | string | yes | The issue id |
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |
| body | object | yes | JSON request body |

### Delete a comment on an issue
`POST https://zieapi.vercel.app/v1/dev-tools:bitbucket/issue-tracker-delete-comment` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| comment_id | integer | yes | The id of the comment. |
| issue_id | string | yes | The issue id |
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |

### Check if current user voted for an issue
`GET https://zieapi.vercel.app/v1/dev-tools:bitbucket/issue-tracker-check-user-voted` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| issue_id | string | yes | The issue id |
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |

### Vote for an issue
`POST https://zieapi.vercel.app/v1/dev-tools:bitbucket/issue-tracker-vote-for-issue` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| issue_id | string | yes | The issue id |
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |

### Remove vote for an issue
`POST https://zieapi.vercel.app/v1/dev-tools:bitbucket/issue-tracker-remove-vote` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| issue_id | string | yes | The issue id |
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |

### Check if current user is watching a issue
`GET https://zieapi.vercel.app/v1/dev-tools:bitbucket/issue-tracker-check-if-watching-issue` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| issue_id | string | yes | The issue id |
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |

### Watch an issue
`POST https://zieapi.vercel.app/v1/dev-tools:bitbucket/issue-tracker-watch-issue` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| issue_id | string | yes | The issue id |
| repo_slug | string | yes | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`. |
| workspace | string | yes | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`. |

…and 187 more. See the OpenAPI spec.

## Example
```
curl "https://zieapi.vercel.app/v1/dev-tools:bitbucket/addon-update-app-installation" \
  -H "x-api-key: $APIZIE_KEY" \
  -H "x-upstream-key: $PROVIDER_KEY"
```

## FAQ

### How do I call the Bitbucket API API?
Create a free Apizie key, then send POST https://zieapi.vercel.app/v1/dev-tools:bitbucket/addon-update-app-installation with the header x-api-key. Every endpoint returns { project, data, timestamp }.

### Is the Bitbucket API API free on Apizie?
Yes. The Free plan includes 1,000 requests a month at 100 requests a minute, no credit card. Bitbucket API itself also needs your own key from api.bitbucket.org.

### Can AI agents use the Bitbucket API API?
Yes. Add the Apizie MCP server (https://zieapi.vercel.app/mcp) to Claude, ChatGPT, Cursor or VS Code, then ask in plain language. The agent calls run_scraper with project key dev-tools:bitbucket.

### What is the status of the Bitbucket API API?
Needs your own provider key (bring your own key)
