Accounts
Connect an account
GET
https://postifuse.com/v1/connect/{network}A hosted link your user opens to connect an account through the network's official login. Pass profile to put it in that client's profile. When they approve, Postifuse sends them to your redirect_url with the new account id.
curl --request GET \ --url 'https://postifuse.com/v1/connect/tiktok?profile=prf_martin&redirect_url=https%3A%2F%2Fapp.example.com%2Fdone' \ --header 'Authorization: Bearer pf_live_…'
const res = await fetch("https://postifuse.com/v1/connect/tiktok?profile=prf_martin&redirect_url=https%3A%2F%2Fapp.example.com%2Fdone", {
method: "GET",
headers: {
"Authorization": "Bearer pf_live_…"
},
});
const data = await res.json();
import requests
res = requests.get(
"https://postifuse.com/v1/connect/tiktok?profile=prf_martin&redirect_url=https%3A%2F%2Fapp.example.com%2Fdone",
headers={"Authorization": "Bearer pf_live_…"},
)
print(res.json())
{
"url": "https://postifuse.com/c/9f2c…",
"expires_at": "2027-01-08T17:15:00Z"
}
{
"error": "workspace_not_active",
"message": "The workspace for this key is not active yet.",
"docs": "https://postifuse.com/docs/errors/"
}
Headers
AuthorizationstringrequiredBearer followed by a workspace key, a profile key or an OAuth token. See authentication.
Example Bearer pf_live_…
Path parameters
networkstringrequiredThe network to connect.
One of instagram tiktok youtube x linkedin threads bluesky facebook pinterest
Example tiktok
Query parameters
profilestringProfile the new account goes into. Default: the workspace's default profile.
Example prf_martin
redirect_urlstring<uri>Where the user lands after approving, with account_id in the query string.
Example https://app.example.com/done
Response
200A one-time link
403Workspace not active