How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Mabl Agent Session API

The AgentSession API from Mabl — 22 operation(s) for agentsession.

Mabl Agent Session API is one of 113 APIs that Mabl publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include AgentSession. The published artifact set on APIs.io includes an OpenAPI specification.

This API exposes 27 operations across 22 paths, and defines 177 schemas. It is described by OpenAPI 3.2.0, at version 0.599.3.1792436330.

Requests are made against a single base URL, /.

27 operations 22 paths 177 schemas 2 DELETE9 GET2 PATCH13 POST1 PUT

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
0.599.3.1792436330
Server
/
Authentication
HTTP Basic, API Key
Resource Areas
1

Authentication & Security 2

Mabl Agent Session API declares 2 security schemes for authenticating requests. It accepts HTTP basic authentication (basicAuth). An API key is passed in the header as Authorization (bearerAuth). By default, every request must be authenticated.

Paths & Operations 27

Across 22 paths, the API surfaces 27 operations — 2 DELETE, 9 GET, 2 PATCH, 13 POST, 1 PUT. Each is listed below with its method, path, parameters, and response codes.

AgentSession 27
GET
/agentSession/{id}/triggers
List a session's triggers
queryAgentTriggers 4 params → 200401403404default
POST
/agentSession/{id}/triggers
Arm a trigger that wakes an agent
createAgentTrigger 1 param body → 201200400401403404409429
DELETE
/agentSession/{id}/triggers/{trigger_id}
Cancel a trigger
removeAgentTrigger 2 params → 204401403404default
POST
/agentSession/{id}/context/actions
Record something the user did, for the agent running this session
recordAgentSessionContextAction 1 param body → 200401403404default
POST
/agentSession/{id}/inbox/messages
Send a message to an agent
sendAgentInboxMessage 1 param body → 200401403404default
GET
/agentSession
Query agent sessions
queryAgentSessions 14 params → 200400401403default
POST
/agentSession
Create a new agent session
createAgentSession body → 201400401403default
GET
/testImpact
Query test impact analysis sessions
queryTestImpactSessions 6 params → 200400401403default
GET
/testImpact/references
Query change references with their newest test impact analysis
queryTestImpactReferences 5 params → 200400401403default
GET
/testImpact/{id}
Get a test impact analysis
getTestImpactAnalysis 1 param → 200401404default
GET
/agentSession/{id}
Get an agent session by ID
getAgentSession 1 param → 200400401403404default
DELETE
/agentSession/{id}
Delete an agent session
deleteAgentSession 1 param → 204400401403404default
PATCH
/agentSession/{id}
Update an agent session
updateAgentSession 2 params body → 200400401403404409default
PATCH
/agentSession/{id}/startupParams
Update an agent session's startup params
updateAgentSessionStartupParams 2 params body → 200400401403404409default
POST
/agentSession/{id}/beginResume
Begin resuming an agent session (flip it to the transient resuming status)
beginResume 1 param → 200400401403404409default
POST
/agentSession/{id}/review
Record the outcome of reviewing a finished test-authoring session
reviewAgentSession 1 param body → 200400401403404409default
PUT
/agentSession/{id}/messages
Upsert messages in an agent session
upsertAgentSessionMessages 1 param body → 200400401403404default
POST
/agentSession/{id}/messages
Append a message to an agent session
appendAgentSessionMessage 1 param body → 200400401403404default
POST
/agentSession/{id}/artifacts
Attach artifacts to an agent session
upsertAgentSessionArtifacts 1 param body → 200400401403404default
POST
/agentSession/{agent_session_id}/cloudInstance
Create a new cloud instance for a session
createAgentCloudInstance 1 param body → 201400401403404409default
POST
/agentSession/{agent_session_id}/agentToken
Mint a token for an agent acting within the caller's request
createAgentSessionToken 1 param → 201400401403default
GET
/agentSession/{agent_session_id}/cloudInstance/{cloud_instance_id}
Get a cloud instance by ID
getAgentCloudInstance 2 params → 200400401403404default
POST
/agentSession/{agent_session_id}/cloudInstance/{cloud_instance_id}/start
Start a cloud instance
startAgentCloudInstance 3 params → 200400401403404409429default
POST
/agentSession/{agent_session_id}/cloudInstance/{cloud_instance_id}/terminate
Terminate a cloud instance
terminateAgentCloudInstance 4 params → 200400401403404409default
POST
/agentSession/{agent_session_id}/cloudInstance/{cloud_instance_id}/end
End a cloud instance
endAgentCloudInstance 3 params body → 200400401403404409default
GET
/cron/agentSession/tryScheduleRateLimited
Try to schedule rate-limited agent sessions
tryScheduleRateLimitedAgentSessions → 200default
GET
/cron/agentSession/reapStuckInstances
Reap agent cloud instances abandoned in a non-terminal status
reapStuckAgentCloudInstances → 200default

Schemas 177

The contract defines 177 schemas that model the data the API accepts and returns. The most detailed are TestCreationPlanningTestInformation (26 properties), AgentSession (24 properties), TestAuthoringSessionStartupParams (21 properties), AgentTrigger (20 properties). Each schema is shown below with its type and property counts.

ReviewAgentSessionRequest
object
Request to record a review outcome on a finished authoring session
2 properties 1 required
AgentSessionQueryResult
object
Result of querying agent sessions
2 properties 1 required
ResumableTestInformationUpdates
object
The allowlisted subset of agentstate.testInformation that the cloud TAA resume flow may merge field-by-field. Security-reviewed: these are the only nested fiel…
6 properties
MessagePartType
string
DeploymentAnalysisSessionStartupParams
object
1 property
TestImpactRunContextPlan
object
One run policy (plan) that includes the test, when includeplans was requested.
7 properties 1 required
TestImpactMatch
object
8 properties 6 required
UriFileSource
object
2 properties
TestImpactResult
object
16 properties 9 required
CaseLinkPlatformEnum
string
The external test case platform a case link belongs to.
ArtifactEntityKind
string
The kind of entity that a remote artifact references. PascalCase: TypeScript consumers compare these values literally.
BaseArtifact
object
1 property 1 required
AgentSessionContextReference
object
The thing the user pointed the session at. One shape for every kind rather than a variant per action, mirroring the one the clients already use: which fields a…
9 properties
AgentTriggerSource
string
UpsertAgentSessionArtifactsRequest
object
Request to attach artifacts to an agent session without writing a message. Object-wrapped rather than a bare array because Swagger Inflector cannot bind a top-…
1 property 1 required
AgentSessionStartupParams
object
1 property 1 required
BaseAgentCloudInstanceLifecycleEvent
object
1 property
TestTypeEnum
string
Type of test
AgentTriggerEventName
string
What happened to the entity. completed applies to planrun, testrun and failureanalysis; ended, awaitinginput and finalized apply to agentsession. Other pairs a…
TestImpactSessionQueryResult
object
Result of querying test impact analysis sessions
2 properties 1 required
TestImpactGapCandidate
object
An existing test near a coverage gap, and where it could be extended.
6 properties 1 required
TestImpactRunHistoryStatusEnum
string
The statuses runhistory can report. A strict subset of TestRun.status: a run is reported only when it carries a start time AND a status listed here. Runs that…
ToolCallPartInput
object
1 property
NextStepGenerationState
object
Agent model state tracked between generation requests
2 properties
WorkspaceScopeChangedData
object
Marks the point in a workspace results chat where the user changed the dashboard filters. Turns before it answered from previousscope; turns after it answer fr…
3 properties
ImageArtifactData
object
3 properties
TestImpactReference
object
One change reference and the newest live test impact analysis that names it
3 properties 3 required
AgentSessionMessage
object
1 property
CreateAgentSessionRequest
object
Request to create a new agent session
8 properties 2 required
AgentSessionContextConfigurationOrigin
string
Which configuration the user edited, which is the only thing that changes how the edit is put to the agent. live is the configuration the conversation is worki…
ToolOutputLogLinesContentItem
object
Structured log lines for monospace / level-colored rendering (parity with screenshot-style rich blocks)
3 properties
ContentToolOutput
object
2 properties
SpecialMessage
object
2 properties
ToolOutputHarUrlContentItem
object
Reference to a HAR file artifact (render like screenshot file URIs in the client)
3 properties
ToolOutputHarJsonContentItem
object
Inline W3C HAR JSON for rich network waterfall rendering
2 properties
AgentCloudInstanceLifecycleEvent
object
1 property
AgentTriggerState
string
ChangeReference
object
A reference to the change an analysis is about, in the system that owns it. Supply every reference you know (a pull request and the ticket it closes, for examp…
4 properties 1 required
TestImpactReferenceQueryResult
object
One page of change references, each with its newest test impact analysis
2 properties 1 required
ToolOutputImageDataContentItem
object
2 properties
AgentType
string
TestObjectiveState
string
Whether the steps of this test version have been checked against the objective summary, and what the check found. unverified means the summary has not been che…
AgentReviewSessionStartupParams
object
8 properties
TestImpactShadowSessionStartupParams
object
Context for a hidden shadow session that replays a completed test impact analysis session under an experimental variant for internal comparison. Not part of an…
5 properties
GuardrailRefusal
object
The guardrail policy that refused an agent request.
6 properties
AppSummarySessionStartupParams
object
1 property
GuardrailApprovalState
string
Where a guardrail approval stands. PENDING awaits a decision and expires undecided after 24 hours; APPROVED lets the agent repeat the request, as often as it d…
RepairNotesSessionStartupParams
object
Context for a runtime repair notes session: the test run whose failure is being diagnosed. testrunid is required.
2 properties
TestGenerationScreenshotReference
object
A reference to a screenshot used during test generation
7 properties 2 required
DevicePresetTypeEnum
string
Preset device configuration
AppModelingSessionStartupParams
object
1 property
ArtifactData
object
1 property
JsonArtifactData
object
2 properties
CloudInstanceLifecycleData
object
2 properties
TestImpactCoverageGap
object
One coverage gap, with the nearest existing tests and how the gap could be closed.
4 properties 4 required
NotifyOnComplete
object
Arms a trigger in the same call that starts the work, so the session is woken when the work completes and no completion can land before the trigger exists.
2 properties 1 required
TestObjective
object
What this test version is trying to accomplish, in natural language. Version-scoped, so each version records the objective it was authored against rather than…
4 properties
SpecialMessageData
object
1 property
TextToolCallPartInput
object
2 properties
TerminalAgentInstanceStatus
string
Statuses an instance can transition to as it stops doing work. Terminal for the pod (which exits and releases its quota slot); whether the task can continue is…
ExploratoryQaSessionStartupParams
object
Context for an exploratory QA session: the finished test impact analysis session it explores the change of, when it started from one, and where to run the app.…
7 properties
DeviceOrientationEnum
string
Device orientation
FileSource
object
1 property
CreateAgentCloudInstanceRequest
object
Request to create a new cloud instance
8 properties
FileAssertionSessionStartupParams
object
1 property
TestImpactSessionStartupParams
object
Context for a test impact analysis session. Test impact sessions are written under the server-agents service credential rather than the caller's, so createdbyi…
6 properties
ModelMessage
object
2 properties
CodeExecutionResultPart
object
The result of the sandbox executing the immediately preceding CodeExecutionCallPart. Bundled with the call on the same model turn; there is no separate tool-ou…
3 properties
ModelMessagePart
object
1 property
BaseMessage
object
6 properties 4 required
ToolCallPart
object
5 properties
LocalSettableAgentInstanceStatus
string
AgentInstanceStatus values that local clients (e.g. mabl CLI) can write via updateAgentSession. Subset of AgentInstanceStatus that excludes cloud-orchestration…
InlineArtifact
object
5 properties
JsonToolOutput
object
2 properties
ToolOutputContentItemType
string
TestImpactAnalysis
object
One test impact analysis, with the request it ran and the result it returned
3 properties 1 required
TextPart
object
4 properties
AppendAgentSessionMessageRequest
object
Request to append a message to an agent session
2 properties 1 required
AgentTriggerQueryResult
object
2 properties 1 required
ThinkingPart
object
3 properties
TestImpactRunContext
object
Screening facts about the test itself — state, labels, reliability history, recent runs, and run-configuration defaults — attached so a caller can decide wheth…
14 properties
CaseLinkIntent
object
One external test case an authoring session links the test it saves to. Server-resolved at session creation; see caselinks.
3 properties 3 required
TestCreationSnippetOption
object
A recommended code snippet option for a task
4 properties 4 required
TestCreationPlanningTestInformation
object
Test configuration and metadata selected during planning
26 properties
RecordAgentSessionContextActionRequest
object
One thing the user did. Deliberately carries no message text and no storage location: the text is composed by the server from the action and its metadata, whic…
7 properties 1 required
UserRequestedStopData
object
3 properties
AgentSessionArtifacts
object
An agent session's artifacts, without the rest of the session.
2 properties 1 required
TestAuthoringSessionStartupParams
object
21 properties
UserMessagePart
object
1 property
AgentSessionContextCaseProvider
string
Which test case management system caseidentifier belongs to. Both are read by the same tool, but they are named separately because their identifiers are not in…
UpdateAgentSessionRequest
object
Partial-update request for an agent session. All fields are optional; only fields present in the body are updated.
1 property
BaseToolOutputDataContentItem
object
1 property
UpdateAgentSessionStartupParamsRequest
object
Partial update of the resumable subset of an agent session's startupparams field, used by the cloud TAA continuation flow to roll the session's "latest used /…
10 properties
AgentSessionContextPageEntity
string
What the page is about. A closed set for the same reason the actions are: each member decides what the server says to the agent, and a member meaning "somethin…
AgentSessionContextAction
string
What the user did. A closed set, because each member decides what the server does and what it says to the agent — there is no member meaning "something else, h…
RemoteArtifact
object
5 properties
TextToolOutput
object
2 properties
TestImpactRequest
object
Inputs for the test-impact agent. The caller (typically a coding agent) is expected to enumerate every user-facing area a change reaches, in product/user vocab…
8 properties 2 required
ToolOutputFileUrlContentItem
object
2 properties
AuthoringMode
string
Whether a testauthoring session authored a new test or started from one that already existed. Absent is not creation — it means the session predates the field…
AgentCloudInstanceStopped
object
3 properties
GuardrailApprovalKind
string
Who decides a guardrail approval. SELF is decided by the person the agent acts for; WORKSPACE, for an agent acting for an API key, by a workspace owner or edit…
TestCreationFlowOption
object
A recommended flow option for a task
4 properties 4 required
TestCreationPlanningSessionStartupParams
object
3 properties
ToolOutputJsonContentItem
object
2 properties
MessageRole
string
TestCreationTaskPlan
object
A single task in a test plan with suggested flows and snippets
6 properties 5 required
AgentTriggerEntityType
string
AgentSessionSummary
object
A summary of an agent session without messages (used in list/query responses)
17 properties 8 required
ToolOutputType
string
WorkspaceResultsScopeSnapshot
object
The filters a workspace results chat session was scoped to at a point in time.
6 properties 2 required
PlanRunAnalysisSessionStartupParams
object
1 property
AppModelingRunSessionStartupParams
object
1 property
BaseFileSource
object
1 property
RateLimitedSchedulingResult
object
Result of the rate-limited session scheduling cron job
2 properties 2 required
AgentCloudInstanceStarted
object
4 properties
AgentTrigger
object
A condition that wakes an agent session once. Registered by the session's own agent or by whoever may write the session, and fired by the system, never by a mo…
20 properties 9 required
TestRunAnalysisSessionStartupParams
object
1 property
AgentSessionSourceEnum
string
Origin of an agent session — who or what initiated it. userweb, usermcp, usercli distinguish the human-driven entry point. autotra marks sessions automatically…
ErrorResponseGeneric
object
5 properties
JsonToolCallPartInput
object
2 properties
ToolOutputContentItem
object
1 property
TestImpactRunContextQuality
object
The test's reliability history over the result's qualitywindow, computed server-side by the product's canonical quality formula (the same source as the test-qu…
6 properties 2 required
MobilePlatformEnum
string
The mobile platform associated with this object
BranchMergeSkippedData
object
4 properties
ToolCallPartInputType
string
ExecutionMetrics
object
6 properties
ToolOutputTextContentItem
object
2 properties
AgentSessionContextPage
object
Where the user is while they talk to the agent, so a workspace-scoped assistant knows which run or deployment "this one" means. State rather than an event, and…
4 properties 2 required
AgentInboxMessage
object
A message queued for an agent. Written by whoever may send to the session, read later by the agent itself. Immutable once stored: the only way to change what a…
8 properties 6 required
CodeExecutionCallPart
object
Code the model asked the Gemini built-in Python execution sandbox to run. Emitted alongside a matching CodeExecutionResultPart on the same model turn — the san…
4 properties
CloudAgentPlatform
string
The platform the agent operates on
ErrorJsonToolOutput
object
2 properties
Artifact
object
1 property
AgentInstanceStatus
string
The status of the latest agent instance driving a session. The same enum is used for cloud and local instances. Cloud-only values (queued, terminating, ratelim…
AgentCloudInstanceTerminationReason
string
The reason for terminating a cloud instance. 'infrashutdown' covers any shutdown signal from the runtime environment (K8s pod eviction, Cloud Run instance cycl…
AgentInboxSenderType
string
Who the message is from, which decides how it reaches the model. user is a person, and their text is marked as human authorship. system is mabl speaking — a no…
ErrorContentToolOutput
object
2 properties
AgentCloudInstance
object
17 properties 9 required
TestCreationOutline
object
A test outline with tasks and suggested flows and snippets
3 properties 2 required
TestImpactRunContextRunHistory
object
A sample of this test's recent runs: the runsexamined most recently RECORDED ones, where recorded means when the run row was created — which is not the start c…
6 properties 3 required
StuckInstanceReapResult
object
Result of the stuck agent cloud instance reaping cron job
2 properties 2 required
AgentSubtype
string
Subtype for agentreview agents to distinguish different review purposes
SummarizeContextData
object
2 properties
TestImpactRunContextDefaults
object
Configuration recorded on the test itself at authoring time — what a bare run would resolve, not necessarily what the test's plans use at run time.
5 properties
ToolOutputMessagePart
object
4 properties
TextArtifactData
object
2 properties
ExecutionDeniedToolOutput
object
2 properties
AgentSessionContextTrackerPlatform
string
Which tracker a trackerissuereferenced issue lives in.
ErrorTextToolOutput
object
2 properties
TestImpactQualityWindow
object
The time window (epoch ms, inclusive) the runcontext quality metrics were computed over.
2 properties 2 required
SendAgentInboxMessageRequest
object
A message to queue for an agent, and optionally what the user was doing when they sent it. Everything else — who sent it, whether a person typed it, where it s…
3 properties 1 required
CreateAgentTriggerRequest
object
An event trigger names entitytype, entityid and event; a timer names fireafterseconds or intervalseconds and no entity. An event trigger may add fireaftersecon…
7 properties
UpsertAgentSessionMessagesRequest
object
Request to upsert messages in an agent session. Messages are matched by ID - new messages are inserted, existing messages are updated.
4 properties 1 required
LogLineEntry
object
A single log line for structured console or diagnostic output
3 properties 1 required
AgentStartupParams
object
2 properties
AgentSession
object
24 properties 9 required
ToolOutputImageUrlContentItem
object
2 properties
Base64FileSource
object
2 properties
GuardrailApprovalRef
object
An approval a guardrail policy asks for. While it is PENDING, stop: give the person the url, tell them the request is waiting for approval, and do not repeat t…
5 properties
AgentSessionStartupParamsType
string
UserMessage
object
2 properties
ToolOutput
object
1 property
AgentTriggerDisarmReason
string
TestObjectiveSource
string
Who authored the objective summary.
TestImpactInitiatingAuthType
string
The authentication mode of the caller that initiated a test impact analysis. apikey callers carry no user identity, so initiatinguserid is expected to be absen…
MessagePart
object
1 property
AgentSessionReviewOutcome
string
What the user decided about a finished authoring task. accepted keeps the authored work; closed discards the task. Neither deletes anything on its own; a calle…
ToolOutputMessage
object
2 properties
AgentInstanceType
string
Indicates what kind of agent instance is driving a session. cloud means a server-managed cloud instance owns the lifecycle (created via the cloudInstance endpo…
ToolOutputFileDataContentItem
object
3 properties
AgentTriggerType
string
EndAgentCloudInstanceRequest
object
Request to end a cloud instance with a terminal status
2 properties 1 required
FilePart
object
4 properties
AgentSessionContextAttachment
object
A file the user attached. The bytes ride inline on this request and are written to the workspace's storage before anything is persisted on the session, so raw…
4 properties 4 required
TestImpactSessionSummary
object
One test impact analysis session and what it triggered
9 properties 6 required
AgentSessionContextActionResult
object
What was queued, and what the agent will know the named thing by.
2 properties 1 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

mabl-agentsession-api-openapi.yml Raw ↑

Other APIs Mabl publishes across the network.

Mabl API
Mabl Applications API
Mabl Credentials API
Mabl Database Connections API
Mabl Deployment Events API
Mabl Environments API
Mabl Flows API
Mabl Issues API
Mabl Test Runs API
Mabl Tests API
Mabl Users API
Mabl Ab Test Config API
Where this information came from

This is an independent, third-party profile of Mabl Agent Session API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.