ClientSphereDocs
API reference/Tasks

Get task

Fetches a single task by its id. Responds 404 if no such task exists in this workspace, or if it belongs to the other side of the test/live divide.

GET
/tasks/{id}

Authorization

AuthorizationRequiredBearer <token>

API key as Bearer token: Authorization: Bearer sk_live_.... Use sk_live_ prefixed keys for production data and sk_test_ prefixed keys for sandbox/test data.

In: header

X-API-Key<token>

API key via header: X-API-Key: sk_live_.... Use sk_live_ prefixed keys for production data and sk_test_ prefixed keys for sandbox/test data.

In: header

Path Parameters

idRequiredstring

Resource ID

Format: "uuid"
curl -X GET "https://clientsphere.io/api/v1/tasks/497f6eca-6276-4993-bfeb-53cbbbba6f08" \
  -H "Authorization: Bearer <token>"

Task details

{
  "data": {
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "companyId": "8bb73d03-06b4-47c7-80c7-59301f770eda",
    "title": "string",
    "description": "string",
    "priority": "high",
    "status": "in_progress",
    "type": "string",
    "category": "string",
    "tags": "string",
    "dueDate": "2019-08-24T14:15:22Z",
    "startDate": "2019-08-24T14:15:22Z",
    "completedAt": "2019-08-24T14:15:22Z",
    "estimatedHours": 0,
    "actualHours": 0,
    "opportunityId": "3d9795f2-7722-4e1d-b41e-0c5d0c24a902",
    "ticketId": "e3e3e8ea-b02a-4536-85a2-a9c90f4ee74f",
    "accountId": "3d07c219-0a88-45be-9cfc-91e9d095a1e9",
    "assignedTo": 0,
    "createdBy": 0,
    "parentTaskId": "2506db93-67fe-4ab8-a809-f4aa6ed8a0f4",
    "dependsOn": "5154f74b-7d03-4d11-a3f2-045b7c084781",
    "recurringPattern": "string",
    "nextRecurringDate": "2019-08-24T14:15:22Z",
    "isRecurring": true,
    "createdAt": "2019-08-24T14:15:22Z",
    "updatedAt": "2019-08-24T14:15:22Z"
  }
}