Task operations
These operations are part of API v1. Create an integration with the operations profile to authorize tasks:write; rotating an older key does not add that permission. Select the team with Totem-Team and supply a new Idempotency-Key for each distinct task action. Retry the same action with the same key and body.
POST /v1/tasks creates one open task. Member ids come from GET /v1/members, and a lead id must belong to the selected team. The server sets the actor and source. POST /v1/tasks/{id}/complete takes an empty JSON object and completes that task; completing an already completed task is safe.
Both return an operation. Acceptance is not completion: wait for status: succeeded and use the opaque task_ id in its result. The result contains no task text. These operations do not add tasks to the changes feed.
POST /
Accepts a same-team task request as a durable operation. Follow its operation id until completion; retries with the same Idempotency-Key return the same logical operation. The server fixes task provenance and actor; current members and lead ownership are checked again before execution.
Headers
Totem-Teamstring Conditional ID prefixteam_…The team to read, as a
team_…id. Omit it when the key reads one team; it is required when the key reads several (400 team_required). When you send it, it must name a team the key reads: a malformed id gets400 invalid_request, and a team outside the key gets404 team_not_accessible, as does a request without it once the key reads no team at all.Idempotency-Keystring Required 1–255 chars Pattern^[\x21-\x7e]+$One unique visible-ASCII key per logical write; reuse exactly on retries and never retry outcome_unknown automatically.
Request body
Create one open task in the selected team. Member and lead ids must belong to that team; task source and actor are set by the server.
titlestring Required 1–300 charsTask title, up to 300 characters.
body_markdownstring ≤ 50000 charsTask description in Markdown.
prioritystringTask priority; defaults to none.
Possible valuesnonelowmediumhighurgent
start_atstring Nullable Formatdate-timedue_atstring Nullable Formatdate-timeassigned_to_idsArray<string> ID prefixmem_…≤ 50 itemsCurrent team members assigned to this task.
owner_idstring Nullable ID prefixmem_…lead_idstring Nullable ID prefixlead_…tagsArray<string> ≤ 30 itemsTask tags, up to 30 entries of 50 characters.
remindersobject NullableReminder preferences, or null for no reminder configuration.
enabledboolean RequiredWhether this task has reminders enabled.
offsets_minutesArray<integer> Required ≤ 5 itemsUp to five offsets before the due time, each from 0 to 43,200 minutes.
Returns
Returns an Operation object.
objectstringAlways operation.
idstring ID prefixop_…Opaque durable operation id.
statusstringDurable operation state; outcome_unknown must be reconciled before repeating the effect.
Possible valuesqueuedrunningsucceededfailedcancelledoutcome_unknown
endpointstringThe original endpoint executed by this operation.
Possible valuestasks.createtasks.completenotifications.createdecision_requests.createdecision_requests.cancelbookings.createbookings.cancelbookings.reschedulebookingPayments.sendLinkmessages.sendmessages.requestInfomessages.prepareReplycalls.startlibrary.sendcatalog.sendquotes.recordOutcomeassistants.run
created_atstring Formatdate-timeWhen this operation was accepted, in UTC.
updated_atstring Formatdate-timeWhen its current state was recorded, in UTC.
resultTaskReceipt | NotificationReceipt | DecisionRequestReceipt | BookingReceipt | BookingPaymentReceipt | MessageReceipt | RequestedInfoReceipt | FirstReplyReceipt | CallStartReceipt | QuoteOutcomeReceipt | AssistantRunReceipt | LibraryDeliveryReceipt | CatalogSendReceipt NullableMinimal public resource receipt after success, otherwise null.
errorobject NullableSafe failure information, or null.
codestringClosed failure code without provider text, task content or credentials.
Possible valuesauthorization_failedconfiguration_missinginput_expiredinvalid_inputresource_missingexecution_failedoutcome_unknown
Errors
- 400
idempotency_key_requiredIdempotency key required - 400
team_requiredTeam required - 403
team_state_restrictedTeam restricted - 403
sector_restrictedSector restricted - 404
team_not_accessibleTeam not accessible - 409
idempotency_key_reusedIdempotency key reused - 409
idempotency_in_progressWrite in progress - 409
outcome_unknownWrite outcome unknown - 409
capture_not_readyTeam data is still being prepared - 429
quota_exceededDaily quota exceeded
# Fictional fixtures: replace references and dates with current API values.
# Send consent or confirmation attestations only after the person confirms.
curl -X POST 'https://api.totemstudio.ai/v1/tasks' \
-H "Authorization: Bearer $TOTEM_API_KEY" \
-H "Totem-Team: $TOTEM_TEAM_ID" \
-H "Idempotency-Key: ${TOTEM_IDEMPOTENCY_KEY:?Set one unique key for this logical write}" \
-H "Content-Type: application/json" \
--data '{"title": "Follow up on the proposal"}'{
"object": "operation",
"id": "op_m3yGe1tkVy6hn3m9LH9m7e640wg0O",
"status": "queued",
"endpoint": "tasks.create",
"created_at": "2026-10-01T09:30:00.000Z",
"updated_at": "2026-10-01T09:30:00.000Z",
"result": null,
"error": null
}POST /
Accepts completion of a task in the selected team as a durable operation. Completing a task already done is safe. The opaque task id and current execution authority are checked before any mutation; selecting a team never authorizes a task from another team.
Path parameters
idstring Required ID prefixtask_…The task's public id.
Headers
Totem-Teamstring Conditional ID prefixteam_…The team to read, as a
team_…id. Omit it when the key reads one team; it is required when the key reads several (400 team_required). When you send it, it must name a team the key reads: a malformed id gets400 invalid_request, and a team outside the key gets404 team_not_accessible, as does a request without it once the key reads no team at all.Idempotency-Keystring Required 1–255 chars Pattern^[\x21-\x7e]+$One unique visible-ASCII key per logical write; reuse exactly on retries and never retry outcome_unknown automatically.
Returns
Returns an Operation object.
objectstringAlways operation.
idstring ID prefixop_…Opaque durable operation id.
statusstringDurable operation state; outcome_unknown must be reconciled before repeating the effect.
Possible valuesqueuedrunningsucceededfailedcancelledoutcome_unknown
endpointstringThe original endpoint executed by this operation.
Possible valuestasks.createtasks.completenotifications.createdecision_requests.createdecision_requests.cancelbookings.createbookings.cancelbookings.reschedulebookingPayments.sendLinkmessages.sendmessages.requestInfomessages.prepareReplycalls.startlibrary.sendcatalog.sendquotes.recordOutcomeassistants.run
created_atstring Formatdate-timeWhen this operation was accepted, in UTC.
updated_atstring Formatdate-timeWhen its current state was recorded, in UTC.
resultTaskReceipt | NotificationReceipt | DecisionRequestReceipt | BookingReceipt | BookingPaymentReceipt | MessageReceipt | RequestedInfoReceipt | FirstReplyReceipt | CallStartReceipt | QuoteOutcomeReceipt | AssistantRunReceipt | LibraryDeliveryReceipt | CatalogSendReceipt NullableMinimal public resource receipt after success, otherwise null.
errorobject NullableSafe failure information, or null.
codestringClosed failure code without provider text, task content or credentials.
Possible valuesauthorization_failedconfiguration_missinginput_expiredinvalid_inputresource_missingexecution_failedoutcome_unknown
Errors
- 400
idempotency_key_requiredIdempotency key required - 400
team_requiredTeam required - 403
team_state_restrictedTeam restricted - 403
sector_restrictedSector restricted - 404
resource_missingResource not found - 404
team_not_accessibleTeam not accessible - 409
idempotency_key_reusedIdempotency key reused - 409
idempotency_in_progressWrite in progress - 409
outcome_unknownWrite outcome unknown - 409
capture_not_readyTeam data is still being prepared - 429
quota_exceededDaily quota exceeded
# Fictional fixtures: replace references and dates with current API values.
# Send consent or confirmation attestations only after the person confirms.
curl -X POST 'https://api.totemstudio.ai/v1/tasks/task_m3wNC3n7WfzycfQJlLJiPi53sB5Dr/complete' \
-H "Authorization: Bearer $TOTEM_API_KEY" \
-H "Totem-Team: $TOTEM_TEAM_ID" \
-H "Idempotency-Key: ${TOTEM_IDEMPOTENCY_KEY:?Set one unique key for this logical write}" \
-H "Content-Type: application/json" \
--data '{}'{
"object": "operation",
"id": "op_m40A600NVGDQxS7yvCzppa74RKZcs",
"status": "succeeded",
"endpoint": "tasks.complete",
"created_at": "2026-10-01T09:30:00.000Z",
"updated_at": "2026-10-01T09:30:01.000Z",
"result": {
"object": "task_receipt",
"id": "task_m3wNC3n7WfzycfQJlLJiPi53sB5Dr",
"status": "done"
},
"error": null
}Minimal task receipt without task content or internal ids.
Attributes
objectstringAlways task_receipt.
idstring ID prefixtask_…Opaque task id bound to its team and incarnation; never parse it.
statusstringTask state recorded by the completed operation.
Possible valuesopendone
{
"object": "task_receipt",
"id": "task_m3wNC3n7WfzycfQJlLJiPi53sB5Dr",
"status": "open"
}