Skip to main content
POST
/
v1
/
trpc
/
v2.agents.*
tRPC v2 Agents API
curl --request POST \
  --url 'https://api.glider.fi/v1/trpc/v2.agents.*' \
  --header 'X-API-KEY: <api-key>'
import requests

url = "https://api.glider.fi/v1/trpc/v2.agents.*"

headers = {"X-API-KEY": "<api-key>"}

response = requests.post(url, headers=headers)

print(response.text)
const options = {method: 'POST', headers: {'X-API-KEY': '<api-key>'}};

fetch('https://api.glider.fi/v1/trpc/v2.agents.*', 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.glider.fi/v1/trpc/v2.agents.*",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"X-API-KEY: <api-key>"
],
]);

$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.glider.fi/v1/trpc/v2.agents.*"

req, _ := http.NewRequest("POST", url, nil)

req.Header.Add("X-API-KEY", "<api-key>")

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.glider.fi/v1/trpc/v2.agents.*")
.header("X-API-KEY", "<api-key>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.glider.fi/v1/trpc/v2.agents.*")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<api-key>'

response = http.request(request)
puts response.read_body
The v2.agents.* namespace is the canonical staged surface for parent-agent summary, detail, lifecycle, and draft bootstrap flows.
  • Base endpoint: POST /v1/trpc
  • Namespace: v2.agents.*
  • Auth: wallet session or API key
  • Rollout: gated behind the multi_leg_agents_v1 feature flag

Enabled Procedure Groups

  • v2.agents.list
  • v2.agents.get
  • v2.agents.pause
  • v2.agents.resume
  • v2.agents.archive
  • v2.agents.drafts.commit
  • v2.agents.drafts.startFromAgent

Rollout Notes

  • The entire route is exposed only when multi_leg_agents_v1=true for the caller.
  • authored_agent_sdk does not expose the route by itself. It only enables authored draft behavior within the already-enabled parent-agent surface.
  • With both flags off by default, this API lands dark.

Current Scope

The surface is intentionally focused on parent-agent handling:
  1. list parent agents
  2. inspect parent-agent detail
  3. pause, resume, or archive an existing parent agent
  4. start an edit draft from an existing agent
  5. commit a ready draft back through the agent-aware service layer
There is still no standalone public create entrypoint in this namespace. Initial authoring continues to flow through the staged v2.workflows.* draft surface until later rollout slices unify the product entrypoints.