: "${MOBIUS_API_BASE_URL:?Set the API URL from your app}"
: "${MOBIUS_API_KEY:?Set your API key locally}"
: "${TASK_ID:?Set the task UUID}"
: "${IDEMPOTENCY_KEY:?Generate and persist an ID before this mutation}"
curl -i "$MOBIUS_API_BASE_URL/v1/delta-neutral/tasks/$TASK_ID/close" \
-H "Authorization: Bearer $MOBIUS_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
-d '{}'
{
"taskId": "00000000-0000-4000-8000-000000000001",
"status": "close_queued"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}Endpoints
Close a running task
Queues a close request. Task status may remain running until the worker begins closing.
POST
/
v1
/
delta-neutral
/
tasks
/
{taskId}
/
close
: "${MOBIUS_API_BASE_URL:?Set the API URL from your app}"
: "${MOBIUS_API_KEY:?Set your API key locally}"
: "${TASK_ID:?Set the task UUID}"
: "${IDEMPOTENCY_KEY:?Generate and persist an ID before this mutation}"
curl -i "$MOBIUS_API_BASE_URL/v1/delta-neutral/tasks/$TASK_ID/close" \
-H "Authorization: Bearer $MOBIUS_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
-d '{}'
{
"taskId": "00000000-0000-4000-8000-000000000001",
"status": "close_queued"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}Send
{}. The accepted response is 202 with close_queued. The task may remain running with closeRequestedAt set until the worker starts closing it.
A close request is durable even when another operation is active for the wallet. It blocks new opens and resizes while waiting; it cannot interrupt an operation already in progress. Poll until closing, then closed, or inspect an error.
: "${MOBIUS_API_BASE_URL:?Set the API URL from your app}"
: "${MOBIUS_API_KEY:?Set your API key locally}"
: "${TASK_ID:?Set the task UUID}"
: "${IDEMPOTENCY_KEY:?Generate and persist an ID before this mutation}"
curl -i "$MOBIUS_API_BASE_URL/v1/delta-neutral/tasks/$TASK_ID/close" \
-H "Authorization: Bearer $MOBIUS_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
-d '{}'
Authorizations
API key created in this environment: mobius_.. Keep it in a local environment variable; never commit it.
Headers
Persist one ID per intended mutation before sending. Reuse it with the same request for retries; different content returns 409.
Required string length:
1 - 128Pattern:
^[!-~]+$Path Parameters
Pattern:
^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$Body
application/json
The body is of type object.

