Skip to main content

AI Application Firewall API

AI Application Firewall: inspect turns, score voices, verify people, simulations and alerts

  • Base URL: https://api.autessa.com
  • Auth: your API key in the Authorization header, with no Bearer prefix.
  • Guide: AI Application Firewall
  • Status: all 15 operations are live.

Start a verification​

POST/clients/aaf/challenge/start

400 when no method is set up for the person; 429 while the session is locked.

Request body

FieldTypeRequiredDescription
agentIdstringID id.
methodsarray of stringDefault: the policy's.
passphraseIdstringFor PASSPHRASE: which passphrase.
policyNamestring
sessionIdstringYesAttempts and locks are counted per session.
subjectIdstringYour id for the person, for the authenticator app.
voicebooleanTrue when the answer will be spoken.

Response

FieldTypeRequiredDescription
challengeIdstring
methodsarray of string
promptstringWhat to show or say to the person.
curl -X POST "https://api.autessa.com/clients/aaf/challenge/start" \
-H "Authorization: $AUTESSA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"sessionId":"session-123"}'

Check an answer​

POST/clients/aaf/challenge/verify

Request body

FieldTypeRequiredDescription
answerstringA typed answer.
challengeIdstringYes
methodstring
transcriptstringA spoken answer, as transcribed.
voiceScorenumberThat spoken turn's P(synthetic), if you scored it.

Response

FieldTypeRequiredDescription
attemptsLeftinteger
duressbooleanTrue when the duress word was given. For you only: never tell the person.
statusstring
curl -X POST "https://api.autessa.com/clients/aaf/challenge/verify" \
-H "Authorization: $AUTESSA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"challengeId":"challenge-id"}'

What the firewall checked and caught​

GET/clients/aaf/dashboard

Parameters

NameInTypeRequiredDescription
fromquerystringISO-8601 instant or date; default 7 days ago.
toquerystringISO-8601 instant or date; default now.
sourcequerystring
policyNamequerystring
apiKeyIdquerystring

Response

FieldTypeRequiredDescription
byAgentarray of AgentRow
byPolicyarray of PolicyRow
byReasonarray of ReasonCount
byRulearray of RuleRow
pendingApprovalsinteger
previousTotalsTotals
rangeFirewallDashboardRange
recentarray of RecentCatch
seriesarray of SeriesPoint
topIdentitiesarray of IdentityRow
totalsTotals
curl -X GET "https://api.autessa.com/clients/aaf/dashboard" \
-H "Authorization: $AUTESSA_API_KEY"

Sensitive records shown to one end user in the last 24 hours​

GET/clients/aaf/disclosures/{subjectId}

Parameters

NameInTypeRequiredDescription
subjectIdpathstringYes
policyNamequerystring

Response

FieldTypeRequiredDescription
perConversationLimitinteger
perDayLimitinteger
subjectIdstring
todayintegerSensitive records shown to this subject in the last 24 hours.
curl -X GET "https://api.autessa.com/clients/aaf/disclosures/V1StGXR8Z5" \
-H "Authorization: $AUTESSA_API_KEY"

List alerts and flags (newest first)​

GET/clients/aaf/events

Parameters

NameInTypeRequiredDescription
sincequerystringDefault: 24 hours ago.
limitqueryinteger

Response

FieldTypeRequiredDescription
eventsarray of EventDto
curl -X GET "https://api.autessa.com/clients/aaf/events" \
-H "Authorization: $AUTESSA_API_KEY"

Inspect one turn​

POST/clients/aaf/inspect

Check one point of a turn (user input, tool call, tool result, final reply, voice, or the tool definitions an agent is about to get) and get what to do. BLOCK and CHALLENGE carry the policy's safeReply; text phases carry redactedText when personal data was masked. Company-scoped: no resourceId.

Request body

FieldTypeRequiredDescription
argsobjectThe tool's arguments (TOOL_CALL).
audioB64stringCaller audio (base64), scored for a synthetic voice (VOICE).
audioFormatstringDefault pcm16_16k.
callerIdAttestationstringSTIR/SHAKEN verstat (or the same values) for a phone caller.
originOrigin
overridesPolicyDtoPolicy sections (and rules) that replace the policy's for this call only.
phasestringYes
policyNamestringA named API policy; omitted = the company default.
resultobjectThe tool's result (TOOL_RESULT).
sessionIdstringYesYour session or conversation id. Checks that span calls are kept per session.
subjectIdstringYour stable id for the end user (for unusual-request baselines and disclosure limits).
textstringUSER_INPUT and FINAL_RESPONSE.
toolDisclosureToolDisclosureDto
toolGatedbooleanThe tool requires a verified person.
toolNamestringTOOL_CALL and TOOL_RESULT.
toolTypestringOptional tool kind (for example API_CALL, SEND_EMAIL) for the egress checks.
toolsarray of ToolDefinitionDto

Response

FieldTypeRequiredDescription
actionstringDURESS is for you only: never show it to the end user.
anomalyFirewallAnomaly
challengeFirewallChallenge
disclosureFirewallDisclosure
enforcedbooleanFalse in monitor mode: the action is what the policy would do.
eventIdstringThe recorded event, when one was recorded.
findingsarray of FindingDto
profilestring
reasonsarray of string
redactedTextstring
safeReplystring
timingsMsTimingsDto
voiceFirewallVoice
withheldToolsarray of string
curl -X POST "https://api.autessa.com/clients/aaf/inspect" \
-H "Authorization: $AUTESSA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"sessionId":"session-123","phase":"string","text":"Hello, I need help with my order."}'

Start an attack simulation​

POST/clients/aaf/simulations

Runs the attack packs against an Autessa agent (agentId), a named policy, the company default, or your own agent's HTTP endpoint (target). Sending target together with agentId is a 400. Options: categories, languages (en, es) and multiTurn.

Request body

FieldTypeRequiredDescription
agentIdstringID id.
categoriesarray of stringOmitted = all.
languagesarray of string
multiTurnboolean
policyNamestringOr against a named API policy. Neither = the company default policy.
targetSimulationTargetRequestPlanned: attack your own agent's endpoint instead of an Autessa agent or policy.

Response

FieldTypeRequiredDescription
simulationIdstring
curl -X POST "https://api.autessa.com/clients/aaf/simulations" \
-H "Authorization: $AUTESSA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"agentId":"V1StGXR8Z5"}'

Get a simulation's scorecard​

GET/clients/aaf/simulations/{simulationId}

Parameters

NameInTypeRequiredDescription
simulationIdpathstringYes

Response

FieldTypeRequiredDescription
agentIdstringID id.
attemptsarray of AttemptDto
categoriesarray of string
completedAtstring
createdAtstring
errorMessagestringWhy the run failed (FAILED only).
languagesarray of string
multiTurnboolean
policyNamestring
scorecardarray of ScorecardRow
simulationIdstring
statusstring
targetSimulationTargetDto
curl -X GET "https://api.autessa.com/clients/aaf/simulations/V1StGXR8Z5" \
-H "Authorization: $AUTESSA_API_KEY"

List pinned tool definitions​

GET/clients/aaf/tool-pins

Each (server, tool name) definition is pinned the first time it is seen; a later change is CHANGED until a company admin approves it in Autessa.

Parameters

NameInTypeRequiredDescription
statusquerystring
limitqueryinteger

Response

FieldTypeRequiredDescription
pinsarray of ToolPinDto
curl -X GET "https://api.autessa.com/clients/aaf/tool-pins" \
-H "Authorization: $AUTESSA_API_KEY"

Confirm an authenticator with a first code​

POST/clients/aaf/totp/confirm

Request body

FieldTypeRequiredDescription
codestringYes
subjectIdstringYes

Response

FieldTypeRequiredDescription
confirmedboolean
messagestring
curl -X POST "https://api.autessa.com/clients/aaf/totp/confirm" \
-H "Authorization: $AUTESSA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"subjectId":"user-42","code":"123456"}'

Set up an authenticator app for a user​

POST/clients/aaf/totp/enroll

Request body

FieldTypeRequiredDescription
labelstring
phonestring
subjectIdstringYes

Response

FieldTypeRequiredDescription
enrollmentIdstring
otpauthUristringotpauth:// URI for the QR code. Shown once.
secretBase32stringThe same secret for manual entry. Shown once.
curl -X POST "https://api.autessa.com/clients/aaf/totp/enroll" \
-H "Authorization: $AUTESSA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"subjectId":"user-42"}'

A user's authenticator status​

GET/clients/aaf/totp/{subjectId}

Parameters

NameInTypeRequiredDescription
subjectIdpathstringYes

Response

FieldTypeRequiredDescription
confirmedboolean
confirmedAtstring
createdAtstring
enrolledboolean
labelstring
phoneLast4string
curl -X GET "https://api.autessa.com/clients/aaf/totp/V1StGXR8Z5" \
-H "Authorization: $AUTESSA_API_KEY"

Remove a user's authenticator​

DELETE/clients/aaf/totp/{subjectId}

Parameters

NameInTypeRequiredDescription
subjectIdpathstringYes

Response

FieldTypeRequiredDescription
removedboolean
curl -X DELETE "https://api.autessa.com/clients/aaf/totp/V1StGXR8Z5" \
-H "Authorization: $AUTESSA_API_KEY"

Score audio for a synthetic voice​

POST/clients/aaf/voice/score

Request body

FieldTypeRequiredDescription
audioB64string
audioFormatstringDefault: detected from the bytes.
fileUrlstringAn https link to the audio.

Response

FieldTypeRequiredDescription
durationSecondsnumber
labelstring
scorenumber
watermarkboolean
windowsarray of WindowDto
curl -X POST "https://api.autessa.com/clients/aaf/voice/score" \
-H "Authorization: $AUTESSA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"audioB64":"UklGRiQAAABXQVZF"}'

Today's word of the day​

GET/clients/aaf/word-of-day

Needs the key permission AAF_WORD_OF_DAY (403 without it); 404 when the word of the day is off.

Parameters

NameInTypeRequiredDescription
agentIdquerystringFor a policy with scope AGENT.

Response

FieldTypeRequiredDescription
datestringThe local date the word belongs to (yyyy-MM-dd).
duressWordstringOnly when the duress word is turned on.
timeZonestring
validUntilstringUTC time the word changes.
wordstring
curl -X GET "https://api.autessa.com/clients/aaf/word-of-day" \
-H "Authorization: $AUTESSA_API_KEY"