Skip to content
FacilydevelopersDashboard
Build with Facily
DocsREST APIsCount My Tasks
Search the full API reference Esc to close

Count My Tasks

Tasks · REST API reference

Get support
GET/v1/tasks/mine/counts
The facility counts, over the tasks assigned to the caller at every facility where the caller may read tasks.

Authentication

Bearer API key or Facily session, subject to permissions and facility scope.

Authentication and scope

Request example

Replace bracketed path values with real IDs from your environment. The body, where shown, is generated from the schema and uses illustrative values.

cURL
curl --request GET \
  --url 'https://api.staging.facily.ai/v1/tasks/mine/counts' \
  --header "Authorization: Bearer $FACILY_API_KEY"
An example for building your request, not an executed call. Check required fields, allowed values, and environment configuration before sending.

Try a request

Staging · read-only

Explore your organization with a read-only request to staging.

Kept in this tab only. Sent directly to api.staging.facily.ai.

GET

GET requests only. Your key’s permissions and facility scope still apply.

Response
Your response will appear here.

Parameters

kindquery · string | null

Comma-separated kinds: task, work_order, inspection. Omitted, every kind is counted.

Max length: 200

Responses

Expand a status to inspect its schema. Generated examples show structure and synthetic values.

200Successful Response
JSON · generated example
{
  "data": {
    "awaiting_proof": 0,
    "due_today": 0,
    "escalated": 0,
    "open": 0,
    "overdue": 0,
    "overdue_clean_units": {
      "count": 0,
      "avg_days_overdue": 0
    },
    "unassigned": 0,
    "waiting_for_rotation": 0
  },
  "meta": {
    "request_id": "string"
  }
}

application/json

dataTaskCountsResponserequired

How much open work there is, for the KPI strip and the counted pills of the task board.

Show data schema
awaiting_proofintegerrequired

Open tasks that still need their proof photos.

due_todayintegerrequired

Open tasks due today.

escalatedintegerrequired

Overdue tasks past their facility's escalation threshold.

openintegerrequired

Open and in-progress tasks.

overdueintegerrequired

Open tasks past their due date.

overdue_clean_unitsTaskOverdueCleanUnitsResponserequired

Overdue unit cleanings, and how far past due they are on average.

Show overdue_clean_units schema
avg_days_overduenumber | null

The mean days past due, to one decimal place; null when there are none.

Show avg_days_overdue schema
number | null

The mean days past due, to one decimal place; null when there are none.

Variant 1: number
number
Variant 2: null
null
countintegerrequired

How many.

unassignedintegerrequired

Open tasks nobody is assigned to.

waiting_for_rotationintegerrequired

Unassigned open tasks waiting for the rotation.

metaMetarequired

Envelope metadata. Every response carries one.

Show meta schema
request_idstringrequired
400Validation error
JSON · generated example
{
  "error": {
    "code": "string",
    "message": "string",
    "details": {}
  },
  "meta": {
    "request_id": "string"
  }
}

application/json

errorErrorBodyrequired

The shape of error.* in an error response.

Show error schema
codestringrequired
detailsobject | null
Show details schema
object | null
Variant 1: object
object
Variant 2: null
null
messagestringrequired
metaMetarequired

Envelope metadata. Every response carries one.

Show meta schema
request_idstringrequired
401Unauthenticated
JSON · generated example
{
  "error": {
    "code": "string",
    "message": "string",
    "details": {}
  },
  "meta": {
    "request_id": "string"
  }
}

application/json

errorErrorBodyrequired

The shape of error.* in an error response.

Show error schema
codestringrequired
detailsobject | null
Show details schema
object | null
Variant 1: object
object
Variant 2: null
null
messagestringrequired
metaMetarequired

Envelope metadata. Every response carries one.

Show meta schema
request_idstringrequired
403Permission denied
JSON · generated example
{
  "error": {
    "code": "string",
    "message": "string",
    "details": {}
  },
  "meta": {
    "request_id": "string"
  }
}

application/json

errorErrorBodyrequired

The shape of error.* in an error response.

Show error schema
codestringrequired
detailsobject | null
Show details schema
object | null
Variant 1: object
object
Variant 2: null
null
messagestringrequired
metaMetarequired

Envelope metadata. Every response carries one.

Show meta schema
request_idstringrequired
404Not found
JSON · generated example
{
  "error": {
    "code": "string",
    "message": "string",
    "details": {}
  },
  "meta": {
    "request_id": "string"
  }
}

application/json

errorErrorBodyrequired

The shape of error.* in an error response.

Show error schema
codestringrequired
detailsobject | null
Show details schema
object | null
Variant 1: object
object
Variant 2: null
null
messagestringrequired
metaMetarequired

Envelope metadata. Every response carries one.

Show meta schema
request_idstringrequired
409Business logic error
JSON · generated example
{
  "error": {
    "code": "string",
    "message": "string",
    "details": {}
  },
  "meta": {
    "request_id": "string"
  }
}

application/json

errorErrorBodyrequired

The shape of error.* in an error response.

Show error schema
codestringrequired
detailsobject | null
Show details schema
object | null
Variant 1: object
object
Variant 2: null
null
messagestringrequired
metaMetarequired

Envelope metadata. Every response carries one.

Show meta schema
request_idstringrequired
503Temporary failure
JSON · generated example
{
  "error": {
    "code": "string",
    "message": "string",
    "details": {}
  },
  "meta": {
    "request_id": "string"
  }
}

application/json

errorErrorBodyrequired

The shape of error.* in an error response.

Show error schema
codestringrequired
detailsobject | null
Show details schema
object | null
Variant 1: object
object
Variant 2: null
null
messagestringrequired
metaMetarequired

Envelope metadata. Every response carries one.

Show meta schema
request_idstringrequired
Continue exploringAll tasks operations
Build something that works beautifully.

Facily API · Contract v1.200 · Reviewed October 29, 2026

Count My Tasks | Facily Developers