---
title: "Approve an external application connection"
method: POST
path: "/external-applications/oauth/authorize"
tags: ["Auth"]
---

# Approve an external application connection

`POST /external-applications/oauth/authorize`

## Request

- Base URL: `https://app.openpo.st/api/v1`
- URL: `https://app.openpo.st/api/v1/external-applications/oauth/authorize`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `openpost_session`

## Request body

- AuthorizeExternalApplicationInputBody
  - `$schema` string, uri: A URL to the JSON Schema for this object.
  - `approved` boolean, required
  - `client_id` string, required
  - `code_challenge` string, required
  - `redirect_uri` string, required
  - `scope` string, required
  - `state` string
  - `workspace_grants` WorkspaceGrantInput[], nullable, required
    - `account_ids` string[], nullable
    - `all_current_accounts` boolean
    - `workspace_id` string, required

## Response `200`

OK

- AuthorizeExternalApplicationOutputBody
  - `$schema` string, uri: A URL to the JSON Schema for this object.
  - `installation_id` string
  - `redirect_url` string, required

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `422`: Unprocessable Entity
- `500`: Internal Server Error

---

[API](https://skmtc.dev/openpo/apis/openpost-api.md) · [All operations](https://skmtc.dev/openpo/apis/openpost-api/llms.txt) · [OpenAPI document](https://skmtc.dev/openpo/apis/openpost-api/revisions/67d3964458a7?raw)
