Access secret version in organization
Reads a version's value. Every read is recorded in the Data Access audit log, whatever the organization records otherwise.
GET
Reads a version's value. Every read is recorded in the Data Access audit log, whatever the organization records otherwise.
bearerheader
AuthorizationBearer <token>An access token, or an API key.
organization*stringThe organization's ID.
Match
^org_[0-7][0-9a-hjkmnp-tv-z]{25}$secret*stringThe secret's ID.
Match
^sec_[0-7][0-9a-hjkmnp-tv-z]{25}$version*stringThe version's number, or latest for the newest enabled one.
Match
^([1-9][0-9]{0,8}|latest)$OK
application/json- response
name*stringThe version read, by its number, even when the request named latest.
payload*Its value.
curl -X GET 'https://api.kosem.ai/v1/organizations/string/secrets/string/versions/string/access'Example Response
{
"name": "string",
"payload": {
"data": "string"
}
}