Redeem a pairing code
rayana_ai_complete_setupFor clients that connect with an API key rather than OAuth: exchanges a pairing code from the user's account page for an API key. Destructive: it issues a new key and immediately revokes the account's previous one, so any other client still using the old key stops working. OAuth connections are not affected.
The key is returned once and cannot be retrieved later; only a hash of it
is stored. It is sent as the X-API-Key header on MCP and REST
requests. Codes are single-use, expire after 15 minutes, and are
invalidated after a few wrong attempts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | ||
| tier | Yes | ||
| api_key | Yes | ||
| mcp_url | Yes | ||
| header_name | Yes | ||
| rest_base_url | Yes |