Get all tasks on a firm.
Constrained by the user role. For example, owners and admins can see all tasks. Members can only see tasks within groups they can access and clients can only see tasks they have access to.
Headers
-
Content-Type string
-
Accept string
-
X-PLANNR-ACCOUNT-UUID string
Query parameters
-
include string
Comma separated list of relationships to include in the response. Valid relationships are [author, completed_by, parent_task, related_tasks, custom_fields].
-
per_page integer
Number of results to return with pagination (Default 15. Max 500).
-
filter[name] string
Filter Task name.
-
filter[taskable_type] string
Taskable type. Can be 'plan' or 'case'.
-
filter[taskable_uuid] string
Taskable uuid.
-
filter[priority] string
Priority. Available options are highest, high, medium, and low.
-
filter[assigned_to_uuids] string
Filter tasks that have been assigned to the account UUIDs.
-
filter[status_uuid] string
Status uuid. The task's status uuid.
-
filter[due_before] string
date Filter tasks that have a due at date before.
-
filter[due_after] string
date Filter tasks that have a due at date after.
-
filter[has_due_date] boolean
Filter tasks that have a due at date or not.
-
filter[open_tasks] boolean
Only show open tasks. When true, this will filter tasks in the "Completed" or "Archived" columns.
-
filter[show_child_tasks] boolean
Show child tasks in the top-level list. Defaults to false.
-
filter[completed_status] boolean
Filter tasks which have a system status of type completed.
-
filter[archived_status] boolean
Filter tasks which have a system status of type archived.
-
filter[not_started_status] boolean
Filter tasks which have a system status of type not started.
-
sort string
Field to sort by. Valid fields are [created_at, updated_at, name, priority, due_at, completed_last]. Negative sign to denote DESC. Defaults to 'created_at'.
curl \
-X GET https://api.plannrcrm.com/api/v1/task \
-H "Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}"
{
"data": [
{
"name": "Document the transaction",
"uuid": "474ca292-150b-4749-8582-ed70460d94a2",
"author": {
"name": {
"example": "Gareth Thompson",
"collection": false,
"description": "Name"
},
"role": {
"example": "client",
"collection": false,
"description": "Account role"
},
"type": {
"example": "client",
"collection": false,
"description": "Account type"
},
"uuid": {
"example": "52bead48-7ea3-4537-9d29-fe8e98c675a6",
"collection": false,
"description": "The UUID of the resource."
},
"email": {
"example": "gareth@codepotato.co.uk",
"collection": false,
"description": "Email"
},
"last_name": {
"example": "Thompson",
"collection": false,
"description": "Last name"
},
"photo_url": {
"example": "https://eu.ui-avatars.com/api/?name=Gareth+Thompson",
"collection": false,
"description": "The photo URL of the client"
},
"created_at": {
"example": "2024-11-20T13:24:01+00:00",
"collection": false,
"description": "The timestamp of when the resource was created."
},
"first_name": {
"example": "Gareth",
"collection": false,
"description": "First name"
},
"updated_at": {
"example": "2024-11-20T13:24:01+00:00",
"collection": false,
"description": "The timestamp of when the resource was updated."
},
"external_references": {
"example": "App\\Http\\Resources\\ExternalReferenceResource",
"collection": true,
"description": "The external references that have been added to the client."
}
},
"due_at": "2021-01-01 00:00:00",
"status": {
"name": "Incomplete",
"uuid": "5dff243b-c7d0-418e-9da2-98cd71b6099a",
"colour": "#398898",
"position": 1,
"created_at": "2024-11-20T13:24:01+00:00",
"updated_at": "2024-11-20T13:24:01+00:00",
"is_archived": false,
"is_not_started": false,
"is_type_completed": false
},
"position": 1,
"priority": "high",
"taskable": {
"name": "finance",
"slug": "finance",
"type": "App\\Http\\Resources\\CasesTypeResource",
"uuid": "f1bdc8ce-5b91-4f1c-b7ab-c0d38f88bc7d",
"plans": "App\\Http\\Resources\\Plans\\PlanResource",
"value": {
"amount": {
"example": "4000",
"description": "Money amount at their lowest denominator (for example: pennies)"
},
"currency": {
"example": "GBP",
"description": "Currency of the money"
},
"formatted": {
"example": "£40.00",
"description": "Money amount formatted with currency"
}
},
"status": "App\\Http\\Resources\\CasesStatusResource",
"created_at": "2024-11-20T13:24:01+00:00",
"updated_at": "2024-11-20T13:24:01+00:00",
"completed_at": "2024-11-20T13:24:01+00:00",
"participants": "App\\Http\\Resources\\AccountResource",
"custom_fields": "App\\Http\\Resources\\CustomFieldValueResource",
"status_position": 4,
"task_board_uuid": "2bc1a380-0967-418d-bd0a-a6c9b30b3a37",
"participants_count": 4
},
"created_at": "2024-11-20T13:24:01+00:00",
"updated_at": "2024-11-20T13:24:01+00:00",
"assigned_to": {
"name": {
"example": "Gareth Thompson",
"collection": false,
"description": "Name"
},
"role": {
"example": "client",
"collection": false,
"description": "Account role"
},
"type": {
"example": "client",
"collection": false,
"description": "Account type"
},
"uuid": {
"example": "f406241c-273f-46a2-a2d3-77c23243b293",
"collection": false,
"description": "The UUID of the resource."
},
"email": {
"example": "gareth@codepotato.co.uk",
"collection": false,
"description": "Email"
},
"last_name": {
"example": "Thompson",
"collection": false,
"description": "Last name"
},
"photo_url": {
"example": "https://eu.ui-avatars.com/api/?name=Gareth+Thompson",
"collection": false,
"description": "The photo URL of the client"
},
"created_at": {
"example": "2024-11-20T13:24:01+00:00",
"collection": false,
"description": "The timestamp of when the resource was created."
},
"first_name": {
"example": "Gareth",
"collection": false,
"description": "First name"
},
"updated_at": {
"example": "2024-11-20T13:24:01+00:00",
"collection": false,
"description": "The timestamp of when the resource was updated."
},
"external_references": {
"example": "App\\Http\\Resources\\ExternalReferenceResource",
"collection": true,
"description": "The external references that have been added to the client."
}
},
"completed_at": "2021-01-01 00:00:00",
"completed_by": {
"name": {
"example": "Gareth Thompson",
"collection": false,
"description": "Name"
},
"role": {
"example": "client",
"collection": false,
"description": "Account role"
},
"type": {
"example": "client",
"collection": false,
"description": "Account type"
},
"uuid": {
"example": "ed94b8af-31fc-4d49-88ec-02b0edea8efd",
"collection": false,
"description": "The UUID of the resource."
},
"email": {
"example": "gareth@codepotato.co.uk",
"collection": false,
"description": "Email"
},
"last_name": {
"example": "Thompson",
"collection": false,
"description": "Last name"
},
"photo_url": {
"example": "https://eu.ui-avatars.com/api/?name=Gareth+Thompson",
"collection": false,
"description": "The photo URL of the client"
},
"created_at": {
"example": "2024-11-20T13:24:01+00:00",
"collection": false,
"description": "The timestamp of when the resource was created."
},
"first_name": {
"example": "Gareth",
"collection": false,
"description": "First name"
},
"updated_at": {
"example": "2024-11-20T13:24:01+00:00",
"collection": false,
"description": "The timestamp of when the resource was updated."
},
"external_references": {
"example": "App\\Http\\Resources\\ExternalReferenceResource",
"collection": true,
"description": "The external references that have been added to the client."
}
},
"custom_fields": [
{
"name": "Favourite Drink",
"type": "string",
"uuid": "e86cb747-c596-404b-8486-78f242b12eb3",
"value": "Coffee",
"help_text": "This is the client's favourite drink.",
"reference": "favourite_drink",
"created_at": "2024-11-20T13:24:01+00:00",
"updated_at": "2024-11-20T13:24:01+00:00",
"is_required": false,
"selection_options": [
"Coffee",
"Tea",
"Water"
]
}
],
"taskable_type": "case"
}
]
}