Workflow Templates
curl --request GET \
--url https://encrata.com/api/workflows/templates \
--header 'Authorization: Bearer <token>'import requests
url = "https://encrata.com/api/workflows/templates"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://encrata.com/api/workflows/templates', 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://encrata.com/api/workflows/templates",
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://encrata.com/api/workflows/templates"
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://encrata.com/api/workflows/templates")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://encrata.com/api/workflows/templates")
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_bodyWorkflows
Workflow Templates
List available pre-built workflow templates you can clone.
GET
/
api
/
workflows
/
templates
Workflow Templates
curl --request GET \
--url https://encrata.com/api/workflows/templates \
--header 'Authorization: Bearer <token>'import requests
url = "https://encrata.com/api/workflows/templates"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://encrata.com/api/workflows/templates', 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://encrata.com/api/workflows/templates",
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://encrata.com/api/workflows/templates"
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://encrata.com/api/workflows/templates")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://encrata.com/api/workflows/templates")
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_bodyAuthentication
Requires a JWT token or API key in theAuthorization header.
Authorization: Bearer YOUR_TOKEN
Request
Query parameters
Filter templates by category (e.g.,
enrichment, monitoring, integration).Example request
curl "https://encrata.com/api/workflows/templates" \
-H "Authorization: Bearer YOUR_TOKEN"
Response
{
"templates": [
{
"id": "tmpl_lead_enrich",
"name": "Lead Enrichment",
"description": "Enrich emails with company data and send to webhook",
"category": "enrichment",
"steps": [
{ "type": "email_lookup" },
{ "type": "company_lookup" },
{ "type": "webhook" }
]
},
{
"id": "tmpl_breach_alert",
"name": "Breach Alert Pipeline",
"description": "Check dark web for breaches and notify via webhook",
"category": "monitoring",
"steps": [
{ "type": "darkweb_lookup" },
{ "type": "condition" },
{ "type": "webhook" }
]
}
]
}
Usage
To create a workflow from a template, pass thetemplate_id in the Create Workflow request:
curl -X POST "https://encrata.com/api/workflows" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "name": "My Lead Pipeline", "template_id": "tmpl_lead_enrich" }'
⌘I