Getting started with 1Password for your growing team, or refining your setup? Our Secured Success quickstart guide is for you.
Forum Discussion
Former Member
3 years agoVault Item Details Don't Include Password or 2FA Code
Hello,
I'm in the process of setting up a Secrets Automation Workflow using a docker-compose based https://developer.1password.com/docs/connect/connect-api-reference/#item-object. I have the crede...
Nhat_Nguyen
1Password Team
3 years agoHello @baileymalonerover,
Thank you for reaching out to us. When making a GET request for an item, 1Password should return an item object with all information about that item, including its password, OTP (Secret link only, but we can use python libraries such as pyotp
to generate OTP codes from the secret) and custom fields as described here.
That said, this example code snippet should let us get an item with its full details. Please give it a try and let me know how it works.
import onepasswordconnectsdk
```
from onepasswordconnectsdk.client import (
new_client
)
creates a client by supplying hostname and 1Password Connect API token
client = new_client(
"http://localhost:8080",
"
item = client.get_item("
```