---
title: "Authorize Endpoint"
method: GET
path: "/authorize"
tags: ["OAuth 2.0"]
---

# Authorize Endpoint

`GET /authorize`

Use open source libraries to perform OAuth 2.0. You can find a list of libraries here: https://oauth.net/code/

## Query parameters

- `client_id` string, uuid, required — The client ID of your integration (this can be found in your integration settings page).
- `response_type` 'code', required — The response type. This should always be `code`.
- `redirect_uri` string, uri, required — The URL to redirect to after the user has authorized the integration. This URL must exactly match one of the registered redirect URLs in your integration settings page.
- `state` string — A random string to prevent CSRF attacks. You should set this when starting the OAuth flow and check that when the user is redirected back to your app that it matches this value.

## Other responses

- `302` — After the user approves the connection, they are sent to the redirect_uri with an authorization code.

---

[API](https://skmtc.dev/attio/apis/attio-oauth-flow.md) · [All operations](https://skmtc.dev/attio/apis/attio-oauth-flow/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/attio/attio-oauth-flow/revisions/6441a1d546a3/schema)
