---
title: "Authorize User Access"
method: GET
path: "/authorize"
tags: ["Authorize User"]
---

# Authorize User Access

`GET /authorize`

## Request

- Base URL: `https://login.flocksafety.com`
- URL: `https://login.flocksafety.com/authorize`
- Auth: none declared

Redirects the user to sign in and grant consent, then returns an authorization code to your redirect URI.

## Query parameters

- `audience` 'com.flocksafety.integrations', required
- `scope` string
- `response_type` 'code', required
- `client_id` string, required
- `redirect_uri` string, uri
- `state` string
- `connection` string
- `nonce` string
- `code_challenge_method` 'S256'
- `code_challenge` string

## Other responses

- `302`: Redirects the browser to the registered redirect URI with an authorization code and the original state value, or with OAuth error parameters.
- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `405`: Method Not Allowed
- `429`: Too Many Requests
- `500`: Internal Server Error
- `501`: Not Implemented
- `503`: Service Unavailable

---

[API](https://skmtc.dev/flocksafety/apis/user-oauth-api.md) - [All operations](https://skmtc.dev/flocksafety/apis/user-oauth-api/llms.txt) - [OpenAPI document](https://skmtc.dev/flocksafety/apis/user-oauth-api/revisions/51b9b3fdf96d?raw)
