Create a Secret
Creates a new secret for the specified project. Secrets are encrypted and stored securely.
post/v1/projects/secrets
Request
- Base URLhttps://api.tryhamsa.com
- URLhttps://api.tryhamsa.com/v1/projects/secrets
- Auth
- API key in header Authorization
- or API key in header Authorization
Request body
Example request
{
"name": "API_KEY",
"value": "super-secret-value",
"description": "Production API key",
"tags": [
"production",
"api"
]
}Response
Secret created successfully
Example response
{
"success": true,
"message": "success",
"data": {
"id": "ed9b5601-f731-441a-8500-d9fc7610ef8f",
"name": "API_KEY",
"description": "Production API key",
"tags": [
"production",
"api"
],
"createdAt": "2024-12-15T00:00:00.000Z",
"updatedAt": "2024-12-15T00:00:00.000Z"
}
}Changes
No recorded changes to this operation across all 2 revisions of this API.