Create task
POST
/api/v1/ext/tasks
Add a task to a workspace.
Auth: Bearer access_token
Scope: tasks.write
With a due_at and reminder_minutes_before, the assignee (or the account owner) gets the same reminder as for a task made on the dashboard.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| workspace_id | body | number | yes | The workspace. |
| title | body | string | yes | Up to 255 characters. |
| description | body | string | no | Details, up to 5000 characters. |
| priority | body | enum | no | Default medium. |
| due_at | body | string | no | ISO 8601. null for no due date. |
| reminder_minutes_before | body | number | no | 0–43200. Needs a due_at. null for no reminder. |
| assignee_id | body | number | no | The account owner, or a subaccount admin id from List subaccount admins. null to unassign. |
| contact_id | body | number | no | A contact in the same workspace. null to unlink. |
| opportunity_id | body | number | no | An opportunity in the same workspace. null to unlink. |
Responses
| Status | When |
|---|---|
201 | Created |
400 | Missing or invalid field |
401 | Missing or invalid token |
403 | Missing scope |
404 | workspace_id does not exist or is not owned by the installer (same response for both) |
Response schema
taskobjectidnumberTask id.
Example:
300workspace_idnumberThe workspace it belongs to.
Example:
7titlestringWhat has to be done.
descriptionstringnullable
Details.
prioritystring"low", "medium" or "high".
Example:
mediumstatusstring"open" or "completed".
Example:
opendue_atstring (ISO 8601)nullable
When it is due, UTC.
reminder_minutes_beforenumbernullable
Minutes before due_at the assignee is reminded.
reminder_atstring (ISO 8601)nullable
When the reminder goes out (worked out from the two above).
assignee_idnumbernullable
The team member it is assigned to — the account owner or one of its subaccount admins.
contactobjectnullable
The linked contact: id, first_name, last_name, email, phone_number, company_name.
opportunityobjectnullable
The linked opportunity: id, name, status.
completed_atstring (ISO 8601)nullable
When it was completed.
RequestResponses
curl -X POST "https://backend.mysmsgateway.app/api/v1/ext/tasks" \
-H "Authorization: Bearer <ACCESS_TOKEN>" \
-H "Content-Type: application/json" \
-d '{
"workspace_id": 7,
"title": "Call Ann back about the quote",
"priority": "high",
"due_at": "2026-11-03T09:00:00Z",
"reminder_minutes_before": 15,
"assignee_id": 41,
"contact_id": 1234
}'Created
{
"success": true,
"message": "Task created",
"data": {
"id": 300,
"workspace_id": 7,
"title": "Call Ann back about the quote",
"description": null,
"priority": "high",
"status": "open",
"due_at": "2026-11-03T09:00:00.000Z",
"reminder_minutes_before": 15,
"reminder_at": "2026-11-03T08:45:00.000Z",
"assignee_id": 41,
"contact_id": 1234,
"contact": {
"id": 1234,
"first_name": "Ann",
"last_name": "Lee",
"email": "ann@example.com",
"phone_number": "+61412345678",
"company_name": "Lee Studio"
},
"opportunity_id": null,
"opportunity": null,
"completed_at": null,
"created_at": "2026-10-27T09:00:00.000Z",
"updated_at": "2026-10-27T09:00:00.000Z"
}
}Try It!
This endpoint needs a bearer token. Open Settings (top right) and paste your access_token.
Body (JSON)
Request URL
POSThttps://backend.mysmsgateway.app/api/v1/ext/tasks
Previous
« Get task
Next
Update task »
