---
title: "Create authorization URL"
method: GET
path: "/v1/oauth/authorize"
tags: ["oauth"]
---

# Create authorization URL

`GET /v1/oauth/authorize`

Create an sgID authorization URL to redirect your user to so that they can authenticate with Singpass (to be deprecated)

## Query parameters

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

## Response `200`

A HTML page which contains a sgID QR code if the request is successful, or an error code and error message if there is a problem with the request.

## Other responses

- `500` — Server error

---

[API](https://skmtc.net/sgid/apis/sgid-api.md) · [All operations](https://skmtc.net/sgid/apis/sgid-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sgid/sgid-api/revisions/6db43b35bc50/schema)
