API referenceAgents
Compare Agent Revisions
Versioned unified diff of two revisions of this agent, optionally limited to one configuration section.
GET
/api/v1/agents/{agent_id}/revisions/{revision_id}/compareVersioned unified diff of two revisions of this agent, optionally limited to one configuration section.
AuthorizationBearer <token>
A workspace API key (a13n_...)
In: header
Path Parameters
agent_id*Agent Id
revision_id*Revision Id
Query Parameters
base_revision_id*Base Revision Id
section?Section
Default
"all"Value in
- "all"
- "model"
- "model_settings"
- "model_characteristics"
- "summarize"
- "instructions"
- "toolsets"
- "skills"
- "skill_sync"
- "connection_tools"
- "tool_search"
- "builtin_skills"
- "client_tools"
- "user_questions"
- "subagent_mode"
- "subagents"
- "reviewer"
- "media_understanding"
- "plugins"
- "output_spec"
- "retries"
- "default_environment_template_id"
- "lazy_environment"
- "memory_mounts"
- "memory"
offset?Offset
Unicode code-point offset; continue with next_offset.
Range
0 <= valueDefault
0limit?Limit
Maximum Unicode code points in this fragment.
Range
1 <= value <= 4000Default
4000version?|
Content version from the first read; required after offset 0.
query?|
Case-sensitive literal text search.
Header Parameters
X-Workspace-ID?|
The workspace ID a login session acts in; required with a login session. An API key acts in its own workspace and needs none; naming another is forbidden.
Response Body
application/json
application/json
application/json
curl -X GET "https://example.com/api/v1/agents/string/revisions/string/compare?base_revision_id=string"{ "has_more": true, "match_offset": 0, "media_type": "text/plain", "next_offset": 0, "offset": 0, "query": "string", "representation": "fragment", "source": "string", "source_truncated": false, "text": "string", "total_chars": 0, "version": "string"}