---
title: "Request Authorization Code"
method: GET
path: "/v3/oauth2/authorize"
tags: ["authentication"]
---

# Request Authorization Code

`GET /v3/oauth2/authorize`

You can implement OAuth2 authentication to your application using our **OAuth2** endpoints.  You need to redirect users to `/api/v3/oauth2/authorize` endpoint to get an authorization code and include the parameters below.   This page will ask the user if they want to allow a client's application to submit or obtain data from their QM account. It will redirect the user to the url provided by the client application with the code as a query parameter or error in case of an error. See the /api/v1/oauth/access_token endpoint for the next steps.

## Query parameters

- `clientId` string
- `client_secret` string
- `response_type` string, required
- `scope` string, required
- `redirect_uri` string
- `state` string

## Response `200`

Successful Operation

## Other responses

- `401` — Not Authenticated

---

[API](https://skmtc.net/quantimo/apis/curedao-unified-health-api.md) · [All operations](https://skmtc.net/quantimo/apis/curedao-unified-health-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/quantimo/curedao-unified-health-api/revisions/7ac03025c3d2/schema)
