How it works
The platform client is the same pre-registered client used by Agent Platform MCP Login. The portal token is a separate user token and is valid only for the portal read APIs.What you can build
Token types
The portal user token cannot call
/mcp, and the MCP token cannot call /agent/platform/**. Keep the platform token on the server; do not send it to the platform’s browser or to an Agent.
Data scope
The portal token’ssub is the Clink customer_id. Clink resolves the user only from that verified token; there is no request parameter for choosing a different customer_id or email.
Portal data is scoped to the user, not to an Agent:
- Orders, refunds, and authorizations include data created by any Agent for that user.
- The response does not filter by
agent_client_idoragentInfo.clientId. - A customer cannot read another customer’s records; single-record endpoints return
404when the record is not owned by the token’s user. - Order filtering uses a bounded scan. The order list response includes
truncatedwhen the scan limit was reached.
Prerequisites
Clink must pre-register the platform client in the target environment with:- A platform
client_idandclient_secret. - The exact OAuth
redirect_uriused for first-time user authorization. - The environment MCP resource and the MCP scopes.
- The portal audience and
portal:readscope.
Environment endpoints
API surface
Portal token
Exchange the platform client token for a read-only token for one user.
Read APIs
Account, payment methods, orders, refunds, and authorizations.