Get task
curl --request GET \
--url https://api.contractorscloud.com/api/v1/tasks/{taskId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.contractorscloud.com/api/v1/tasks/{taskId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.contractorscloud.com/api/v1/tasks/{taskId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.contractorscloud.com/api/v1/tasks/{taskId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.contractorscloud.com/api/v1/tasks/{taskId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.contractorscloud.com/api/v1/tasks/{taskId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.contractorscloud.com/api/v1/tasks/{taskId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": 7204,
"tenant_id": 12,
"project_id": 9103,
"project_milestone_id": null,
"project_milestone_task_id": null,
"created_by": 1159,
"completed_by": null,
"assignee_type": "u",
"assignee_id": 1204,
"assignee_name": "Mike Johnson",
"is_complete": false,
"is_high_priority": true,
"subject": "Follow up on Smith Residence estimate",
"comment": null,
"created_by_name": "Jane Doe",
"notifies_on_create": true,
"notifies_on_complete": true,
"due_at": "2025-02-20 17:00:00",
"created_at": "2025-02-10 09:20:00",
"updated_at": "2025-02-10 09:20:00",
"completed_at": null
}{
"message": "Unauthenticated."
}{
"message": "The requested resource could not be found."
}Tasks
Get task
Returns a single task by id. Returns 404 if the task exists but isn’t visible to your account — see List tasks for visibility rules.
GET
/
tasks
/
{taskId}
Get task
curl --request GET \
--url https://api.contractorscloud.com/api/v1/tasks/{taskId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.contractorscloud.com/api/v1/tasks/{taskId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.contractorscloud.com/api/v1/tasks/{taskId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.contractorscloud.com/api/v1/tasks/{taskId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.contractorscloud.com/api/v1/tasks/{taskId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.contractorscloud.com/api/v1/tasks/{taskId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.contractorscloud.com/api/v1/tasks/{taskId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": 7204,
"tenant_id": 12,
"project_id": 9103,
"project_milestone_id": null,
"project_milestone_task_id": null,
"created_by": 1159,
"completed_by": null,
"assignee_type": "u",
"assignee_id": 1204,
"assignee_name": "Mike Johnson",
"is_complete": false,
"is_high_priority": true,
"subject": "Follow up on Smith Residence estimate",
"comment": null,
"created_by_name": "Jane Doe",
"notifies_on_create": true,
"notifies_on_complete": true,
"due_at": "2025-02-20 17:00:00",
"created_at": "2025-02-10 09:20:00",
"updated_at": "2025-02-10 09:20:00",
"completed_at": null
}{
"message": "Unauthenticated."
}{
"message": "The requested resource could not be found."
}Authorizations
Query Parameters
Response
The requested task.