Page through scheduled events, callbacks, or active faults
curl --request GET \
--url https://api.firedrill.run/v1/projects/{projectId}/sessions/{sessionId}/pending/items \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.firedrill.run/v1/projects/{projectId}/sessions/{sessionId}/pending/items"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.firedrill.run/v1/projects/{projectId}/sessions/{sessionId}/pending/items', 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.firedrill.run/v1/projects/{projectId}/sessions/{sessionId}/pending/items",
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.firedrill.run/v1/projects/{projectId}/sessions/{sessionId}/pending/items"
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.firedrill.run/v1/projects/{projectId}/sessions/{sessionId}/pending/items")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.firedrill.run/v1/projects/{projectId}/sessions/{sessionId}/pending/items")
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{
"schemaVersion": 1,
"sessionId": "<string>",
"leaseGeneration": 4503599627370495,
"revision": "<string>",
"total": 0,
"category": "events",
"items": [
{
"id": "<string>",
"event": {
"packageId": "<string>",
"eventId": "<string>"
},
"payload": {},
"dueUs": 0,
"correlationId": "<string>",
"actorBindingId": "<string>",
"causeSequence": 4503599627370495,
"status": "pending"
}
],
"nextCursor": "<string>"
}{
"code": "<string>",
"message": "<string>",
"correlationId": "<string>",
"retryable": true,
"source": "platform",
"retryAfterMs": 123,
"operationId": "<string>",
"issues": [
{
"path": "<string>",
"code": "<string>",
"message": "<string>"
}
],
"details": {},
"evidence": {
"sessionId": "<string>",
"runId": "<string>",
"journalSeq": 4503599627370495,
"buildHash": "<string>"
}
}Page through scheduled events, callbacks, or active faults
Cursors bind the exact session lease, filters, and collection revision. If work changes, restart from the first page after a lifecycle conflict. Faults have no status filter; event and callback statuses are category-specific.
Page through scheduled events, callbacks, or active faults
curl --request GET \
--url https://api.firedrill.run/v1/projects/{projectId}/sessions/{sessionId}/pending/items \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.firedrill.run/v1/projects/{projectId}/sessions/{sessionId}/pending/items"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.firedrill.run/v1/projects/{projectId}/sessions/{sessionId}/pending/items', 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.firedrill.run/v1/projects/{projectId}/sessions/{sessionId}/pending/items",
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.firedrill.run/v1/projects/{projectId}/sessions/{sessionId}/pending/items"
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.firedrill.run/v1/projects/{projectId}/sessions/{sessionId}/pending/items")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.firedrill.run/v1/projects/{projectId}/sessions/{sessionId}/pending/items")
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{
"schemaVersion": 1,
"sessionId": "<string>",
"leaseGeneration": 4503599627370495,
"revision": "<string>",
"total": 0,
"category": "events",
"items": [
{
"id": "<string>",
"event": {
"packageId": "<string>",
"eventId": "<string>"
},
"payload": {},
"dueUs": 0,
"correlationId": "<string>",
"actorBindingId": "<string>",
"causeSequence": 4503599627370495,
"status": "pending"
}
],
"nextCursor": "<string>"
}{
"code": "<string>",
"message": "<string>",
"correlationId": "<string>",
"retryable": true,
"source": "platform",
"retryAfterMs": 123,
"operationId": "<string>",
"issues": [
{
"path": "<string>",
"code": "<string>",
"message": "<string>"
}
],
"details": {},
"evidence": {
"sessionId": "<string>",
"runId": "<string>",
"journalSeq": 4503599627370495,
"buildHash": "<string>"
}
}Authorizations
Opaque control credential
Path Parameters
Pattern:
^prj_[0-9a-z]{12,32}$Pattern:
^ses_[0-9a-z]{12,32}$Query Parameters
Available options:
events, callbacks, faults Required string length:
1 - 96Available options:
pending, fired, failed, cancelled, in_flight, delivered Required string length:
1 - 2048Required range:
1 <= x <= 100Response
Pending-work page
- Option 1
- Option 2
- Option 3
Available options:
1 Pattern:
^ses_[0-9a-z]{12,32}$Required range:
0 < x <= 9007199254740991Fingerprint of the selected pending-work collection. A change invalidates its cursor.
Pattern:
^sha256:[0-9a-f]{64}$Required range:
-9007199254740991 <= x <= 9007199254740991Available options:
events Maximum array length:
100Show child attributes
Show child attributes
Required string length:
1 - 2048