Menu

Expand

This documentation is for the SendGrid Web API v2

To access all the latest features and upcoming developments, please see our v3 API.

Customer Provision

Provision

Create a SendGrid reseller customer account with a certain plan.

URI Parameter Required Requirements Description
partner_id Yes Must be a unique identifier from Reseller side This can be an application_id, a user_id, or any other unique identifier of the SendGrid instance on your side
plan Yes Plan that the customer selected SendGrid plan, which defines customer credits and permissions
email No Customer email Used as contact information for SendGrid support team

Request

POST https://api.sendgrid.com/reseller.php/plug/:partner_name/resources partner_id=customer_unique_id&plan=free&email=email%40example.com

Response

HTTP/1.1 200 OK

{
  "id": "371",
  "config": 
  {
    "SENDGRID_USERNAME": "customer_unique_id@:partner_name.com",
    "SENDGRID_PASSWORD": "tvdx1p3c"
  }
}

Need some help?

We all do sometimes; code is hard. Get help now from our support team, or lean on the wisdom of the crowd browsing the SendGrid tag on Stack Overflow.