Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to send an email using REST API

ashwinkumar_pat
Giga Expert

The REST Email API has two methods. One to send a new email and one for retrieving record from email log.

I could not make the send API work. Do you know how to use it?

I am using an admin user to do this and through REST API Explorer.

1 ACCEPTED SOLUTION
15 REPLIES 15

Great Thank You for the updated example and information.

santosh kumar18
Kilo Contributor

I am trying to send email using send email API of ServiceNow but it is not working. Do you know how to use it?

guythatusesserv
Tera Contributor

I know this post is old, but it comes up in search and thought I'd post the steps I used to send an email via API.

  1. Add a Create ACL on sys_email table for email_api_send role
  2. Grant email_api_send role to a user
  3. In Postman, use these settings:
    1. https://{instance_name}.service-now.com/api/now/v1/email
    2. On Authorization tab, add Basic credentials
    3. Headers tab:
      1. Accept:application/json
      2. Content-type:application/json
    4. On body tab:
      1. Raw
      2. {
        "to":["User1 <user1@example.com>"],
        "subject":"Hello There 11",
        "text":"Test Message",
        "html":"<b>Test Message</b>",
        "table_name":"incident",
        "table_record_id":"{Incident Sys ID}",
        "headers": {
         "X-Custom":"header"
                    }
        }