Skip to main content Link Menu Expand (external link) Document Search Copy Copied

auth0 flows vault connections create

Create a new vault connection.

A name is required, supplied with --name or the interactive prompt, along with an app id via --app-id. Setup credentials are authored interactively or supplied with --setup-file; the file must contain only the setup body, not a name. Run --setup-template --app-id <APP_ID> to print the setup credentials template for a given app.

Use ‘–schema’ to print the request payload schema and exit. Use ‘–data’ to supply the full JSON payload, including the name and app id (validated against the schema before sending).

Usage

auth0 flows vault connections create [flags]

Examples

  auth0 flows vault connections create
  auth0 flows vault connections create --name "My Connection" --app-id SLACK
  auth0 flows vault connections create --name "My Connection" --app-id SLACK --setup-file ./setup.json
  auth0 flows vault connections create --setup-template --app-id SLACK > setup.json

  # Discover the payload schema
  auth0 flows vault connections create --schema
  auth0 flows vault connections create --schema --json

  # JSON input mode (for agents and automation)
  auth0 flows vault connections create --data '{"name":"My Connection","app_id":"HTTP","setup":{"type":"BEARER","token":"<token>"}}'
  auth0 flows vault connections create --data @connection.json

Flags

      --app-id string       Identifier of the app the Vault connection integrates with (e.g. HTTP, SLACK).
      --data string         JSON payload for the operation, as a JSON string or file path (@file.json). Can also be piped via stdin.
      --json                Output in json format.
      --json-compact        Output in compact json format.
      --name string         Name of the Vault connection.
      --schema              Print the request payload schema for this command and exit. Use with --json or --json-compact for machine-readable output.
  -f, --setup-file string   Path to a JSON file containing the vault connection setup credentials. Run with --setup-template --app-id <APP_ID> to see the expected setup schema for a given app.
      --setup-template      Print the setup credentials template for the given --app-id and exit.

Inherited Flags

      --agent-mode      Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable.
      --debug           Enable debug mode.
      --no-color        Disable colors.
      --no-input        Disable interactivity.
      --tenant string   Specific tenant to use.