# oauth.approve

> POST https://app.intraface.cc/api/v1/oauth/approve

A signed-in person (Clerk session cookie). Agent tokens are refused. Body limit: 256 KB.

**Auth:** signed-in session (`__session` cookie)

## Request body (application/json)

```json
{
  "type": "object",
  "properties": {
    "client_id": {
      "type": "string",
      "minLength": 20,
      "maxLength": 2000
    },
    "redirect_uri": {
      "type": "string",
      "maxLength": 500,
      "format": "uri"
    },
    "code_challenge": {
      "type": "string",
      "minLength": 43,
      "maxLength": 128
    },
    "code_challenge_method": {
      "type": "string",
      "const": "S256"
    },
    "state": {
      "type": "string",
      "maxLength": 500
    },
    "scope": {
      "type": "string",
      "maxLength": 200
    },
    "resource": {
      "type": "string",
      "maxLength": 500
    }
  },
  "required": [
    "client_id",
    "redirect_uri",
    "code_challenge",
    "code_challenge_method"
  ]
}
```

## Responses

### 200: Success.

application/json:

```json
{
  "type": "object",
  "properties": {
    "redirect_url": {
      "type": "string",
      "format": "uri"
    }
  },
  "required": [
    "redirect_url"
  ]
}
```

### default

Any other error, in the shared envelope `{ error: { code, message, hint?, details? } }`.
