Skip to main content
GET
/
v1
/
projects
/
secrets
/
list
List Secrets
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
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.tryhamsa.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Pass the API key in the Authorization header, You need to put Token keyword before the API key. e.g. 'Authorization: Token '

Query Parameters

take
string
default:10

Number of secrets to return per page.

Example:

"10"

skip
string
default:1

Page number for pagination.

Example:

"1"

Search term to filter secrets by name.

Example:

"API"

Response

Successful response

success
boolean
Example:

true

message
string
Example:

"success"

data
object