---
title: "POST /experimental/workspaces/{workspaceId}/integrations/bitbucket-cloud-oauth/authorize"
method: POST
path: "/experimental/workspaces/{workspaceId}/integrations/bitbucket-cloud-oauth/authorize"
tags: ["Workspaces", "Integrations"]
---

# POST /experimental/workspaces/{workspaceId}/integrations/bitbucket-cloud-oauth/authorize

`POST /experimental/workspaces/{workspaceId}/integrations/bitbucket-cloud-oauth/authorize`

Starts the Bitbucket Cloud OAuth flow for the workspace by issuing a signed state and authorize URL.

## Path parameters

- `workspaceId` string, uuid, required

## Headers

- `Authorization` string

## Request body

- object
  - `returnTo` string

## Response `200`

Default Response

- object
  - `links` object, required
    - `self` string, uri, required
  - `data` object, required
    - `id` string, uuid, required
    - `type` 'bitbucket-cloud-oauth-authorization', required
    - `attributes` object, required
      - `authorizationUrl` string, uri, required
      - `state` string, required

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `500` — Internal Server Error

---

[API](https://skmtc.net/tessl/apis/tessl-api.md) · [All operations](https://skmtc.net/tessl/apis/tessl-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tessl/tessl-api/versions/fbb186825642/schema)
