Fill Credential Reference
POST /v1/browser/interactions/fill-credential
Fill one sign-in or address field in your browser session from a credential in your vault.
Send JSON with vault_id, credential_id, session_id, field (username, password or
address), selector (1 to 500 characters) and, optionally, origin; no other keys. For
username and password the credential must be an enabled, unexpired login with a saved https
origin, and any origin you pass must equal it; for address you must pass an https origin.
The saved value goes from the vault to the browser and is never returned: the response only
confirms success, filled and field.
Authentication
Requires authentication via: OAuth2PasswordBearer.
Parameters
| Name | In | Type | Required | Description | Constraints |
|---|---|---|---|---|---|
X-API-Key | header | string | null | No | nullable |
Responses
200
Successful Response
application/json
Resolved schema:
{}
400
The field could not be filled. Every failure gives this one answer: a malformed or extra body field; a session not found, expired or not yours; a vault or credential not found, not yours, disabled, expired or of the wrong type; an origin that does not match; or a fill the browser did not confirm.
No response body.
401
No credentials, or the Bearer token / X-API-Key is invalid.
No response body.
403
The account is disabled, or a guest token was used.
No response body.
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 |