- Agent identity — the connection-layer header
Authorization: Bearer clw_...identifies the calling Agent. Required on every MCP request. - User authorization — the
consent_grant_idparameter (cg_prefix) on business tools identifies “a food-delivery user has authorized this Agent.” It is a tool parameter, not a header.
Authentication chain
Different tools require different authentication levels:The binding tools (
request_user_bind / verify_user_bind) are how you obtain a grant, so they take no consent_grant_id. Once authorization succeeds, every other business tool call must include the consent_grant_id parameter.API Key
Format and transport
Format and transport
A
clw_ prefix followed by random characters, e.g. clw_a1b2c3d4....Passed via the connection-layer header Authorization: Bearer clw_..., required on every MCP request. Generated when you create an Agent in the Developer Center at https://hub.clawdot.net/#/account/keys.Security
Security
The API Key is stored encrypted by the server, and you can view and copy it anytime on the 我的密钥 (My keys) page of the Developer Center. If you suspect a leak, rotate it right away — the old Key stops working immediately. Disabled keys also stop working immediately.
User authorization (consent_grant_id)
Represents “a food-delivery user has authorized a specific Agent to use a specific capability.” Once authorization succeeds, aconsent_grant_id is minted, and from then on every business tool call passes it as a parameter.
Binding flow
Run the binding flow to obtain aconsent_grant_id; SMS code and H5 modes are both supported:
request_user_bindto start binding (SMS sends a code; H5 returns an authorization link — Agent identity only, noconsent_grant_id)verify_user_bindto confirm — mints theconsent_grant_idon success
How to pass
How to pass
Pass The binding tools
consent_grant_id as a parameter on each business tool, for example:request_user_bind / verify_user_bind are the exception — they take no consent_grant_id.Scope and expiry
Scope and expiry
verify_user_bind returns on success:consent_grant_id— the user-authorization record id (cg_prefix)scopes— granted capability scope, e.g.["taobao_flash.delivery"]expires_at— expiry time (ISO 8601)
revoke_user_bind, the consent_grant_id stops working immediately; re-run the binding flow to get a new one. The user’s saved data (addresses, etc.) is retained and becomes available again after re-authorization.Error responses
Authentication / authorization failures return a unified format:
See Error handling for the full list.

