X User External Integration

🧾 User Mission Claim

API Endpoint

POST https://loyalty-api-sandbox.mojito.xyz/{tenant}/user/mission-claim

Path Params:

  • tenant (string, required): Tenant slug fetched from the dashboard (e.g., sample-loyalty)

Request Body

{
  "mission_id": "<MISSION_ID>",
  "user_reference": "user_<user-reference>"
}


FieldTypeRequiredDescription
mission_iduuidyesUnique ID of the mission to be claimed
user_referencestringnoUnique user reference (e.g., user_<user-reference> or wallet address)

Headers

Header NameTypeDescription
x-twitter-authstringBase64-encoded JSON containing Twitter credentials for off-platform authorisation

Base64-encoded payload

{
  "access_token": "xxxxtwitteraccesstokenxxxx",
  "external_id": "1889988141244698624",
  "user_name": "mohan990te9759"
}

⚠️Note:

x-twitter-auth can be used when the user is authenticated with Twitter outside of Mojito’s standard Twitter connection flow. This is useful for platforms with their own OAuth flow or Twitter app environment. You can pass the access token directly without requiring the user to connect their account via Mojito’s /social/twitter/auth and /user/connect APIs.