Get Tags from Secret
Endpoint: GET /api/secrets/{key}/tags
Retrieves the tags associated with a secret.
Path parameters
| Parameter | Description | Type | Required/ Optional |
|---|---|---|---|
| key | The secret key name from which the tags are to be retrieved. | string | Required. |
Response
Returns an array of tag objects, each containing a key-value pair. Returns 404 if an invalid key is provided.
Examples
Get tags from a secret
Request
curl -X 'GET' \
'https://<YOUR-SERVER-URL>/api/secrets/my_token/tags' \
-H 'accept: application/json' \
-H 'X-Authorization: <TOKEN>'
Response
[
{
"key": "backend",
"value": "PR"
},
{
"key": "dev",
"value": "automation"
}
]