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

# Authorize

## Query Parameters

<ParamField path="client_id" type="string" required>
  Your app's client ID. You can find this in your app's settings pages at
  [build.attio.com](https://build.attio.com).
</ParamField>

<ParamField path="response_type" type="string" required>
  The response type. This should always be `"code"`.
</ParamField>

<ParamField path="redirect_uri" type="string" required>
  The URL to redirect to after the user authorizes access to your app. This URL must exactly match
  one of the registered redirect URLs in your app's settings pages at
  [build.attio.com](https://build.attio.com).
</ParamField>

<ParamField path="state" type="string">
  A random string to prevent CSRF attacks. Set this when starting the OAuth flow and verify it
  matches when the user is redirected back to your app.
</ParamField>

## Response

<ResponseField name="302" type="Redirect">
  After the user approves the connection, they are redirected to the `redirect_uri` with a `code`
  query parameter. If provided, the original `state` is also included.
</ResponseField>
