Archive Workflow

Archive contract flow

Hides a contract flow from the default list and stops new contract
requests from being sent with it. Existing contract requests are
untouched. Use this for a flow that is linked to contract requests and so
cannot be deleted. Reversible with unarchive. Returns 404 if the flow
does not exist.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Archive a contract flow you no longer want to use. An archived flow disappears from the default list and no new contract can be sent from it. Contracts already sent from it are not affected.

Use this for a flow that has been used to send contracts and therefore cannot be deleted. It is reversible with Unarchive Workflow.

This endpoint is for contract flows (/contracts/workflows). Automation workflows (/workflows) have their own archive endpoint.

Authentication & access

  • Requires a client API token: Authorization: Bearer <token>.
  • API credentials need the contracts.workflows.archive permission. Dashboard users need the OWNER or OPERATIONS role, or a custom role that includes this permission.
  • Contract signing must be enabled for the client. If it is disabled the request returns 403.

Path parameters

ParameterDescription
workflow_idID of the contract flow to archive. Must belong to your client.

Behavior

  • The flow status becomes archived. Archiving an already archived flow succeeds and changes nothing.
  • GET /api/v1/contracts/workflows only returns it with include_archived=true or status=archived.
  • POST /api/v1/contracts/requests with this workflow_id returns 400 until it is unarchived.
  • Updating the flow with PUT /api/v1/contracts/workflows/{workflow_id} also restores it to published.

Response

200 - The updated contract flow, with status set to archived.

Error responses

StatusWhen
403Contract signing is disabled for the client
404No contract flow with this workflow_id exists under your client

Standard 401 (authentication), 403 (insufficient permission or role), and 429 (rate limit) responses apply to every endpoint and are documented in the Error reference.

Path Params
string
required
Responses

Language
Credentials
Bearer
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json