Skip to main content
A platform user can connect their X account. It adds the X profile with follower counts to the user object and is required for the KOL badge.

Connect

POST /v1/platform-users/x/connect Returns an authorize_url. Send the user there, in a new tab or a redirect. They authorize with X and come back to your return_url. The URL is valid for 10 minutes and can be used once. When the connection succeeds, you receive the platform_user.x_connected webhook and the user object shows x.
string
required
Your id of the user. Alternatively pass csid_id.
string
required
Where the user goes back after X. Must be on one of your instance’s verified domains, registered origins or redirect URIs (https), or http://localhost.
Response

Disconnect

POST /v1/platform-users/x/disconnect Removes the user’s X account. A user with the KOL badge cannot disconnect X, the badge belongs to the X account.
string
required
Your id of the user. Alternatively pass csid_id.
Response
disconnected is false when the user had no X account.

Errors

See Errors for the full list.