---
title: "Get authorization code via redirect"
method: GET
path: "/oauth2/userauth"
---

# Get authorization code via redirect

`GET /oauth2/userauth`

## Request

- Base URL: `https://api.signnow.com`
- URL: `https://api.signnow.com/oauth2/userauth`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/signnow/apis/signnow-api/docs/oauth2/userauth/get.ts> (a function with typed inputs; its response is checked against the schema)

This endpoint allows API users to obtain an authorization code via an application redirect link. The code can then be used to generate an access token (bearer token) to make API requests on behalf of the user — without using their SignNow credentials. 

For more information, see [Generate access token](/docs/oauth2/operations/post-oauth2-token).

## Other responses

- `302`: Redirect to the `redirect_uri` with the authorization code in the `code` query parameter. The body is an HTML page with the same redirect link.
- `400`: * Incorrect `client_id`. * `access_token` is missing. * `client_id` is missing. * `response_type` is missing. * `redirect_url` is missing.

---

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