TOTP

API for creating and deleting Time-based One-Time Password or TOTP.

TOTP are used to generate unique, temporary passwords as an added layer of protection when accessing sensitive keys or credentials from Nitride.

There are 2 API operations available for TOTP:

Create a new TOTP

PUT /v1/auth/ratls/totp

Headers

Name
Value
Required

Content-Type

application/json

Authorization

Bearer <token>

Body

Name
Type
Description
Required

created

integer (int64)

Creation timestamp, generated by the Nitride plugin

expiration

integer (int64)

Expiration timestamp of the TOTP

policy

string

Name of the policy to allow updates for

uuid

string

Identifier for the totp and the token itself, generated by the Nitride plugin.

Request samples

const response = await fetch('/v1/auth/ratls/totp', {
    method: 'PUT',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      "created": 0,
      "expiration": 0,
      "policy": "text",
      "uuid": "text"
    }),
});
const data = await response.json();

Response samples

{
  "data": {
    "created": 0,
    "expiration": 0,
    "policy": "text",
    "uuid": "text"
  }
}

Deleting an existing TOTP

DELETE/v1/auth/ratls/totp/{totp-uuid}

Headers

Name
Value
Required

Authorization

Bearer <token>

Path parameters

Name
Type
Description
Required

totp-uuid

string

Identifier for the TOTP and the token itself, generated by the Nitride plugin.

Request samples

const response = await fetch('/v1/auth/ratls/totp/{totp-uuid}', {
    method: 'DELETE',
    headers: {},
});
const data = await response.json();

Response samples

OK

Last updated