Find communication types. A communication type can be created for each email/SMS campaign in your ESP that accepts triggered events.
1 min
code examples curl request get \\ \ url 'https //api b preview\ loyaltyservices io/api/v3/communication types?pagenumber=1\&pagesize=50' \\ \ header 'accept application/json'require "uri" require "json" require "net/http" url = uri("https //api b preview\ loyaltyservices io/api/v3/communication types?pagenumber=1\&pagesize=50") https = net http new(url host, url port) https use ssl = true request = net http get new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" response = https request(request) puts response read body import requests import json url = "https //api b preview\ loyaltyservices io/api/v3/communication types?pagenumber=1\&pagesize=50" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("get", url, headers=headers, data=payload) print(response text) okhttpclient client = new okhttpclient() newbuilder() build(); mediatype mediatype = mediatype parse("application/json"); requestbody body = requestbody create(mediatype, ""); request request = new request builder() url("https //api b preview\ loyaltyservices io/api/v3/communication types?pagenumber=1\&pagesize=50") method("get", body) addheader("accept", "application/json") addheader("content type", "application/json") build(); response response = client newcall(request) execute(); responses // success { "communicationtypes" \[ { "code" "welcome email", "name" "welcome email", "description" "sent when a member enrolls", "channel" "email", "providercode" "braze", "externalcode" "d abc123", "statuscode" "active" } ], "pageinfo" { "number" 0, "size" 0, "totalitems" 0, "hasnext" false } }// bad request { "errors" \[ { "code" "", "fieldname" "", "message" "", "messageparameters" \[ {} ] } ] }// unauthorized // forbidden // internal error