Authentication
Mewk API uses API keys for authentication. Keys are prefixed with mewk_.
Creating an API Key
API keys are created in the Developer section of your account settings.
Go to Developer SettingsUsing an API Key
Pass your API key in the Authorization header as a Bearer token.
Authorization: Bearer mewk_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Keep your API key secret. Do not expose it in client-side code or public repositories.
Example Request
curl https://mewk.app/api/v1/questions/inbox \ -H "Authorization: Bearer mewk_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
Permissions
Each API key has a set of permissions (scopes) that control what it can access.
| Scope | Description |
|---|---|
| questions:read | Read inbox and sent questions |
| questions:write | Answer and delete questions |
| profile:read | Read profile stats |
| profile:write | Update profile |
| settings:read | Read account settings and API keys |
| settings:write | Update settings, manage webhooks and API keys |
| card-layouts:read | Read custom layout lists and details |
| card-layouts:write | Create, update, delete, and import custom layouts |
Limits
You can create up to 10 API keys per account.