---
title: "Get the audit log stream key for encrypting secrets"
method: GET
path: "/enterprises/{enterprise}/audit-log/stream-key"
tags: ["enterprise-admin"]
---

# Get the audit log stream key for encrypting secrets

`GET /enterprises/{enterprise}/audit-log/stream-key`

Retrieves the audit log streaming public key for encrypting secrets.

When using this endpoint, you must encrypt the credentials following the same encryption steps as outlined in the guide on encrypting secrets. See "[Encrypting secrets for the REST API](/rest/guides/encrypting-secrets-for-the-rest-api)."

## Path parameters

- `enterprise` string, required

## Response `200`

The stream key for the audit log streaming configuration was retrieved successfully.

- AuditLogStreamKey — Audit Log Streaming Public Key
  - `key_id` string, required
  - `key` string, required

---

[API](https://skmtc.net/github/apis/github-v3-rest-api-2.md) · [All operations](https://skmtc.net/github/apis/github-v3-rest-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/github-v3-rest-api-2/versions/8ae6d0c8716e/schema)
