Node.js
Task APIs
Create Task
This endpoint creates a new task
Node.js
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
- The title of the task (1–500 characters)
Example:
"Example todo task title"
- The type of the new task
- Possible values:
todo,chat,message,ticket - Default
todo
Available options:
todo, chat, message, ticket Example:
"todo"
- Required when
type !== "todo". Forbidden whentype === "todo". - Must contain exactly one of
chat_id/message_id/ticket_id, matching thetype
- Status of the task
- Possible values:
open,inprogress,closed - Default
open
Available options:
open, inprogress, closed Example:
"open"
- The priority of the new task
- Possible values:
1,2,3 - Default
1
Available options:
1, 2, 3 Example:
2
- Email of an org member. Validated against your org's member list
Example:
"ankit.singh@hashlabs.dev"
- The due date of the new task
- Should be in ISO 8601 timestamp format
Example:
"2026-06-15T18:00:00+00:00"
- Free-form text attached to the task
Example:
"Customer escalated via email — coordinate with support"
- The remind date for the task to receive a reminder
- Should be in ISO 8601 timestamp format
Example:
"2026-06-18T18:00:00+00:00"
- Email of an org member. Defaults to
"api"
Example:
"anjali.pandey@hashlabs.dev"
Response
200 - application/json
200 OK
The response is a task object. Refer to the task object here