Chirio hosts the OAuth flow so your app never implements one — and so you never register a
platform app of your own. You ask for an authorize URL, send your user to it, and they come
back to a redirect you chose.
The flow
POST /api/v1/accounts/connect with the platform, and optionally a profileId and a
redirectUrl.
Chirio returns the platform's authorize URL, valid for 10 minutes and usable once.
You send the user there. They approve on Instagram, Threads, X or LinkedIn.
Chirio exchanges the code, upgrades to a long-lived credential where the platform offers
one, encrypts it, and stores the account.
The user is redirected to your redirectUrl with the outcome in the query string.
Without a redirectUrl the user lands on Chirio's own confirmation page instead — fine for
internal tools, not for a product flow.
One connect can create several accounts
LinkedIn returns the personal profile's accountId on the redirect, but the same authorisation can also create one account per company page the member administers. Call GET /api/v1/accounts afterwards to find them — their platformUserId reads organization:{id}.
What each platform requires of the user
Before sending someone through, check they can actually complete it:
Platform
Requirement
Instagram
A **professional** account (Business or Creator)
Threads
A Threads profile
X
Any account
LinkedIn
Any member; company pages appear only for pages they administer
The user removed Chirio from their platform settings
Send the user through connect again
Publishing to a non-active account fails that target with account_not_active. See
Account lifecycle.
Disconnecting
The account and its stored credentials are removed. Deleting an account that does not belong to
your project answers 404 not_found — the same as one that never existed.
Revocation can also arrive from the other direction, without you asking. See
Revocation and deletion.
Reconnecting
Reconnecting is just running the flow again for the same platform. It is the remedy for an
expired or revoked account, for a connection that predates a capability such as X media
uploads or Instagram comments, and for a LinkedIn member who has since been made admin of a new
company page.