Get a connection request
GET
/api/accounts/connect/:connectRequestIdRead the status of an account connection request: pending, awaiting_selection, connected, failed or expired.
- Poll every 2-5 seconds.
- When connected,
accountIdis the account's id (a reconnected account keeps its id). - When failed or expired,
error.messagesays why and what the user should do next; relay it as is. ACCOUNT_MISMATCHmeans the user signed in to another account thanaccountIdor the expected one; nothing was changed.SOCIAL_ACCOUNT_IN_USEmeans a Free workspace tried to connect a social account another Ampost workspace has (or had in the last 30 days); a paid plan can connect it.SUPERSEDEDmeans a newer request for this platform replaced this one: poll the newer request instead.USER_CANCELLEDmeans the user cancelled or declined consent.
- Key scope
- accounts:read
- MCP tool
- accounts_connect_status
Headers
AuthorizationstringrequiredBearer <API key>. Create a key in the dashboard under API keys.
Path parameters
connectRequestIdstringrequiredConnection request id (UUID):
idfrom accounts_connect
Errors return { error: { code, message } }; every code is in Error codes.