> ## Documentation Index
> Fetch the complete documentation index at: https://hilo.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Organization API

> Connect your own systems to your Hilo organization with an API key.

Every Hilo business can connect its own systems (a payroll provider, a data warehouse, an in-house tool) with an organization API key. If you're a point-of-sale company working with many businesses, use the [partner API](https://hilo.mintlify.site/partner-api/overview.md) instead.

## Get a key

**1. Open Developers & API**

In Hilo, go to **Settings** and open **Developers & API**. Only people who can manage API keys (owners and payroll admins) see it.

**2. Generate a key**

Name the key, choose a sandbox or production key, pick only the scopes it needs, and optionally limit it to your servers' IP addresses or give it an expiry date.

**3. Save it**

The key is shown once. Keep it in your server's secret store.

> [!TIP]
>
> Start with a read-only sandbox key, check its activity under **Logs & usage**, then issue production keys.

## How requests work

| | |
| - | - |
| Address | `https://www.hiloscheduling.com/api/v1` |
| Your key | `X-API-Key: hilo_live_…` header |
| Your organization | Always comes from the key, never from the request |
| Times | UTC ISO 8601 timestamps |
| Lists | Cursor pagination with `cursor` and `nextCursor` |
| Creating | Send an `Idempotency-Key` header so a retry doesn't create a duplicate |
| Errors | `401` not signed in, `403` scope or role, `409` conflict or locked pay period, `422` validation, `429` rate limit |
| Description | OpenAPI 3.1 at `https://www.hiloscheduling.com/api/v1/openapi.json` |

## Scopes

| Scope | Allows |
| - | - |
| `employees:read` | Read the roster |
| `schedules:read` | Read schedules and check a proposed shift |
| `schedules:write` | Publish a location's week |
| `punches:read` | Read time punches |
| `punches:write` | Add, correct and remove punches |
| `exceptions:review` | Read, approve and reopen exceptions |
| `payroll:read` | Read pay periods, payroll totals and the audit history |
| `payroll:export` | Make and download payroll exports and bank files |
| `notifications:send` | Send schedule notices (legacy batch endpoint) |
| `webhooks:manage` | Manage webhook endpoints (coming soon) |

High-risk scopes (`payroll:approve`, `bank:export`) need a separate grant, made with two-factor sign-in by someone who can approve payroll. Payroll attestation is never available to keys.

## Rotating and revoking

Rotating a key gives you a new one and keeps the old one working for 24 hours so you can switch over. Revoking stops it right away. Every key's activity is in **Logs & usage**; request bodies and secrets are never logged.

## Examples

```bash List punches for a date range theme={null}
curl -H "X-API-Key: $HILO_KEY" \
  "https://www.hiloscheduling.com/api/v1/punches?from=2026-10-01&to=2026-10-15"
```

```bash Add a punch theme={null}
curl -X POST "https://www.hiloscheduling.com/api/v1/punches" \
  -H "X-API-Key: $HILO_KEY" -H "Content-Type: application/json" \
  -H "Idempotency-Key: import-2026-10-14-e1042" \
  -d '{"employeeId":"EMPLOYEE_ID","locationId":"LOCATION_ID","date":"2026-10-14",
       "inTime":"09:00","outTime":"17:00","unpaidBreakMinutes":30,"notes":null,"reason":"Imported from POS"}'
```

## Webhooks

Webhooks are coming soon: signed, retried notices when a schedule is published, a punch changes, an exception opens or closes, payroll is approved or exported, text consent changes or a kiosk goes offline.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.