Authenticate a customer 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
Customer subuser that is registered under
your account.
password
Yes
Password the customer subuser submitted.
XML Call
1
https://sendgrid.com/api/distributor.manageSubuser.xml?api_user=your_sendgrid_username&api_key=your_sendgrid_password&user=example@example.com&password=theirsubmittedpassword&method=aut
Response: Success
1
result><message>success</message></result>
Response: Error
1
2
3
4
5
6
7
8
<?xml version="1.0" encoding="ISO-8859-1"?>
<result>
<message> error</message>
<errors>
<error> ... error messages ...</error>
</errors>
</result>
JSON Call
1
https://sendgrid.com/api/distributor.manageSubuser.json?api_user=your_sendgrid_username&api_key=your_sendgrid_password&user=example@example.com&password=theirsubmittedpassword&method=aut
Response: Success
1
2
3
{
"message" : "success"
}
Response: Error
1
2
3
4
5
6
{
"message" : "error" ,
"errors" : [
"...error messages..."
]
}