---
title: "Get OAuth URL for a channel"
method: GET
path: "/social/{integration}"
tags: ["Integrations"]
---

# Get OAuth URL for a channel

`GET /social/{integration}`

Generate an OAuth authorization URL for a given integration. Use this to connect a new social media channel. Only OAuth-based integrations are supported (integrations that require an external URL, such as Mastodon, are not available via this endpoint).

## Path parameters

- `integration` string, required

## Query parameters

- `refresh` string

## Response `200`

OAuth authorization URL

- object
  - `url` string — The OAuth authorization URL to redirect the user to

## Other responses

- `400` — Integration not allowed or requires an external URL

---

[API](https://skmtc.net/postiz/apis/postiz-public-api.md) · [All operations](https://skmtc.net/postiz/apis/postiz-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/postiz/postiz-public-api/revisions/8b2952dc5357/schema)
