Reference
API models
Request and response models shared by the SDKs, generated from sdks/spec/models.json (OpenAPI request schemas plus the response model overlay).
Generated from sdks/spec/models.json (contract versions gateway 0.1.0, api 0.1.0). Every model tolerates unknown fields: new response fields are additive.
Enums#
AgentStatus#
Agent lifecycle status.
active · suspended · disabled · quarantined
AlertStatus#
Security alert lifecycle status.
open · acknowledged · investigating · resolved · dismissed
ApprovalStatus#
Approval request status.
pending · approved · rejected · expired · cancelled · consumed
ApprovalVerdict#
An approver's verdict.
approve · reject
ContentSource#
Where inspected content came from (determines its trust level).
prompt · web · email · document · rag · mcp_response · tool_output
Decision#
Authorization decision.
ALLOW · DENY · APPROVAL_REQUIRED
DelegationScope#
Scopes that may be delegated to another agent.
authorize · execute · mcp:connect · secrets:use · browser:use · database:use · delegations:manage
DlpAction#
DLP enforcement action.
ALLOW · MASK · REDACT · BLOCK · REQUIRE_APPROVAL
DlpDirection#
Direction of data flow for DLP.
inbound · outbound
ExecuteMode#
Execution mode.
sync · async
ExecutionStatus#
Execution lifecycle status.
pending · running · succeeded · failed · denied · awaiting_approval · cancelled · cancelling · simulated
InjectionLevel#
Prompt-injection severity level.
none · low · medium · high · critical
RiskLevel#
Risk level.
low · medium · high · critical
RiskRecommendation#
Risk engine recommendation.
allow · approval_required · deny
RiskTier#
Agent risk tier.
low · standard · elevated · critical
SecretType#
Vault secret type.
api_key · oauth_token · database · certificate · cloud · ssh_key · generic
SimulationStatus#
Outcome of a simulation run.
passed · failed · error
SpanKind#
OpenTelemetry span kind.
server · client · internal · producer · consumer
SpanStatus#
Span status.
unset · ok · error
Models#
Agent#
An agent identity (GET /v1/agents, GET /v1/agents/{id}).
| Field | Type | Required | Notes |
|---|---|---|---|
id |
string | yes | |
name |
string | yes | |
description |
string | ||
status |
AgentStatus | yes | |
statusReason |
string | nullable | |
projectId |
string | ||
environmentId |
string | ||
applicationId |
string | nullable | |
ownerUserId |
string | nullable | |
ownerTeamId |
string | nullable | |
ownerEmail |
string | nullable | |
framework |
string | nullable | |
model |
string | nullable | |
riskTier |
string | ||
tags |
array |
||
metadata |
object | ||
createdAt |
string | ||
updatedAt |
string | ||
lastSeenAt |
string | nullable | |
credentials |
array<AgentCredential> |
AgentCredential#
Credential metadata of an agent (never the secret).
| Field | Type | Required | Notes |
|---|---|---|---|
id |
string | yes | |
type |
string | yes | |
name |
string | ||
status |
string | ||
scopes |
array |
||
expiresAt |
string | nullable | |
graceUntil |
string | nullable | |
lastUsedAt |
string | nullable | |
createdAt |
string | ||
revokedAt |
string | nullable | |
principalType |
string | ||
principalId |
string | ||
publicJwk |
object | nullable | |
rotatedFrom |
string | nullable | |
revokedReason |
string | nullable | |
createdBy |
string | nullable |
AgentCredentialList#
Response of GET /v1/agents/{id}/credentials.
| Field | Type | Required | Notes |
|---|---|---|---|
data |
array<AgentCredential> | yes |
AgentPage#
Response of GET /v1/agents.
| Field | Type | Required | Notes |
|---|---|---|---|
data |
array<Agent> | yes | |
nextCursor |
string | nullable |
AgentSpan#
| Field | Type | Required | Notes |
|---|---|---|---|
traceId |
string | yes | |
spanId |
string | yes | |
parentSpanId |
string | nullable | |
name |
string | yes | |
kind |
SpanKind | default "internal" |
|
startTime |
string | yes | |
durationMs |
number | yes | |
status |
SpanStatus | default "unset" |
|
statusMessage |
string | nullable | |
attributes |
object | default {} |
|
events |
array<SpanEvent> | default [] |
AgentStatusRequest#
Input to POST /v1/agents/{id}/status.
| Field | Type | Required | Notes |
|---|---|---|---|
status |
AgentStatus | yes | |
reason |
string |
Alert#
A security alert (GET /v1/alerts, GET/PATCH /v1/alerts/{id}).
| Field | Type | Required | Notes |
|---|---|---|---|
id |
string | yes | |
projectId |
string | nullable | |
environmentId |
string | nullable | |
kind |
string | yes | |
severity |
RiskLevel | yes | |
score |
number | ||
title |
string | ||
summary |
string | ||
principalType |
string | nullable | |
principalId |
string | nullable | |
status |
AlertStatus | yes | |
assigneeId |
string | nullable | |
dedupeKey |
string | ||
occurrences |
integer | ||
evidence |
array |
||
response |
object | ||
resolution |
string | nullable | |
firstSeenAt |
string | ||
lastSeenAt |
string | ||
acknowledgedAt |
string | nullable | |
resolvedAt |
string | nullable | |
createdAt |
string | ||
updatedAt |
string | ||
notes |
array |
||
investigation |
object |
AlertPage#
Response of GET /v1/alerts.
| Field | Type | Required | Notes |
|---|---|---|---|
data |
array<Alert> | yes | |
nextCursor |
string | nullable |
Approval#
An approval request. GET {gateway}/v1/approvals/{id} returns the agent-facing subset; the control-plane API returns the full record.
| Field | Type | Required | Notes |
|---|---|---|---|
id |
string | yes | |
status |
ApprovalStatus | yes | |
action |
string | ||
resource |
string | ||
summary |
string | ||
reason |
string | ||
snapshotHash |
string | ||
agentId |
string | nullable | |
projectId |
string | ||
environmentId |
string | ||
requesterType |
string | ||
requesterId |
string | ||
riskScore |
number | nullable | |
riskLevel |
string | nullable | |
expiresAt |
string | ||
resolvedAt |
string | nullable | |
resolvedBy |
string | nullable | |
resolutionComment |
string | nullable | |
executionId |
string | nullable | |
createdAt |
string | ||
signatureValid |
boolean | ||
steps |
array |
||
decisions |
array |
||
comments |
array |
||
history |
array |
||
canDecide |
boolean |
ApprovalDecisionResult#
Response of POST /v1/approvals/{id}/decision.
| Field | Type | Required | Notes |
|---|---|---|---|
approvalId |
string | yes | |
status |
ApprovalStatus | yes | |
stepIndex |
integer |
ApprovalPage#
Response of GET /v1/approvals.
| Field | Type | Required | Notes |
|---|---|---|---|
data |
array<Approval> | yes | |
nextCursor |
string | nullable |
ApprovalRef#
Approval request associated with a decision.
| Field | Type | Required | Notes |
|---|---|---|---|
id |
string | yes | |
status |
ApprovalStatus | yes | |
expiresAt |
string | yes | |
snapshotHash |
string | yes | |
url |
string | yes | |
created |
boolean | yes |
ApprovalRequirement#
An approval requirement contributed by a policy or risk threshold.
| Field | Type | Required | Notes |
|---|---|---|---|
policyId |
string | yes | |
policyName |
string | yes | |
approvers |
array |
||
min |
integer | ||
mode |
string | ||
expiresMs |
integer | nullable |
AuditChainError#
A broken link in the audit hash chain.
| Field | Type | Required | Notes |
|---|---|---|---|
seq |
integer | yes | |
id |
string | ||
problem |
string |
AuditEvent#
One tamper-evident audit record.
| Field | Type | Required | Notes |
|---|---|---|---|
id |
string | yes | |
seq |
integer | yes | |
occurredAt |
string | ||
category |
string | ||
action |
string | ||
outcome |
string | ||
actorType |
string | ||
actorId |
string | nullable | |
onBehalfOf |
string | nullable | |
agentId |
string | nullable | |
sessionId |
string | nullable | |
projectId |
string | nullable | |
environmentId |
string | nullable | |
resourceType |
string | nullable | |
resourceId |
string | nullable | |
decision |
string | nullable | |
policyIds |
array |
||
riskScore |
number | nullable | |
approvalId |
string | nullable | |
executionId |
string | nullable | |
argsHash |
string | nullable | |
requestId |
string | nullable | |
traceId |
string | nullable | |
ip |
string | nullable | |
userAgent |
string | nullable | |
details |
object | ||
prevHash |
string | ||
hash |
string |
AuditExportParams#
Query parameters for GET /v1/audit/export.
| Field | Type | Required | Notes |
|---|---|---|---|
from |
string | ||
to |
string | ||
category |
string | ||
action |
string | ||
outcome |
string | ||
actorId |
string | ||
agentId |
string | ||
resourceType |
string | ||
resourceId |
string | ||
projectId |
string | ||
environmentId |
string | ||
decision |
string | ||
traceId |
string | ||
approvalId |
string | ||
executionId |
string | ||
minRisk |
integer | ||
q |
string | ||
afterSeq |
integer | ||
limit |
integer | default 100 |
|
cursor |
string | ||
format |
string | default "ndjson" |
AuditPage#
Response of GET /v1/audit/events.
| Field | Type | Required | Notes |
|---|---|---|---|
data |
array<AuditEvent> | yes | |
nextCursor |
string | nullable |
AuditSearchParams#
Query parameters for GET /v1/audit/events (afterSeq = tail: records after that sequence number, oldest first).
| Field | Type | Required | Notes |
|---|---|---|---|
from |
string | ||
to |
string | ||
category |
string | ||
action |
string | ||
outcome |
string | ||
actorId |
string | ||
agentId |
string | ||
resourceType |
string | ||
resourceId |
string | ||
projectId |
string | ||
environmentId |
string | ||
decision |
string | ||
traceId |
string | ||
approvalId |
string | ||
executionId |
string | ||
minRisk |
integer | ||
q |
string | ||
afterSeq |
integer | ||
limit |
integer | default 100 |
|
cursor |
string |
AuditVerification#
Response of POST /v1/audit/verify.
| Field | Type | Required | Notes |
|---|---|---|---|
valid |
boolean | yes | |
checked |
integer | yes | |
firstSeq |
integer | nullable | |
lastSeq |
integer | nullable | |
headMatches |
boolean | ||
errors |
array<AuditChainError> |
AuthorizeBatchEntry#
One entry of POST /v1/authorize/batch: either a decision (all AuthorizeResult fields) or an error.
| Field | Type | Required | Notes |
|---|---|---|---|
decision |
Decision | ||
decisionId |
string | ||
reason |
string | ||
risk |
Risk | ||
approval |
ApprovalRef | nullable | |
explanation |
Explanation | ||
limits |
array<LimitState> | ||
snapshotHash |
string | ||
environment |
EnvironmentRef | ||
principal |
PrincipalRef | ||
dryRun |
boolean | ||
evaluatedAt |
string | ||
durationMs |
number | ||
error |
BatchError |
AuthorizeBatchRequest#
Input to POST /v1/authorize/batch (1-100 requests).
| Field | Type | Required | Notes |
|---|---|---|---|
requests |
array<AuthorizeRequest> | yes |
AuthorizeBatchResult#
Response of POST /v1/authorize/batch (results are in request order).
| Field | Type | Required | Notes |
|---|---|---|---|
results |
array<AuthorizeBatchEntry> | yes |
AuthorizeRequest#
Input to POST /v1/authorize.
| Field | Type | Required | Notes |
|---|---|---|---|
action |
string | yes | |
resource |
string | yes | |
resourceAttributes |
object | default {} |
|
context |
object | default {} |
|
environmentId |
string | ||
onBehalfOf |
OnBehalfOf | ||
approvalId |
string | ||
dryRun |
boolean | default false |
|
execution |
object | nullable |
AuthorizeResult#
Response of POST /v1/authorize.
| Field | Type | Required | Notes |
|---|---|---|---|
decision |
Decision | yes | |
decisionId |
string | yes | |
reason |
string | yes | |
risk |
Risk | yes | |
approval |
ApprovalRef | nullable | |
explanation |
Explanation | ||
limits |
array<LimitState> | ||
snapshotHash |
string | ||
environment |
EnvironmentRef | ||
principal |
PrincipalRef | ||
dryRun |
boolean | ||
evaluatedAt |
string | ||
durationMs |
number |
AuthUser#
A user account.
| Field | Type | Required | Notes |
|---|---|---|---|
id |
string | yes | |
email |
string | ||
name |
string | ||
createdAt |
string |
BatchError#
Error for one entry of a batch authorization.
| Field | Type | Required | Notes |
|---|---|---|---|
code |
string | yes | |
message |
string | yes |
CancelExecutionResult#
Response of POST /v1/executions/{id}/cancel.
| Field | Type | Required | Notes |
|---|---|---|---|
executionId |
string | yes | |
status |
ExecutionStatus | yes |
ClientCredentialsInstallRequest#
Input to POST /v1/connections/{id}/oauth/client-credentials.
| Field | Type | Required | Notes |
|---|---|---|---|
clientId |
string | yes | |
clientSecret |
string | yes | |
scopes |
array |
Connection#
A connector installed into a project (signing secrets are never returned, except signingSecret once on create).
| Field | Type | Required | Notes |
|---|---|---|---|
id |
string | yes | |
projectId |
string | ||
environmentId |
string | nullable | |
connectorKey |
string | ||
connectorVersion |
string | ||
name |
string | yes | |
description |
string | ||
authType |
string | ||
secretId |
string | nullable | |
config |
object | ||
allowedHosts |
array |
||
signRequests |
boolean | ||
timeoutMs |
integer | ||
maxRetries |
integer | ||
status |
string | ||
health |
object | ||
lastHealthAt |
string | nullable | |
createdBy |
string | nullable | |
createdAt |
string | ||
updatedAt |
string | ||
connector |
Connector | nullable | |
effectiveAllowedHosts |
array |
||
securityTemplate |
any | ||
signingSecret |
string | Request-signing secret, returned once on create when signRequests=true. |
ConnectionCredential#
| Field | Type | Required | Notes |
|---|---|---|---|
type |
string | yes | |
value |
object | yes | |
metadata |
object | default {} |
ConnectionHealth#
Response of POST /v1/connections/{id}/health.
| Field | Type | Required | Notes |
|---|---|---|---|
ok |
boolean | yes | |
detail |
string | ||
latencyMs |
number |
ConnectionList#
Response of GET /v1/connections.
| Field | Type | Required | Notes |
|---|---|---|---|
data |
array<Connection> | yes |
Connector#
A connector in the catalog (GET /v1/connectors, GET /v1/connectors/{key}).
| Field | Type | Required | Notes |
|---|---|---|---|
key |
string | yes | |
name |
string | yes | |
version |
string | ||
description |
string | ||
category |
string | ||
homepage |
string | nullable | |
baseUrl |
string | nullable | |
allowedHosts |
array |
||
publicHosts |
array |
||
auth |
array |
||
config |
object | ||
resources |
any | ||
securityTemplate |
any | ||
actions |
array<ConnectorAction> |
ConnectorAction#
An action a connector exposes.
| Field | Type | Required | Notes |
|---|---|---|---|
name |
string | yes | |
action |
string | yes | |
title |
string | ||
description |
string | ||
risk |
any | ||
idempotent |
boolean | ||
input |
object | ||
output |
object | nullable |
ConnectorList#
Response of GET /v1/connectors.
| Field | Type | Required | Notes |
|---|---|---|---|
data |
array<Connector> | yes |
ContentProvenance#
Provenance of inspected content.
| Field | Type | Required | Notes |
|---|---|---|---|
source |
string | yes | |
origin |
string | nullable | |
trust |
string | yes | |
contentHash |
string | ||
retrievedAt |
string |
CreateConnectionRequest#
Input to POST /v1/connections (install a connector into a project).
| Field | Type | Required | Notes |
|---|---|---|---|
projectId |
string | yes | |
environmentId |
string | ||
connector |
string | yes | |
name |
string | yes | |
description |
string | default "" |
|
authType |
string | default "none" |
|
secretId |
string | ||
credential |
ConnectionCredential | ||
config |
object | default {} |
|
allowedHosts |
array |
default [] |
|
signRequests |
boolean | default false |
|
timeoutMs |
integer | default 15000 |
|
maxRetries |
integer | default 2 |
CreateCredentialRequest#
Input to POST /v1/agents/{id}/credentials.
| Field | Type | Required | Notes |
|---|---|---|---|
type |
string | default "client_secret" |
|
name |
string | default "default" |
|
publicJwk |
object | ||
scopes |
array |
default [] |
|
expiresInDays |
integer |
CreateDelegationRequest#
Input to POST /v1/delegations (control plane).
| Field | Type | Required | Notes |
|---|---|---|---|
delegateAgentId |
string | yes | |
scopes |
array<DelegationScope> | yes | |
actions |
array |
default [] |
|
resources |
array |
default [] |
|
constraints |
DelegationConstraints | default {} |
|
purpose |
string | default "" |
|
expiresInSeconds |
integer | default 3600 |
|
maxDepth |
integer | default 3 |
CreatedSecret#
Response of POST /v1/secrets (metadata only; the value is never echoed).
| Field | Type | Required | Notes |
|---|---|---|---|
id |
string | yes | |
name |
string | yes | |
type |
SecretType | yes | |
mask |
string | ||
version |
integer |
CreatePolicyRequest#
Input to POST /v1/policies (exactly one of source or templateId).
| Field | Type | Required | Notes |
|---|---|---|---|
name |
string | yes | |
description |
string | default "" |
|
scope |
PolicyScope | default {"type":"org"} |
|
source |
string | ||
templateId |
string | ||
templateParams |
object | ||
message |
string | default "Initial version" |
|
tags |
array |
default [] |
CreateSecretRequest#
Input to POST /v1/secrets. value is write-only: it is never returned and SDKs never log it.
| Field | Type | Required | Notes |
|---|---|---|---|
name |
string | yes | |
type |
SecretType | yes | |
value |
object | yes | |
description |
string | default "" |
|
metadata |
object | default {} |
|
projectId |
string | ||
environmentId |
string | ||
accessPolicy |
SecretAccessPolicy | default {} |
|
expiresAt |
string | ||
rotationPolicy |
SecretRotationPolicy | default {"strategy":"manual"} |
DecideApprovalRequest#
Input to POST /v1/approvals/{id}/decision. snapshotHash must be the hash the approver reviewed.
| Field | Type | Required | Notes |
|---|---|---|---|
decision |
ApprovalVerdict | yes | |
comment |
string | default "" |
|
snapshotHash |
string | yes | |
channel |
string | default "console" |
Delegation#
Response of POST /v1/delegations. token (gsd_...) is shown once; hand it to the delegate agent.
| Field | Type | Required | Notes |
|---|---|---|---|
id |
string | yes | |
token |
string | yes | |
chain |
array |
||
depth |
integer | ||
maxDepth |
integer | ||
scopes |
array |
||
actions |
array |
||
resources |
array |
||
expiresAt |
string | ||
originatingUserId |
string | nullable |
DelegationConstraints#
| Field | Type | Required | Notes |
|---|---|---|---|
maxAmount |
number | ||
environments |
array |
DeployPolicyRequest#
Input to POST /v1/policies/{id}/deploy (default: latest version).
| Field | Type | Required | Notes |
|---|---|---|---|
versionId |
string | ||
comment |
string | default "" |
DlpFinding#
One sensitive-data finding (masked, never the raw value).
| Field | Type | Required | Notes |
|---|---|---|---|
detector |
string | yes | |
category |
string | yes | |
label |
string | ||
confidence |
number | ||
path |
string | ||
masked |
string | ||
enforcement |
DlpAction |
DlpMatchedRule#
A DLP rule that matched.
| Field | Type | Required | Notes |
|---|---|---|---|
ruleId |
string | yes | |
name |
string | yes | |
action |
DlpAction | yes | |
findings |
integer |
DlpScanRequest#
Input to POST /v1/dlp/scan.
| Field | Type | Required | Notes |
|---|---|---|---|
content |
any | yes | |
direction |
DlpDirection | yes | |
action |
string | ||
connector |
string | ||
environmentId |
string | ||
dryRun |
boolean |
DlpScanResult#
Response of POST /v1/dlp/scan.
| Field | Type | Required | Notes |
|---|---|---|---|
action |
DlpAction | yes | |
content |
any | Transformed payload; null when blocked. | |
findings |
array<DlpFinding> | yes | |
rules |
array<DlpMatchedRule> | ||
eventId |
string | nullable | |
dryRun |
boolean |
EnvironmentRef#
Environment the request was evaluated in.
| Field | Type | Required | Notes |
|---|---|---|---|
id |
string | yes | |
slug |
string | yes | |
tier |
string | yes |
ExecuteRequest#
Input to POST /v1/execute.
| Field | Type | Required | Notes |
|---|---|---|---|
connection |
string | yes | |
action |
string | yes | |
input |
object | default {} |
|
idempotencyKey |
string | ||
approvalId |
string | ||
mode |
ExecuteMode | default "sync" |
|
timeoutMs |
integer | ||
dryRun |
boolean | default false |
|
environmentId |
string | ||
onBehalfOf |
OnBehalfOf |
ExecuteResult#
Response of POST /v1/execute (HTTP 200 succeeded/simulated, 202 awaiting_approval/running, 403 denied, 502/504 failed).
| Field | Type | Required | Notes |
|---|---|---|---|
executionId |
string | nullable | |
status |
ExecutionStatus | yes | |
decision |
Decision | ||
reason |
string | ||
output |
any | ||
outputTruncated |
boolean | ||
error |
ExecutionError | nullable | |
approval |
ApprovalRef | nullable | |
risk |
Risk | ||
durationMs |
number | ||
replayed |
boolean |
Execution#
Response of GET /v1/executions/{id} (execution record with step logs).
| Field | Type | Required | Notes |
|---|---|---|---|
id |
string | yes | |
status |
ExecutionStatus | yes | |
projectId |
string | ||
environmentId |
string | ||
principalType |
string | ||
principalId |
string | ||
connectionId |
string | nullable | |
connectorKey |
string | ||
action |
string | ||
resource |
string | ||
mode |
ExecuteMode | ||
decision |
Decision | nullable | |
decisionId |
string | nullable | |
approvalId |
string | nullable | |
riskScore |
number | nullable | |
idempotencyKey |
string | nullable | |
output |
any | ||
outputTruncated |
boolean | ||
error |
ExecutionError | nullable | |
attempts |
integer | ||
traceId |
string | nullable | |
createdAt |
string | ||
startedAt |
string | nullable | |
finishedAt |
string | nullable | |
durationMs |
integer | nullable | |
logs |
array<ExecutionLog> |
ExecutionError#
Error of a failed/denied execution.
| Field | Type | Required | Notes |
|---|---|---|---|
code |
string | yes | |
message |
string | yes | |
upstreamStatus |
integer |
ExecutionLog#
One step log line of an execution.
| Field | Type | Required | Notes |
|---|---|---|---|
step |
string | yes | |
level |
string | ||
message |
string | ||
data |
object | ||
durationMs |
integer | nullable | |
createdAt |
string |
ExecutionPage#
Response of GET /v1/executions.
| Field | Type | Required | Notes |
|---|---|---|---|
data |
array<Execution> | yes | |
nextCursor |
string | nullable |
Explanation#
Why the decision was made.
| Field | Type | Required | Notes |
|---|---|---|---|
trace |
array<TraceEntry> | yes | |
approvals |
array<ApprovalRequirement> | yes | |
grantingPolicyId |
string | nullable | |
candidates |
integer | yes | |
policyDecision |
Decision | yes |
InjectionFinding#
One prompt-injection rule match.
| Field | Type | Required | Notes |
|---|---|---|---|
rule |
string | yes | |
category |
string | yes | |
excerpt |
string |
InjectionModelResult#
ML classifier contribution (when configured).
| Field | Type | Required | Notes |
|---|---|---|---|
used |
boolean | yes | |
score |
number | nullable | |
error |
string | nullable |
InjectionReport#
Prompt-injection analysis of inspected content.
| Field | Type | Required | Notes |
|---|---|---|---|
score |
number | yes | 0-100. |
level |
InjectionLevel | yes | |
action |
string | yes | ALLOW, FLAG, SANITIZE or BLOCK. |
findings |
array<InjectionFinding> | yes | |
provenance |
ContentProvenance | ||
model |
InjectionModelResult | ||
detectionId |
string | nullable | |
tainted |
boolean |
InspectDlpReport#
Inbound DLP outcome of an inspection.
| Field | Type | Required | Notes |
|---|---|---|---|
action |
DlpAction | yes | |
summary |
object | Finding label -> count. | |
rules |
array<DlpMatchedRule> | ||
eventId |
string | nullable |
InspectRequest#
Input to POST /v1/inspect: untrusted content an agent is about to read.
| Field | Type | Required | Notes |
|---|---|---|---|
content |
any | yes | |
source |
ContentSource | yes | |
origin |
string | ||
dlp |
boolean | default true |
|
dryRun |
boolean | ||
environmentId |
string |
InspectResult#
Response of POST /v1/inspect.
| Field | Type | Required | Notes |
|---|---|---|---|
action |
string | yes | Overall action: ALLOW, FLAG, SANITIZE, MASK, REDACT, REQUIRE_APPROVAL or BLOCK. |
content |
any | Content safe to hand to the model (sanitized/masked); null when blocked. | |
injection |
InjectionReport | yes | |
dlp |
InspectDlpReport | nullable |
IssuedCredential#
A newly issued credential. clientSecret (gsa_...) is shown ONCE (null for public_key credentials); SDKs never log it.
| Field | Type | Required | Notes |
|---|---|---|---|
credential |
AgentCredential | yes | |
clientId |
string | yes | |
clientSecret |
string | nullable |
JwtBearerInstallRequest#
Input to POST /v1/connections/{id}/oauth/jwt-bearer: either serviceAccountJson (Google) or issuer + privateKeyPem.
| Field | Type | Required | Notes |
|---|---|---|---|
serviceAccountJson |
string | ||
issuer |
string | ||
privateKeyPem |
string | ||
keyId |
string | ||
subject |
string | ||
audience |
string | ||
scopes |
array |
LimitState#
A rate/amount limit of the granting policy and its current usage.
| Field | Type | Required | Notes |
|---|---|---|---|
policyId |
string | yes | |
key |
string | yes | |
measure |
string | yes | |
amount |
number | yes | |
max |
number | yes | |
windowMs |
integer | yes | |
subject |
string | ||
used |
number | yes | |
remaining |
number | yes |
ListAgentsParams#
Query parameters for GET /v1/agents.
| Field | Type | Required | Notes |
|---|---|---|---|
projectId |
string | ||
environmentId |
string | ||
status |
AgentStatus | ||
ownerUserId |
string | ||
tag |
string | ||
q |
string | ||
limit |
integer | default 50 |
|
cursor |
string |
ListAlertsParams#
Query parameters for GET /v1/alerts.
| Field | Type | Required | Notes |
|---|---|---|---|
status |
AlertStatus | ||
severity |
RiskLevel | ||
kind |
string | ||
principalId |
string | ||
active |
string | ||
limit |
integer | default 50 |
|
cursor |
string |
ListApprovalsParams#
Query parameters for GET /v1/approvals.
| Field | Type | Required | Notes |
|---|---|---|---|
status |
ApprovalStatus | ||
inbox |
boolean | ||
agentId |
string | ||
projectId |
string | ||
limit |
integer | default 50 |
|
cursor |
string |
ListConnectionsParams#
Query parameters for GET /v1/connections.
| Field | Type | Required | Notes |
|---|---|---|---|
projectId |
string |
ListExecutionsParams#
Query parameters for GET /v1/executions.
| Field | Type | Required | Notes |
|---|---|---|---|
status |
string | ||
principalId |
string | ||
connectionId |
string | ||
limit |
integer | default 50 |
|
cursor |
string |
ListPoliciesParams#
Query parameters for GET /v1/policies.
| Field | Type | Required | Notes |
|---|---|---|---|
projectId |
string | ||
environmentId |
string | ||
status |
string |
ListSecretsParams#
Query parameters for GET /v1/secrets.
| Field | Type | Required | Notes |
|---|---|---|---|
projectId |
string | ||
environmentId |
string | ||
type |
string |
LoginRequest#
Input to POST /v1/auth/login. SDKs send refreshTokenDelivery=body.
| Field | Type | Required | Notes |
|---|---|---|---|
email |
string | yes | |
password |
string | yes | |
orgId |
string | ||
refreshTokenDelivery |
string | default "cookie" |
LoginResult#
Response of POST /v1/auth/login (refreshTokenDelivery=body).
| Field | Type | Required | Notes |
|---|---|---|---|
accessToken |
string | yes | |
tokenType |
string | ||
expiresIn |
integer | yes | Access token lifetime in seconds. |
refreshToken |
string | ||
refreshExpiresAt |
string | ||
familyId |
string | ||
sessionId |
string | ||
user |
AuthUser | ||
orgId |
string | nullable | |
orgs |
array<OrgMembership> |
Me#
Response of GET /v1/auth/me.
| Field | Type | Required | Notes |
|---|---|---|---|
principal |
MePrincipal | yes | |
user |
AuthUser | nullable | |
orgs |
array<OrgMembership> | ||
permissions |
array |
MePrincipal#
The authenticated principal.
| Field | Type | Required | Notes |
|---|---|---|---|
type |
string | yes | |
id |
string | yes | |
orgId |
string | nullable | |
orgRole |
string | nullable | |
projectId |
string | nullable | |
environmentId |
string | nullable | |
scopes |
array |
OAuthCallbackRequest#
Input to POST /v1/connections/oauth/callback.
| Field | Type | Required | Notes |
|---|---|---|---|
state |
string | yes | |
code |
string | yes | |
clientSecret |
string |
OAuthInstallResult#
Response of the OAuth callback and the client-credentials / jwt-bearer installs.
| Field | Type | Required | Notes |
|---|---|---|---|
connectionId |
string | yes | |
secretId |
string | yes | |
scope |
string | nullable | |
expiresAt |
string | nullable |
OAuthStartRequest#
Input to POST /v1/connections/{id}/oauth/start (authorization code + PKCE).
| Field | Type | Required | Notes |
|---|---|---|---|
redirectUri |
string | yes | |
clientId |
string | ||
scopes |
array |
OAuthStartResult#
Response of POST /v1/connections/{id}/oauth/start: send the user to authorizationUrl.
| Field | Type | Required | Notes |
|---|---|---|---|
authorizationUrl |
string | yes | |
expiresInSeconds |
integer |
OnBehalfOf#
| Field | Type | Required | Notes |
|---|---|---|---|
agentId |
string | yes |
OrgMembership#
An organization the user belongs to.
| Field | Type | Required | Notes |
|---|---|---|---|
orgId |
string | yes | |
role |
string | ||
name |
string | ||
slug |
string |
Policy#
A policy (GET /v1/policies).
| Field | Type | Required | Notes |
|---|---|---|---|
id |
string | yes | |
name |
string | yes | |
description |
string | ||
status |
string | yes | |
scopeType |
string | ||
scopeId |
string | ||
projectId |
string | nullable | |
environmentId |
string | nullable | |
latestVersion |
integer | ||
activeVersion |
integer | nullable | |
activeVersionId |
string | nullable | |
tags |
array |
||
createdAt |
string | ||
updatedAt |
string |
PolicyDeployment#
A deploy/rollback record.
| Field | Type | Required | Notes |
|---|---|---|---|
id |
string | yes | |
policyId |
string | ||
action |
string | ||
fromVersionId |
string | nullable | |
toVersionId |
string | nullable | |
testsPassed |
boolean | nullable | |
testReport |
object | ||
simulation |
object | ||
comment |
string | ||
actorId |
string | nullable | |
createdAt |
string |
PolicyDeploymentList#
Response of GET /v1/policies/{id}/deployments.
| Field | Type | Required | Notes |
|---|---|---|---|
data |
array<PolicyDeployment> | yes |
PolicyDeployResult#
Response of POST /v1/policies/{id}/deploy. HTTP 200 when deployed; HTTP 412 with deployed=false when failing tests or blocking conflicts prevent it (returned as a result, not an error).
| Field | Type | Required | Notes |
|---|---|---|---|
deployed |
boolean | yes | |
deploymentId |
string | ||
versionId |
string | ||
tests |
PolicyTestRun | ||
conflicts |
array |
PolicyDetail#
Response of GET /v1/policies/{id}: the policy with its versions, latest version and tests.
| Field | Type | Required | Notes |
|---|---|---|---|
id |
string | yes | |
name |
string | yes | |
description |
string | ||
status |
string | yes | |
scopeType |
string | ||
scopeId |
string | ||
projectId |
string | nullable | |
environmentId |
string | nullable | |
latestVersion |
integer | ||
activeVersion |
integer | nullable | |
activeVersionId |
string | nullable | |
tags |
array |
||
createdAt |
string | ||
updatedAt |
string | ||
templateId |
string | nullable | |
versions |
array<PolicyVersion> | ||
latest |
PolicyVersion | nullable | |
tests |
array<PolicyTest> |
PolicyDiff#
Response of GET /v1/policies/{id}/diff.
| Field | Type | Required | Notes |
|---|---|---|---|
from |
integer | ||
to |
integer | ||
added |
array |
||
removed |
array |
||
changed |
array<PolicyDiffChange> | ||
unified |
string |
PolicyDiffChange#
A policy whose clauses changed.
| Field | Type | Required | Notes |
|---|---|---|---|
name |
string | yes | |
fields |
array |
PolicyList#
Response of GET /v1/policies.
| Field | Type | Required | Notes |
|---|---|---|---|
data |
array<Policy> | yes |
PolicyOverride#
| Field | Type | Required | Notes |
|---|---|---|---|
policyId |
string | yes | |
versionId |
string | ||
source |
string |
PolicyRollbackResult#
Response of POST /v1/policies/{id}/rollback.
| Field | Type | Required | Notes |
|---|---|---|---|
rolledBack |
boolean | yes | |
versionId |
string | yes | |
previousVersionId |
string | nullable |
PolicyScope#
Policy scope: {type: org} | {type: project, projectId} | {type: environment, environmentId}.
| Field | Type | Required | Notes |
|---|---|---|---|
type |
string | yes | org, project or environment. |
projectId |
string | ||
environmentId |
string |
PolicySimulateRequest#
Input to POST /v1/policies/simulate (deployed vs candidate policies).
| Field | Type | Required | Notes |
|---|---|---|---|
environmentId |
string | yes | |
overrides |
array<PolicyOverride> | default [] |
|
requests |
array<PolicySimulationCase> | yes |
PolicySimulation#
Response of POST /v1/policies/simulate.
| Field | Type | Required | Notes |
|---|---|---|---|
environment |
EnvironmentRef | ||
summary |
PolicySimulationSummary | yes | |
results |
array<PolicySimulationResult> | yes |
PolicySimulationCase#
| Field | Type | Required | Notes |
|---|---|---|---|
principal |
PolicyTestPrincipal | yes | |
action |
string | yes | |
resource |
string | yes | |
resourceAttributes |
object | ||
context |
object | ||
environment |
PolicyTestEnvironment | ||
risk |
PolicyTestRisk | nullable | |
delegation |
object | nullable | |
now |
string | ||
relationships |
array<RelationshipTuple> | ||
limitUsage |
object | ||
expect |
Decision | ||
label |
string |
PolicySimulationOutcome#
Decision under one policy set.
| Field | Type | Required | Notes |
|---|---|---|---|
decision |
Decision | yes | |
reason |
string | ||
trace |
array |
||
approvals |
array |
PolicySimulationResult#
One request of a policy simulation.
| Field | Type | Required | Notes |
|---|---|---|---|
index |
integer | ||
label |
string | ||
baseline |
PolicySimulationOutcome | yes | |
candidate |
PolicySimulationOutcome | yes | |
changed |
boolean | ||
expected |
string | nullable | |
matchesExpectation |
boolean | nullable |
PolicySimulationSummary#
Totals of a policy simulation.
| Field | Type | Required | Notes |
|---|---|---|---|
total |
integer | yes | |
changed |
integer | ||
mismatches |
integer | ||
byDecision |
object |
PolicyTest#
A stored policy test case.
| Field | Type | Required | Notes |
|---|---|---|---|
id |
string | yes | |
policyId |
string | ||
name |
string | yes | |
request |
object | ||
expect |
Decision | yes | |
createdBy |
string | nullable | |
createdAt |
string |
PolicyTestCase#
A policy test case (POST /v1/policies/{id}/tests, PUT /v1/policies/{id}/tests).
| Field | Type | Required | Notes |
|---|---|---|---|
name |
string | yes | |
request |
PolicyTestRequest | yes | |
expect |
Decision | yes |
PolicyTestEnvironment#
| Field | Type | Required | Notes |
|---|---|---|---|
slug |
string | yes | |
tier |
string | yes |
PolicyTestList#
Response of PUT /v1/policies/{id}/tests.
| Field | Type | Required | Notes |
|---|---|---|---|
data |
array<PolicyTest> | yes |
PolicyTestPrincipal#
| Field | Type | Required | Notes |
|---|---|---|---|
type |
string | yes | |
id |
string | yes | |
refs |
array |
||
attributes |
object |
PolicyTestRequest#
| Field | Type | Required | Notes |
|---|---|---|---|
principal |
PolicyTestPrincipal | yes | |
action |
string | yes | |
resource |
string | yes | |
resourceAttributes |
object | ||
context |
object | ||
environment |
PolicyTestEnvironment | ||
risk |
PolicyTestRisk | nullable | |
delegation |
object | nullable | |
now |
string | ||
relationships |
array<RelationshipTuple> | ||
limitUsage |
object |
PolicyTestRisk#
| Field | Type | Required | Notes |
|---|---|---|---|
score |
number | yes | |
level |
string | yes |
PolicyTestRun#
Result of running a policy's tests (POST /v1/policies/{id}/tests/run; also embedded in deploy reports).
| Field | Type | Required | Notes |
|---|---|---|---|
versionId |
string | ||
passed |
integer | yes | |
failed |
integer | yes | |
total |
integer | yes | |
results |
array |
PolicyValidation#
Response of POST /v1/policies/validate.
| Field | Type | Required | Notes |
|---|---|---|---|
ok |
boolean | yes | |
diagnostics |
array |
||
conflicts |
array |
||
formatted |
string | nullable |
PolicyVersion#
An immutable policy version.
| Field | Type | Required | Notes |
|---|---|---|---|
id |
string | yes | |
policyId |
string | ||
version |
integer | yes | |
source |
string | ||
ast |
object | ||
checksum |
string | ||
message |
string | ||
diagnostics |
array |
||
authorId |
string | nullable | |
createdAt |
string |
PolicyVersionResult#
Response of POST /v1/policies and PUT /v1/policies/{id}: the saved version.
| Field | Type | Required | Notes |
|---|---|---|---|
id |
string | yes | |
versionId |
string | yes | |
version |
integer | yes | |
status |
string | ||
source |
string | ||
diagnostics |
array |
PreviousCredential#
The rotated-out credential and when it stops working.
| Field | Type | Required | Notes |
|---|---|---|---|
id |
string | yes | |
graceUntil |
string |
PrincipalRef#
The principal the decision applies to.
| Field | Type | Required | Notes |
|---|---|---|---|
type |
string | yes | |
id |
string | yes |
Problem#
RFC 9457 problem details returned for every error.
| Field | Type | Required | Notes |
|---|---|---|---|
type |
string | yes | |
title |
string | yes | Machine-readable error code (e.g. policy_denied). |
status |
integer | yes | |
detail |
string | ||
instance |
string | ||
details |
object | ||
requestId |
string | ||
traceId |
string |
RegisterAgentRequest#
Input to POST /v1/agents.
| Field | Type | Required | Notes |
|---|---|---|---|
environmentId |
string | yes | |
name |
string | yes | |
description |
string | default "" |
|
ownerUserId |
string | ||
ownerTeamId |
string | ||
applicationId |
string | ||
framework |
string | ||
model |
string | ||
riskTier |
RiskTier | default "standard" |
|
tags |
array |
default [] |
|
metadata |
object | default {} |
|
credential |
CreateCredentialRequest |
RegisteredAgent#
Response of POST /v1/agents: the agent plus its initial credential (null unless requested).
| Field | Type | Required | Notes |
|---|---|---|---|
id |
string | yes | |
name |
string | yes | |
description |
string | ||
status |
AgentStatus | yes | |
statusReason |
string | nullable | |
projectId |
string | ||
environmentId |
string | ||
applicationId |
string | nullable | |
ownerUserId |
string | nullable | |
ownerTeamId |
string | nullable | |
ownerEmail |
string | nullable | |
framework |
string | nullable | |
model |
string | nullable | |
riskTier |
string | ||
tags |
array |
||
metadata |
object | ||
createdAt |
string | ||
updatedAt |
string | ||
lastSeenAt |
string | nullable | |
credentials |
array<AgentCredential> | ||
credential |
IssuedCredential | nullable |
RelationshipTuple#
| Field | Type | Required | Notes |
|---|---|---|---|
subject |
string | yes | |
relation |
string | yes | |
object |
string | yes |
ReplacePolicyTestsRequest#
Input to PUT /v1/policies/{id}/tests (replaces the whole suite atomically).
| Field | Type | Required | Notes |
|---|---|---|---|
tests |
array<PolicyTestCase> | yes |
ReplayParams#
Query parameters for GET /v1/replay/{principalId}.
| Field | Type | Required | Notes |
|---|---|---|---|
from |
string | ||
to |
string | ||
limit |
integer | default 200 |
ReportSpansRequest#
Input to POST /v1/traces/spans (1-500 agent-side spans).
| Field | Type | Required | Notes |
|---|---|---|---|
spans |
array<AgentSpan> | yes |
ReportSpansResult#
Response of POST /v1/traces/spans (spans outside +/-24h of now are rejected).
| Field | Type | Required | Notes |
|---|---|---|---|
accepted |
integer | yes | |
rejected |
integer | yes |
RevokeSecretRequest#
Input to POST /v1/secrets/{id}/revoke (one version, or the whole secret).
| Field | Type | Required | Notes |
|---|---|---|---|
version |
integer | ||
reason |
string |
RevokeSecretResult#
Response of POST /v1/secrets/{id}/revoke.
| Field | Type | Required | Notes |
|---|---|---|---|
revoked |
boolean | yes |
Risk#
Risk assessment attached to a decision.
| Field | Type | Required | Notes |
|---|---|---|---|
score |
number | yes | |
level |
RiskLevel | yes | |
recommendation |
RiskRecommendation | yes | |
signals |
array<RiskSignal> | yes | |
thresholds |
RiskThresholds | yes |
RiskSignal#
One explainable contribution to a risk score.
| Field | Type | Required | Notes |
|---|---|---|---|
category |
string | yes | |
code |
string | yes | |
points |
number | yes | |
reason |
string | yes |
RiskThresholds#
Risk thresholds in effect.
| Field | Type | Required | Notes |
|---|---|---|---|
approvalAbove |
number | yes | |
denyAbove |
number | yes |
RollbackPolicyRequest#
Input to POST /v1/policies/{id}/rollback (default: the previously deployed version).
| Field | Type | Required | Notes |
|---|---|---|---|
versionId |
string | ||
comment |
string |
RotateCredentialRequest#
Input to POST /v1/credentials/{id}/rotate.
| Field | Type | Required | Notes |
|---|---|---|---|
gracePeriodMinutes |
integer | default 60 |
|
publicJwk |
object |
RotatedCredential#
Response of POST /v1/credentials/{id}/rotate.
| Field | Type | Required | Notes |
|---|---|---|---|
credential |
AgentCredential | yes | |
clientId |
string | yes | |
clientSecret |
string | nullable | |
previous |
PreviousCredential | yes |
RotatedSecret#
Response of POST /v1/secrets/{id}/rotate.
| Field | Type | Required | Notes |
|---|---|---|---|
id |
string | yes | |
version |
integer | yes | |
mask |
string |
RotateSecretRequest#
Input to POST /v1/secrets/{id}/rotate (a new value, or generate one).
| Field | Type | Required | Notes |
|---|---|---|---|
value |
object | ||
generate |
SecretGenerateOptions |
ScenarioContent#
| Field | Type | Required | Notes |
|---|---|---|---|
source |
string | yes | |
text |
string | yes | |
origin |
string |
ScenarioExecution#
| Field | Type | Required | Notes |
|---|---|---|---|
connectionId |
string | yes | |
action |
string | yes | |
input |
object | default {} |
ScenarioHistory#
| Field | Type | Required | Notes |
|---|---|---|---|
velocity1m |
integer | ||
velocity5m |
integer | ||
recentDenials |
integer | ||
openAlerts |
integer |
ScenarioPrincipal#
Who the scenario runs as: exactly one of agentId (a real agent) or synthetic.
| Field | Type | Required | Notes |
|---|---|---|---|
agentId |
string | ||
synthetic |
SyntheticPrincipal |
ScenarioRequest#
| Field | Type | Required | Notes |
|---|---|---|---|
action |
string | yes | |
resource |
string | yes | |
resourceAttributes |
object | default {} |
|
context |
object | default {} |
|
outboundData |
any |
ScenarioTaint#
| Field | Type | Required | Notes |
|---|---|---|---|
score |
integer | yes | |
source |
string | yes | |
origin |
string |
Secret#
Secret metadata (GET /v1/secrets, GET/PATCH /v1/secrets/{id}). The value is never returned.
| Field | Type | Required | Notes |
|---|---|---|---|
id |
string | yes | |
projectId |
string | nullable | |
environmentId |
string | nullable | |
name |
string | yes | |
type |
SecretType | yes | |
description |
string | ||
metadata |
object | ||
accessPolicy |
object | ||
mask |
string | ||
status |
string | ||
currentVersion |
integer | ||
expiresAt |
string | nullable | |
rotationPolicy |
object | ||
lastRotatedAt |
string | nullable | |
lastUsedAt |
string | nullable | |
useCount |
integer | ||
createdBy |
string | nullable | |
createdAt |
string | ||
updatedAt |
string | ||
versions |
array<SecretVersionInfo> |
SecretAccessPolicy#
| Field | Type | Required | Notes |
|---|---|---|---|
agents |
array |
||
agentTags |
array |
||
connectors |
array |
||
actions |
array |
||
environments |
array |
SecretGenerateOptions#
| Field | Type | Required | Notes |
|---|---|---|---|
length |
integer |
SecretList#
Response of GET /v1/secrets.
| Field | Type | Required | Notes |
|---|---|---|---|
data |
array<Secret> | yes |
SecretRotationPolicy#
| Field | Type | Required | Notes |
|---|---|---|---|
intervalDays |
integer | ||
strategy |
string | default "manual" |
SecretVersionInfo#
Secret version metadata (never ciphertext or value).
| Field | Type | Required | Notes |
|---|---|---|---|
id |
string | yes | |
version |
integer | yes | |
status |
string | ||
kmsKeyId |
string | ||
expiresAt |
string | nullable | |
createdBy |
string | nullable | |
createdAt |
string | ||
revokedAt |
string | nullable |
SessionReplay#
Response of GET /v1/replay/{principalId}: everything a principal did in a window.
| Field | Type | Required | Notes |
|---|---|---|---|
principalId |
string | yes | |
from |
string | ||
to |
string | ||
steps |
array |
||
traces |
array |
SessionTokens#
Response of POST /v1/auth/refresh (refresh tokens rotate: store the new one).
| Field | Type | Required | Notes |
|---|---|---|---|
accessToken |
string | yes | |
tokenType |
string | ||
expiresIn |
integer | yes | Access token lifetime in seconds. |
refreshToken |
string | ||
refreshExpiresAt |
string | ||
familyId |
string |
SimulationExpectation#
| Field | Type | Required | Notes |
|---|---|---|---|
decision |
Decision | ||
decisionIn |
array<Decision> | ||
riskLevel |
RiskLevel | ||
minRiskScore |
integer | ||
maxRiskScore |
integer | ||
minApprovers |
integer | ||
dlp |
DlpAction | ||
injectionAtLeast |
InjectionLevel | ||
injectionAtMost |
InjectionLevel | ||
reasonIncludes |
string |
SimulationFixed#
A scenario that failed in the previous run and passes now.
| Field | Type | Required | Notes |
|---|---|---|---|
key |
string | yes | |
label |
string |
SimulationRegression#
A scenario that passed in the previous run and fails now.
| Field | Type | Required | Notes |
|---|---|---|---|
key |
string | yes | |
label |
string | ||
previous |
string | nullable | |
now |
string | nullable |
SimulationResult#
Outcome of one scenario.
| Field | Type | Required | Notes |
|---|---|---|---|
index |
integer | ||
key |
string | ||
label |
string | ||
category |
string | nullable | |
scenario |
SimulationScenario | ||
actual |
object | Decision, risk, approval plan, DLP/injection outcome (or error). | |
expected |
SimulationExpectation | nullable | |
passed |
boolean | nullable | |
failures |
array |
SimulationRun#
Response of POST /v1/simulations/run (also the body of its HTTP 422 with failOnMismatch).
| Field | Type | Required | Notes |
|---|---|---|---|
id |
string | nullable; Null when persist=false. | |
name |
string | ||
status |
SimulationStatus | yes | |
environment |
EnvironmentRef | ||
summary |
SimulationSummary | yes | |
regressions |
array<SimulationRegression> | ||
fixed |
array<SimulationFixed> | ||
results |
array<SimulationResult> | yes | |
durationMs |
number |
SimulationRunRequest#
Input to POST /v1/simulations/run. With failOnMismatch, a failed/errored run is returned with HTTP 422.
| Field | Type | Required | Notes |
|---|---|---|---|
environmentId |
string | yes | |
name |
string | ||
scenarios |
array<SimulationScenario> | default [] |
|
scenarioSetId |
string | ||
libraryIds |
array |
default [] |
|
policyOverrides |
array<PolicyOverride> | default [] |
|
riskOverride |
object | ||
liveHistory |
boolean | default true |
|
trigger |
string | default "api" |
|
persist |
boolean | default true |
|
failOnMismatch |
boolean | default false |
SimulationScenario#
| Field | Type | Required | Notes |
|---|---|---|---|
key |
string | ||
label |
string | yes | |
category |
string | ||
description |
string | ||
principal |
ScenarioPrincipal | yes | |
request |
ScenarioRequest | ||
execution |
ScenarioExecution | ||
content |
ScenarioContent | ||
history |
ScenarioHistory | ||
taint |
ScenarioTaint | ||
expect |
SimulationExpectation |
SimulationSummary#
Totals of a simulation run.
| Field | Type | Required | Notes |
|---|---|---|---|
total |
integer | yes | |
withExpectations |
integer | ||
passed |
integer | ||
failed |
integer | ||
errors |
integer | ||
byDecision |
object | ||
changedFromBaseline |
integer | ||
byCategory |
array |
||
regressions |
integer | ||
fixed |
integer | ||
previousRunId |
string | nullable |
SpanEvent#
| Field | Type | Required | Notes |
|---|---|---|---|
name |
string | yes | |
time |
string | yes | |
attributes |
object | default {} |
SyntheticDelegation#
Delegation context of a synthetic principal.
| Field | Type | Required | Notes |
|---|---|---|---|
depth |
integer | yes | |
chain |
array |
yes | |
originatingUserId |
string | ||
scopes |
array |
SyntheticPrincipal#
A principal that does not exist (simulation only).
| Field | Type | Required | Notes |
|---|---|---|---|
type |
string | agent (default), user or service_account. | |
id |
string | ||
tags |
array |
||
riskTier |
string | low, standard (default), high or critical. | |
ownerUserId |
string | ||
ownerTeamId |
string | ||
orgRole |
string | ||
metadata |
object | ||
delegation |
SyntheticDelegation |
TokenResponse#
OAuth 2.0 token endpoint response (POST {api}/v1/auth/token).
| Field | Type | Required | Notes |
|---|---|---|---|
access_token |
string | yes | |
token_type |
string | yes | |
expires_in |
integer | yes | Lifetime in seconds. |
scope |
string | ||
refresh_token |
string | ||
issued_token_type |
string |
Trace#
Response of GET /v1/traces/{traceId}: span tree, correlated records, timeline and breakdown.
| Field | Type | Required | Notes |
|---|---|---|---|
traceId |
string | yes | |
startedAt |
string | nullable | |
durationMs |
number | nullable | |
spans |
array<TraceSpan> | yes | |
breakdown |
object | ||
timeline |
array |
||
records |
object |
TraceEntry#
One policy considered during evaluation.
| Field | Type | Required | Notes |
|---|---|---|---|
policyId |
string | yes | |
versionId |
string | nullable | |
name |
string | yes | |
effect |
string | yes | |
source |
string | ||
scope |
any | ||
outcome |
string | yes | |
detail |
string |
TraceSearchParams#
Query parameters for GET /v1/traces.
| Field | Type | Required | Notes |
|---|---|---|---|
from |
string | ||
to |
string | ||
principalId |
string | ||
name |
string | ||
service |
string | ||
status |
string | ||
minDurationMs |
number | ||
attribute |
string | ||
limit |
integer | default 50 |
TraceSearchResult#
Response of GET /v1/traces.
| Field | Type | Required | Notes |
|---|---|---|---|
data |
array<TraceSummary> | yes |
TraceSpan#
A stored span (platform or agent-reported).
| Field | Type | Required | Notes |
|---|---|---|---|
traceId |
string | yes | |
spanId |
string | yes | |
parentSpanId |
string | nullable | |
name |
string | yes | |
kind |
SpanKind | ||
service |
string | ||
source |
string | platform or agent. | |
principalType |
string | nullable | |
principalId |
string | nullable | |
startTime |
string | ||
durationMs |
number | ||
status |
SpanStatus | ||
statusMessage |
string | nullable | |
attributes |
object | ||
events |
array |
TraceSummary#
One trace in GET /v1/traces.
| Field | Type | Required | Notes |
|---|---|---|---|
traceId |
string | yes | |
startedAt |
string | ||
durationMs |
number | ||
spanCount |
integer | ||
errorCount |
integer | ||
rootName |
string | nullable | |
principalId |
string | nullable | |
services |
array |
UpdateAgentRequest#
Input to PATCH /v1/agents/{id}.
| Field | Type | Required | Notes |
|---|---|---|---|
name |
string | ||
description |
string | ||
ownerUserId |
string | nullable | |
ownerTeamId |
string | nullable | |
framework |
string | ||
model |
string | ||
riskTier |
RiskTier | ||
tags |
array |
||
metadata |
object |
UpdateAlertRequest#
Input to PATCH /v1/alerts/{id}.
| Field | Type | Required | Notes |
|---|---|---|---|
status |
AlertStatus | ||
assigneeId |
string | nullable | |
resolution |
string | ||
note |
string |
UpdateConnectionRequest#
Input to PATCH /v1/connections/{id}.
| Field | Type | Required | Notes |
|---|---|---|---|
description |
string | ||
config |
object | ||
allowedHosts |
array |
||
secretId |
string | nullable | |
status |
string | ||
timeoutMs |
integer | ||
maxRetries |
integer | ||
signRequests |
boolean | ||
connectorVersion |
string |
UpdatePolicyRequest#
Input to PUT /v1/policies/{id}: saves a new version (exactly one of source or ast).
| Field | Type | Required | Notes |
|---|---|---|---|
source |
string | ||
ast |
object | ||
message |
string | default "" |
|
description |
string |
UpdateSecretRequest#
Input to PATCH /v1/secrets/{id} (metadata only).
| Field | Type | Required | Notes |
|---|---|---|---|
description |
string | ||
metadata |
object | ||
accessPolicy |
SecretAccessPolicy | ||
expiresAt |
string | nullable | |
rotationPolicy |
SecretRotationPolicy | default {"strategy":"manual"} |
|
status |
string |
VerifyAuditRequest#
Input to POST /v1/audit/verify (default: the whole chain).
| Field | Type | Required | Notes |
|---|---|---|---|
fromSeq |
integer | ||
toSeq |
integer | ||
maxEvents |
integer |