Menu

Expand
Rate this page:

Senders

Create a Sender Identity

POST /v3/marketing/senders

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

This endpoint allows you to create a new sender identity.

You may create up to 100 unique sender identities.

Sender identities are required to be verified before use. If your domain has been authenticated, a new sender identity will auto verify on creation. Otherwise an email will be sent to the from.email.

Authentication

  • API Key

Headers

Authorization
string
default: Bearer <<YOUR_API_KEY_HERE>>
required
on-behalf-of
string
default: The subuser's username. This header generates the API call as if the subuser account was making the call.

Request Body

object
nickname
string

A nickname for the sender identity. Not used for sending.

required
from
object
required
email
string

This is where the email will appear to originate from for your recipient

required
name
string

This is the name appended to the from email field. IE - Your name or company name.

required
reply_to
object
email
string

This is the email that your recipient will reply to.

required
name
string

This is the name appended to the reply to email field. IE - Your name or company name.

address
string

The physical address of the sender identity.

required
address_2
string

Additional sender identity address information.

city
string

The city of the sender identity.

required
state
string

The state of the sender identity.

zip
string

The zipcode of the sender identity.

country
string

The country of the sender identity.

required
{
  "nickname": "Example Orders",
  "from": {
    "email": "orders@example.com",
    "name": "Example Orders"
  },
  "reply_to": {
    "email": "support@example.com",
    "name": "Example Support"
  },
  "address": "1234 Fake St.",
  "address_2": "",
  "city": "San Francisco",
  "state": "CA",
  "zip": "94105",
  "country": "United States"
}

Responses

object
nickname
string

A nickname for the sender identity. Not used for sending.

required
from
object
email
string

The email address from which your recipient will receive emails.

name
string

The name appended to the from email field. Typically your name or company name.

reply_to
object
email
string

The email address to which your recipient will reply.

name
string

The name appended to the reply to email field. Typically your name or company name.

address
string

The physical address of the sender identity.

required
address_2
string

Additional sender identity address information.

city
string

The city of the sender identity.

required
state
string

The state of the sender identity.

zip
string

The zipcode of the sender identity.

country
string

The country of the sender identity.

required
id
integer

The unique identifier of the sender identity.

verified
boolean

If the sender identity is verified or not. Only verified sender identities can be used to send email.

updated_at
integer

The time the sender identity was last updated.

created_at
integer

The time the sender identity was created.

locked
boolean

True when the sender id is associated to a campaign in the Draft, Scheduled, or In Progress status. You cannot update or delete a locked sender identity.

{
  "id": 1,
  "nickname": "My Sender ID",
  "from": {
    "email": "from@example.com",
    "name": "Example INC"
  },
  "reply_to": {
    "email": "replyto@example.com",
    "name": "Example INC"
  },
  "address": "123 Elm St.",
  "address_2": "Apt. 456",
  "city": "Denver",
  "state": "Colorado",
  "zip": "80202",
  "country": "United States",
  "verified": true,
  "updated_at": 1449872165,
  "created_at": 1449872165,
  "locked": false
}
object
errors
array[object]
message
string

the error message

required
field
string or null

the field that generated the error

help
object

helper text or docs for troubleshooting

id
string
{
  "errors": [
    {
      "field": "field_name",
      "message": "error message"
    }
  ]
}
object
errors
array[object]
message
string

the error message

required
field
string or null

the field that generated the error

help
object

helper text or docs for troubleshooting

id
string
{
  "errors": [
    {
      "field": "field_name",
      "message": "error message"
    }
  ]
}
object
errors
array[object]
message
string

the error message

required
field
string or null

the field that generated the error

help
object

helper text or docs for troubleshooting

id
string
{
  "errors": [
    {
      "field": "field_name",
      "message": "error message"
    }
  ]
}
object
errors
array[object]
message
string
        
        
        

        Create a Sender Identity

        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.

              
              
              

              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