API referenceConnect
GET /connect/discord
The bot install link for Discord (same as GET /connect/{platform} with discord): a server admin adds Postgale's bot and picks channels
GET
BearerAuthheader
AuthorizationBearer <token>API key sk_...
externalId?stringYour own reference, stored on the accounts
{authUrl, expiresInSeconds}
application/json- response
authUrl?stringexpiresInSeconds?integercurl -X GET 'https://example.com/api/v1/connect/discord'Example Response
{ "authUrl": "string", "expiresInSeconds": 0}POST /connect/pending/{id}/select POST
Connect the chosen options (one account each, e.g. one per Facebook Page); completes the pending connection
POST /connect/discord POST
Bind channels of a server where the bot was installed (a pending install from the last 30 minutes, or an existing Discord account in that server), one account per text, announcement or forum channel. channelIds connects several at once and answers accounts and failed (422 no_channels_connected when none could be)