---
title: "Get an item"
method: GET
path: "/credentials/{credential_id}"
tags: ["Credential"]
---

# Get an item

`GET /credentials/{credential_id}`

## Path parameters

- `credential_id` integer, required

## Response `200`

The requested item

- Credential
  - `item_id` integer — generated by uniqid()
  - `user_id` string
  - `vault` integer — The id of the vault the item belongs to
  - `label` string — Name of the item
  - `description` string — Description the user has given to the item
  - `created` string, dateTime — Time the item was created
  - `changed` string, dateTime — Time the item was changed
  - `tags` Tag[]
    - `tag_id` integer
    - `name` string
  - `email` string — Saved e-mail
  - `username` string — Saved username
  - `password` string — The stored password, encrypted with sjcl
  - `url` string — Saved url of the item
  - `favicon` string — Fav icon from the url
  - `renew_interval` integer — x
  - `expire_time` string, dateTime — Timestamp when the password expires, set NULL to not expire items
  - `delete_time` string, dateTime — If an item is deleted this contains the timestamp, else it's 0
  - `files` File[] — An array containing encrypted files
    - `file_id` integer — The file id, generated by uniqid()
    - `filename` string — The uploaded file name
    - `guid` string — The guid of the file
    - `size` integer — Size of the file in bytes
    - `file_data` string — sjcl encrypted file (only given when downloading a file)
    - `created` string, dateTime
  - `custom_fields` CustomField[] — An array of user defined fields
    - `label` string — Label of the custom field
    - `value` string — Value of the custom field
  - `otp` object — This field holds the One Time Password data
    - `otp_secret` string
    - `qr_uri` string

## Other responses

- `default` — Unexpected error

## Changes

- **2016-09-08** `e2294e4e3228` — 1 info
  - endpoint added
- **2016-09-08** `d50f6f1346e0` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/nextcloud/apis/passman-api/changes/credentials/:credential_id/get.md)

---

[API](https://skmtc.dev/nextcloud/apis/passman-api.md) · [All operations](https://skmtc.dev/nextcloud/apis/passman-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/nextcloud/passman-api/revisions/79e52d7d686a/schema)
