List team secrets

​

List the team's secrets or vars in one environment. A secret is listed by name and fingerprint, never by value; a var comes with its value.

OAuth scopes
  • platform:read

Query Parameters

Responses

  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
Request Example for get/v1/teams/secrets
curl 'https://access.scalar.com/v1/teams/secrets?environment=production&kind=secret' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
  "secrets": [
    {
      "uid": "string",
      "environment": "string",
      "name": "string",
      "kind": "secret",
      "value": "string",
      "fingerprint": "string",
      "createdAt": 1,
      "rotatedAt": 1,
      "createdBy": null,
      "rotatedBy": null
    }
  ]
}