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.

Rate this page:

Authenticate a Subuser

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

URI Parameter Required Requirements Description
user Yes Subuser must be under your account Username of subuser being authenticated
password Yes Valid subuser password Password of subuser being authenticated

Call

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

Response

{
  "message": "success"
}

Call

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

Response

<result>
   <message>success</message>
</result>
Rate this page:

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.

        
        
        

        Thank you for your feedback!

        We are always striving to improve our documentation quality, and your feedback is valuable to us. Please select the reason(s) for your feedback or provide additional information about how we can improve:

        Sending your feedback...
        🎉 Thank you for your feedback!
        Something went wrong. Please try again.

        Thanks for your feedback!

        Refer us and get $10 in 3 simple steps!

        Step 1

        Get link

        Get a free personal referral link here

        Step 2

        Give $10

        Your user signs up and upgrade using link

        Step 3

        Get $10

        1,250 free SMSes
        OR 1,000 free voice mins
        OR 12,000 chats
        OR more