Workflows

Clone a workflow

Copies a workflow and its whole graph as a new workflow. The copy is always created disabled, whatever the original was: a clone exists to be reviewed, and one that started live would match the same trigger events as its original from the moment it appeared.

Server-side rather than a read-then-write, so the copy is taken from one consistent read of the source.

Requires the workflows:write scope — Create, edit, enable, and delete your automation workflows.

post/api/v1/workflows/{id}/clone

Request

  • Base URL: https://api.sendly.now
  • URL: https://api.sendly.now/api/v1/workflows/{id}/clone
  • Auth: one of:
    • HTTP bearer
    • API key in cookie better-auth.session_token
    • OAuth 2 (authorization code, authorization URL https://app.sendly.now/api/auth/oauth2/authorize, token URL https://app.sendly.now/api/auth/oauth2/token, scopes: workflows:write)

Path parameters

idstring uuid required

Workflow id.

Request body

namestring

Name for the copy. Defaults to Copy of <original name>.

Response

The cloned workflow

allow_reentryboolean required
created_atstring date-time required
descriptionstring nullable required
enabledboolean required
event_namestring nullable required

Trigger event for EVENT workflows; null for the other trigger types.

idstring uuid required
max_executions_per_hourinteger nullable required
namestring required
step_countinteger required

Steps in this workflow's graph, trigger step included — so a workflow that has only ever been created reports 1. Read /graph for the steps themselves.

trigger_type'EVENT' | 'MANUAL' | 'SCHEDULE' required
updated_atstring date-time required
versioninteger required

Incremented on every structural (step/transition) change.

Changes

No recorded changes to this operation across all 1 revision of this API.