Menu

Expand
Rate this page:

Single Sends

A Single Send is a one-time nonautomated email message delivered to a list or segment of your audience. A Single Send may be sent immediately or scheduled for future delivery.

Single Sends can serve many use cases, including promotional offers, engagement campaigns, newsletters, announcements, legal notices, or policy updates.

The Single Sends API allows you to create, retrieve, update, delete, schedule, and deliver your Single Sends. There are also endpoints for searching and statistics to help you maintain and alter your Single Sends as you learn more and further develop your campaigns.

The Single Sends API changed on May 6, 2020. Please check the SendGrid Knowledge Center for updates and instructions here: https://sendgrid.com/docs/for-developers/sending-email/single-sends-2020-update/

Get Single Sends Search

POST /v3/marketing/singlesends/search

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

This endpoint allows you to search for Single Sends based on specified criteria.

You can search for Single Sends by passing a combination of values using the name, status, and categories request body fields.

For example, if you want to search for all Single Sends that are "drafts" or "scheduled" and also associated with the category "shoes," your request body may look like the example below.

{
  "status": [
    "draft",
    "scheduled"
  ],
  "categories": [
    "shoes"
  ],
}

Authentication

  • API Key

Headers

Authorization
string
default: Bearer <<YOUR_API_KEY_HERE>>
required

Request Body

object
name
string

leading and trailing wildcard search on name of the Single Send

maxLength: 100minLength: 1
status
array[string]

current status of the Single Send

uniqueItems: True
categories
array[string]

categories to associate with this Single Send, match any single send that has at least one of the categories

uniqueItems: True

Query String

page_size
integer

number of results to return

default: None
page_token
string

token corresponding to a specific page of results, as provided by metadata

default: None

Responses

object
result
array[object]
id
string
format: uuid
required
name
string

name of the Single Send

maxLength: 100minLength: 1
required
abtest
object or null
required
type
string

What differs between the A/B tests

Allowed Values: subject, content
required
winner_criteria
string

How the winner will be decided

Allowed Values: open, click, manual
required
test_percentage
integer

What percentage of your recipient will be included in your A/B testing

required
duration
string

How long the A/B Testing will last

required
winning_template_id
string

Winner of the A/B Test

required
winner_selected_at
string or null

When the winner was selected

required
expiration_date
string or null

Last day to select an A/B Test Winner

required
status
string

current status of the Single Send

Allowed Values: draft, scheduled, triggered
required
categories
array[string]

categories to associate with this Single Send

maxItems: 10uniqueItems: True
required
send_at
string

The ISO 8601 time at which to send the Single Send. This must be in future or the string now. SendGrid Mail Send emails can be scheduled up to 72 hours in advance. However, this scheduling constraint does not apply to emails sent via Marketing Campaigns.

format: date-time
is_abtest
boolean

true if the Single Send's AB Test functionality has been toggled on

required
updated_at
string

the ISO 8601 time at which the Single Send was last updated

format: date-time
required
created_at
string

the ISO 8601 time at which the Single Send was created

format: date-time
required
_metadata
object
prev
string
format: uri
self
string
format: uri
next
string
format: uri
count
integer
minimum: 0
object
errors
array[object]
field
string
message
string
error_id
string
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