Secrets
Secrets represent sensitive information securely stored by Metorial. Secrets are automatically created by Metorial, for example for server deployment configurations.
Secrets object
Attributes
object
Stringid
StringThe secret's unique identifier
status
EnumThe secret's status
type
Objectdescription
StringThe secret's description
metadata
ObjectThe secret's metadata
organization_id
StringThe secret's organization identifier
instance_id
StringThe secret's instance identifier
fingerprint
StringThe secret's fingerprint
last_used_at
DateNullableThe secret's last used date
created_at
DateThe secret's creation date
{"object": "secret","status": "active","type": {},"description": "This is a secret","metadata": {},"fingerprint": "1234567890abcdef"}
List secrets
Returns a paginated list of secrets for the instance, optionally filtered by type or status.
Query Parameters
limit
NumberOptionalafter
StringOptionalbefore
StringOptionalcursor
StringOptionalorder
EnumOptionaltype
UnionOptionalstatus
UnionOptionalcurl -X GET "https://api.metorial.com/secrets" \-H "Authorization: Bearer metorial_sk_..."
Get secret by ID
Retrieves detailed information about a specific secret by ID.
URL Parameters
secret_id
StringThe unique identifier for the secret
curl -X GET "https://api.metorial.com/secrets/sec_Rm4Mnheq2bfEPhBhP7SY" \-H "Authorization: Bearer metorial_sk_..."