X-API-WA-Project-API-Pwd header, or the server will respond with 401 Unauthorized.
Project API Password
Header:X-API-WA-Project-API-Pwd
The Project API Password is scoped to a single Convo project (and its associated WhatsApp number). It is used for all API operations, including sending messages, managing contacts, and triggering campaigns.
How to obtain it
- Log in to the Convo Dashboard.
- Navigate to Settings → API & Integrations.
- Copy the value labelled Project API Password.
Example request
{project_id} with your project’s ID and YOUR_API_PASSWORD with the password you copied from the dashboard.
Security Best Practices
API credentials give full programmatic access to your Convo account. Treat them with the same care as passwords.- Never expose keys in client-side code. Do not embed the API password in browser JavaScript, mobile app binaries, or public repositories. Anyone who obtains your key can send messages on your behalf.
- Use environment variables. Store credentials in environment variables (e.g.
CONVO_API_PASSWORD) and read them at runtime. This keeps secrets out of your codebase entirely. - Use a secrets manager in production. For production workloads, store credentials in a dedicated secrets manager such as AWS Secrets Manager, HashiCorp Vault, or GCP Secret Manager, and inject them into your application at startup.
- Rotate keys if compromised. If you believe a key has been exposed, regenerate it immediately from the Convo dashboard and update all affected integrations.
Error Responses
When authentication fails or a request is malformed, Convo returns a standard HTTP error status code alongside a JSON body describing the problem.Example error response
The response body follows a consistent structure withname and message fields:
name field for programmatic error handling in your code, and the message field to understand what specifically went wrong. For 401 errors, verify that you are sending the correct header name and that the credential value has not expired or been regenerated.