Built-in fields
Each item category includes a set of default fields, some of which may be specific to the category. You can identify available built-in fields by looking at the JSON template for the item category:View all categories
View all categories
- API Credential
- Bank Account
- Credit Card
- Crypto Wallet
- Database
- Document
- Driver License
- Email Account
- Identity
- Login
- Medical Record
- Membership
- Outdoor License
- Passport
- Password
- Reward Program
- Secure Note
- Server
- Social Security Number
- Software License
- SSH Key
- Wireless Router
username, password, and notesPlain.
View a Login item JSON template
View a Login item JSON template
id from the JSON template as the field in the assignment statement. Don’t include a fieldType for built-in fields.
For example, to add a note to a Login item using an assignment statement:
Custom fields
Custom fields can be added to any item, regardless of the item’s category. Use thefieldType with assignment statements and the type with an item JSON template. Available custom field types are:
fieldType | type | description |
|---|---|---|
password | CONCEALED | A concealed password. |
text | STRING | A text string. |
email | EMAIL | An email address. |
url | URL | A web address to copy or open in your default web browser, not used for autofill behavior. Use the --url flag to set the website where 1Password suggests and fills a Login, Password, or API Credential item. |
date | DATE | A date with the format YYYY-MM-DD. |
monthYear | MONTH_YEAR | A date with the format YYYYMM or YYYY/MM. |
phone | PHONE | A phone number. |
otp | OTP | A one-time password. Accepts an otpauth:// URI as the value. |
file | N/A | A file attachment. Accepts the path to the file as the value. Can only be added with assignment statements. |