Account API Keys
An Account API Key authenticates your backend's calls to MewCP's management APIs. Your backend uses it to start OAuth flows for your audience, get hosted credential form URLs, and manage your audience members' credentials through the MewCP Auth API.
It is not used for MCP connections. Your agents connect to a toolset with a project API key.
Format
Code
Example: mewcp_acct_8Hq2ZtL5wN9cXv3KpR7mYb4Df...
How to get one
- In the MewCP dashboard, switch to business mode
- Go to Developer → Account API Keys
- Click Create Key, give it a label, and copy the key
How to use it
Pass it as a Bearer token in the Authorization header. Every MewCP Auth API endpoint also needs an x-mewcp-key header: the API key of the business project you are acting on, from Projects → your project → API Keys (see API Keys). The two are not interchangeable and both are required. A personal API key is refused here.
Code
TypeScript:
Code
Python:
Code
What you can do with it
| Action | Endpoint |
|---|---|
| Start OAuth flow for a user | POST /oauth/{provider}/start |
| Get hosted static credential form | POST /credentials/static/{providerSlug}/connect |
| List your project's audience | GET /end-users |
| Get an audience member's credentials | GET /end-users/{endUserId} |
| Revoke a user's credential | DELETE /end-users/{endUserId} |
Every action above is scoped to the one project identified by x-mewcp-key. There is no call that lists or manages your audience across every project at once.
Full reference in the MewCP Auth API docs.
Best practices
- Keep it server-side only. Never expose Account API Keys in frontend code or mobile apps.
- One key per environment. Use separate keys for production, staging, and local development.
- Revoke if compromised. Go to Developer → Account API Keys and click Revoke.