Menu

Expand
Rate this page:

Teammates

Give and adjust account access.

Invite teammate

POST /v3/teammates

Base url: https://api.sendgrid.com

This endpoint allows you to invite a Teammate to your account via email.

You can set a Teammate's initial permissions using the scopes array in the request body. Teammate's will receive a minimum set of scopes from Twilio SendGrid that are necessary for the Teammate to function.

Note: A teammate invite will expire after 7 days, but you may resend the invitation at any time to reset the expiration date.

Authentication

  • API Key

Headers

Authorization
string
default: Bearer <<YOUR_API_KEY_HERE>>
required
on-behalf-of
string

The on-behalf-of header allows you to make API calls from a parent account on behalf of the parent's Subusers or customer accounts. You will use the parent account's API key when using this header. When making a call on behalf of a customer account, the property value should be "account-id" followed by the customer account's ID (e.g., on-behalf-of: account-id <account-id>). When making a call on behalf of a Subuser, the property value should be the Subuser's username (e.g., on-behalf-of: <subuser-username>). See On Behalf Of for more information.

default: None

Request Body

object
email
string

New teammate's email

maxLength: 255minLength: 5pattern: ^.*@.*\..*
required
scopes
array[string]

Set to specify list of scopes that teammate should have. Should be empty if teammate is an admin.

required
is_admin
boolean

Set to true if teammate should be an admin user

default: False
required
{
  "email": "teammate1@example.com",
  "scopes": [
    "user.profile.read",
    "user.profile.update"
  ],
  "is_admin": false
}

Responses

object
token
string

Token to identify invite

email
string

Teammate's email address

scopes
array[]

Initial set of permissions to give to teammate if they accept the invite

is_admin
boolean

Set to true if teammate should have admin privileges

object
errors
array[object]
message
string
field
string
Loading Code Sample...
        
        

        Invite teammate

        Rate this page:

        Need some help?

        We all do sometimes. Get help now from the Twilio SendGrid Support Team.

        Running into a coding hurdle? Lean on the wisdom of the crowd by browsing the SendGrid tag on Stack Overflow or visiting Twilio's Stack Overflow Collective.

        Loading Code Sample...
              
              
              

              Thank you for your feedback!

              Please select the reason(s) for your feedback. The additional information you provide helps us improve our documentation:

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

              Thanks for your feedback!

              thanks-feedback-gif