Agent registration is in beta.
Why use it
No key handling
The agent receives its own key directly. The secret never passes through chat, clipboards, or config files you manage by hand.
You approve every agent
Before any access is granted you see the agent’s name and exactly which permissions it asked for, then confirm with a code only you have.
Scoped access
The key carries only the permissions the agent requested, such as read-only access or sending. Nothing more.
Revoke anytime
Agent keys appear in Settings → API Integration next to your own keys. Delete one and the agent loses access immediately.
How it works
Your agent asks to connect
While working on your behalf, the agent registers with Migma and shows you a short code together with a link to
migma.ai/claim.You review and approve
Open the link, sign in (or create a free account), and enter the code. Migma shows the agent’s name and the permissions it requested before you confirm.
For agents
Everything an agent needs is published at:https://api.migma.ai/.well-known/oauth-authorization-server. In short:
access_token is a standard Migma API key. Use it everywhere a key works: the REST API, the SDK, the CLI, and the MCP server, typically by setting MIGMA_API_KEY.
Security
- Approval requires a signed-in Migma user entering a short-lived code. The email an agent mentions is display only and grants nothing by itself.
- Requested scopes are capped to the standard API permissions and shown to you before approval.
- Codes expire after ten minutes and a registration expires after one hour.
- The key is delivered to the agent exactly once and is never shown again.
- Revoke any agent key in Settings → API Integration.