Group tasks
Get a task
Returns the task with history, oldest event first.
- Bearer API key
- Scope:
read, write or admin - or app session
- Workspace:
X-Tenant-ID(optional with a key)
Path parameters
iduuidrequiredTask id.
Headers
AuthorizationstringrequiredYour API key as
Bearer <key>. The wordBearerand the space are case-sensitive. Browser clients signed in to the app use the session cookie instead.X-Tenant-IDuuidoptionalWorkspace id. Optional with an API key (a key always acts in its own workspace); if you send it, it must match the key’s workspace. Required with a session cookie. You can pass
?tenant=<id>instead.
Response
200 OKapplication/json
iduuidTask id.
descriptionstringWhat has to be done (1–500 characters).
statusenumopen,done,cancelledorpaused(the person said stop, or a question went to the owner).groupobjectThe group the task was assigned in.
Show child attributesHide child attributes3
conversation_iduuidConversation id of the group.
namestringGroup name.
jidstringWhatsApp id of the group.
assignerobjectWho gave the task.
Show child attributesHide child attributes3
jidstringWhatsApp id of the person.
namestringName as saved in your contacts or shown in WhatsApp.
phonestringNumber in E.164 with
+, or""when WhatsApp hides it.
assigneeobjectWho has to do it.
Show child attributesHide child attributes3
jidstringWhatsApp id of the person.
namestringName as saved in your contacts or shown in WhatsApp.
phonestringNumber in E.164 with
+, or""when WhatsApp hides it.
assigned_attimestampWhen the task was given in the group.
due_attimestampnullableA deadline given in the group.
committed_due_attimestampnullableThe deadline the assignee promised (or one you set with PATCH).
missed_deadlinesintegerHow many deadlines were missed.
days_lateintegerDays past the deadline;
0when on time.followups_sentintegerFollow-ups sent so far.
next_followup_attimestampnullableWhen the next follow-up is due.
last_followup_attimestampnullableWhen the last follow-up went out.
last_replystringThe assignee’s last reply about the task.
last_reply_attimestampnullableWhen that reply arrived.
done_attimestampnullableWhen the task was marked done.
source_message_idstringWhatsApp id of the group message that created the task.
historyarray<object>may be absentThe task’s history, oldest first. Only on Get a task.
Show child attributesHide child attributes3
attimestampWhen it happened.
kindenumcreated,asked_timeline,committed,reminder_sent,reply,missed_deadline,escalated,done,cancelledorpaused.textstringThe message or a short note.
Status codes
- 200OK. The task with its history.
- 400Bad request. The id is not a valid UUID.
- 401Unauthorized. The API key is unknown, revoked or expired (
invalid or expired API key), the key was blocked because it may have been leaked (code: "api_key_blocked"), or there is no key and no signed-in session (unauthorized). - 402Payment required. Only when subscriptions are enforced and the workspace has no active subscription. The body includes
code: "payment_required". - 403Forbidden. The
X-Tenant-IDheader ortenantquery does not match the API key’s workspace (API key belongs to a different workspace), a signed-in user is not a member of the workspace (forbidden), or the key is limited to other IP addresses (this API key is not allowed from your IP address, withcode: "ip_not_allowed"). - 404Not found. No task with this id in the workspace, or (for an agent) a task they may not see.
- 500Server error. The task could not be loaded.