Skip to content

Vault credentials

See Vault: sign-ins for agents for what a credential does in a browser.

A password and an authenticator key go in and never come back out: no answer of this API carries one. To see a stored password, a member opens the credential on the dashboard’s Vault page.

{
"id": "5509b68e-…",
"name": "GitHub, deploy bot",
"sites": ["github.com"],
"username": "deploy@acme.dev",
"hasTotp": true,
"autofill": "auto",
"createdAt": "2026-12-03T09:00:00.000Z",
"updatedAt": "2026-12-03T09:00:00.000Z",
"lastUsedAt": "2026-12-03T12:36:02.000Z",
"uses": 3
}

uses and lastUsedAt count the times a browser was given the credential to fill.

GET /vault/credentials → a page of credentials, by name

query keeps the credentials whose name, username or a site contains it: ?query=github.com.

POST /vault/credentials → 201 the credential

Terminal window
curl -X POST https://browser.datum.network/api/v4/vault/credentials \
-H "X-Browser-Use-API-Key: $DATUM_API_KEY" -H "Content-Type: application/json" \
-d '{"name": "GitHub, deploy bot", "sites": ["github.com"], "username": "deploy@acme.dev", "password": "…"}'
Field
sites Required, 1 to 20. github.com covers https://github.com and its subdomains; example.com:8443 its own port; http://localhost:3000 plain HTTP, written whole. An address is cut down to its site
password Required
username The user name or email
name Up to 100 characters. The first site when left out
totp An authenticator’s setup key (base32), or its otpauth://totp/… address. Browsers then fill the current code too
autofill auto (the default): filled when the site shows a sign-in form. ask: only when the agent asks (DatumVault.fill)

422 for a site that is not one (invalid_site) or an authenticator key that cannot be read (invalid_totp); 409 for a 501st credential (too_many_credentials).

  • GET /vault/credentials/{id} → the credential
  • PATCH /vault/credentials/{id} → the credential. Takes the create’s fields; a field left out is kept, sites sent replaces the list, "totp": null removes the authenticator. Running browsers use the new values within seconds.
  • DELETE /vault/credentials/{id} → 204. Browsers no longer fill it.

Every change is in the credential’s activity on the dashboard, with the key that made it.