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 = {5address: "1451 Larimer Street, 3rd floor",6address2: "",7city: "Denver, CO",8company: "SendGrid",9country: "US",10first_name: "Matthew",11last_name: "Bernier",12phone: "7208788003",13state: "CO",14website: "http://sendgrid.com",15zip: "80202",16};1718const request = {19url: `/v3/user/profile`,20method: "PATCH",21body: data,22};2324client25.request(request)26.then(([response, body]) => {27console.log(response.statusCode);28console.log(response.body);29})30.catch((error) => {31console.error(error);32});