To use this cli, we need to first Install Nodejs, then run the following command.
npm i -g namirasoft-secret-api-v1
Returns the application liveness status
ns-secret health liveness
Returns the application readiness status
ns-secret health readiness
Returns the application metrics
ns-secret metrics get
Returns the value list of a given table and column
ns-secret value list {table} {column} {search} {field_id} {limit}
Returns the row count of every entity across all databases, optionally grouped by workspace_id and filtered to specific workspaces
ns-secret overview count
--group_by_workspace (Boolean)
--workspace_ids (Array)
Returns the secret category list
ns-secret secretcategory list {filters} {page} {size} {sorts} {all_workspaces}
Returns a secret category by id.
ns-secret secretcategory get {id}
Creates a new secret category for an entity
ns-secret secretcategory create
--slot_id (String)
--category_id (String)
Deletes a secret category by an id.
ns-secret secretcategory delete {id}
Returns the secret field list
ns-secret secretfield list {filters} {page} {size} {sorts} {all_workspaces}
Returns a secret field by id.
ns-secret secretfield get {id}
Creates a new secret field for an entity
ns-secret secretfield create
--slot_id (String)
--field_id (String)
--value (Any)
Updates a secret field by an id for an entity
ns-secret secretfield update {id}
--slot_id (String)
--field_id (String)
--value (Any)
Deletes a secret field by an id.
ns-secret secretfield delete {id}
Returns the secret tag list
ns-secret secrettag list {filters} {page} {size} {sorts} {all_workspaces}
Returns a secret tag by id.
ns-secret secrettag get {id}
Creates a new secret tag for an entity
ns-secret secrettag create
--name (String)
--value (String)
Updates a secret tag by an id for an entity
ns-secret secrettag update {id}
--name (String)
--value (String)
Deletes a secret tag by an id.
ns-secret secrettag delete {id}
Returns the secret list
ns-secret secret list {filters} {page} {size} {sorts} {all_workspaces}
Determines if a hashed signature is valid or not
ns-secret secret isvalid
--algorithm (Enum)
--passkey (Object)
--message (Object)
--signature (Object)
Returns a secret by an id
ns-secret secret get {id}
Returns the value of a secret by an id
ns-secret secret getvalue {id}
Returns the value of a secret by an id for an user_id
ns-secret secret _getvaluefor {user_id} {id}
Creates a new secret
ns-secret secret create
--workspace_id (String)
--group (String)
--name (String)
--algorithm (Enum)
--value (String)
--secret_category (Array)
--secret_field (Array)
--secret_tag (Array)
Creates a new secret for an user_id
ns-secret secret _createfor {user_id}
--workspace_id (String)
--group (String)
--name (String)
--algorithm (Enum)
--value (String)
--secret_category (Array)
--secret_field (Array)
--secret_tag (Array)
Updates the value of a secret by an id
ns-secret secret updatevalue {id}
--value (String)
Updates the value of a secret by an id for an user_id
ns-secret secret _updatevaluefor {user_id} {id}
--value (String)
Updates a secret by an id
ns-secret secret update {id}
--workspace_id (String)
--group (String)
--name (String)
--secret_category (Array)
--secret_field (Array)
--secret_tag (Array)
Updates a secret by an id for an user_id
ns-secret secret _updatefor {user_id} {id}
--workspace_id (String)
--group (String)
--name (String)
--secret_category (Array)
--secret_field (Array)
--secret_tag (Array)
Deletes a secret by an id
ns-secret secret delete {id}
Deletes a secret by an id for an user_id
ns-secret secret _deletefor {user_id} {id}
Encrypts a message
ns-secret secret encrypt
--algorithm (Enum)
--passkey (Object)
--message (Object)
Decrypts a message by a Secret
ns-secret secret decrypt
--algorithm (Enum)
--passkey (Object)
--encrypted_message (Object)
Encrypts a message and stores the result into a Secret
ns-secret secret encryptto
--algorithm (Enum)
--passkey (Object)
--message (Object)
--target_secret_id (String)
--group (String)
--name (String)
{ "name": "OverviewCountInput", "type": "Object", "required": true, "fields": { "group_by_workspace": { "type": "Boolean", "required": false }, "workspace_ids": { "type": "Array", "required": false, "items": [ { "type": "String", "required": true } ] } }}
{ "name": "OverviewCountRow", "type": "Object", "required": true, "fields": { "database": { "type": "String", "required": true }, "table": { "type": "String", "required": true }, "total": { "type": "Integer", "required": true }, "by_workspace": { "type": "Array", "required": false, "items": [ { "name": "OverviewCountByWorkspace", "type": "Object", "required": true, "fields": { "workspace_id": { "type": "String", "required": true }, "count": { "type": "Integer", "required": true } } } ] } }}
{ "name": "OverviewCountByWorkspace", "type": "Object", "required": true, "fields": { "workspace_id": { "type": "String", "required": true }, "count": { "type": "Integer", "required": true } }}
{ "name": "SecretCategory", "type": "Object", "required": true, "fields": { "id": { "type": "Integer", "required": true }, "user_id": { "type": "String", "required": true, "min": 20, "max": 20 }, "entity_id": { "type": "String", "required": true, "min": 20, "max": 20 }, "slot_id": { "type": "String", "required": true, "min": 20, "max": 20 }, "category_id": { "type": "String", "required": true, "min": 20, "max": 20 }, "created_at": { "type": "DateTime", "required": true }, "updated_at": { "type": "DateTime", "required": true } }}
{ "name": "EntityCategoryInput", "type": "Object", "required": true, "fields": { "slot_id": { "type": "String", "required": true, "min": 20, "max": 20 }, "category_id": { "type": "String", "required": true, "min": 20, "max": 20 } }}
{ "name": "SecretField", "type": "Object", "required": true, "fields": { "id": { "type": "Integer", "required": true }, "user_id": { "type": "String", "required": true, "min": 20, "max": 20 }, "entity_id": { "type": "String", "required": true, "min": 20, "max": 20 }, "slot_id": { "type": "String", "required": true, "min": 20, "max": 20 }, "field_id": { "type": "String", "required": true, "min": 20, "max": 20 }, "value": { "type": "String", "required": false }, "created_at": { "type": "DateTime", "required": true }, "updated_at": { "type": "DateTime", "required": true } }}
{ "name": "EntityFieldInput", "type": "Object", "required": true, "fields": { "slot_id": { "type": "String", "required": true, "min": 20, "max": 20 }, "field_id": { "type": "String", "required": true, "min": 20, "max": 20 }, "value": { "type": "Any", "required": false } }}
{ "name": "SecretTag", "type": "Object", "required": true, "fields": { "id": { "type": "Integer", "required": true }, "user_id": { "type": "String", "required": true, "min": 20, "max": 20 }, "entity_id": { "type": "String", "required": true, "min": 20, "max": 20 }, "name": { "type": "String", "required": true, "max": 255 }, "value": { "type": "String", "required": false }, "created_at": { "type": "DateTime", "required": true }, "updated_at": { "type": "DateTime", "required": true } }}
{ "name": "EntityTagInput", "type": "Object", "required": true, "fields": { "name": { "type": "String", "required": true, "max": 255 }, "value": { "type": "String", "required": false } }}
{ "name": "Secret", "type": "Object", "required": true, "fields": { "id": { "type": "String", "required": true, "min": 20, "max": 20 }, "user_id": { "type": "String", "required": true, "min": 20, "max": 20 }, "workspace_id": { "type": "String", "required": true, "min": 20, "max": 20 }, "group": { "type": "String", "required": false, "max": 255 }, "name": { "type": "String", "required": false, "max": 255 }, "algorithm": { "name": "SecretAlgorithm", "type": "Enum", "required": true, "valids": [ "HASH_SHA256", "HASH_BCRYPT", "ENCRYPT_AES256CCM" ] }, "created_at": { "type": "DateTime", "required": true }, "updated_at": { "type": "DateTime", "required": true } }}
{ "name": "OptionalStringType", "type": "Object", "required": true, "fields": { "constant": { "type": "String", "required": false }, "secret_id": { "type": "String", "required": false } }}
{ "name": "OptionalAnyType", "type": "Object", "required": true, "fields": { "constant": { "type": "Any", "required": false }, "secret_id": { "type": "String", "required": false } }}
{ "name": "SecretFull", "type": "Object", "required": true, "fields": { "id": { "type": "String", "required": true, "min": 20, "max": 20 }, "user_id": { "type": "String", "required": true, "min": 20, "max": 20 }, "workspace_id": { "type": "String", "required": true, "min": 20, "max": 20 }, "group": { "type": "String", "required": false, "max": 255 }, "name": { "type": "String", "required": false, "max": 255 }, "algorithm": { "name": "SecretAlgorithm", "type": "Enum", "required": true, "valids": [ "HASH_SHA256", "HASH_BCRYPT", "ENCRYPT_AES256CCM" ] }, "created_at": { "type": "DateTime", "required": true }, "updated_at": { "type": "DateTime", "required": true }, "secret_category": { "type": "Array", "required": true, "items": [ { "name": "EntityCategoryInput", "type": "Object", "required": false, "fields": { "slot_id": { "type": "String", "required": true, "min": 20, "max": 20 }, "category_id": { "type": "String", "required": true, "min": 20, "max": 20 } } } ] }, "secret_field": { "type": "Array", "required": true, "items": [ { "name": "EntityFieldInput", "type": "Object", "required": false, "fields": { "slot_id": { "type": "String", "required": true, "min": 20, "max": 20 }, "field_id": { "type": "String", "required": true, "min": 20, "max": 20 }, "value": { "type": "Any", "required": false } } } ] }, "secret_tag": { "type": "Array", "required": true, "items": [ { "name": "EntityTagInput", "type": "Object", "required": false, "fields": { "name": { "type": "String", "required": true, "max": 255 }, "value": { "type": "String", "required": false } } } ] } }}
{ "name": "SecretCreate", "type": "Object", "required": true, "fields": { "workspace_id": { "type": "String", "required": false, "min": 20, "max": 20 }, "group": { "type": "String", "required": false, "max": 255 }, "name": { "type": "String", "required": false, "max": 255 }, "algorithm": { "name": "SecretAlgorithm", "type": "Enum", "required": true, "valids": [ "HASH_SHA256", "HASH_BCRYPT", "ENCRYPT_AES256CCM" ] }, "value": { "type": "String", "required": true }, "secret_category": { "type": "Array", "required": true, "items": [ { "name": "EntityCategoryInput", "type": "Object", "required": false, "fields": { "slot_id": { "type": "String", "required": true, "min": 20, "max": 20 }, "category_id": { "type": "String", "required": true, "min": 20, "max": 20 } } } ] }, "secret_field": { "type": "Array", "required": true, "items": [ { "name": "EntityFieldInput", "type": "Object", "required": false, "fields": { "slot_id": { "type": "String", "required": true, "min": 20, "max": 20 }, "field_id": { "type": "String", "required": true, "min": 20, "max": 20 }, "value": { "type": "Any", "required": false } } } ] }, "secret_tag": { "type": "Array", "required": true, "items": [ { "name": "EntityTagInput", "type": "Object", "required": false, "fields": { "name": { "type": "String", "required": true, "max": 255 }, "value": { "type": "String", "required": false } } } ] } }}
{ "name": "SecretUpdate", "type": "Object", "required": true, "fields": { "workspace_id": { "type": "String", "required": false, "min": 20, "max": 20 }, "group": { "type": "String", "required": false, "max": 255 }, "name": { "type": "String", "required": false, "max": 255 }, "secret_category": { "type": "Array", "required": true, "items": [ { "name": "EntityCategoryInput", "type": "Object", "required": false, "fields": { "slot_id": { "type": "String", "required": true, "min": 20, "max": 20 }, "category_id": { "type": "String", "required": true, "min": 20, "max": 20 } } } ] }, "secret_field": { "type": "Array", "required": true, "items": [ { "name": "EntityFieldInput", "type": "Object", "required": false, "fields": { "slot_id": { "type": "String", "required": true, "min": 20, "max": 20 }, "field_id": { "type": "String", "required": true, "min": 20, "max": 20 }, "value": { "type": "Any", "required": false } } } ] }, "secret_tag": { "type": "Array", "required": true, "items": [ { "name": "EntityTagInput", "type": "Object", "required": false, "fields": { "name": { "type": "String", "required": true, "max": 255 }, "value": { "type": "String", "required": false } } } ] } }}
HASH_SHA256
HASH_BCRYPT
ENCRYPT_AES256CCM
HASH_SHA256
HASH_BCRYPT
ENCRYPT_AES256CCM
©Copyright 2010 to 2026 Namira Software Corporation. All rights reserved.