Skip to main content
POST
/
interrupts
/
{interruptId}
curl --request POST \
  --url http://localhost:5173/api/flowdrop/interrupts/{interruptId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "value": true
}'
{
  "success": true,
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "nodeId": "<string>",
    "executionId": "<string>",
    "config": {
      "message": "Do you approve this action?",
      "confirm_label": "Approve",
      "cancel_label": "Reject"
    },
    "allowCancel": true,
    "messageId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "response": "<unknown>",
    "response_time": "2023-11-07T05:31:56Z",
    "user_id": "<string>",
    "createdAt": "2023-11-07T05:31:56Z"
  },
  "message": "<string>",
  "error": "<string>"
}

Authorizations

Authorization
string
header
required

JWT token for authentication

Path Parameters

interruptId
string<uuid>
required

Interrupt UUID

Body

application/json

Request body for resolving an interrupt

value
any
required

User's response. Type depends on interrupt type:

  • confirmation: boolean
  • choice: string or string[]
  • text: string
  • form: object
  • review: ReviewResolution (decisions map + summary)

Response

Interrupt resolved successfully

success
boolean

Whether the request was successful

data
object

Represents a Human-in-the-Loop interrupt request. Interrupts are created when workflow execution requires user input.

message
string

Response message

error
string

Error message (if any)