---
title: "Obtain a new authorization code"
method: GET
path: "/oauth/authorize"
tags: ["Authentication"]
---

# Obtain a new authorization code

`GET /oauth/authorize`

## Request

- Base URL: `https://account-name.talkdeskid.com`
- URL: `https://account-name.talkdeskid.com/oauth/authorize`
- Auth: none declared

Obtain a new authorization code

## Query parameters

- `client_id` string, required
- `redirect_uri` string, required
- `response_type` string, required
- `scope` string
- `state` string
- `nonce` string

## Other responses

- `302`: The redirect URI with a "code" and the "state" parameter provided in the request query parameter
- `400`: Bad Request
- `401`: Unauthorized

---

[API](https://skmtc.dev/talkdesk/apis/authentication-api.md) - [All operations](https://skmtc.dev/talkdesk/apis/authentication-api/llms.txt) - [OpenAPI document](https://skmtc.dev/talkdesk/apis/authentication-api/revisions/cff3380d1fcc?raw)
