Secrets API
Manage stored secrets referenced by integration configurations.
Manage stored secrets referenced by integration configurations.
Authentication
Admin permissions are required for all operations on this page. Set GC_API_KEY to an API key with the required permissions and GC_BACKEND_ID to the backend ID. Every example sends both headers. For self-hosted deployments, replace https://api.groundcover.com with your API URL.
Endpoints
POST
/api/secret
201, secret metadata
PUT
/api/secret/{id}
200, secret metadata
GET
/api/secret/{id}/hash
200, metadata and content hash
DELETE
/api/secret/{id}
204, no body
Create
type, name, and content are required strings. Send the actual secret as content; the router stores the bytes of this string. Optional managedByProvider accepts none or terraform.
curl --request POST \
--url "https://api.groundcover.com/api/secret" \
--header "Authorization: Bearer $GC_API_KEY" \
--header "X-Backend-Id: $GC_BACKEND_ID" \
--header "Content-Type: application/json" \
--data '{
"type": "password",
"name": "integration-password",
"content": "<SECRET_VALUE>"
}'The response contains id, type, and name. The ID is a complete reference such as secretRef::store::<SECRET_UUID>. Preserve that full reference in API paths and in integration fields that accept secret references. Secret content is not returned.
Update
Supply the same required fields as create. Updating replaces the secret value while preserving its reference.
Detect changes
The result contains id, type, name, contentHash, and optional managedByProvider. contentHash is a hexadecimal FNV-1a hash used for change detection, not the secret itself.
Delete
Update configurations that reference the secret before deleting it.
Malformed or unsupported secret references return 400. A missing stored secret returns 404 on get-hash, update, or delete.
Last updated
