curl --location --request GET 'https://api.stateset.com/v1/secrets' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--data-raw '{
"id": 1
}'
{
"id": 1,
"name": "string",
"description": "string",
"value": "string",
"created_at": "string",
"updated_at": "string"
}
Get Secrets
This endpoint gets secrets.
GET
/
v1
/
secrets
curl --location --request GET 'https://api.stateset.com/v1/secrets' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--data-raw '{
"id": 1
}'
{
"id": 1,
"name": "string",
"description": "string",
"value": "string",
"created_at": "string",
"updated_at": "string"
}
Body
integer
This is the id of the secret
This read takes a request body. The Fetch standard forbids a body on
GET,
so fetch() rejects this call rather than sending one — reach for a server-side
client (curl, undici.request, Python requests) instead. Proxies and CDNs are
also free to drop a body on a read, so prefer a direct connection.Response
number
This is the id of the secret.
string
This is the name of the secret.
string
This is the description of the secret.
string
This is the value of the secret.
string
This is the date the secret was created.
string
This is the date the secret was updated.
Errors
Succeeds with200. Failures return 400, 401, 403 or 429 with an error body, per the platform status-code contract.
curl --location --request GET 'https://api.stateset.com/v1/secrets' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--data-raw '{
"id": 1
}'
{
"id": 1,
"name": "string",
"description": "string",
"value": "string",
"created_at": "string",
"updated_at": "string"
}
Last modified on August 29, 2026