Fill Form
POST /v1/browser/interactions/fill
Fill a form field
Authentication
Requires authentication via: OAuth2PasswordBearer.
Parameters
| Name | In | Type | Required | Description | Constraints |
|---|---|---|---|---|---|
X-API-Key | header | string | null | No | nullable |
Request Body
Required: Yes
application/json
Resolved schema:
{
"properties": {
"selector": {
"type": "string",
"title": "Selector"
},
"value": {
"type": "string",
"title": "Value"
},
"session_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Session Id"
},
"timeout": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Timeout",
"default": 30000
}
},
"type": "object",
"required": [
"selector",
"value"
],
"title": "BrowserFillRequest",
"description": "Request schema for filling form fields"
}
Field details:
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
selector | string | Yes | ||
value | string | Yes | ||
session_id | string | null | No | nullable | |
timeout | integer | null | No | nullable |
Responses
200
Successful Response
application/json
Resolved schema:
{
"properties": {
"success": {
"type": "boolean",
"title": "Success"
},
"message": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Message"
},
"execution_time": {
"type": "number",
"title": "Execution Time"
},
"session_id": {
"type": "string",
"title": "Session Id"
},
"data": {
"anyOf": [
{
"type": "object"
},
{
"type": "null"
}
],
"title": "Data"
}
},
"type": "object",
"required": [
"success",
"execution_time",
"session_id"
],
"title": "BrowserInteractionResponse",
"description": "Generic response for browser interactions"
}
Field details:
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
success | boolean | Yes | ||
message | string | null | No | nullable | |
execution_time | number | Yes | ||
session_id | string | Yes | ||
data | object | null | No | nullable |
422
Validation Error
application/json
Resolved schema:
{
"properties": {
"detail": {
"items": {
"properties": {
"loc": {
"items": {
"anyOf": [
{
"type": "string"
},
{
"type": "integer"
}
]
},
"type": "array",
"title": "Location"
},
"msg": {
"type": "string",
"title": "Message"
},
"type": {
"type": "string",
"title": "Error Type"
}
},
"type": "object",
"required": [
"loc",
"msg",
"type"
],
"title": "ValidationError"
},
"type": "array",
"title": "Detail"
}
},
"type": "object",
"title": "HTTPValidationError"
}
Field details:
| Field | Type | Required | Description | Constraints |
|---|---|---|---|---|
detail | array<object> | No | ||
detail[] | object | No | ||
detail[].loc | array<string | integer> | No | ||
detail[].loc[] | string | integer | No | ||
detail[].msg | string | No | ||
detail[].type | string | No |