Secrets API
The secrets endpoints, each in TypeScript, Python, the CLI and curl.
Set up
Section titled “Set up”npm install @reminix/sdkexport REMINIX_API_KEY="<your API key>"pip install reminixexport REMINIX_API_KEY="<your API key>"npm install -g @reminix/clireminix loginexport REMINIX_API_KEY="<your API key>"To pass the key yourself, use createClient({ apiKey: key }) in TypeScript or Reminix(api_key=key) in Python.
List secrets
Section titled “List secrets”GET /v1/secrets Try it in the API playground (opens in a new tab) Scope: secrets:read.
Lists the workspace’s secrets by name, with the environments that have a value and the hosts each value may go to.
import { createClient } from "@reminix/sdk";
// Uses the REMINIX_API_KEY environment variable.const reminix = createClient();const secrets = await reminix.secrets.list();console.log(secrets);from reminix import Reminix
# Uses the REMINIX_API_KEY environment variable.reminix = Reminix()secrets = reminix.secrets.list()print(secrets)reminix secrets listcurl -X GET "https://api.reminix.com/v1/secrets" \ -H "Authorization: Bearer $REMINIX_API_KEY"Returns:
{ "items": [ { "name": "ADMIN_KEY", "allowEnvVar": false, "createdByUserId": "usr_1e21afeb-a999-46d6-8874-ae1c97c88418", "createdAt": "2026-08-20T09:05:00.000Z", "updatedAt": "2026-08-20T09:06:00.000Z", "values": [ { "environment": "production", "hosts": [ "api.yourapp.com" ], "createdByUserId": "usr_1e21afeb-a999-46d6-8874-ae1c97c88418", "updatedAt": "2026-08-20T09:05:00.000Z", "lastUsedAt": "2026-10-02T14:05:01.000Z" }, { "environment": "staging", "hosts": [ "api.staging.yourapp.com" ], "createdByUserId": "usr_1e21afeb-a999-46d6-8874-ae1c97c88418", "updatedAt": "2026-08-20T09:06:00.000Z", "lastUsedAt": null } ] } ], "nextCursor": null}| Field | Description |
|---|---|
limit | Items per page, 1–100 (default 25). |
cursor | Opaque token from a previous page's nextCursor. |
More about this endpoint
The list never includes the values themselves.
Get a secret
Section titled “Get a secret”GET /v1/secrets/{name} Try it in the API playground (opens in a new tab) Scope: secrets:read.
Returns one secret by its name, with the environments that have a value and the hosts each value may go to.
import { createClient } from "@reminix/sdk";
// Uses the REMINIX_API_KEY environment variable.const reminix = createClient();const secret = await reminix.secrets.get("ADMIN_KEY");console.log(secret);from reminix import Reminix
# Uses the REMINIX_API_KEY environment variable.reminix = Reminix()secret = reminix.secrets.get("ADMIN_KEY")print(secret)reminix secrets get ADMIN_KEYcurl -X GET "https://api.reminix.com/v1/secrets/ADMIN_KEY" \ -H "Authorization: Bearer $REMINIX_API_KEY"Returns:
{ "name": "ADMIN_KEY", "allowEnvVar": false, "createdByUserId": "usr_1e21afeb-a999-46d6-8874-ae1c97c88418", "createdAt": "2026-08-20T09:05:00.000Z", "updatedAt": "2026-08-20T09:06:00.000Z", "values": [ { "environment": "production", "hosts": [ "api.yourapp.com" ], "createdByUserId": "usr_1e21afeb-a999-46d6-8874-ae1c97c88418", "updatedAt": "2026-08-20T09:05:00.000Z", "lastUsedAt": "2026-10-02T14:05:01.000Z" }, { "environment": "staging", "hosts": [ "api.staging.yourapp.com" ], "createdByUserId": "usr_1e21afeb-a999-46d6-8874-ae1c97c88418", "updatedAt": "2026-08-20T09:06:00.000Z", "lastUsedAt": null } ]}| Field | Description |
|---|---|
name | The secret's name, in UPPER_SNAKE_CASE. It starts with a letter and has at most 64 characters. |
More about this endpoint
It never includes the values themselves.
Update a secret
Section titled “Update a secret”PATCH /v1/secrets/{name} Try it in the API playground (opens in a new tab) Scope: secrets:write.
Changes what applies to a secret in every environment.
import { createClient } from "@reminix/sdk";
// Uses the REMINIX_API_KEY environment variable.const reminix = createClient();const secret = await reminix.secrets.update("ADMIN_KEY");console.log(secret);from reminix import Reminix
# Uses the REMINIX_API_KEY environment variable.reminix = Reminix()secret = reminix.secrets.update("ADMIN_KEY")print(secret)reminix secrets update ADMIN_KEYcurl -X PATCH "https://api.reminix.com/v1/secrets/ADMIN_KEY" \ -H "Authorization: Bearer $REMINIX_API_KEY" \ -H "Content-Type: application/json" \ -d '{}'Returns:
{ "name": "ADMIN_KEY", "allowEnvVar": false, "createdByUserId": "usr_1e21afeb-a999-46d6-8874-ae1c97c88418", "createdAt": "2026-08-20T09:05:00.000Z", "updatedAt": "2026-08-20T09:06:00.000Z", "values": [ { "environment": "production", "hosts": [ "api.yourapp.com" ], "createdByUserId": "usr_1e21afeb-a999-46d6-8874-ae1c97c88418", "updatedAt": "2026-08-20T09:05:00.000Z", "lastUsedAt": "2026-10-02T14:05:01.000Z" }, { "environment": "staging", "hosts": [ "api.staging.yourapp.com" ], "createdByUserId": "usr_1e21afeb-a999-46d6-8874-ae1c97c88418", "updatedAt": "2026-08-20T09:06:00.000Z", "lastUsedAt": null } ]}| Field | Description |
|---|---|
name | The secret's name, in UPPER_SNAKE_CASE. It starts with a letter and has at most 64 characters. |
allowEnvVar | Whether scripts can read the secret as an environment variable. A new secret starts with false, so Reminix only attaches it to requests. |
More about this endpoint
Its values are saved one environment at a time, with Save a secret’s value. Workspace owners, admins and API keys can change a secret.
Delete a secret
Section titled “Delete a secret”DELETE /v1/secrets/{name} Try it in the API playground (opens in a new tab) Scope: secrets:write.
Deletes a secret and its value in every environment.
import { createClient } from "@reminix/sdk";
// Uses the REMINIX_API_KEY environment variable.const reminix = createClient();await reminix.secrets.delete("ADMIN_KEY");from reminix import Reminix
# Uses the REMINIX_API_KEY environment variable.reminix = Reminix()reminix.secrets.delete("ADMIN_KEY")reminix secrets delete ADMIN_KEY --yescurl -X DELETE "https://api.reminix.com/v1/secrets/ADMIN_KEY" \ -H "Authorization: Bearer $REMINIX_API_KEY"Returns nothing (204).
| Field | Description |
|---|---|
name | The secret's name, in UPPER_SNAKE_CASE. It starts with a letter and has at most 64 characters. |
More about this endpoint
Runs of scripts that use it fail until someone saves it again. Workspace owners, admins and API keys can delete a secret.
Save a secret’s value
Section titled “Save a secret’s value”PUT /v1/secrets/{name}/values/{environment} Try it in the API playground (opens in a new tab) Scope: secrets:write.
Saves a secret’s value in one environment.
import { createClient } from "@reminix/sdk";
// Uses the REMINIX_API_KEY environment variable.const reminix = createClient();const result = await reminix.secretValues.set("ADMIN_KEY", "production", { value: "ak_live_…", hosts: [ "api.yourapp.com", ],});console.log(result);from reminix import Reminix
# Uses the REMINIX_API_KEY environment variable.reminix = Reminix()result = reminix.secret_values.set( "ADMIN_KEY", "production", value="ak_live_…", hosts=["api.yourapp.com"],)print(result)printf %s "$ADMIN_KEY" | \ reminix secrets set ADMIN_KEY \ --hosts api.yourapp.comcurl -X PUT "https://api.reminix.com/v1/secrets/ADMIN_KEY/values/production" \ -H "Authorization: Bearer $REMINIX_API_KEY" \ -H "Content-Type: application/json" \ -d '{"value":"ak_live_…","hosts":["api.yourapp.com"]}'Returns:
{ "name": "ADMIN_KEY", "allowEnvVar": false, "createdByUserId": "usr_1e21afeb-a999-46d6-8874-ae1c97c88418", "createdAt": "2026-08-20T09:05:00.000Z", "updatedAt": "2026-08-20T09:06:00.000Z", "values": [ { "environment": "production", "hosts": [ "api.yourapp.com" ], "createdByUserId": "usr_1e21afeb-a999-46d6-8874-ae1c97c88418", "updatedAt": "2026-08-20T09:05:00.000Z", "lastUsedAt": "2026-10-02T14:05:01.000Z" }, { "environment": "staging", "hosts": [ "api.staging.yourapp.com" ], "createdByUserId": "usr_1e21afeb-a999-46d6-8874-ae1c97c88418", "updatedAt": "2026-08-20T09:06:00.000Z", "lastUsedAt": null } ]}| Field | Description |
|---|---|
name | The secret's name, in UPPER_SNAKE_CASE. It starts with a letter and has at most 64 characters. |
environment | The environment's name. |
value | The secret itself, at most 16,384 bytes. |
hosts | The only hosts Reminix sends this value to, such as api.stripe.com. |
More about this endpoint
Saving creates the secret if it’s new, or replaces the value and its hosts to rotate it. Reminix encrypts the value, and no call ever returns it. Reminix sends the value only to the hosts in hosts. Workspace owners, admins and API keys can save a secret.
Remove a secret’s value from an environment
Section titled “Remove a secret’s value from an environment”DELETE /v1/secrets/{name}/values/{environment} Try it in the API playground (opens in a new tab) Scope: secrets:write.
Removes a secret’s value from one environment.
import { createClient } from "@reminix/sdk";
// Uses the REMINIX_API_KEY environment variable.const reminix = createClient();await reminix.secretValues.delete("ADMIN_KEY", "production");from reminix import Reminix
# Uses the REMINIX_API_KEY environment variable.reminix = Reminix()reminix.secret_values.delete("ADMIN_KEY", "production")reminix secret-values delete ADMIN_KEY production --yescurl -X DELETE "https://api.reminix.com/v1/secrets/ADMIN_KEY/values/production" \ -H "Authorization: Bearer $REMINIX_API_KEY"Returns nothing (204).
| Field | Description |
|---|---|
name | The secret's name, in UPPER_SNAKE_CASE. It starts with a letter and has at most 64 characters. |
environment | The environment's name. |
More about this endpoint
The secret and its values in other environments stay. Runs in that environment that use the secret fail until someone saves a value there again. Workspace owners, admins and API keys can remove a value.