Skip to main content
POST
/
v1beta
/
secrets
/
{id}
/
totp
JavaScript
import Indices from 'indicesio';

const client = new Indices({
  apiKey: process.env['INDICES_API_KEY'], // This is the default and can be omitted
});

const response = await client.secrets.getTotp('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e');

console.log(response.id);
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "code": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.indices.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Enter your API key as the bearer token. Set header: Authorization to Bearer <api_key>

Path Parameters

id
string<uuid>
required

The UUID of the secret.

Response

Successful response

id
string<uuid>
required

Unique identifier of the secret.

code
string
required

Current 6-digit TOTP code.