Projects

List projects

Lists the tenant's projects, paginated: active ones by default, or the archived ones with `status=archived`. Each project carries its site managers and its activity figures (who is on site now, diary counts, last activity).

GET
/projects

Lists the tenant's projects, paginated: active ones by default, or the archived ones with status=archived. Each project carries its site managers and its activity figures (who is on site now, diary counts, last activity).

Authorization

x-api-key<token>

The per-tenant API key, copied from Settings → API & integrations. Sent as the x-api-key request header. The key is tenant-scoped and acts with Admin-equivalent, tenant-wide access.

In: header

Query Parameters

status?string

Which projects to list. Defaults to active.

limit?integer

Page size, 1–200. Defaults to 50.

cursor?string

Opaque cursor from a previous page's nextCursor. Omit for the first page.

Response Body

application/json

application/json

curl -X GET "https://example.com/projects"
{  "data": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "inductionTemplateId": "4ad34ac9-8acb-4469-a035-f95572a608d5",      "name": "string",      "address": "string",      "latitude": 0,      "longitude": 0,      "timezone": "string",      "standardHours": "string",      "ownerContact": "string",      "gateCodes": "string",      "description": "string",      "status": "active",      "inductionToken": "string",      "inductionUrl": "http://example.com",      "createdAt": "2019-08-24T14:15:22Z",      "siteManagers": [        {          "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",          "name": "string"        }      ],      "onSiteNow": 0,      "diaryCount": 0,      "diariesLast7Days": 0,      "inductionCount": 0,      "inductionsLast7Days": 0,      "lastActivityOn": "2019-08-24"    }  ],  "nextCursor": "string"}
{  "error": {    "code": "unauthorized",    "message": "Missing or invalid API key."  }}