Connect a credential-based platform (telegram, bluesky, mastodon, discord, wordpress, devto, hashnode, slack, nostr)

post/api/connect

Request

  • Base URL: https://postwire.io
  • URL: https://postwire.io/api/connect
  • Auth: HTTP bearer

Request body

platform'telegram' | 'bluesky' | 'mastodon' | 'discord' | 'wordpress' | 'devto' | 'hashnode' | 'slack' | 'nostr' required
credentialsobject required

telegram { bot_token, chat_id } · bluesky { handle, app_password } · mastodon { instance_url, access_token } · discord { webhook_url } · wordpress { site_url, username, app_password, default_status? (publish|draft) } · devto { api_key, default_status? } · hashnode { token, publication? (the blog's address or id; default: the first blog), default_status? } · slack { webhook_url (https://hooks.slack.com/services/…) } · nostr { nsec, relays? (wss:// list or comma-separated; default: public relays) }. Checked with the network before they are saved; a refusal comes back as code invalid_credentials with what to fix.

dry_runboolean

true: only test the credentials with the network (the dashboard's Test connection); nothing is saved. Answers { ok, tested: true, connected: false } or the same invalid_credentials error a connect would.

brand_idstring uuid

Response

Connected

Changes

No recorded changes to this operation across all 1 revision of this API.