Skip to main content

Get Task Request By ID

Method: GET
/api/v1/task-requests/{id}


Description

This endpoint retrieves the details of a specific task request based on the provided task ID. It returns the full information about the task, including any relevant metadata and status.


🔑 Authentication

This endpoint requires authentication via headers.

ParamTypeDescription
countryCodestringThe country code associated with the request. (optional)
userIdstringThe ID of the user making the request. (optional)
tenantIdstringThe tenant ID associated with the user. (optional)

Path Parameter

NameTypeDescription
idstringThe unique ID of the task.

Response: 200 OK

A successful response returns the details of the specified task request.

Example Response:

{
"taskId": "12345",
"taskName": "Inspect Farm",
"description": "Inspection for compliance",
"status": "PENDING",
"assignedTo": "John Doe",
"createdAt": "2025-02-12T10:00:00Z",
"updatedAt": "2025-02-12T12:00:00Z",
"metadata": {
"priority": "HIGH",
"category": "INSPECTION"
}
}

LANGUAGE

AUTHORIZATION

Bearer

CURL REQUEST


curl --request GET \ 
--url /api/v1/task-requests/{id} \
--header 'accept: application/json' \
--header 'content-type: application/json'

RESPONSE


Click Try It! to start a request and see the response here!