Skip to main content
DELETE
Cancel Task
Product: Visual Agents Use case: Managed endpoints powering Memories.ai’s open-source video search and editing agents (queries, video clipping/editing, screenplay extraction) Host: https://mavi-backend.memories.ai/serve/api/v2 Auth: Authorization: sk-mavi-... (no Bearer prefix)
This endpoint cancels an in-progress screenplay extraction task. Once cancelled, the task cannot be resumed.

Code Examples

Path Parameters

Response

Response Parameters

Notes

  • Only tasks in pending or running status can be cancelled
  • Cancellation is irreversible — a cancelled task cannot be resumed
  • The processing cost charged at submission time is not refunded upon cancellation
  • After cancellation, Get Task Status will return "cancelled" status

Authorizations

Authorization
string
header
required

API key for authentication

Path Parameters

task_id
string
required

The screenplay task ID to cancel

Example:

"ros-sd-20260313-a3f8c2b1"

Response

200 - application/json

Task cancelled successfully

code
integer

Response code indicating the result status

Example:

200

msg
string

Response message

Example:

"success"

data
object
success
boolean

Indicates whether the cancellation was successful

Example:

true

failed
boolean

Indicates whether the cancellation failed

Example:

false