---
title: "Get Function Secret Encryption Key"
method: GET
path: "/api/v1/functions/{function_id}/secret-encryption-key"
tags: ["Function"]
---

# Get Function Secret Encryption Key

`GET /api/v1/functions/{function_id}/secret-encryption-key`

GetFunctionSecretEncryptionKey retrieves or generates the public key for encrypting function secrets

## Path parameters

- `function_id` string, required — The functionId field.

## Response `200`

Successful response

- C1ApiFunctionsV1FunctionsServiceGetFunctionSecretEncryptionKeyResponse — The FunctionsServiceGetFunctionSecretEncryptionKeyResponse message.
  - `publicKey` string, base64 — The publicKey field.

## Changes

- **2025-12-05** `db31ee81cba5` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/conductorone/apis/c1-api/changes/api/v1/functions/:function_id/secret-encryption-key/get.md)

---

[API](https://skmtc.dev/conductorone/apis/c1-api.md) · [All operations](https://skmtc.dev/conductorone/apis/c1-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/conductorone/c1-api/revisions/db31ee81cba5/schema)
