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
Information
OAuth
    Start OAuth flow for an audience memberpost
Static Credentials
    Get hosted form URL for audience member static credentialspost
Audience
    List audience for a servergetGet audience member detailsgetRevoke an audience member's credential for a serverdelete
Schemas
powered by Zudoku
MewCP Auth API
MewCP Auth API

Static Credentials

Generate hosted form URLs so audience can submit static API keys or tokens.


Get hosted form URL for audience member static credentials

POST
https://gateway.mewcp.com
/credentials/static/{providerSlug}/connect

Issues a short-lived (5 min) signed URL pointing to a MewCP-hosted form where your audience member can submit their static API key or token.

Send this URL to your user however you prefer (redirect, email, in-app link). When they submit, MewCP stores the credential under their externalUserId.

Requires the x-mewcp-key header (see Authentication above): this determines which server the credential is stored against.

After success, subsequent MCP proxy calls include x-external-user-id: {externalUserId} and MewCP resolves the right credential automatically.

Get hosted form URL for audience member static credentials › path Parameters

providerSlug
​string · required

Provider slug for the static credential type

Get hosted form URL for audience member static credentials › Headers

x-mewcp-key
​string · required

API Key of the business-mode server to connect this user to. Must match providerSlug.

Get hosted form URL for audience member static credentials › Request Body

externalUserId
​string · required

Your internal user identifier

frontendCallbackUrl
​string

URL to redirect the user to after submitting credentials

​ExternalUserMeta

Optional metadata about the audience member. Stored alongside their credentials for display in the MewCP dashboard.

Get hosted form URL for audience member static credentials › Responses

Hosted form URL. Send this to your audience member.

hostedFormUrl
​string

Send this URL to your user. Expires in 5 minutes.

expiresInMinutes
​integer
POST/credentials/static/{providerSlug}/connect
curl https://gateway.mewcp.com/credentials/static/:providerSlug/connect \ --request POST \ --header 'Content-Type: application/json' \ --header 'Authorization: <api-key>' \ --header 'x-mewcp-key: <api-key>' \ --data '{ "externalUserId": "user_abc123", "frontendCallbackUrl": "https://yourapp.com/settings/connections/callback", "externalUserMeta": { "name": "Jane Smith", "email": "jane@example.com" } }'
Example Request Body
{ "externalUserId": "user_abc123", "frontendCallbackUrl": "https://yourapp.com/settings/connections/callback", "externalUserMeta": { "name": "Jane Smith", "email": "jane@example.com" } }
json
application/json
Example Responses
{ "hostedFormUrl": "https://gateway.mewcp.com/connect/static?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiJ4eHgiLCJwcm92aWRlclNsdWciOiJnZW1pbmkiLCJleHRlcm5hbFVzZXJJZCI6InVzZXJfYWJjMTIzIiwiaWF0IjoxNzgwNDg4MTk4LCJleHAiOjE3ODA0ODg0OTh9.signature", "expiresInMinutes": 5 }
json
application/json

OAuthAudience