Functions

List a function's secrets

Changed on

Returns metadata for every secret bound to the function, with managed entries (provisioned by Primitive) listed first and user-set entries listed alphabetically after. Values are never returned. Secret writes are write-only.

Managed entries (e.g. PRIMITIVE_WEBHOOK_SECRET, PRIMITIVE_API_KEY, PRIMITIVE_API_BASE_URL) carry a description instead of created_at / updated_at. They cannot be created, updated, or deleted via this API.

get/functions/{id}/secrets

Request

  • Base URL: https://api.primitive.dev/v1
  • URL: https://api.primitive.dev/v1/functions/{id}/secrets
  • Auth: HTTP bearer

Response

List of secrets (metadata only, no values)

successboolean required

Changes

    • info

      removed the invalid_signup_code enum value from the / response property for the response status

    • info

      removed the invalid_signup_code enum value from the / response property for the response status

    • warning

      added the new not_a_repeating_send enum value to the / response property for the response status

    • warning

      added the new not_a_repeating_send enum value to the / response property for the response status

    • warning

      added the new repeat_idle_requires_internal_recipient enum value to the / response property for the response status

    • warning

      added the new repeat_idle_requires_internal_recipient enum value to the / response property for the response status

    • warning

      added the new repeat_recipient_external enum value to the / response property for the response status

    • warning

      added the new repeat_recipient_external enum value to the / response property for the response status

    • warning

      added the new repeat_stop_not_allowed enum value to the / response property for the response status

    • warning

      added the new repeat_stop_not_allowed enum value to the / response property for the response status

    • warning

      added the new repeat_unsupported enum value to the / response property for the response status

    • warning

      added the new repeat_unsupported enum value to the / response property for the response status