---
title: "GET /vault/totp/{id}"
method: GET
path: "/vault/totp/{id}"
---

# GET /vault/totp/{id}

`GET /vault/totp/{id}`

## Request

- Base URL: `https://api.useanima.sh/v1`
- URL: `https://api.useanima.sh/v1/vault/totp/{id}`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

## Path parameters

- `id` string, required: Credential identifier

## Query parameters

- `agentId` union: Agent identifier. Optional when using an agent API key (resolved automatically); required when using a master key.
  - string
  - string
- `reveal` boolean: Return unmasked plaintext fields. Requires master key auth. Audit-logged as 'access_reveal'.

## Response `200`

OK

- object: Time-based one-time password output
  - `code` string, required: Current TOTP code
  - `period` integer, required: Time period in seconds before the code rotates

---

[API](https://skmtc.dev/useanima/apis/anima-api.md) · [All operations](https://skmtc.dev/useanima/apis/anima-api/llms.txt) · [OpenAPI document](https://skmtc.dev/useanima/apis/anima-api/revisions/aaa148188980?raw)
