Automatizaciones
Listar pasos de una ejecución
Consulta la entrada, salida y estado de cada paso de una ejecución.
GET
/
workflows
/
{workflowId}
/
runs
/
{runId}
/
steps
Listar pasos de una ejecución
curl --request GET \
--url https://api.insuranceboosters.com/api/v1/workflows/{workflowId}/runs/{runId}/steps \
--header 'x-ib-api-key: <api-key>'import requests
url = "https://api.insuranceboosters.com/api/v1/workflows/{workflowId}/runs/{runId}/steps"
headers = {"x-ib-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-ib-api-key': '<api-key>'}};
fetch('https://api.insuranceboosters.com/api/v1/workflows/{workflowId}/runs/{runId}/steps', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {method: 'GET', headers: {'x-ib-api-key': '<api-key>'}};
fetch('https://api.insuranceboosters.com/api/v1/workflows/{workflowId}/runs/{runId}/steps', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://api.insuranceboosters.com/api/v1/workflows/{workflowId}/runs/{runId}/steps';
const options = {method: 'GET', headers: {'x-ib-api-key': '<api-key>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.get("https://api.insuranceboosters.com/api/v1/workflows/{workflowId}/runs/{runId}/steps")
.header("x-ib-api-key", "<api-key>")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.insuranceboosters.com/api/v1/workflows/{workflowId}/runs/{runId}/steps");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("x-ib-api-key", "<api-key>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
using RestSharp;
var options = new RestClientOptions("https://api.insuranceboosters.com/api/v1/workflows/{workflowId}/runs/{runId}/steps");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("x-ib-api-key", "<api-key>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.insuranceboosters.com/api/v1/workflows/{workflowId}/runs/{runId}/steps"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-ib-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}require 'uri'
require 'net/http'
url = URI("https://api.insuranceboosters.com/api/v1/workflows/{workflowId}/runs/{runId}/steps")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-ib-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.insuranceboosters.com/api/v1/workflows/{workflowId}/runs/{runId}/steps",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-ib-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}val client = OkHttpClient()
val request = Request.Builder()
.url("https://api.insuranceboosters.com/api/v1/workflows/{workflowId}/runs/{runId}/steps")
.get()
.addHeader("x-ib-api-key", "<api-key>")
.build()
val response = client.newCall(request).execute()falseimport Foundation
let url = URL(string: "https://api.insuranceboosters.com/api/v1/workflows/{workflowId}/runs/{runId}/steps")!
var request = URLRequest(url: url)
request.httpMethod = "GET"
request.timeoutInterval = 10
request.allHTTPHeaderFields = ["x-ib-api-key": "<api-key>"]
let (data, _) = try await URLSession.shared.data(for: request)
print(String(decoding: data, as: UTF8.self))$headers=@{}
$headers.Add("x-ib-api-key", "<api-key>")
$response = Invoke-WebRequest -Uri 'https://api.insuranceboosters.com/api/v1/workflows/{workflowId}/runs/{runId}/steps' -Method GET -Headers $headers[
{
"id": "<string>",
"runId": "<string>",
"stepIndex": 123,
"actionKey": "<string>",
"status": "queued",
"attempt": 123,
"input": "<unknown>",
"output": "<unknown>",
"startedAt": 123,
"finishedAt": 123,
"createdAt": 123,
"lastUpdatedAt": 123
}
]{
"message": "Invalid API key."
}{
"error": "Workflow not found."
}{
"error": "<string>"
}Lista los pasos de una ejecución en orden.
Respuesta exitosa (
Endpoint
GET /workflows/{workflowId}/runs/{runId}/steps
Ejemplo de solicitud
curl "https://api.insuranceboosters.com/api/v1/workflows/<workflow-id>/runs/<run-id>/steps" \
-H "x-ib-api-key: TU_API_KEY"
Respuesta exitosa (200)
[
{
"id": "0",
"runId": "<run-id>",
"stepIndex": 0,
"actionKey": "system.delay",
"status": "succeeded",
"attempt": 1,
"input": {
"mode": "duration",
"amount": 1,
"unit": "seconds"
},
"output": {
"delayed": true
},
"startedAt": 1720000001000,
"finishedAt": 1720000002000,
"createdAt": 1720000000000,
"lastUpdatedAt": 1720000002000
},
{
"id": "1",
"runId": "<run-id>",
"stepIndex": 1,
"actionKey": "http.request",
"status": "succeeded",
"attempt": 1,
"input": {
"method": "POST",
"url": "https://ejemplo.com/hooks/pago",
"body": {
"referencia": "REC-1001"
}
},
"output": {
"status": 200,
"headers": {},
"body": {}
},
"startedAt": 1720000002100,
"finishedAt": 1720000003000,
"createdAt": 1720000002000,
"lastUpdatedAt": 1720000003000
}
]
Errores frecuentes
| HTTP | Qué significa | Qué hacer |
|---|---|---|
401 | API key inválida o faltante. | Verifica x-ib-api-key. |
404 | La ejecución no existe. | Confirma runId. |
Authorizations
API key emitida por Insurance Boosters.
Path Parameters
Identificador de la automatización.
Identificador de la ejecución.
Response
Pasos de la ejecución.
Was this page helpful?
Listar pasos de una ejecución
curl --request GET \
--url https://api.insuranceboosters.com/api/v1/workflows/{workflowId}/runs/{runId}/steps \
--header 'x-ib-api-key: <api-key>'import requests
url = "https://api.insuranceboosters.com/api/v1/workflows/{workflowId}/runs/{runId}/steps"
headers = {"x-ib-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-ib-api-key': '<api-key>'}};
fetch('https://api.insuranceboosters.com/api/v1/workflows/{workflowId}/runs/{runId}/steps', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {method: 'GET', headers: {'x-ib-api-key': '<api-key>'}};
fetch('https://api.insuranceboosters.com/api/v1/workflows/{workflowId}/runs/{runId}/steps', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://api.insuranceboosters.com/api/v1/workflows/{workflowId}/runs/{runId}/steps';
const options = {method: 'GET', headers: {'x-ib-api-key': '<api-key>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.get("https://api.insuranceboosters.com/api/v1/workflows/{workflowId}/runs/{runId}/steps")
.header("x-ib-api-key", "<api-key>")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.insuranceboosters.com/api/v1/workflows/{workflowId}/runs/{runId}/steps");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("x-ib-api-key", "<api-key>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
using RestSharp;
var options = new RestClientOptions("https://api.insuranceboosters.com/api/v1/workflows/{workflowId}/runs/{runId}/steps");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("x-ib-api-key", "<api-key>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.insuranceboosters.com/api/v1/workflows/{workflowId}/runs/{runId}/steps"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-ib-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}require 'uri'
require 'net/http'
url = URI("https://api.insuranceboosters.com/api/v1/workflows/{workflowId}/runs/{runId}/steps")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-ib-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.insuranceboosters.com/api/v1/workflows/{workflowId}/runs/{runId}/steps",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-ib-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}val client = OkHttpClient()
val request = Request.Builder()
.url("https://api.insuranceboosters.com/api/v1/workflows/{workflowId}/runs/{runId}/steps")
.get()
.addHeader("x-ib-api-key", "<api-key>")
.build()
val response = client.newCall(request).execute()falseimport Foundation
let url = URL(string: "https://api.insuranceboosters.com/api/v1/workflows/{workflowId}/runs/{runId}/steps")!
var request = URLRequest(url: url)
request.httpMethod = "GET"
request.timeoutInterval = 10
request.allHTTPHeaderFields = ["x-ib-api-key": "<api-key>"]
let (data, _) = try await URLSession.shared.data(for: request)
print(String(decoding: data, as: UTF8.self))$headers=@{}
$headers.Add("x-ib-api-key", "<api-key>")
$response = Invoke-WebRequest -Uri 'https://api.insuranceboosters.com/api/v1/workflows/{workflowId}/runs/{runId}/steps' -Method GET -Headers $headers[
{
"id": "<string>",
"runId": "<string>",
"stepIndex": 123,
"actionKey": "<string>",
"status": "queued",
"attempt": 123,
"input": "<unknown>",
"output": "<unknown>",
"startedAt": 123,
"finishedAt": 123,
"createdAt": 123,
"lastUpdatedAt": 123
}
]{
"message": "Invalid API key."
}{
"error": "Workflow not found."
}{
"error": "<string>"
}
