Trigger an agent run
curl --request POST \
--url https://api.scrums.com/v1/agents/{agent_id}/runs \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"input": {
"prompt": "Summarise sprint velocity for Q1 2026."
},
"triggered_by": "USR-26-000044"
}
'import requests
url = "https://api.scrums.com/v1/agents/{agent_id}/runs"
payload = {
"input": { "prompt": "Summarise sprint velocity for Q1 2026." },
"triggered_by": "USR-26-000044"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
input: {prompt: 'Summarise sprint velocity for Q1 2026.'},
triggered_by: 'USR-26-000044'
})
};
fetch('https://api.scrums.com/v1/agents/{agent_id}/runs', 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.scrums.com/v1/agents/{agent_id}/runs",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'input' => [
'prompt' => 'Summarise sprint velocity for Q1 2026.'
],
'triggered_by' => 'USR-26-000044'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.scrums.com/v1/agents/{agent_id}/runs"
payload := strings.NewReader("{\n \"input\": {\n \"prompt\": \"Summarise sprint velocity for Q1 2026.\"\n },\n \"triggered_by\": \"USR-26-000044\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
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.scrums.com/v1/agents/{agent_id}/runs")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"input\": {\n \"prompt\": \"Summarise sprint velocity for Q1 2026.\"\n },\n \"triggered_by\": \"USR-26-000044\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.scrums.com/v1/agents/{agent_id}/runs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"input\": {\n \"prompt\": \"Summarise sprint velocity for Q1 2026.\"\n },\n \"triggered_by\": \"USR-26-000044\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "RUN-26-001812",
"agent_id": "AGT-26-000012",
"service_line_id": "LIN-26-091844",
"status": "running",
"input": {
"prompt": "Summarise sprint velocity for Q1 2026."
},
"output": null,
"tokens_used": null,
"duration_ms": null,
"triggered_by": "USR-26-000044",
"started_at": "2026-04-15T10:22:00Z",
"completed_at": null
}
}{
"code": "invalid_request",
"message": "workspace_id is required.",
"status": 400
}{
"code": "unauthorized",
"message": "Bearer token is missing or expired.",
"status": 401
}{
"code": "forbidden",
"message": "You do not have access to this resource.",
"status": 403
}{
"code": "not_found",
"message": "The requested resource was not found.",
"status": 404
}AI Agent Gateway
Trigger an agent run
Initiates a new run for the specified AI agent within its configured service line.
POST
/
agents
/
{agent_id}
/
runs
Trigger an agent run
curl --request POST \
--url https://api.scrums.com/v1/agents/{agent_id}/runs \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"input": {
"prompt": "Summarise sprint velocity for Q1 2026."
},
"triggered_by": "USR-26-000044"
}
'import requests
url = "https://api.scrums.com/v1/agents/{agent_id}/runs"
payload = {
"input": { "prompt": "Summarise sprint velocity for Q1 2026." },
"triggered_by": "USR-26-000044"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
input: {prompt: 'Summarise sprint velocity for Q1 2026.'},
triggered_by: 'USR-26-000044'
})
};
fetch('https://api.scrums.com/v1/agents/{agent_id}/runs', 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.scrums.com/v1/agents/{agent_id}/runs",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'input' => [
'prompt' => 'Summarise sprint velocity for Q1 2026.'
],
'triggered_by' => 'USR-26-000044'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.scrums.com/v1/agents/{agent_id}/runs"
payload := strings.NewReader("{\n \"input\": {\n \"prompt\": \"Summarise sprint velocity for Q1 2026.\"\n },\n \"triggered_by\": \"USR-26-000044\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
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.scrums.com/v1/agents/{agent_id}/runs")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"input\": {\n \"prompt\": \"Summarise sprint velocity for Q1 2026.\"\n },\n \"triggered_by\": \"USR-26-000044\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.scrums.com/v1/agents/{agent_id}/runs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"input\": {\n \"prompt\": \"Summarise sprint velocity for Q1 2026.\"\n },\n \"triggered_by\": \"USR-26-000044\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "RUN-26-001812",
"agent_id": "AGT-26-000012",
"service_line_id": "LIN-26-091844",
"status": "running",
"input": {
"prompt": "Summarise sprint velocity for Q1 2026."
},
"output": null,
"tokens_used": null,
"duration_ms": null,
"triggered_by": "USR-26-000044",
"started_at": "2026-04-15T10:22:00Z",
"completed_at": null
}
}{
"code": "invalid_request",
"message": "workspace_id is required.",
"status": 400
}{
"code": "unauthorized",
"message": "Bearer token is missing or expired.",
"status": 401
}{
"code": "forbidden",
"message": "You do not have access to this resource.",
"status": 403
}{
"code": "not_found",
"message": "The requested resource was not found.",
"status": 404
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The unique identifier of the agent (e.g. AGT-26-000012).
Pattern:
^AGT-Body
application/json
Response
The newly created agent run.
Show child attributes
Show child attributes
Last modified on April 15, 2026
Was this page helpful?
⌘I