Secrets

Create secret

Create a new secret. Credentials are stored securely in 1Password.

post/v1beta/secrets

Request

  • Base URL: https://api.indices.io
  • URL: https://api.indices.io/v1beta/secrets
  • Auth: HTTP bearer

Request body

namestring required

Human-readable name for the secret.

secret_type'login' | 'string' required
usernamestring nullable

Login username. Required for 'login' type.

passwordstring nullable

Login password. Required for 'login' type.

totp_secretstring nullable

Optional TOTP secret (base32 encoded). Only for 'login' type.

valuestring nullable

Secret value. Required for 'string' type.

Response

Successful response

idstring required

Unique identifier for the secret.

namestring required

Human-readable name for the secret.

secret_type'login' | 'string' required
has_totpboolean required

Whether the secret has a TOTP configured (only applicable for login type).

created_atstring date-time required

Timestamp when the secret was created.

updated_atstring date-time required

Timestamp when the secret was last updated.

Changes

No recorded changes to this operation across all 1 revision of this API.