Verify the API
  • 23 May 2024
  • 5 Minutes to read
  • Dark
    Light
  • PDF

Verify the API

  • Dark
    Light
  • PDF

Article summary

Before integrating the API with Cross Identity, ensure the API is working.

API: https://api.brevo.com/v3/smtp/email

API Request and response: {

      "info": {

            "_postman_id": "f660ffd1-691d-4783-8e1e-2059504440b9",

            "name": "snaphrm",

        "schema":

"https://schema.getpostman.com/json/collection/v2.0.0/collection.jso n"

      },

      "item": [

            {

"name": "https://api.brevo.com/v3/smtp/email",

                  "request": {

                        "method": "POST",

                "header": [

{

                                    "key": "accept",

                                             "value": "application/json"

                              },

                              {

                                    "key": "api-key",

                        "value": "xkeysib-

63262f70e3891eaabe21c911e846689f1c8c92fdce6a48b1f94c0f901b7eae5crNzfxu3KUJ3r"

                   

    },

                              {

                                "key": "content-type",

      "value": "application/json"

                              }

                        ],

                        "body": {

                              "mode": "raw",

                          "raw": "{  \n   \"sender\":{  \n    \n     

\"email\":\"mahesh.mali@crossidentity.com\"\n   },\n   \"to\":[  \n     

{ \n \"email\":\"sandeep.singh@crossidentity.com\",\n \"name\":\"John Doe\"\n }\n ],\n \"subject\":\"Hello

world\",\n  

\"htmlContent":\"<html><head></head><body><p>Hello,</p>This is my first transactional email sent from Brevo.</p></body></html>\"\n}"

},

                                   "url": "https://api.brevo.com/v3/smtp/email"

},

                  "response": []

            }

      ]

}

Note:

For on-premises setup, the API key has to be updated in the database, in the table fluidiam_config_propertie where config_key=smtp_url and smtp_api_key.


Was this article helpful?

What's Next