404.
RaiseGate stores only the SHA-256 hash of the key. Any other Authorization scheme (for example Basic) returns 401.
Scopes
A missing scope returns
403 insufficient_scope. Keys issued by the provisioning script carry all four scopes. A narrower key (for example a read-only reporting key with tracker:read and leads:read) is created by inserting a partner_api_keys row with fewer scopes.
On the MCP server, a tool the key is not allowed to use returns a tool error with insufficient_scope. The rest keep working.
Issuing and revoking keys
revoked_at on its partner_api_keys row. Revoked and expired keys return 401 unauthorized. last_used_at is updated on every authenticated request.