string
required
Unique identifier for the organization or sub-organization whose secrets are listed.
object
paginationOptions field
array
required
Metadata for each secret in the organization, ordered by most recently created first.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
curl --request POST \
--url https://api.turnkey.com/public/v1/query/list_secrets \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header "X-Stamp: <string> (see Authorizations)" \
--data '{
"organizationId": "<string>",
"paginationOptions": {
"limit": "<string>",
"before": "<string>",
"after": "<string>"
}
}'
import { Turnkey } from "@turnkey/sdk-server";
const turnkeyClient = new Turnkey({
apiBaseUrl: "https://api.turnkey.com",
apiPublicKey: process.env.API_PUBLIC_KEY!,
apiPrivateKey: process.env.API_PRIVATE_KEY!,
defaultOrganizationId: process.env.ORGANIZATION_ID!,
});
const response = await turnkeyClient.apiClient().listSecrets({
organizationId: "<string> (Unique identifier for the organization or sub-organization whose secrets are listed.)",
paginationOptions: { // paginationOptions field,
limit: "<string> (A limit of the number of object to be returned, between 1 and 100. Defaults to 10.)",
before: "<string> (A pagination cursor. This is an object ID that enables you to fetch all objects before this ID.)",
after: "<string> (A pagination cursor. This is an object ID that enables you to fetch all objects after this ID.)",
}
});
{
"secrets": [
{
"secretId": "<string>",
"name": "<string>",
"staticProperties": [
{
"key": "<string>",
"value": "<string>"
}
],
"createdAtUnixMs": "<string>"
}
]
}
List secret metadata for an organization.
paginationOptions field
Show details
Show secrets details
curl --request POST \
--url https://api.turnkey.com/public/v1/query/list_secrets \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header "X-Stamp: <string> (see Authorizations)" \
--data '{
"organizationId": "<string>",
"paginationOptions": {
"limit": "<string>",
"before": "<string>",
"after": "<string>"
}
}'
import { Turnkey } from "@turnkey/sdk-server";
const turnkeyClient = new Turnkey({
apiBaseUrl: "https://api.turnkey.com",
apiPublicKey: process.env.API_PUBLIC_KEY!,
apiPrivateKey: process.env.API_PRIVATE_KEY!,
defaultOrganizationId: process.env.ORGANIZATION_ID!,
});
const response = await turnkeyClient.apiClient().listSecrets({
organizationId: "<string> (Unique identifier for the organization or sub-organization whose secrets are listed.)",
paginationOptions: { // paginationOptions field,
limit: "<string> (A limit of the number of object to be returned, between 1 and 100. Defaults to 10.)",
before: "<string> (A pagination cursor. This is an object ID that enables you to fetch all objects before this ID.)",
after: "<string> (A pagination cursor. This is an object ID that enables you to fetch all objects after this ID.)",
}
});
{
"secrets": [
{
"secretId": "<string>",
"name": "<string>",
"staticProperties": [
{
"key": "<string>",
"value": "<string>"
}
],
"createdAtUnixMs": "<string>"
}
]
}
Was this page helpful?