List outgoing e-mails

Returns a list of all your outgoing e-mail integrations.

GET https://incidents.betterstack.com/api/v2/outgoing-emails

Query parameters

team_name
string
page
integer
per_page
integer

Headers

Authorization
required string
200

Response body

{
  "data": [
    {
      "id": "42",
      "type": "outgoing_email",
      "attributes": {
        "name": "Client distribution list",
        "recipients": [
          {
            "email": "ops@client.com",
            "first_name": "Sam",
            "team": "SRE"
          },
          {
            "email": "noc@client.com"
          }
        ],
        "team_name": "My team",
        "paused": false,
        "notify_alongside_primary_responder": true,
        "on_incident_started": true,
        "on_incident_acknowledged": false,
        "on_incident_resolved": true,
        "on_incident_reopened": true,
        "on_incident_comment": false,
        "templates": [
          {
            "incident_stage": "started",
            "subject": "Incident: $NAME",
            "title": "We're investigating an issue with $NAME",
            "body": "Hi $RECIPIENT.first_name, we detected a problem: $CAUSE. Follow along at $INCIDENT_URL."
          }
        ]
      }
    }
  ],
  "pagination": {
    "first": "https://incidents.betterstack.com/api/v2/outgoing-emails?page=1",
    "last": "https://incidents.betterstack.com/api/v2/outgoing-emails?page=1",
    "prev": null,
    "next": null
  }
}

Response attributes

id
string
type
string
attributes.name
string or null
attributes.recipients
array
attributes.recipients[].email
string
attributes.team_name
string
attributes.paused
boolean
attributes.notify_alongside_primary_responder
boolean
attributes.on_incident_started
boolean
attributes.on_incident_acknowledged
boolean
attributes.on_incident_resolved
boolean
attributes.on_incident_reopened
boolean
attributes.on_incident_comment
boolean
attributes.templates
array
attributes.templates[].incident_stage
string
attributes.templates[].subject
string or null
attributes.templates[].title
string or null
attributes.templates[].body
string or null
pagination.first
string
pagination.last
string
pagination.prev
string or null
pagination.next
string or null

Example cURL

Example
curl --request GET \
  --url https://incidents.betterstack.com/api/v2/outgoing-emails \
  --header "Authorization: Bearer $TOKEN"