Connect the social platform this link was issued for
Completes the OAuth handshake for the athlete and platform the token belongs to (ENG-1478). Neither the athlete nor the platform is accepted from the caller: both come from the token, so a link issued for Instagram cannot be used to attach a TikTok account, and one athlete’s link can never connect an account for another. *
- On success the token is consumed, so connecting another platform needs another link. A failed token exchange leaves the link redeemable, so the athlete can retry without going back to their agent.
code_verifieris required by TikTok’s PKCE flow and ignored by the others. Rate limited to 10 requests per minute per IP.
Path Parameters
The 64-character token from the URL the agent sent.
Body
Authorization code returned by the platform's OAuth redirect.
"AQD1x..."
Must match the URI registered with the platform: https://app.mogl.online/social-link/callback/{instagram|tiktok|x}, with no trailing slash, on the environment's own host. Note X is x in the callback path while the platform is twitter everywhere in this API.
"https://app.mogl.online/social-link/callback/instagram"
PKCE verifier. TikTok only.
"dBjftJeZ4CVP..."