---
title: "Generate a hosted connect link for an end-user (multi-tenant)"
method: POST
path: "/api/connect-link"
---

# Generate a hosted connect link for an end-user (multi-tenant)

`POST /api/connect-link`

## Request

- Base URL: `https://postwire.io`
- URL: `https://postwire.io/api/connect-link`
- Auth: HTTP bearer

A hosted page (valid 1 hour) where your client connects their own account, without a PostWire login: send them the url. The connection lands in brand_id.

## Request body

- object
  - `platform` 'tiktok' | 'instagram' | 'youtube' | 'linkedin' | 'facebook' | 'bluesky' | 'mastodon' | 'telegram' | 'discord' | 'wordpress' | 'devto' | 'hashnode' | 'slack' | 'nostr' | 'x': Offer only this network; without it the page offers every network.
  - `brand_id` string, uuid: The brand the connection is saved into.
  - `ig_username` string: Instagram: the @handle to connect, when the person's Pages have several.

## Response `200`

{ url, token, expires_in }

---

[API](https://skmtc.dev/postwire/apis/postwire-api.md) · [All operations](https://skmtc.dev/postwire/apis/postwire-api/llms.txt) · [OpenAPI document](https://skmtc.dev/postwire/apis/postwire-api/revisions/513a409ab8f7?raw)
