Skip to main content
GET
/
task
/
public
/
{task_id}
Read public task by ID
curl --request GET \
  --url https://apiweb.mile.app/api/v3/task/public/{task_id} \
  --header 'Authorization: Bearer <token>'
{
  "status": true,
  "message": "Success.",
  "data": {
    "task": {
      "flow": "simple flow 2",
      "title": "tes multiple assign",
      "content": "batu",
      "label": "batu",
      "expectedCoordinate": "-7.869000614936084,112.51961922126047",
      "status": "ONGOING",
      "listItem": [
        {
          "title": "Snack",
          "content": null,
          "data": {
            "_id": null,
            "dataId": null,
            "dataTypeId": null,
            "hubId": null,
            "createdBy": null,
            "organizationId": null,
            "updatedTime": null,
            "createdTime": null,
            "value": null
          },
          "qty": 1,
          "unitPrice": null,
          "qtyProcessed": 1
        },
        {
          "title": "Bread",
          "content": null,
          "data": {
            "_id": null,
            "dataId": null,
            "dataTypeId": null,
            "hubId": null,
            "createdBy": null,
            "organizationId": null,
            "updatedTime": null,
            "createdTime": null,
            "value": null
          },
          "qty": 1,
          "unitPrice": null,
          "qtyProcessed": 3
        },
        {
          "title": "Egg",
          "content": null,
          "data": {
            "_id": null,
            "dataId": null,
            "dataTypeId": null,
            "hubId": null,
            "createdBy": null,
            "organizationId": null,
            "updatedTime": null,
            "createdTime": null,
            "value": null
          },
          "qty": 1,
          "unitPrice": null,
          "qtyProcessed": 1
        }
      ],
      "histories": [
        {
          "_id": "6655759d0f65144bd7141ab3",
          "action": "create",
          "notes": "Created by rizky dev",
          "createdAt": "2024-05-28T06:11:41.037000Z"
        }
      ]
    },
    "taskComponentDetail": [
      {
        "id": "listItem",
        "inputType": "number",
        "component": "list"
      }
    ],
    "location": [
      {
        "email": "rizky+dev@mile.app",
        "lat": "-7.868508262933629",
        "lon": "112.524245441029",
        "createdTime": "2024-05-28 06:15:35",
        "user": {
          "name": "rizky dev",
          "phoneNumber": "+62 81248944995"
        }
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

Use a valid Bearer token to authenticate.

Path Parameters

taskId
string
required

Unique identifier for the task that generated by system. Example: 6352736c628401059b37a2e2

Response

Success

status
boolean

Status of response.

message
string

Message of API response.

data
object

Detail of object task, Flow Component (only list & bill) & location history.