Messenger API

On this page

A Messenger is a named object that provides configuration for sending messages to external systems. FusionAuth currently supports the following Messenger types:

The type of the messenger will determine the object's properties as well as the validation that is performed. You can click into any of the messenger API docs to get a list of that messenger's properties.

Retrieve All Messengers#

Request#

Retrieve all of the Messengers, or provide an Id to retrieve a single Messenger.

Global API Key Authentication
Retrieve all Messengers
GET/api/messenger
OpenAPI Spec
Global API Key Authentication
Retrieve a Messenger by Id
GET/api/messenger/{messengerId}
OpenAPI Spec

Path Parameters#

messengerId
  • Type: UUID
  • Required

The unique Id of the Messenger to retrieve.

Response#

Response Codes
CodeDescription
200The request succeeded. The response contains a JSON body.
400The request was invalid or malformed. The response contains an Errors JSON object with the specific errors. FusionAuth also returns a 400 when the request needs a paid FusionAuth license and no license is present.
401FusionAuth didn't authorize the request. The Authorization header is missing, the API key isn't valid, or the API key doesn't have permission for this endpoint and method. The response is empty. For more information, see Unauthorized Responses.
500FusionAuth had an internal error and logged a stack trace in the FusionAuth log files. The response is empty.

The response JSON might include different types of messengers. Therefore, you should refer to the documentation for each type of messenger to determine the response JSON format for that particular type. Each type has a Retrieve section in its documentation. This format will be the same format used by this API.

Example Response JSON
{
  "messengers": [
    {
      "connectTimeout": 1000,
      "data": {
        "foo": "bar"
      },
      "debug": false,
      "headers": {
        "Content-Type": "application/json"
      },
      "httpAuthenticationPassword": "password",
      "httpAuthenticationUsername": "user-login",
      "id": "2d5acca6-23d5-423f-ac7b-b70f50b54498",
      "insertInstant": 1562189072183,
      "lastUpdateInstant": 1562189072183,
      "messageTypes": [
        "SMS",
        "Voice"
      ],
      "name": "Generic Messenger",
      "readTimeout": 1000,
      "sslCertificate": "e31e242b-4eca-4309-921f-48cb72ec9bfb",
      "transport": "sms",
      "type": "Generic",
      "url": "https://www.example.com/webhook"
    },
    {
      "accountSID": "983C6FACEBBE4D858570FADD967A9DD7",
      "authToken": "184C73BE8E44420EBAA0BA147A61B6A9",
      "data": {
        "foo": "bar"
      },
      "debug": false,
      "fromPhoneNumber": "555-555-5555",
      "id": "f49c3b86-91fe-48f7-ae46-d166eead0166",
      "insertInstant": 1562189072183,
      "lastUpdateInstant": 1562189072183,
      "messageTypes": [
        "SMS",
        "Voice"
      ],
      "name": "Twilio Messenger",
      "transport": "sms",
      "type": "Twilio",
      "url": "https://api.twilio.com"
    }
  ]
}