---
title: GET · Authorize an app
published: true
tier: free
index: 1
---

# GET · Authorize an app

`GET /api/auth/oauth2/authorize`

Send the customer's browser to this address on `https://glue.fast` to request access for your registered app.

| Query parameter | Value |
| --- | --- |
| `client_id`, `redirect_uri` | Registered client ID and exact callback URL. |
| `response_type` | `code` |
| `scope` | Space-separated permissions. Request only those your app uses. |
| `state` | Random, single-use value stored in the customer's server session. |
| `code_challenge`, `code_challenge_method` | Base64url-encoded SHA-256 of the PKCE verifier, without padding. Set the method to `S256`. |
| `idp_hint`, `prompt` | Optional. `idp_hint=google` opens Google sign-in for a signed-out customer. `prompt=consent` asks for consent again. |

**Scopes.** `account:read` shares name and email. `results:read` reads results, files and state. `state:write` changes state. `results:delete` deletes a customer's result.

**Response.** Glue redirects to your callback with `code` and `state`. Verify and consume the saved state before exchanging the code. A declined request returns `error=access_denied`. [Exchange the code](./token.md)
