---
title: "Register an external application"
method: POST
path: "/admin/external-applications"
tags: ["Admin"]
---

# Register an external application

`POST /admin/external-applications`

## Request

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

## Request body

- CreateExternalApplicationInputBody
  - `$schema` string, uri: A URL to the JSON Schema for this object.
  - `allowed_scopes` string[], nullable, required
  - `client_type` 'public' | 'confidential', required
  - `name` string, required
  - `redirect_uris` string[], nullable, required

## Response `201`

Created

- CreateExternalApplicationOutputBody
  - `$schema` string, uri: A URL to the JSON Schema for this object.
  - `application` ExternalApplicationResponse, required
    - `allowed_scopes` string, required
    - `client_id` string, required
    - `client_type` string, required
    - `created_at` string, required
    - `id` string, required
    - `name` string, required
    - `revoked_at` string
  - `client_secret` string: Confidential client secret. Returned once.

## 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)
