Retrieve all triggers
curl --request GET \
--url https://api.quiva.ai/trigger/triggers \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.quiva.ai/trigger/triggers"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.quiva.ai/trigger/triggers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.quiva.ai/trigger/triggers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.quiva.ai/trigger/triggers"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.quiva.ai/trigger/triggers")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.quiva.ai/trigger/triggers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"body": {
"results": [
{
"name": "my-gateway-trigger",
"collection": "my-collection",
"description": "Trigger for API gateway endpoint",
"gateway_mapping_subject": "ms.trigger.gateway.123456",
"stream": "quiva-trigger-config",
"subject": "ms.trigger.gateway.my-gateway-trigger",
"trigger_type": "gateway",
"type": "created"
},
{
"name": "my-stream-trigger",
"collection": "my-collection",
"description": "Stream data processing trigger",
"stream": "quiva-trigger-config",
"subject": "ms.trigger.stream.my-stream-trigger",
"trigger_type": "stream",
"type": "created"
}
],
"results_total": 2
},
"metadata": {
"subject": "ms.trigger.subject_pattern"
},
"status_code": 200
}{
"error": "Invalid request: Missing required field 'name' in trigger definition",
"status_code": 400
}{
"error": "Unauthorized: Invalid or missing authentication token",
"status_code": 401
}{
"error": "Internal server error: Unable to process request at this time",
"status_code": 500
}Triggers
Retrieve all triggers
Retrieves all triggers matching a specific subject pattern. This endpoint provides a comprehensive view of all available triggers that match the given pattern, including their configurations, types, and associated metadata.
Usage Notes:
- Use wildcards in the subject pattern to match multiple triggers
- Results include all trigger types (gateway, stream, subject)
- Each trigger includes its complete configuration
- The subject pattern forms part of the unique identifier for triggers
- The response includes total count of matching triggers
GET
/
trigger
/
triggers
Retrieve all triggers
curl --request GET \
--url https://api.quiva.ai/trigger/triggers \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.quiva.ai/trigger/triggers"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.quiva.ai/trigger/triggers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.quiva.ai/trigger/triggers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.quiva.ai/trigger/triggers"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.quiva.ai/trigger/triggers")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.quiva.ai/trigger/triggers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"body": {
"results": [
{
"name": "my-gateway-trigger",
"collection": "my-collection",
"description": "Trigger for API gateway endpoint",
"gateway_mapping_subject": "ms.trigger.gateway.123456",
"stream": "quiva-trigger-config",
"subject": "ms.trigger.gateway.my-gateway-trigger",
"trigger_type": "gateway",
"type": "created"
},
{
"name": "my-stream-trigger",
"collection": "my-collection",
"description": "Stream data processing trigger",
"stream": "quiva-trigger-config",
"subject": "ms.trigger.stream.my-stream-trigger",
"trigger_type": "stream",
"type": "created"
}
],
"results_total": 2
},
"metadata": {
"subject": "ms.trigger.subject_pattern"
},
"status_code": 200
}{
"error": "Invalid request: Missing required field 'name' in trigger definition",
"status_code": 400
}{
"error": "Unauthorized: Invalid or missing authentication token",
"status_code": 401
}{
"error": "Internal server error: Unable to process request at this time",
"status_code": 500
}Authorizations
JWT token for authentication. Required for all API operations to verify identity and access permissions.
Query Parameters
The subject pattern to match triggers. Can include wildcards (e.g., 'ms.trigger.' to match all triggers, or 'ms.trigger.gateway.' to match only gateway triggers).
Example:
"ms.trigger.subject_pattern"