Embed verified trust scores in your app. Copy the code below.
import { XOClient } from '@xo-protocol/sdk'
const xo = new XOClient({ apiKey: 'your-api-key' })
xo.setAccessToken(userToken)
// One call to get everything you need for the badge
const { identity, reputation, socialSignals } = await xo.getTrustProfile()
// Use the data
badge.render({
verified: identity.verified,
trustScore: identity.trust_score,
tier: reputation.tier,
engagement: socialSignals.engagement_score,
})