CLI command reference

This page lists every command of the signapi CLI, the same text signapi <command> --help prints. Arguments in angle brackets are required.

Options every command takes

Each command also takes the options of its kind, listed here once and not repeated below.

Kind Options
Resource commands (they use an API key) --mode, --api-key-var, --credential-store, --json, --help
Upload commands (uploads belong to the account, not a mode) --api-key-var, --credential-store, --json, --help
Signed-in commands (they use your sign-in) --mode, --credential-store, --json, --help
Sign-in commands --credential-store, --json, --help
Local commands (no credential) --json, --help
  • --mode <mode>: Mode to act in: test or live (default test; with an API key, the key's mode).
  • --api-key-var <name>: Env variable that holds the API key to use (default SIGNAPI_KEY, then SIGNATUREAPI_KEY).
  • --credential-store <store>: Where the sign-in is kept: keychain or file (sign-in only).
  • --json: Print newline-delimited JSON events on stdout instead of text.
  • --help: Show this help.

agent

agent setup

signapi agent setup [options]

Install the Sign API agent skills and register the MCP server in your coding agents.

Option Description
--skills Install the Sign API agent skills
--mcp Register the Sign API MCP server
--agent <name> Agent to configure; repeatable: claude-code, cursor, codex, opencode, gemini-cli, github-copilot, windsurf, kiro, zed, goose, cline
--global Install for your user instead of this project
--yes Apply without the confirmation prompt
--status Show what Sign API has installed for each agent, at project and user scope; changes nothing

Also takes the local command options.

signapi agent setup --status
signapi agent setup
signapi agent setup --skills --mcp --agent claude-code --yes
signapi agent setup --mcp --agent cursor --agent codex --global --yes

api-keys

api-keys list

signapi api-keys list [options]

List the account's API keys: ID, mode, description and first characters. The key itself is never shown.

Option Description
--mode <mode> Only list the keys of this mode: test or live (both when omitted)

Also takes the signed-in command options.

signapi api-keys list
signapi api-keys list --mode live --json

api-keys create

signapi api-keys create [options]

Create a live API key and write it into the env file. It asks for confirmation first.

Option Description
--env-path <path> Env file to write to, inside the current directory; created when missing (default .env, or .env.local in Next.js projects)
--var <name> Env variable that holds the API key (default SIGNAPI_KEY)
--replace Overwrite the variable when it already holds a different value
--description <text> Label for the new key, shown in the Dashboard and in api-keys list (up to 64 characters)
--show-secret Print the key's value (on stdout, or as secret in the --json result) instead of writing the env file
--pipe Send the key's value to the stdin of the command after -- (its stdout is discarded, its stderr shown with the value masked) instead of writing the env file
--yes Confirm without the prompt (required in non-interactive shells)

Also takes the signed-in command options.

signapi api-keys create --env-path .env.live --description "Billing worker"
signapi api-keys create --description CI --yes --pipe -- gh secret set SIGNAPI_KEY

api-keys roll

signapi api-keys roll <api-key-id> [options]

Replace an API key's value and write the new value into the env file. The old value stops working at once, or when the --overlap ends. A live key asks for confirmation first.

Option Description
--mode <mode> Mode of the key: test or live (required)
--overlap <duration> How long the previous value keeps working: 0 (the default), or a whole number followed by s, m, h or d, up to 7d
--env-path <path> Env file to write to, inside the current directory; created when missing (default .env, or .env.local in Next.js projects)
--var <name> Env variable that holds the API key (default SIGNAPI_KEY)
--replace Overwrite the variable when it already holds a different value
--show-secret Print the key's value (on stdout, or as secret in the --json result) instead of writing the env file
--pipe Send the key's value to the stdin of the command after -- (its stdout is discarded, its stderr shown with the value masked) instead of writing the env file
--yes Confirm without the prompt (required in non-interactive shells)

Also takes the signed-in command options.

signapi api-keys roll key_… --mode test --replace
signapi api-keys roll key_… --mode live --env-path .env.live --replace --overlap 1h --yes
signapi api-keys roll key_… --mode live --overlap 1h --yes --pipe -- gh secret set SIGNAPI_KEY

api-keys end-overlap

signapi api-keys end-overlap <api-key-id> [options]

Make a rolled key's previous value stop working now, instead of when its overlap ends. The key's current value keeps working. A live key asks for confirmation first.

Option Description
--mode <mode> Mode of the key: test or live (required)
--yes Confirm without the prompt (required in non-interactive shells)

Also takes the signed-in command options.

signapi api-keys end-overlap key_… --mode live --yes

api-keys revoke

signapi api-keys revoke <api-key-id> [options]

Revoke a live API key so it stops working. It asks for confirmation first.

Option Description
--yes Confirm without the prompt (required in non-interactive shells)

Also takes the signed-in command options.

signapi api-keys revoke key_… --yes

api-keys reveal

signapi api-keys reveal [options]

Write the test key into the env file, print it, or pipe it. Test only: a live key's value is shown once, when it is created or rolled.

Option Description
--mode <mode> Mode of the key: test or live (required)
--env-path <path> Env file to write to, inside the current directory; created when missing (default .env, or .env.local in Next.js projects)
--var <name> Env variable that holds the API key (default SIGNAPI_KEY)
--replace Overwrite the variable when it already holds a different value
--show-secret Print the key's value (on stdout, or as secret in the --json result) instead of writing the env file
--pipe Send the key's value to the stdin of the command after -- (its stdout is discarded, its stderr shown with the value masked) instead of writing the env file

Also takes the signed-in command options.

signapi api-keys reveal --mode test
signapi api-keys reveal --mode test --show-secret
signapi api-keys reveal --mode test --pipe -- gh secret set SIGNAPI_KEY

deliverables

deliverables list

signapi deliverables list [options]

List the deliverables of an envelope. A deliverable exists once the envelope is completed.

Option Description
--envelope <envelope-id> Envelope whose deliverables to list (required)
--limit <count> Items per page, 1 to 20 (default 20)
--cursor <cursor> Cursor of the page to get, from a previous result's next_cursor

Also takes the resource command options.

signapi deliverables list --envelope 5e5ace5e-…

deliverables get

signapi deliverables get <deliverable-id> [options]

Show a deliverable: its status and the URL of the signed documents. Anyone with the URL can download them until it expires.

Also takes the resource command options.

signapi deliverables get del_…

emails

emails list

signapi emails list [options]

List the emails Sign API sent or stored for the account, newest first, up to 20 per page. Filter by envelope, recipient or text, and pass --cursor for the next page.

Option Description
--envelope <envelope-id> Only this envelope's emails
--recipient <recipient-id> Only the emails sent to this recipient
--search <text> Only emails whose subject or to address matches this text
--limit <count> Items per page, 1 to 20 (default 20)
--cursor <cursor> Cursor of the page to get, from a previous result's next_cursor

Also takes the signed-in command options.

signapi emails list
signapi emails list --envelope 5e5ace5e-… --mode live --json

emails get

signapi emails get <email-id> [options]

Show an email: its status, address, subject and attachments. --json adds the rendered content; in live mode links and codes are masked.

Also takes the signed-in command options.

signapi emails get eml_…

envelopes

envelopes list

signapi envelopes list [options]

List envelopes, newest first, up to 20 per page. Filter by status or topic, and pass --cursor for the next page.

Option Description
--status <status> Only envelopes with this status, such as in_progress
--topic <topic> Only envelopes with this topic
--limit <count> Items per page, 1 to 20 (default 20)
--cursor <cursor> Cursor of the page to get, from a previous result's next_cursor

Also takes the resource command options.

signapi envelopes list
signapi envelopes list --status completed --json

envelopes get

signapi envelopes get <envelope-id> [options]

Show an envelope with its documents and recipients. A live envelope needs a live API key.

Also takes the resource command options.

signapi envelopes get 5e5ace5e-…

envelopes create

signapi envelopes create [options]

Create an envelope from a JSON body: the public Create an envelope request, sent as written. Live mode asks for confirmation first.

Option Description
--body <path> JSON file with the request body, or - to read it from stdin (required)
--yes Confirm without the prompt (required in non-interactive shells)

Also takes the resource command options.

signapi envelopes create --body envelope.json
signapi envelopes create --body - --yes < envelope.json

envelopes cancel

signapi envelopes cancel <envelope-id> [options]

Cancel an envelope so its recipients can no longer sign. It cannot be undone, so it asks for confirmation in both modes.

Option Description
--reason <text> Reason recorded in the envelope.canceled event
--yes Confirm without the prompt (required in non-interactive shells)

Also takes the resource command options.

signapi envelopes cancel 5e5ace5e-… --reason "Replaced by a new version" --yes

envelopes delete

signapi envelopes delete <envelope-id> [options]

Delete a completed, canceled or failed envelope and its documents. It cannot be undone, so it asks for confirmation in both modes.

Option Description
--yes Confirm without the prompt (required in non-interactive shells)

Also takes the resource command options.

signapi envelopes delete 5e5ace5e-… --yes

events

events list

signapi events list [options]

List the account's events, or one envelope's or recipient's, newest first, up to 20 per page.

Option Description
--envelope <envelope-id> Only this envelope's events
--recipient <recipient-id> Only this recipient's events
--type <event-type> Only events of this type, such as envelope.completed
--limit <count> Items per page, 1 to 20 (default 20)
--cursor <cursor> Cursor of the page to get, from a previous result's next_cursor

Also takes the resource command options.

signapi events list --envelope 5e5ace5e-…
signapi events list --type envelope.completed --json

init

signapi init [options]

Write the account's API key into the env file, signing in first when needed. Test mode (the default) writes the test key; --mode live creates a live key.

Option Description
--mode <mode> Which key to write: test (the account's test key) or live (a new live key); default test
--env-path <path> Env file to write to, inside the current directory; created when missing (default .env, or .env.local in Next.js projects)
--var <name> Env variable that holds the API key (default SIGNAPI_KEY)
--replace Overwrite the variable when it already holds a different value
--description <text> Label for the new key, shown in the Dashboard and in api-keys list (up to 64 characters)
--skills Install the Sign API agent skills
--mcp Register the Sign API MCP server
--agent <name> Agent to configure; repeatable: claude-code, cursor, codex, opencode, gemini-cli, github-copilot, windsurf, kiro, zed, goose, cline
--global Install for your user instead of this project
--no-agent-setup Don't offer to set up detected coding agents after saving the key
--yes Confirm a live key and apply agent setup without the prompts (required in non-interactive shells)

Also takes the signed-in command options.

signapi init
signapi init --env-path .env.development --var MY_SIGNAPI_KEY
signapi init --mode live --env-path .env.live --description "Billing worker"
signapi init --skills --mcp --agent claude-code --yes

listen

signapi listen [options]

Register a test-mode webhook listener for this machine, save its ID and signing secret in the env file, and deliver test events until you stop it (Ctrl+C disables it). Event types: envelope.created, envelope.started, envelope.completed, envelope.failed, envelope.canceled, recipient.released, recipient.sent, recipient.accessed, recipient.identity_verification_started, recipient.identity_verified, recipient.identity_rejected, recipient.viewed, recipient.completed, recipient.soft_bounced, recipient.hard_bounced, recipient.rejected, recipient.failed, recipient.replaced, recipient.resent, deliverable.generated, deliverable.failed, sender.created, sender.verified, sender.failed, sender.deleted.

Option Description
--forward-to <url> Local URL of your webhook handler; deliveries reach it through a tunnel to the API
--public-url <url> Public HTTPS URL you already run; deliveries go there with no tunnel
--event <event-type> Only subscribe to this event type. Repeatable. Default: every event type
--env-path <path> Env file to write to, inside the current directory; created when missing (default .env, or .env.local in Next.js projects)
--webhook-id <webhook-id> CLI webhook ID (cli_…) to use instead of the one saved in the env file
--webhook-id-var <name> Env variable that holds the CLI webhook ID (default SIGNAPI_WEBHOOK_ID)
--secret-var <name> Env variable that holds the webhook signing secret (default SIGNAPI_WEBHOOK_SECRET)
--replace Overwrite a different signing secret already in the env file

Also takes the signed-in command options.

signapi listen --forward-to http://127.0.0.1:3000/webhooks
signapi listen --public-url https://my-tunnel.example/webhooks
signapi listen --public-url https://my-tunnel.example/webhooks --event envelope.completed --event recipient.completed
signapi listen --env-path .env.worker --public-url https://my-tunnel.example/worker

login

signapi login [options]

Sign in with a device code: approve the code in a browser on any device and choose the organization the CLI acts for. Keeps a sign-in that still works.

Also takes the sign-in command options.

signapi login
signapi login --credential-store file --json

logout

signapi logout [options]

Revoke the CLI's sign-in and delete it from this machine. Without --credential-store, signs out of every store.

Also takes the sign-in command options.

signapi logout
signapi logout --credential-store file

recipients

recipients resend

signapi recipients resend <recipient-id> [options]

Send the recipient's signing request again, optionally with another subject or message. Live mode asks for confirmation first.

Option Description
--subject <text> Subject to use instead of the original
--message <text> Message to use instead of the original
--yes Confirm without the prompt (required in non-interactive shells)

Also takes the resource command options.

signapi recipients resend re_… --subject "Reminder: please sign"

recipients replace

signapi recipients replace <recipient-id> [options]

Replace a recipient who has not signed with another person. Live mode asks for confirmation first.

Option Description
--email <email> Email of the new recipient (required)
--name <name> Name of the new recipient (required)
--yes Confirm without the prompt (required in non-interactive shells)

Also takes the resource command options.

signapi recipients replace re_… --email jane@example.com --name "Jane Doe"

recipients ceremony

signapi recipients ceremony <recipient-id> [options]

Create a signing ceremony for a recipient from a JSON body (the public Create a ceremony request) and show its URL. A new ceremony revokes the active one. Anyone with the URL can sign as the recipient. Live mode asks for confirmation first.

Option Description
--body <path> JSON file with the request body, or - to read it from stdin (required)
--yes Confirm without the prompt (required in non-interactive shells)

Also takes the resource command options.

signapi recipients ceremony re_… --body ceremony.json

run

signapi run -- <command> [options]

Run the command after -- with the account's test key in SIGNAPI_KEY, and the signing secret of the listener saved in the env file (by listen) in SIGNAPI_WEBHOOK_SECRET. Nothing is written to disk; the command's output shows the values concealed. Test only. Exits with the command's exit status.

Option Description
--env-path <path> Env file that holds the listener's webhook ID (default .env, or .env.local in Next.js projects); only read
--no-masking Give the command your terminal and leave its output unmasked

Also takes the signed-in command options.

signapi run -- npm test
signapi run --env-path .env.worker -- go run ./cmd/worker

trigger

signapi trigger <event-type> [options]

Send an example event to the listener that listen registered. No envelope changes, and no other endpoint receives it. Event types: envelope.created, envelope.started, envelope.completed, envelope.failed, envelope.canceled, recipient.released, recipient.sent, recipient.accessed, recipient.identity_verification_started, recipient.identity_verified, recipient.identity_rejected, recipient.viewed, recipient.completed, recipient.soft_bounced, recipient.hard_bounced, recipient.rejected, recipient.failed, recipient.replaced, recipient.resent, deliverable.generated, deliverable.failed, sender.created, sender.verified, sender.failed, sender.deleted.

Option Description
--env-path <path> Env file that holds the webhook ID and signing secret (default .env, or .env.local in Next.js projects)
--webhook-id <webhook-id> CLI webhook ID (cli_…) to use instead of the one saved in the env file
--webhook-id-var <name> Env variable that holds the CLI webhook ID (default SIGNAPI_WEBHOOK_ID)
--secret-var <name> Env variable that holds the webhook signing secret (default SIGNAPI_WEBHOOK_SECRET)

Also takes the signed-in command options.

signapi trigger envelope.completed
signapi trigger envelope.completed --webhook-id-var WORKER_WEBHOOK_ID --secret-var WORKER_WEBHOOK_SECRET

uploads

uploads create

signapi uploads create <path> [options]

Upload a local PDF, DOCX, PNG, Markdown or HTML file and show the URL to use as a document's url in envelopes create. Uploads expire after 24 hours unless --key stores them permanently, and belong to the account, not a mode.

Option Description
--key <key> Store the upload permanently under this key (1 to 100 of a-z, 0-9, - and _)

Also takes the upload command options.

signapi uploads create contract.pdf
signapi uploads create template.pdf --key contract-template-v2

uploads inspect

signapi uploads inspect <upload-id> [options]

Show the analyzed structure of a PDF or DOCX upload: pages, the placeholders found and, for DOCX templates, the template fields.

Also takes the upload command options.

signapi uploads inspect upl_…
signapi uploads inspect upl_… --json

webhooks

webhooks secret

signapi webhooks secret <endpoint-id> [options]

Write a webhook endpoint's signing secret into the env file, or print it with --show-secret. Live mode asks for confirmation.

Option Description
--mode <mode> Mode of the endpoint: test or live (default test)
--env-path <path> Env file to write to, inside the current directory; created when missing (default .env, or .env.local in Next.js projects)
--var <name> Env variable that holds the secret (default SIGNAPI_WEBHOOK_SECRET)
--replace Overwrite a different secret already in the variable
--show-secret Print the secret (on stdout, or as secret in the --json result) instead of writing the env file
--yes Confirm without the prompt (required in non-interactive shells)

Also takes the signed-in command options.

signapi webhooks secret ep_…
signapi webhooks secret ep_… --mode live --env-path .env.live --var ORDERS_WEBHOOK_SECRET --yes

webhooks rotate-secret

signapi webhooks rotate-secret <endpoint-id> [options]

Replace a webhook endpoint's signing secret. The previous secret keeps signing for the overlap, so handlers can switch. Prints no secret: read the new one with webhooks secret. Live mode asks for confirmation.

Option Description
--mode <mode> Mode of the endpoint: test or live (default test)
--overlap <duration> How long the previous secret keeps signing: 0, or a whole number followed by s, m, h or d, up to 7d (default 24h)
--yes Confirm without the prompt (required in non-interactive shells)

Also takes the signed-in command options.

signapi webhooks rotate-secret ep_… --overlap 1h
signapi webhooks rotate-secret ep_… --mode live --overlap 0 --yes

whoami

signapi whoami [options]

Show the account the stored sign-in acts for. Never starts a sign-in.

Also takes the sign-in command options.

signapi whoami
signapi whoami --json

View this page as Markdown