use_key_link
Enter API keys in STOQ, not through the API
BetaAPI v2 is in public beta: endpoints, fields and behaviour can change before general availability. See the changelog
Last updated
API v2
stoqapp.comAbout STOQContactPrivacy policyHelp center
Enter API keys in STOQ, not through the API
Section titled “Enter API keys in STOQ, not through the API”Code: use_key_link · HTTP status: usually 422
Through an assistant or MCP, a third-party API key would pass through a model, so STOQ refuses it and returns the dashboard link where the merchant enters it.
How to fix
Section titled “How to fix”Show key_url to the merchant. Don’t ask for the key.
Example response
Section titled “Example response”{ "code": "use_key_link", "type": "https://docs.stoqapp.com/v2/docs/api-v2/errors/use-key-link/", "title": "Enter API keys in STOQ, not through the API", "status": 422, "detail": "Nothing was saved. API keys are entered in STOQ, not through the API. Show `key_url` to the merchant. Don't ask for the key.", "errors": [ "Nothing was saved. API keys are entered in STOQ, not through the API." ], "details": [ { "code": "use_key_link", "message": "Nothing was saved. API keys are entered in STOQ, not through the API.", "path": "api_key", "value": null, "expected": null } ], "path": "api_key", "key_url": "https://admin.shopify.com/store/your-store/apps/restockrocket/settings/integrations"}Every API v2 and MCP failure carries code and a type link to its page here. See Errors & Responses for the full envelope.
Was this page helpful?
Thanks for letting us know.
Still stuck? Ask Quinn or chat with support