MewCPMewCP
  • AstheTech
  • Contact Us
  • Documentation
  • MewCP Auth API
Have a question?
  • ✉ Contact us - our dev team will reach out as soon as possible

© 2026 MewCP. All rights reserved.

githubx
Getting Started
Connect AI Apps
Frameworks & SDKs
Authentication
    OAuth Sign-InAPI KeysAccount API Keys
Auth API Guides
powered by Zudoku
Authentication

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
mewcp_acct_<33 letters and digits>

Example: mewcp_acct_8Hq2ZtL5wN9cXv3KpR7mYb4Df...


How to get one

  1. In the MewCP dashboard, switch to business mode
  2. Go to Developer → Account API Keys
  3. 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.

TerminalCode
curl https://gateway.mewcp.com/end-users \ -H "Authorization: Bearer mewcp_acct_YOUR_ACCOUNT_KEY" \ -H "x-mewcp-key: mewcp_proj_YOUR_PROJECT_KEY"

TypeScript:

Code
const res = await fetch("https://gateway.mewcp.com/end-users", { headers: { Authorization: `Bearer ${process.env.MEWCP_ACCOUNT_KEY}`, "x-mewcp-key": process.env.MEWCP_API_KEY, }, });

Python:

Code
import httpx resp = httpx.get( "https://gateway.mewcp.com/end-users", headers={ "Authorization": f"Bearer {MEWCP_ACCOUNT_KEY}", "x-mewcp-key": MEWCP_API_KEY, }, )

What you can do with it

ActionEndpoint
Start OAuth flow for a userPOST /oauth/{provider}/start
Get hosted static credential formPOST /credentials/static/{providerSlug}/connect
List your project's audienceGET /end-users
Get an audience member's credentialsGET /end-users/{endUserId}
Revoke a user's credentialDELETE /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.
Last modified on November 29, 2026
API KeysOAuth Integration Guide
On this page
  • Format
  • How to get one
  • How to use it
  • What you can do with it
  • Best practices
TypeScript