Workflow triggers
curl --request POST \
--url https://api.compose.market/api/workflow/triggers/parseimport requests
url = "https://api.compose.market/api/workflow/triggers/parse"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.compose.market/api/workflow/triggers/parse', 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.compose.market/api/workflow/triggers/parse",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$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.compose.market/api/workflow/triggers/parse"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.compose.market/api/workflow/triggers/parse")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.compose.market/api/workflow/triggers/parse")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_bodyAgents & Workflows
Workflow triggers
Parse, list, create, update, and delete workflow triggers through the runtime proxy.
POST
/
api
/
workflow
/
triggers
/
parse
Workflow triggers
curl --request POST \
--url https://api.compose.market/api/workflow/triggers/parseimport requests
url = "https://api.compose.market/api/workflow/triggers/parse"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.compose.market/api/workflow/triggers/parse', 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.compose.market/api/workflow/triggers/parse",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$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.compose.market/api/workflow/triggers/parse"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.compose.market/api/workflow/triggers/parse")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.compose.market/api/workflow/triggers/parse")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_bodyTrigger routes are pass-through JSON routes to the runtime service.
Routes
| Method | Path | Description |
|---|---|---|
POST | /api/workflow/triggers/parse | Parses trigger input. |
GET | /api/workflow/{walletAddress}/triggers | Lists triggers for a workflow. |
POST | /api/workflow/{walletAddress}/triggers | Creates a trigger. |
PUT | /api/workflow/{walletAddress}/triggers/{triggerId} | Updates a trigger. |
DELETE | /api/workflow/{walletAddress}/triggers/{triggerId} | Deletes a trigger. |
Path parameters
string
required
Workflow wallet address.
string
Trigger ID.
Body
The gateway does not reshape trigger bodies. It forwards caller JSON to the runtime service.⌘I