---
updatedAt: 2026-05-11T06:52:59.000Z
agentTools:
  projectIndex: https://platform.simpplr.com/llms.txt
---

# Create a new task

Create a new task with standard fields like title, description, priority, due date, optional scheduled date (when enabled in task fields), and assign it to one or more users.


# OpenAPI definition

```json
{
  "openapi": "3.0.2",
  "info": {
    "version": "1.0.0",
    "title": "Simpplr B2B API Documentation",
    "description": "API documentation for Simpplr B2B integration services",
    "contact": {
      "name": "Simpplr Support"
    }
  },
  "x-proxy-enabled": true,
  "tags": [
    {
      "name": "Feed",
      "description": "Everything about Feed"
    },
    {
      "name": "Task",
      "description": "Everything about Task"
    }
  ],
  "servers": [
    {
      "url": "https://{endpoint}/v1",
      "variables": {
        "env": {
          "default": "app"
        },
        "endpoint": {
          "default": "platform.app.simpplr.com"
        }
      }
    }
  ],
  "paths": {
    "/b2b/rfeed/feeds": {
      "get": {
        "operationId": "getFeedsUser",
        "tags": [
          "Feed"
        ],
        "summary": "Get feeds",
        "description": "This API allows you to retrieve all feeds",
        "parameters": [
          {
            "name": "nextPageToken",
            "in": "query",
            "required": true,
            "description": "Token for pagination. \n- For initial request, send empty string \"\"\n- For subsequent requests, use the nextPageToken returned as integer from previous response\n",
            "schema": {
              "type": "string",
              "example": "1759911721822"
            }
          },
          {
            "name": "size",
            "in": "query",
            "required": true,
            "description": "The number of feeds to return per page",
            "schema": {
              "type": "string",
              "example": "16"
            }
          },
          {
            "name": "sortBy",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "createdAt",
                "lastActivityAt"
              ],
              "default": "createdAt"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "all"
              ],
              "default": "all"
            },
            "description": "The filter to apply to the feeds"
          },
          {
            "name": "feedContext",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "home",
                "site",
                "content"
              ],
              "default": "home"
            },
            "description": "The context of the feeds. \n- When set to \"site\", siteId parameter is required\n- When set to \"content\", both siteId and contentId parameters are required\n"
          },
          {
            "name": "type",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "post",
                "question"
              ],
              "example": "post",
              "description": "The type of feed to return"
            }
          },
          {
            "name": "siteId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
            },
            "description": "The ID of the site. \nRequired when feedContext is \"site\" or \"content\"\n"
          },
          {
            "name": "contentId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
            },
            "description": "The ID of the content.\nRequired when feedContext is \"content\"\n"
          },
          {
            "name": "feedIds",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "97576a5d-4362-40cb-b8ac-5418b64bf84f,6d54cb3d-da29-461b-8019-3dfb8aa8afe2"
            },
            "description": "The IDs of the feeds to return (send comma-separated list of feed IDs without spaces)"
          },
          {
            "name": "exemptFeedIds",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "97576a5d-4362-40cb-b8ac-5418b64bf84f,6d54cb3d-da29-461b-8019-3dfb8aa8afe2"
            },
            "description": "The IDs of the feeds to exempt from the search (send comma-separated list of feed IDs without spaces)"
          },
          {
            "name": "isSearchForMarkDuplicate",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "example": false
            },
            "description": "Whether to search for mark duplicate feeds(questions)"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "example": "success"
                    },
                    "result": {
                      "type": "object",
                      "properties": {
                        "nextPageToken": {
                          "type": "integer",
                          "example": 1759911721822
                        },
                        "size": {
                          "type": "integer",
                          "example": 10
                        },
                        "total": {
                          "type": "integer",
                          "example": 11
                        },
                        "listOfItems": {
                          "type": "array",
                          "items": {
                            "$ref": "#/paths/~1b2b~1rfeed~1feeds~1{feedId}/get/responses/200/content/application~1json/schema/properties/result"
                          }
                        },
                        "sortBy": {
                          "type": "string",
                          "example": "lastActivityAt"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "example": "error"
                    },
                    "message": {
                      "type": "string",
                      "example": "Failed to get feeds"
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "example": "INVALID_INPUT"
                          },
                          "message": {
                            "type": "string",
                            "example": "An error occurred while processing the request"
                          },
                          "cause": {
                            "type": "string",
                            "example": "size is required"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authorize error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "example": "Missing/Invalid authentication token"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error_code": {
                      "type": "integer",
                      "example": 2001
                    },
                    "message": {
                      "type": "string",
                      "example": "Something went wrong, please try again"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/b2b/task/tasks": {
      "post": {
        "operationId": "createB2BTask",
        "tags": [
          "Task"
        ],
        "summary": "Create a new task",
        "description": "Create a new task with standard fields like title, description, priority, due date, optional scheduled date (when enabled in task fields), and assign it to one or more users.\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "title",
                  "assignedTo",
                  "creatorId",
                  "dueDate",
                  "priority"
                ],
                "properties": {
                  "title": {
                    "type": "string",
                    "maxLength": 255,
                    "example": "Complete quarterly report",
                    "description": "Task title (maximum 255 characters)"
                  },
                  "description": {
                    "type": "string",
                    "example": "Prepare Q4 financial summary for stakeholders",
                    "description": "Detailed description of the task"
                  },
                  "priority": {
                    "type": "string",
                    "enum": [
                      "high",
                      "medium",
                      "low"
                    ],
                    "example": "high",
                    "description": "Priority level of the task"
                  },
                  "dueDate": {
                    "type": "string",
                    "format": "date",
                    "example": "2026-02-15",
                    "description": "Due date in ISO format (YYYY-MM-DD)"
                  },
                  "scheduledDate": {
                    "type": "string",
                    "format": "date",
                    "example": "2026-02-14",
                    "description": "Scheduled date in ISO format (YYYY-MM-DD). Optional in this request schema; required only when `scheduledDate` is enabled in the task-fields list response.\n"
                  },
                  "assignedTo": {
                    "type": "object",
                    "required": [
                      "users"
                    ],
                    "properties": {
                      "users": {
                        "type": "array",
                        "minItems": 1,
                        "items": {
                          "type": "object",
                          "required": [
                            "id"
                          ],
                          "properties": {
                            "id": {
                              "type": "string",
                              "format": "uuid",
                              "example": "24a16040-5960-4f23-9846-ece10ace0498",
                              "description": "Unique identifier of the user to assign the task to"
                            }
                          }
                        },
                        "description": "Array of users to assign the task to (at least one required)"
                      }
                    },
                    "description": "Object containing array of users to assign the task to"
                  },
                  "creatorId": {
                    "type": "string",
                    "format": "uuid",
                    "example": "9a736d37-4337-4f77-b177-deb3efcfd190",
                    "description": "Unique identifier of the creator user (will be set as assignedBy)"
                  },
                  "customFields": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "fieldId": {
                          "type": "string",
                          "format": "uuid",
                          "example": "4ba58d96-9ac2-4820-88ef-28aa4555500d",
                          "description": "Unique identifier of the custom field"
                        },
                        "type": {
                          "type": "string",
                          "example": "text",
                          "description": "Type of the custom field"
                        },
                        "value": {
                          "description": "Value for the custom field (type depends on field type)",
                          "example": "Project Alpha"
                        }
                      }
                    },
                    "description": "Array of custom field values"
                  },
                  "attachments": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "example": [
                      "7ca58d96-8ac2-4820-88ef-28aa4555500e",
                      "8db69a07-9bd3-5931-99ff-39bb5666611f"
                    ],
                    "description": "Array of file UUIDs to attach to the task"
                  }
                }
              },
              "example": {
                "title": "Complete quarterly report",
                "description": "Prepare Q4 financial summary for stakeholders",
                "priority": "high",
                "dueDate": "2026-02-15",
                "scheduledDate": "2026-02-14",
                "assignedTo": {
                  "users": [
                    {
                      "id": "24a16040-5960-4f23-9846-ece10ace0498"
                    },
                    {
                      "id": "24a16040-5960-4f23-9846-ece10ace0498"
                    }
                  ]
                },
                "creatorId": "550e8400-e29b-41d4-a716-446655440000",
                "customFields": [
                  {
                    "fieldId": "4ba58d96-9ac2-4820-88ef-28aa4555500d",
                    "type": "text",
                    "value": "Project Alpha"
                  }
                ],
                "attachments": [
                  "7ca58d96-8ac2-4820-88ef-28aa4555500e",
                  "8db69a07-9bd3-5931-99ff-39bb5666611f"
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "example": "success"
                    },
                    "message": {
                      "type": "string",
                      "example": "Task created successfully"
                    },
                    "responseTimeStamp": {
                      "type": "integer",
                      "format": "int64",
                      "example": 1707235200000,
                      "description": "Response timestamp in milliseconds"
                    },
                    "result": {
                      "type": "object",
                      "properties": {
                        "taskId": {
                          "type": "string",
                          "format": "uuid",
                          "example": "550e8400-e29b-41d4-a716-446655440001",
                          "description": "Unique identifier of the created task"
                        },
                        "assignmentIds": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "example": [
                            "8b5f1e23-4a67-4c89-9d12-3e5f6a7b8c9d",
                            "9c6a2f34-5b78-5d90-0e23-4f6a7a8b9c0e"
                          ],
                          "description": "Unique identifiers of created assignments for each assignee"
                        }
                      }
                    }
                  }
                },
                "example": {
                  "status": "success",
                  "message": "Task created successfully",
                  "responseTimeStamp": 1707235200000,
                  "result": {
                    "taskId": "550e8400-e29b-41d4-a716-446655440001",
                    "assignmentIds": [
                      "8b5f1e23-4a67-4c89-9d12-3e5f6a7b8c9d",
                      "9c6a2f34-5b78-5d90-0e23-4f6a7a8b9c0e"
                    ]
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/paths/~1b2b~1task~1task-fields/get/responses/400"
          },
          "401": {
            "$ref": "#/paths/~1b2b~1rfeed~1feeds/get/responses/401"
          },
          "403": {
            "$ref": "#/paths/~1b2b~1rfeed~1feeds/get/responses/403"
          },
          "404": {
            "$ref": "#/paths/~1b2b~1task~1task-fields~1{fieldIdOrKey}/get/responses/404"
          },
          "500": {
            "$ref": "#/paths/~1b2b~1task~1task-fields/get/responses/500"
          }
        }
      }
    },
    "/b2b/task/task-fields": {
      "get": {
        "operationId": "listTaskFields",
        "tags": [
          "Task"
        ],
        "summary": "List task fields",
        "description": "Get a paginated list of task fields configured for the account.\n",
        "parameters": [
          {
            "name": "pageSize",
            "in": "query",
            "required": false,
            "description": "Number of items per page (1-100, default: 10)",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 10,
              "example": 10
            }
          },
          {
            "name": "size",
            "in": "query",
            "required": false,
            "description": "Alias for pageSize",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 10,
              "example": 10
            }
          },
          {
            "name": "pageToken",
            "in": "query",
            "required": false,
            "description": "Pagination token for next page",
            "schema": {
              "type": "string",
              "example": "eyJsYXN0SWQiOiI..."
            }
          },
          {
            "name": "nextPageToken",
            "in": "query",
            "required": false,
            "description": "Alias for pageToken",
            "schema": {
              "type": "string",
              "example": "eyJsYXN0SWQiOiI..."
            }
          },
          {
            "name": "includeCount",
            "in": "query",
            "required": false,
            "description": "Include total record count in response",
            "schema": {
              "type": "boolean",
              "default": false,
              "example": true
            }
          },
          {
            "name": "isVisible",
            "in": "query",
            "required": false,
            "description": "Filter by field visibility",
            "schema": {
              "type": "boolean",
              "example": true
            }
          },
          {
            "name": "isStandard",
            "in": "query",
            "required": false,
            "description": "Filter by standard (true) or custom (false) fields",
            "schema": {
              "type": "boolean",
              "example": true
            }
          },
          {
            "name": "type",
            "in": "query",
            "required": false,
            "description": "Filter by field type",
            "schema": {
              "type": "string",
              "enum": [
                "text",
                "textarea",
                "date",
                "number",
                "dropdown",
                "multi-select",
                "file"
              ],
              "example": "dropdown"
            }
          },
          {
            "name": "isMandatory",
            "in": "query",
            "required": false,
            "description": "Filter by mandatory status",
            "schema": {
              "type": "boolean",
              "example": false
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "description": "Search by field name or label",
            "schema": {
              "type": "string",
              "maxLength": 100,
              "example": "priority"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "example": "success"
                    },
                    "result": {
                      "type": "object",
                      "properties": {
                        "listOfItems": {
                          "type": "array",
                          "items": {
                            "$ref": "#/paths/~1b2b~1task~1task-fields~1{fieldIdOrKey}/get/responses/200/content/application~1json/schema/properties/result/properties/field"
                          }
                        },
                        "nextPageToken": {
                          "type": "string",
                          "example": "eyJsYXN0SWQiOiI...",
                          "description": "Token for fetching the next page"
                        },
                        "totalRecords": {
                          "type": "integer",
                          "example": 15,
                          "description": "Total count of fields (only present if includeCount=true)"
                        }
                      }
                    }
                  }
                },
                "example": {
                  "status": "success",
                  "result": {
                    "listOfItems": [
                      {
                        "id": "4ba58d96-9ac2-4820-88ef-28aa4555500d",
                        "name": "priority",
                        "type": "dropdown",
                        "typeLabel": "Dropdown",
                        "isStandard": true,
                        "isVisible": true,
                        "isMandatory": false,
                        "isFilterable": true,
                        "options": [
                          {
                            "label": "High",
                            "value": "high"
                          },
                          {
                            "label": "Medium",
                            "value": "medium"
                          },
                          {
                            "label": "Low",
                            "value": "low"
                          }
                        ]
                      },
                      {
                        "id": "5cb69b07-0bd4-5931-99af-39bb5666611a",
                        "name": "dueDate",
                        "type": "date",
                        "typeLabel": "Date",
                        "isStandard": true,
                        "isVisible": true,
                        "isMandatory": false,
                        "isFilterable": false
                      },
                      {
                        "id": "9a8139e0-8c1c-4287-a386-4b3cb195a7cf",
                        "name": "scheduledDate",
                        "type": "date",
                        "typeLabel": "Date",
                        "isStandard": true,
                        "isVisible": true,
                        "isMandatory": false,
                        "isFilterable": false
                      }
                    ],
                    "nextPageToken": "eyJsYXN0SWQiOiI...",
                    "totalRecords": 15
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "example": "error"
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "example": "VALIDATION_ERROR"
                        },
                        "message": {
                          "type": "string",
                          "example": "userIds is required"
                        },
                        "ufMessage": {
                          "type": "string",
                          "example": "Please provide valid user IDs."
                        },
                        "details": {
                          "type": "object",
                          "properties": {
                            "field": {
                              "type": "string",
                              "example": "userIds"
                            },
                            "constraint": {
                              "type": "string",
                              "example": "required"
                            }
                          }
                        },
                        "httpStatusCodeText": {
                          "type": "string",
                          "example": "Bad Request"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2026-02-06T10:00:00.000Z"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/paths/~1b2b~1rfeed~1feeds/get/responses/401"
          },
          "403": {
            "$ref": "#/paths/~1b2b~1rfeed~1feeds/get/responses/403"
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "example": "error"
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "example": "INTERNAL_SERVER_ERROR"
                        },
                        "message": {
                          "type": "string",
                          "example": "An unexpected error occurred"
                        },
                        "ufMessage": {
                          "type": "string",
                          "example": "Something went wrong. Please try again later."
                        },
                        "httpStatusCodeText": {
                          "type": "string",
                          "example": "Internal Server Error"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2026-02-06T10:00:00.000Z"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/b2b/task/task-fields/{fieldIdOrKey}": {
      "get": {
        "operationId": "getTaskFieldByIdOrKey",
        "tags": [
          "Task"
        ],
        "summary": "Get task field by ID or key",
        "description": "Get a task field by its UUID or field key (e.g., priority, dueDate, title).\n",
        "parameters": [
          {
            "name": "fieldIdOrKey",
            "in": "path",
            "required": true,
            "description": "Field UUID or field key (e.g., priority, dueDate, title)",
            "schema": {
              "type": "string",
              "example": "priority"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "example": "success"
                    },
                    "result": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "format": "uuid",
                              "example": "4ba58d96-9ac2-4820-88ef-28aa4555500d",
                              "description": "Unique identifier for the field"
                            },
                            "name": {
                              "type": "string",
                              "example": "priority",
                              "description": "Field internal name or key"
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "text",
                                "textarea",
                                "date",
                                "number",
                                "dropdown",
                                "multi-select",
                                "file"
                              ],
                              "example": "dropdown",
                              "description": "Data type of the field"
                            },
                            "typeLabel": {
                              "type": "string",
                              "example": "Dropdown",
                              "description": "Human-readable label for the field type"
                            },
                            "isStandard": {
                              "type": "boolean",
                              "example": true,
                              "description": "Indicates if this is a standard system field"
                            },
                            "isVisible": {
                              "type": "boolean",
                              "example": true,
                              "description": "Indicates if the field is visible to users"
                            },
                            "isMandatory": {
                              "type": "boolean",
                              "example": false,
                              "description": "Indicates if the field is required"
                            },
                            "isFilterable": {
                              "type": "boolean",
                              "example": true,
                              "description": "Indicates if the field can be used for filtering"
                            },
                            "options": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "label": {
                                    "type": "string",
                                    "example": "High",
                                    "description": "Display label for the option"
                                  },
                                  "value": {
                                    "type": "string",
                                    "example": "high",
                                    "description": "Internal value for the option"
                                  }
                                }
                              },
                              "description": "Available options for dropdown or multi-select field types"
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "example": {
                  "status": "success",
                  "result": {
                    "field": {
                      "id": "4ba58d96-9ac2-4820-88ef-28aa4555500d",
                      "name": "priority",
                      "type": "dropdown",
                      "typeLabel": "Dropdown",
                      "isStandard": true,
                      "isVisible": true,
                      "isMandatory": false,
                      "isFilterable": true,
                      "options": [
                        {
                          "label": "High",
                          "value": "high"
                        },
                        {
                          "label": "Medium",
                          "value": "medium"
                        },
                        {
                          "label": "Low",
                          "value": "low"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/paths/~1b2b~1rfeed~1feeds/get/responses/401"
          },
          "403": {
            "$ref": "#/paths/~1b2b~1rfeed~1feeds/get/responses/403"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string",
                      "example": "error"
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "example": "NOT_FOUND"
                        },
                        "message": {
                          "type": "string",
                          "example": "Task not found"
                        },
                        "ufMessage": {
                          "type": "string",
                          "example": "The requested task could not be found."
                        },
                        "httpStatusCodeText": {
                          "type": "string",
                          "example": "Not Found"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2026-02-06T10:00:00.000Z"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/paths/~1b2b~1task~1task-fields/get/responses/500"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "OAuth2ClientCredentials": {
        "type": "oauth2",
        "description": "This API uses OAuth 2 with the implicit grant flow.",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://platform.{env}.simpplr.xyz/v1/identity/oauth/token",
            "scopes": {}
          }
        }
      }
    }
  },
  "security": [
    {
      "OAuth2ClientCredentials": []
    }
  ]
}
```