> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stackone.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SpotDraft OAuth 2.0 connector profile – StackOne setup guide

> Set up a connector profile using OAuth 2.0 for SpotDraft in StackOne to allow users to link their accounts.

> [!WARNING]
>
> SpotDraft has no OAuth app screen in Developer Settings. Register the OAuth client by calling SpotDraft's client registration endpoint, and copy the Client Secret from the response because it is not shown again.

## Register an OAuth client

Register an OAuth client with SpotDraft so StackOne can request access on behalf of a workspace user.

**1. Copy the Callback URL**

Copy the **Callback URL** from your Connector Profile. SpotDraft redirects users back to this URL after they sign in.

**2. Register the OAuth client**

Send a `POST` request to `https://api.us.spotdraft.com/api/v1/oauth/register/` with a JSON body.

<ul>
  <li>`client_name`: a descriptive name (e.g., `StackOne Integration`)</li>
  <li>`redirect_uris`: an array containing the **Callback URL** from your Connector Profile</li>
</ul>

**3. Copy the client credentials**

Copy the `client_id` and `client_secret` values from the response and store them securely. Paste them into the **Client ID** and **Client Secret** fields of your Connector Profile.

## Review the OAuth scopes

SpotDraft OAuth clients can request the following scopes. No scope setup is needed on the SpotDraft side.

<ul>
  <li>`openid`: identify the signed-in user</li>
  <li>`contracts:read`: view contracts</li>
  <li>`contracts:create`: create contracts</li>
  <li>`contracts:edit`: edit contracts</li>
  <li>`insights:view`: view insights</li>
</ul>

## Create the StackOne Connector Profile

**1. Create a Connector Profile**

Enable the connector and create a Connector Profile in your project. See [Setup Connector Profile](https://docs.stackone.com/gateway/quickstart.md#setup-connector-profile).

**2. Link an Account**

Once the Connector Profile is created, continue to [link an account](https://docs.stackone.com/connectors/spotdraft/guides/link-account/oauth-2-0.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.