Secret
Never returns values. Includes secrets outside their validity window, which GET /{key} answers with 404.
Secret keys, unordered.
The caller is not authenticated.
The caller lacks the tenant.secret:read scope.
The tenant does not exist.
Over 1200 requests per minute to this endpoint for the tenant (default limit); retry after Retry-After.
GET /api/{tenantId}/secrets HTTP/1.1
Host: api.thewalletcrew.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
[
"text"
]Returns the newest value within its validity window (notBefore passed, expiresOn not reached). Requires the write scope, not the read scope.
Secret key: 2 to 32 letters, digits or -, case-sensitive.
Secret value, as a JSON string.
Invalid key format.
The caller is not authenticated.
The caller lacks the tenant.secret:write scope.
No such secret, or no value currently valid, or the tenant does not exist.
Over 1200 requests per minute to this endpoint for the tenant (default limit); retry after Retry-After.
GET /api/{tenantId}/secrets/{key} HTTP/1.1
Host: api.thewalletcrew.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
textCreates the key if needed. Older values are kept as versions, so a future notBefore rotates a secret in place.
Secret key: 2 to 32 letters, digits or -, case-sensitive.
Secret value and its validity window.
Secret value; not empty or whitespace.
Value stored.
No content
Invalid key, missing or blank value, or notBefore not earlier than expiresOn.
The caller is not authenticated.
The caller lacks the tenant.secret:write scope.
The tenant does not exist.
Over 1200 requests per minute to this endpoint for the tenant (default limit); retry after Retry-After.
PUT /api/{tenantId}/secrets/{key} HTTP/1.1
Host: api.thewalletcrew.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 106
{
"value": "text",
"options": {
"expiresOn": "2026-01-01T00:00:00.000Z",
"notBefore": "2026-01-01T00:00:00.000Z"
}
}No content
Removes every value of the key; responds once deletion is complete.
Secret key: 2 to 32 letters, digits or -, case-sensitive.
Secret deleted.
No content
Invalid key format.
The caller is not authenticated.
The caller lacks the tenant.secret:write scope.
No such secret, or the tenant does not exist.
Over 1200 requests per minute to this endpoint for the tenant (default limit); retry after Retry-After.
DELETE /api/{tenantId}/secrets/{key} HTTP/1.1
Host: api.thewalletcrew.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
No content
Last updated

