curl --request GET \
--url https://api.tryhamsa.com/v1/projects/secrets/list \
--header 'Authorization: <api-key>'{
"success": true,
"message": "success",
"data": {
"secrets": [
{
"id": "ed9b5601-f731-441a-8500-d9fc7610ef8f",
"name": "API_KEY",
"description": "Production API key",
"tags": [
"production",
"api"
],
"lastAccessedAt": null,
"createdAt": "2024-12-15T00:00:00.000Z",
"updatedAt": "2024-12-15T00:00:00.000Z"
}
],
"total": 100,
"filtered": 10
}
}Retrieves a paginated list of secrets for the specified project. Secret values are not included in the response.
curl --request GET \
--url https://api.tryhamsa.com/v1/projects/secrets/list \
--header 'Authorization: <api-key>'{
"success": true,
"message": "success",
"data": {
"secrets": [
{
"id": "ed9b5601-f731-441a-8500-d9fc7610ef8f",
"name": "API_KEY",
"description": "Production API key",
"tags": [
"production",
"api"
],
"lastAccessedAt": null,
"createdAt": "2024-12-15T00:00:00.000Z",
"updatedAt": "2024-12-15T00:00:00.000Z"
}
],
"total": 100,
"filtered": 10
}
}Pass the API key in the Authorization header, You need to put Token keyword before the API key. e.g. 'Authorization: Token
Number of secrets to return per page.
"10"
Page number for pagination.
"1"
Search term to filter secrets by name.
"API"
Was this page helpful?