---
title: "Submit OAuth consent decision"
method: POST
path: "/v1/oauth/authorize"
tags: ["OAuth"]
---

# Submit OAuth consent decision

`POST /v1/oauth/authorize`

## Request

- Base URL: `https://api.1claw.co`
- URL: `https://api.1claw.co/v1/oauth/authorize`
- Auth: HTTP bearer

The user approves or denies the authorization request. On approval, returns
a redirect URL containing the authorization code. On denial, returns a
redirect URL with an error parameter.

## Request body

- object
  - `approve` boolean, required
  - `client_id` string, required
  - `redirect_uri` string, uri, required
  - `scope` string
  - `state` string
  - `code_challenge` string
  - `code_challenge_method` 'S256'
  - `nonce` string

## Response `200`

Redirect URL with authorization code or error

- object
  - `redirect_url` string, uri, required

## Other responses

- `400`: Invalid request

---

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