Keeping your user profile up to date helps SendGrid verify who you are and share important communications with you.
You can learn more in the SendGrid Account Details documentation.
This endpoint allows you to update your current profile details.
Any one or more of the parameters can be updated via the PATCH /user/profile
endpoint. You must include at least one when you PATCH.
Bearer <<YOUR_API_KEY_HERE>>
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.
application/json
The street address for this user profile.
An optional second line for the street address of this user profile.
The city for the user profile.
That company that this user profile is associated with.
Th country of this user profile.
The first name of the user.
The last name of the user.
The phone number for the user.
The state for this user.
The website associated with this user.
The zip code for this user.
The street address for this user profile.
An optional second line for the street address of this user profile.
The city for the user profile.
That company that this user profile is associated with.
Th country of this user profile.
The first name of the user.
The last name of the user.
The phone number for the user.
The state for this user.
The website associated with this user.
The zip code for this user.
1const client = require('@sendgrid/client');2client.setApiKey(process.env.SENDGRID_API_KEY);34const data = {5"address": "1451 Larimer Street, 3rd floor",6"address2": "",7"city": "Denver, CO",8"company": "SendGrid",9"country": "US",10"first_name": "Matthew",11"last_name": "Bernier",12"phone": "7208788003",13"state": "CO",14"website": "http://sendgrid.com",15"zip": "80202"16};1718const request = {19url: `/v3/user/profile`,20method: 'PATCH',21body: data22}2324client.request(request)25.then(([response, body]) => {26console.log(response.statusCode);27console.log(response.body);28})29.catch(error => {30console.error(error);31});