Modal Secrets

Securely inject environment variables and credentials into functions and sandboxes via modal.Secret, managed in the dashboard, CLI, or SDK (Secret.from_name / from_dict). SDK/CLI-only; no public REST endpoint.

API entry from apis.yml

apis.yml Raw ↑
aid: modal-labs:modal-labs-secrets-api
name: Modal Secrets
tags:
- Secrets
- Configuration
- Credentials
- SDK
image: https://kinlane-images.s3.amazonaws.com/shared/apis-json/apis-json-logo.jpg
humanURL: https://modal.com/docs/guide/secrets
properties:
- url: https://modal.com/docs/guide/secrets
  type: Documentation
- url: https://modal.com/docs/reference/modal.Secret
  type: APIReference
description: Securely inject environment variables and credentials into functions and sandboxes via modal.Secret,
  managed in the dashboard, CLI, or SDK (Secret.from_name / from_dict). SDK/CLI-only; no public REST endpoint.