List reaction definitions

get
List reaction definitions

https://api.serialized.io/reactions/definitions
List all reaction definitions
Request
Response
200: OK
Reaction definitions successfully received
{
"definitions": [
{
"reactionName": "payment-processed-email-reaction",
"feedName": "payment",
"reactOnEventType": "PaymentProcessed",
"cancelOnEventTypes": [
"OrderCanceledEvent"
],
"triggerTimeField": "my.event.data.field",
"offset": "PT1H",
"action": {
"actionType": "HTTP_POST"
}
}
],
"hasMore": false,
"totalCount": 1
}

Example

cURL
Java
C#
Node
curl -i \
--header "Serialized-Access-Key: <YOUR_ACCESS_KEY>" \
--header "Serialized-Secret-Access-Key: <YOUR_SECRET_ACCESS_KEY>" \
https://api.serialized.io/reactions/definitions
import javax.ws.rs.client.Client;
import javax.ws.rs.client.ClientBuilder;
Client client = ClientBuilder.newClient();
URI apiRoot = URI.create("https://api.serialized.io");
Map response = client.target(apiRoot)
.path("reactions")
.path("definitions")
.request()
.header("Serialized-Access-Key", "<YOUR_ACCESS_KEY>")
.header("Serialized-Secret-Access-Key", "<YOUR_SECRET_ACCESS_KEY>")
.get(Map.class);
using RestSharp;
using System;
var client = new RestClient("https://api.serialized.io");
var request = new RestRequest("reactions/definitions", Method.GET)
.AddHeader("Serialized-Access-Key", "<YOUR_ACCESS_KEY>")
.AddHeader("Serialized-Secret-Access-Key", "<YOUR_SECRET_ACCESS_KEY>");
var response = client.Execute<Dictionary<string, Object>>(request);
const axios = require("axios");
const client = axios.create({
baseURL: "https://api.serialized.io",
headers: {"Serialized-Access-Key": "<YOUR_ACCESS_KEY>"},
headers: {"Serialized-Secret-Access-Key": "<YOUR_SECRET_ACCESS_KEY>"}
});
client.get("reactions/definitions")
.then(function (response) {
// Handle response
})
.catch(function (error) {
// Handle error
});