Apps (bring your own keys)
Connect accounts through your own OAuth app so your users see your name.
By default, accounts connect through Postkey's own app on each network. Your users see "Postkey" on the consent screen and you need no developer accounts.
If you'd rather your users see your name, register your own OAuth app for that network. Postkey still runs the OAuth flow, stores and refreshes tokens, and publishes. It just uses your app's credentials.
Why use your own app
- Your brand on the network's consent screen.
- Your own rate limits and quotas on that network.
- On X, the network bills you directly, so an X post costs 1 credit instead of 5. See Credit usage.
Create the app on the network
Create an OAuth app in the network's developer console (for example LinkedIn Developers or the X Developer Portal). You'll paste Postkey's callback URL into it in step 3.
Register it with Postkey
curl -X POST https://api.postkey.dev/v1/apps \
-H "x-access-key: $POSTKEY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"platform": "linkedin",
"name": "Acme LinkedIn app",
"clientId": "86x2…",
"clientSecret": "WPL_AP1…"
}'{
"id": "app_3fk9",
"platform": "linkedin",
"name": "Acme LinkedIn app",
"callbackUrl": "https://api.postkey.dev/v1/connect/linkedin/callback"
}The client secret is stored encrypted. imageUrl is an optional icon for the dashboard.
Add the callback URL
Copy callbackUrl into your app's allowed redirect URLs on the network.
Connect through it
Pass appId when you ask for a connect URL:
curl "https://api.postkey.dev/v1/connect/linkedin?appId=app_3fk9&profileId=prof_acme&redirectUri=https%3A%2F%2Fyourapp.com%2Fconnected" \
-H "x-access-key: $POSTKEY_API_KEY"Accounts connected this way show byok: true and your appId in GET /v1/connect/integrations. You can mix both: some accounts on our app, some on yours.
Manage apps
| Call | What it does |
|---|---|
GET /v1/apps | List your apps. |
GET /v1/apps/{id} | Get one app. |
PATCH /v1/apps/{id} | Update the name, credentials or icon. |
DELETE /v1/apps/{id} | Delete it. |
The network's own review still applies to your app. For example, Meta and TikTok review apps before they can publish for other people.