Skip to content
  • There are no suggestions because the search field is empty.

Paubox Email API: Testing with Postman

You can use Postman to try out the Paubox Email API before your developers build it into your application. In this guide, you’ll send a test email and then check its delivery status.

Note: The Paubox Email API is built for developers to send email from their own code. Please send any code questions to your organization’s development team.

Before you start

You’ll need:

  • A Paubox Email API account
  • A sending domain that you’ve added and verified in Settings > Domains
  • An API key with the Paubox Email API scope for that domain. To create one, see Create and manage scoped API keys.
  • Postman, installed on your computer or open in your browser

Tip: Your API key is shown only once, when you create it. If you didn’t save it, create a new key.

Send a test email

  1. In Postman, create a new request.
  2. Change the request type to POST.
  3. Enter this URL: https://api.paubox.com/v1/email/messages
  4. Click Headers and add two headers:
    • Key: Authorization, Value: Bearer followed by a space and your API key
    • Key: Content-Type, Value: application/json
  5. Click Body, select raw, and choose JSON.
  6. Go to docs.paubox.com, open the Paubox Email API Quickstart guide, and copy the example message from the “Send your first email” step into the body.
  7. Change the recipient to your own email address, and change the from address to an address on the domain your API key belongs to.
  8. Click Send.

If it worked, you’ll see a response that includes a sourceTrackingId. Copy it, because you’ll use it in the next step.

Check a sent email’s status

  1. In Postman, create a new request and leave the request type as GET.
  2. Enter this URL, replacing YOUR_TRACKING_ID with the sourceTrackingId you copied: https://api.paubox.com/v1/email/message_receipt?sourceTrackingId=YOUR_TRACKING_ID
  3. Click Headers and add the same Authorization header you used above.
  4. Click Send.

You’ll see the email’s delivery status for each recipient. If open tracking is turned on for your account, you’ll also see whether the email was opened.

[Screenshot: Postman with a GET request to the message_receipt URL and a response showing deliveryStatus and openedStatus (API key blurred)]

Learn more