---
title: "Start an explicit OIDC identity link"
method: POST
path: "/auth/oidc/{provider_id}/link"
tags: ["Auth"]
---

# Start an explicit OIDC identity link

`POST /auth/oidc/{provider_id}/link`

## Request

- Base URL: `https://app.openpo.st/api/v1`
- URL: `https://app.openpo.st/api/v1/auth/oidc/{provider_id}/link`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `openpost_session`

## Path parameters

- `provider_id` string, required

## Headers

- `Cookie` string

## Request body

- OIDCAuthenticatedStartInputBody
  - `$schema` string, uri: A URL to the JSON Schema for this object.
  - `action` string
  - `native` boolean
  - `reauth_grant` string
  - `return_path` string

## Response `200`

OK

- OIDCAuthenticatedStartOutputBody
  - `$schema` string, uri: A URL to the JSON Schema for this object.
  - `authorization_url` string, required

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `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)
