Palbase Secrets · API
/secrets/fields/openOpen encrypted fields
Opens encrypted fields of one column for a developer looking at them in Studio, as the project's owner or an admin; the keys stay in the module. A value that does not open there — tampered, from another column, not encrypted — is answered unopenable. Every opening is recorded in the audit trail, with the column.
Called by your server, with the project's secret key.
Request body
addressstring · requiredThe column: table.column, or schema.table.column outside public.valuesstring[] · requiredThe column's encrypted values (pbe1.…).curl -X POST "https://<your-ref>.palbase.studio/secrets/fields/open" \
-H "apikey: $PALBASE_SECRET_KEY" \
-H "content-type: application/json" \
-d '{"address":"string","values":["string"]}'Responses
200The fields, in the order asked
400Validation failed or a required field is missing
401Missing or invalid API key
403Not the project's secret key; or a change to the platform's own project (`owner_only`) without its owner's access token (X-Palbase-Owner) or its operator's token (X-Palbase-Operator) beside the key. An owner's sign-in that is not a passkey one from the last 15 minutes is 401 `insufficient_user_authentication`.
429Over the project's request limit or quota
503Temporarily unavailable; retrying is safe after Retry-After
defaultAn error: the envelope names it (`error`) and explains it (`error_description`).
Operation OpenFields of secrets's contract.