Skip to content

Approve a payment-tier session

POST
/api/v1/browser-sessions/{session_id}/approve
curl --request POST \
--url https://api.ultimateteam.ai/api/v1/browser-sessions/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/approve \
--header 'X-API-Key: <X-API-Key>'

Approves a payment-tier browser session that is awaiting human approval. Triggers sandbox launch.

session_id
required
Session Id

The browser session UUID

string format: uuid

The browser session UUID

Successful Response

Media typeapplication/json
BrowserSessionResult

Result returned after a browser session lifecycle event.

Returned by request_session(), on_approval(), and complete_session() to give callers the current state.

Attributes: session_id: Unique session identifier. status: Current lifecycle status. approval_id: AutonomyEngine approval request ID (payment tier). recording_gcs_path: GCS path to rrweb recording JSON. summary: Structured session summary. screenshots: List of GCS screenshot paths. credits_consumed: Credits used during the session. duration_ms: Session duration in milliseconds. error_message: Error description if session failed.

object
approval_id
Any of:
string
credits_consumed
Credits Consumed
integer
0
duration_ms
Any of:
integer
error_message
Any of:
string
recording_gcs_path
Any of:
string
screenshots
Screenshots
Array<string>
session_id
required
Session Id
string format: uuid
status
required
SessionStatus

Lifecycle states for a browser session.

string
Allowed values: pending approved running completed failed timeout
summary
Any of:
object
key
additional properties
any
Example
{
"credits_consumed": 0,
"status": "pending"
}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{
"detail": [
{
"ctx": {},
"input": "example",
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}