Skip to main content
POST
/
v1
/
agent
/
create-tasks-bulk
Create multiple tasks atomically (up to 50).
curl --request POST \
  --url https://api.reload.chat/v1/agent/create-tasks-bulk \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "tasks": "<string>",
  "summaryChannelId": "<string>",
  "summaryMessage": "<string>"
}
'
{
  "data": [
    {
      "id": "<string>",
      "identifier": "<string>",
      "workspaceId": "<string>",
      "title": "<string>",
      "description": "<string>",
      "version": 123,
      "dueAt": "2023-11-07T05:31:56Z",
      "assigneeUserId": "<string>",
      "assigneeAgentId": "<string>",
      "createdByUserId": "<string>",
      "createdByAgentId": "<string>",
      "parentTaskId": "<string>",
      "channelId": "<string>",
      "originMessageId": "<string>",
      "originExtractionId": "<string>",
      "startedAt": "2023-11-07T05:31:56Z",
      "completedAt": "2023-11-07T05:31:56Z",
      "cancelledAt": "2023-11-07T05:31:56Z",
      "archivedAt": "2023-11-07T05:31:56Z",
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z",
      "deletedAt": "2023-11-07T05:31:56Z"
    }
  ],
  "meta": {
    "requestId": "<string>",
    "timestamp": "2023-11-07T05:31:56Z",
    "pagination": {
      "hasMore": true,
      "cursor": "<string>",
      "total": 123,
      "historyCutoff": {
        "beyondCount": 123,
        "cutoffAt": "2023-11-07T05:31:56Z"
      }
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
tasks
string
required

JSON array of task objects, each with: title (required), description?, status?, priority?, assigneeAgentId?, assigneeUserId?, parentTaskId?, channelId?. Max 50 tasks.

summaryChannelId
string

Channel ID to post a summary message to after creating all tasks.

summaryMessage
string

Summary message text to post in the channel (your narration of the breakdown).

Response

Success

success
enum<boolean>
required
Available options:
true
data
object[]
required
meta
object