# fill_credential

Fill a saved username, password or one-time code into the focused field; you never see the secret.

Fill a saved username, password or one-time code into the focused field; you never see the secret.

| | |
|---|---|
| REST operation | [`fillCredential`](/reference/rest/credentials/#fillcredential) (`POST /v1/devices/{deviceId}/credentials/fill`) |
| Needs a device | yes |
| Read only | no |
| Profiles | `core`, `testing`, `full` |

## Parameters

| Name | Required | Type | Goes to | What it is |
|---|---|---|---|---|
| `device_id` | yes | string | path `deviceId` | Stable device id such as `ios:00008120-001A2B3C4D5E6F70` or `android:R58M123ABC`. |
| `lease` | no | string | header `Silan-Lease` | Lease token when the device is claimed. |
| `site` | yes | string | body `site` | Site id the person set up, such as "amazon.co.uk". |
| `field` | yes | `username`, `password`, `oneTimeCode` | body `field` |  |

## Example call

```text
fill_credential({ device_id: "ios:00008120-001A2B3C4D5E6F70", site: …, field: … })
```