Skip to main content
If you’re currently using SendGrid and want to migrate to SendPost, we offer a SendGrid-Compatible API that minimizes code changes.

IP Pool Requirement

Mandatory Requirement: To use the SendGrid-Compatible API, you must have an IP Pool configured in both SendGrid and SendPost with the same name.
The IP Pool name in your SendGrid requests (ip_pool_name) must match an IP Pool in SendPost that is configured to route traffic to your SendGrid provider. This ensures proper routing of emails through SendGrid. Setup Steps:
  1. Note the IP Pool name you use in SendGrid (e.g., “transactional” or “marketing”)
  2. Create an IP Pool in SendPost with the exact same name
  3. Configure the SendPost IP Pool to route traffic to your SendGrid provider

Quick Migration Steps

1

Configure IP Pool

Create an IP Pool in SendPost with the same name as your SendGrid IP Pool, configured to route to SendGrid
2

Change the base URL

  • From: https://api.sendgrid.com
  • To: https://api.sendpost.io/v1/sendgrid
3

Update the API key header

  • From: Authorization: Bearer SG.xxxx
  • To: X-SubAccount-ApiKey: YOUR_SENDPOST_API_KEY
4

Send emails

Use the same payload format as before (including ip_pool_name)

Migration Example

The ip_pool_name in your request must match an IP Pool configured in SendPost that routes to SendGrid. Without this, the SendGrid-Compatible API will not know where to route your emails.

Supported SendGrid Features


Unsupported SendGrid Features

The following SendGrid features are not supported and will return an error if present:
Error Response for Unsupported Fields:

Response Mapping


Next Steps