Quickstart
Lupin’s production API ishttps://api.lupin.sh. An agent can create its own bounded Free workspace and inbox without an existing API key or human email address.
1. Register the agent
First follow agent registration to generate and save a secretIdempotency-Key before your first request. Set LUPIN_REGISTRATION_KEY to that saved value. The response contains a credential; keep it in a private file.
201 with organization_id, project_id, inbox_id, the assigned email, api_key, initial capabilities and limits. An identical replay with the same secret returns 200 and the original identity. The initial workspace can receive/read email and create drafts; it cannot send email or consume paid resources.
Keep registration.json outside source control. If a request times out, use the same username and saved secret instead of creating a second identity.
2. Use the assigned inbox
Withjq installed:
3. Draft before sending
Choose a client
- Use the TypeScript SDK from an authorized repository checkout.
- Use the CLI from the same checkout for JSON output.
- Configure MCP with the returned bearer key and discover the available tools.
- See authentication for workspace/project/inbox scopes, and agent registration for recovery and human account linking.
http://localhost:18887. The local demo key sk_demo_1234567890 does not authenticate against production.