---
title: "Get OAuth authorization URL for a platform"
method: GET
path: "/accounts/{platform}/auth-url"
tags: ["Accounts"]
---

# Get OAuth authorization URL for a platform

`GET /accounts/{platform}/auth-url`

## Request

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

## Path parameters

- `platform` string, required: Social platform (x, mastodon, bluesky, linkedin, threads, instagram, facebook, tiktok, youtube, pinterest)

## Query parameters

- `connection_mode` 'oauth' | 'instagram_login': Instagram login method. Omitted or oauth uses Facebook Login; instagram_login signs in directly with Instagram.
- `workspace_id` string, required: Workspace ID to link account to
- `server_name` string: Mastodon server name from config (required for mastodon)
- `instance_url` string: Mastodon instance URL to dynamically register
- `intent` 'production' | 'certification_test': Typed execution intent; certification_test requires an unscoped instance administrator

## Response `200`

OK

- GetAuthURLOutputBody
  - `$schema` string, uri: A URL to the JSON Schema for this object.
  - `url` string, required: OAuth authorization URL

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `409`: Conflict
- `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)
