Authenticate a subuser on your website before displaying their account information so that you can have users manage their SendGrid account on your website completely.

Parameter Required Requirements
user Yes Subuser that is registered under your account.
password Yes Password the subuser submitted.

Call

POST https://api.sendgrid.com/apiv2/customer.auth.json
POST Data api_user=your_sendgrid_username&api_key=your_sendgrid_password&user=example@example.com&password=theirsubmittedpassword

Response

1
2
3
4
5
6
7
8
9
10
11
{
  "message": "success"
}

//error
{
  "message": "error",
  "errors": [
    "...error messages..."
  ]
}

Call

POST https://api.sendgrid.com/apiv2/customer.auth.xml
POST Data api_user=your_sendgrid_username&api_key=your_sendgrid_password&user=example@example.com&password=theirsubmittedpassword

Response

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?xml version="1.0" encoding="ISO-8859-1"?>

<result>
   <message>success</message>
</result>

<!-- error -->
<?xml version="1.0" encoding="ISO-8859-1"?>

<result>
   <message>error</message>
   <errors>
      ...
      <error>
          ...
    error messages
    ...
        </error>
      ...
   </errors>
</result>