API — frequently asked questions
Quick answers for developers integrating Mailpro.
How do I get an API key?+
Sign in to your Mailpro account and open Settings → API access. You'll find your numeric client ID and your API key (GUID). You can call the APIs directly with those, or exchange them for an OAuth 2.0 / Bearer JWT token from the token endpoint.
Which authentication methods are supported?+
Three: OAuth 2.0 with PKCE (recommended for third-party apps and platforms like Zapier, Make and n8n), Bearer JWT (legacy), and id_client + API key. A single OAuth token works across the Email, CRM and SMS APIs.
Are the APIs REST or SOAP?+
They are modern REST APIs over HTTPS. Responses are JSON by default (the Email and SMS APIs also support XML), with predictable resources, standard HTTP verbs and status codes.
Is there interactive documentation or a test mode?+
Yes. Every endpoint can be tried live from the interactive Swagger documentation, and you can send test emails and SMS to your own address before going to production.
Which languages and SDKs can I use?+
Any language that speaks HTTP and JSON. We publish an official SDK on GitHub and provide ready-to-use examples in curl, Node.js, Python, PHP and C#.
Do the APIs support webhooks?+
Yes. Subscribe to real-time events — email delivered, opened, clicked, bounced, and SMS delivery reports — delivered as HMAC-SHA256 signed HTTP callbacks.
Can I send transactional emails, not just campaigns?+
Yes. Send a single email to one recipient with custom fields, attachments and optional scheduling, using the Email API or the CRM API.
Can I send file attachments? What are the limits and cost?+
Yes — attach files when you send an email through the Email API (v2) or CRM API (v3): up to 5 files, 10 MB per file and 15 MB total. Send them as Base64-encoded attachments on either API (the Email API also accepts multipart/form-data file uploads). The cost is 1 credit per 500 KB of attachments, with the first 500 KB included in the email's base credit (so attachments up to ~500 KB add nothing extra). Common document and image formats are accepted; executable and script files (.exe, .bat, .js, .vbs, .msi, .jar, .dll, etc.) are blocked for security.
How does SMS pricing work?+
SMS is credit-based. One SMS costs the destination country's credit price multiplied by the number of parts (a long message is split into several parts). Email sending uses email credits.
Which email address formats are accepted?+
Any RFC-compliant address, including sub-addressing with a "+" (for example [email protected]), which is supported by Gmail, Fastmail, Proton and others.
What are the rate limits?+
Requests are rate-limited per account. When you exceed the limit you receive an HTTP 429 response with clear headers, so you can back off and retry gracefully.