# API reference

> Every Staffedly API operation (74) with its permission, parameters, fields and a curl example. Generated from the app.

This reference is generated from the app's own endpoint list each time the docs are built, so it matches the running API. It lists 74 operations. The same list is available as an OpenAPI 3.1 document at [https://app.staffedly.com/api/v1/openapi.json](https://app.staffedly.com/api/v1/openapi.json) (no key needed), with a copy at [/docs/openapi.json](https://staffedly.com/docs/openapi.json).

## Before you call

- **Base address:** `https://app.staffedly.com`
- **Sign in:** send your key as `Authorization: Bearer sfk_…`. See [API keys and permissions](https://staffedly.com/docs/developers/api-keys).
- **Plans:** the API is part of Pro, Agency and Enterprise, and works during the free trial. Core does not include it.
- **Lists:** `{ data, hasMore, nextCursor }`. Pass `nextCursor` back as `cursor` for the next page. See [Pagination](https://staffedly.com/docs/developers/pagination).
- **Times:** ISO-8601, in UTC.
- **Errors:** `{ error: { code, message } }`. See [Errors](https://staffedly.com/docs/developers/errors).
- **Limit:** 120 requests a minute for each key. See [Rate limits](https://staffedly.com/docs/developers/rate-limits).
- **Writes:** accept an `Idempotency-Key` header and refuse fields they do not know. See [Idempotency](https://staffedly.com/docs/developers/idempotency).

## All operations

| Operation | Permission | What it does |
| --- | --- | --- |
| [`GET /api/v1`](https://staffedly.com/docs/api/overview#get-api-v1) | any key | The organization this key belongs to and what the key may do. A good first call. |
| [`GET /api/v1/providers`](https://staffedly.com/docs/api/providers#get-api-v1-providers) | `roster:read` | Your people. |
| [`POST /api/v1/providers`](https://staffedly.com/docs/api/providers#post-api-v1-providers) | `roster:write` | Add a person. |
| [`GET /api/v1/providers/{id}`](https://staffedly.com/docs/api/providers#get-api-v1-providers-id) | `roster:read` | One person. |
| [`PATCH /api/v1/providers/{id}`](https://staffedly.com/docs/api/providers#patch-api-v1-providers-id) | `roster:write` | Update a person. Only the fields you send change. |
| [`GET /api/v1/facilities`](https://staffedly.com/docs/api/facilities#get-api-v1-facilities) | `roster:read` | Your sites. |
| [`GET /api/v1/facilities/{id}`](https://staffedly.com/docs/api/facilities#get-api-v1-facilities-id) | `roster:read` | One site. |
| [`GET /api/v1/facilities/{id}/contacts`](https://staffedly.com/docs/api/facilities#get-api-v1-facilities-id-contacts) | `relationships:read` | The people at a site, from its Relationship record. |
| [`POST /api/v1/facilities/{id}/contacts`](https://staffedly.com/docs/api/facilities#post-api-v1-facilities-id-contacts) | `relationships:write` | Add a contact to a site's record. Up to 25 a site. |
| [`GET /api/v1/assignments`](https://staffedly.com/docs/api/assignments#get-api-v1-assignments) | `schedule:read` | Who is working where and when. Draft schedules are never included. |
| [`POST /api/v1/assignments`](https://staffedly.com/docs/api/assignments#post-api-v1-assignments) | `schedule:publish` | Put someone on the live schedule. Every scheduling check runs; a shift that breaks a rule is refused with the reason. The person is told, as when your team adds a shift. |
| [`GET /api/v1/assignments/{id}`](https://staffedly.com/docs/api/assignments#get-api-v1-assignments-id) | `schedule:read` | One assignment. |
| [`POST /api/v1/assignments/{id}/cancel`](https://staffedly.com/docs/api/assignments#post-api-v1-assignments-id-cancel) | `schedule:publish` | Cancel a shift on the live schedule. The person is told, as when your team cancels one. |
| [`GET /api/v1/open-shifts`](https://staffedly.com/docs/api/open-shifts#get-api-v1-open-shifts) | `schedule:read` | Shifts waiting to be filled. |
| [`POST /api/v1/open-shifts`](https://staffedly.com/docs/api/open-shifts#post-api-v1-open-shifts) | `schedule:write` | Post a shift to be filled. Offers go out according to your Automation settings. |
| [`POST /api/v1/open-shifts/{id}/cancel`](https://staffedly.com/docs/api/open-shifts#post-api-v1-open-shifts-id-cancel) | `schedule:write` | Withdraw a shift that is still open or on offer. Offer links close. |
| [`GET /api/v1/leave`](https://staffedly.com/docs/api/leave#get-api-v1-leave) | `leave:read` | Time off, requested and approved. Whole days: start and end are the first and last day, given as midday UTC. |
| [`POST /api/v1/leave`](https://staffedly.com/docs/api/leave#post-api-v1-leave) | `leave:write` | Add time off, as a request or already approved. |
| [`POST /api/v1/leave/{id}/approve`](https://staffedly.com/docs/api/leave#post-api-v1-leave-id-approve) | `leave:write` | Approve requested time off. The person is told; shifts they still hold on those days are raised for your schedulers. |
| [`POST /api/v1/leave/{id}/cancel`](https://staffedly.com/docs/api/leave#post-api-v1-leave-id-cancel) | `leave:write` | Withdraw time off that is requested, approved or under way. The person is told. |
| [`PATCH /api/v1/leave/{id}`](https://staffedly.com/docs/api/leave#patch-api-v1-leave-id) | `leave:write` | Change the dates or kind of time off that is requested or approved. The person is told. |
| [`GET /api/v1/time-entries`](https://staffedly.com/docs/api/time-entries#get-api-v1-time-entries) | `time:read` | Clock-in and clock-out records. Voided entries are left out unless asked for by status. |
| [`POST /api/v1/time-entries`](https://staffedly.com/docs/api/time-entries#post-api-v1-time-entries) | `time:write` | Add a clock record. A finished record is marked for review before pay. |
| [`PATCH /api/v1/time-entries/{id}`](https://staffedly.com/docs/api/time-entries#patch-api-v1-time-entries-id) | `time:write` | Clock someone out, or correct a record's times. A correction resets approval. |
| [`POST /api/v1/time-entries/{id}/void`](https://staffedly.com/docs/api/time-entries#post-api-v1-time-entries-id-void) | `time:write` | Take a wrong or duplicate record out of pay. It is kept, marked void. |
| [`GET /api/v1/credentials`](https://staffedly.com/docs/api/credentials#get-api-v1-credentials) | `credentials:read` | Licenses and certifications by person. License numbers are never returned. |
| [`POST /api/v1/credentials`](https://staffedly.com/docs/api/credentials#post-api-v1-credentials) | `credentials:write` | Add a license or certification to a person. |
| [`PATCH /api/v1/credentials/{id}`](https://staffedly.com/docs/api/credentials#patch-api-v1-credentials-id) | `credentials:write` | Update a credential on file, such as a renewal's new expiry. Its status follows the date. |
| [`GET /api/v1/reports/{type}`](https://staffedly.com/docs/api/reports#get-api-v1-reports-type) | `reports:read` | A report for a period. hours, fills, coverage, credentials and fairness need Reports; payroll, invoice and margin need Pay and billing instead. |
| [`GET /api/v1/pay-runs`](https://staffedly.com/docs/api/pay-runs#get-api-v1-pay-runs) | `pay:read` | Pay runs, newest period first, each with its lines and totals as they were when the run was made. |
| [`GET /api/v1/pay-runs/{id}`](https://staffedly.com/docs/api/pay-runs#get-api-v1-pay-runs-id) | `pay:read` | One pay run. |
| [`GET /api/v1/invoices`](https://staffedly.com/docs/api/invoices#get-api-v1-invoices) | `pay:read` | Invoices, newest first. items is what the client is billed, in dollars; lines and totals are the hours calculation an invoice started from. periodStart and periodEnd are null on an invoice not made from hours. |
| [`GET /api/v1/invoices/{id}`](https://staffedly.com/docs/api/invoices#get-api-v1-invoices-id) | `pay:read` | One invoice. |
| [`GET /api/v1/documents`](https://staffedly.com/docs/api/documents#get-api-v1-documents) | `documents:read` | Stored documents: uploads and signed records. Deleted files are left out; archived ones only when asked for. |
| [`POST /api/v1/documents`](https://staffedly.com/docs/api/documents#post-api-v1-documents) | `documents:write` | Upload a file to a person's or a site's record. Send multipart/form-data, not JSON: a `file` part (PDF, JPG or PNG, up to 10 MB) plus the fields below. Idempotency-Key is not honoured on this one. |
| [`GET /api/v1/documents/{id}`](https://staffedly.com/docs/api/documents#get-api-v1-documents-id) | `documents:read` | One stored document. |
| [`GET /api/v1/documents/{id}/file`](https://staffedly.com/docs/api/documents#get-api-v1-documents-id-file) | `documents:read` | The file itself (PDF, JPG or PNG bytes, not JSON). Each download is recorded in the audit trail. |
| [`GET /api/v1/document-templates`](https://staffedly.com/docs/api/document-templates#get-api-v1-document-templates) | `documents:read` | Templates that can be sent for signature, with the values each needs when sending. |
| [`GET /api/v1/sign-requests`](https://staffedly.com/docs/api/sign-requests#get-api-v1-sign-requests) | `documents:read` | Documents sent for signature, with each signer's progress. |
| [`POST /api/v1/sign-requests`](https://staffedly.com/docs/api/sign-requests#post-api-v1-sign-requests) | `documents:write` | Send a template for signature. Each signer is emailed a private link. The signed copy is filed under the person or site. |
| [`GET /api/v1/sign-requests/{id}`](https://staffedly.com/docs/api/sign-requests#get-api-v1-sign-requests-id) | `documents:read` | One signing request. |
| [`POST /api/v1/sign-requests/{id}/void`](https://staffedly.com/docs/api/sign-requests#post-api-v1-sign-requests-id-void) | `documents:write` | Void a request that is still out. Nobody can sign it afterwards and the signers see the reason. |
| [`POST /api/v1/sign-requests/{id}/remind`](https://staffedly.com/docs/api/sign-requests#post-api-v1-sign-requests-id-remind) | `documents:write` | Email everyone whose turn it is again, with the link they already have. At most once an hour per signer. |
| [`GET /api/v1/meetings`](https://staffedly.com/docs/api/meetings#get-api-v1-meetings) | `meetings:read` | Video calls and call notes, with the AI summary of what was said once notes are ready. Never the transcript or the recording; guests' private links are never returned. |
| [`POST /api/v1/meetings`](https://staffedly.com/docs/api/meetings#post-api-v1-meetings) | `meetings:write` | Schedule a video call. Each guest (and the applicant or provider it is about) is emailed their own join link, a calendar file and the recording notice, as when your team schedules one. |
| [`GET /api/v1/meetings/{id}`](https://staffedly.com/docs/api/meetings#get-api-v1-meetings-id) | `meetings:read` | One video call or set of call notes. |
| [`GET /api/v1/meetings/{id}/transcript`](https://staffedly.com/docs/api/meetings#get-api-v1-meetings-id-transcript) | `meetings:transcript` | The call's transcript: everything everyone said, as "Name (m:ss): words" lines. Its own permission, never part of Video calls: read. Each read is recorded in the audit trail. |
| [`POST /api/v1/meetings/{id}/cancel`](https://staffedly.com/docs/api/meetings#post-api-v1-meetings-id-cancel) | `meetings:write` | Cancel a scheduled call. Invited guests are emailed; a booking made for it is cancelled too. |
| [`GET /api/v1/booking-types`](https://staffedly.com/docs/api/booking-types#get-api-v1-booking-types) | `meetings:read` | Booking pages: the kinds of call people book themselves. |
| [`GET /api/v1/bookings`](https://staffedly.com/docs/api/bookings#get-api-v1-bookings) | `meetings:read` | Calls booked from a booking page. The booker's manage link is never returned. |
| [`GET /api/v1/bookings/{id}`](https://staffedly.com/docs/api/bookings#get-api-v1-bookings-id) | `meetings:read` | One booking. |
| [`POST /api/v1/booking-links`](https://staffedly.com/docs/api/booking-links#post-api-v1-booking-links) | `meetings:write` | Email one person a private link to book from a booking page; what they book is filed on their record. Applicants get the recruiting email; a provider at their own address; a facility at a contact on its record. Do-not-contact and email opt-outs apply. |
| [`GET /api/v1/forms`](https://staffedly.com/docs/api/forms#get-api-v1-forms) | `forms:read` | Forms and surveys. |
| [`GET /api/v1/forms/{id}`](https://staffedly.com/docs/api/forms#get-api-v1-forms-id) | `forms:read` | One form with its questions. The rules that open an Issue stay in Staffedly. |
| [`GET /api/v1/forms/{id}/responses`](https://staffedly.com/docs/api/forms#get-api-v1-forms-id-responses) | `forms:read` | The answers to one form. Answers filed on an applicant are included only for a key that also has Recruiting: read. Uploaded files are named, not served. |
| [`POST /api/v1/forms/{id}/send`](https://staffedly.com/docs/api/forms#post-api-v1-forms-id-send) | `forms:write` | Email an open form to providers, facilities (their contacts) or applicants, each with a private link. A provider's email consent applies. Up to 200 at a time. Applicants also need Recruiting: write. |
| [`GET /api/v1/handbook`](https://staffedly.com/docs/api/handbook#get-api-v1-handbook) | `handbook:read` | Handbook pages: who they are for, must-read, and the version that counts. |
| [`GET /api/v1/handbook/{id}`](https://staffedly.com/docs/api/handbook#get-api-v1-handbook-id) | `handbook:read` | One handbook page with its words (light markdown). |
| [`GET /api/v1/handbook/{id}/confirmations`](https://staffedly.com/docs/api/handbook#get-api-v1-handbook-id-confirmations) | `handbook:read` | Who confirmed reading the page, and which version. One row per person per version. |
| [`GET /api/v1/todos`](https://staffedly.com/docs/api/todos#get-api-v1-todos) | `todos:read` | The team's to-dos. |
| [`POST /api/v1/todos`](https://staffedly.com/docs/api/todos#post-api-v1-todos) | `todos:write` | Give a team member a to-do. A key cannot keep one itself. They are emailed unless they turned that off. |
| [`GET /api/v1/offers`](https://staffedly.com/docs/api/offers#get-api-v1-offers) | `offers:read` | Job offers and where each stands. The candidate's private link is never returned. |
| [`GET /api/v1/offers/{id}`](https://staffedly.com/docs/api/offers#get-api-v1-offers-id) | `offers:read` | One job offer. |
| [`POST /api/v1/offers/{id}/send`](https://staffedly.com/docs/api/offers#post-api-v1-offers-id-send) | `offers:write` | Ask for a drafted offer to be sent. Nothing is sent by the key: it waits on the Approvals page for someone with hiring access, whose approval sends it in their name. Answers 202 with the approval's id; watch offer.* webhook events for the answer. |
| [`GET /api/v1/records/{type}/{id}/notes`](https://staffedly.com/docs/api/records#get-api-v1-records-type-id-notes) | `relationships:read` | Notes and history on a facility, provider or applicant record (type: facility, provider, application). An applicant's also needs Recruiting: read. |
| [`POST /api/v1/records/{type}/{id}/notes`](https://staffedly.com/docs/api/records#post-api-v1-records-type-id-notes) | `relationships:write` | Add a note to a record, in the key's name. An applicant's also needs Recruiting: write. |
| [`GET /api/v1/records/{type}/{id}/thread`](https://staffedly.com/docs/api/records#get-api-v1-records-type-id-thread) | `relationships:read` | The email conversation on a facility, provider or applicant record, both directions, oldest first. An applicant's also needs Recruiting: read. |
| [`GET /api/v1/onboarding`](https://staffedly.com/docs/api/onboarding#get-api-v1-onboarding) | `onboarding:read` | Onboarding checklists: who is onboarding, how far each has got and what each is waiting on. |
| [`POST /api/v1/onboarding`](https://staffedly.com/docs/api/onboarding#post-api-v1-onboarding) | `onboarding:write` | Start onboarding. A new hire (name and email; they are added with status onboarding and cannot be scheduled until ready), or providerId for someone already on the roster. Their checklist is emailed to them. |
| [`GET /api/v1/jobs`](https://staffedly.com/docs/api/jobs#get-api-v1-jobs) | `recruiting:read` | The jobs you are hiring for. |
| [`GET /api/v1/applications`](https://staffedly.com/docs/api/applications#get-api-v1-applications) | `recruiting:read` | Applications: the candidate's name, email and phone, the job, the stage and where they came from. Never résumés, screening chats, scorecards or self-identification answers. |
| [`POST /api/v1/applications`](https://staffedly.com/docs/api/applications#post-api-v1-applications) | `recruiting:write` | Add an applicant from another system. They appear in the pipeline at Applied with the source "Your other software (API)". The same person cannot have two open applications for the same job. |
| [`GET /api/v1/applications/{id}`](https://staffedly.com/docs/api/applications#get-api-v1-applications-id) | `recruiting:read` | One application. |
| [`PATCH /api/v1/applications/{id}`](https://staffedly.com/docs/api/applications#patch-api-v1-applications-id) | `recruiting:write` | Move an application to applied, screening, interview, offer, pool or withdrawn. Not moving forward and hiring are decided by a person in the app and are refused here. |

## GET /api/v1

The organization this key belongs to and what the key may do. A good first call.

- **Permission:** none; any valid key
- **Returns:** one record: `{ data }`, status 200

**Fields in each record:** `organization`, `key`, `rateLimitPerMinute`, `version`

```bash
curl "https://app.staffedly.com/api/v1" \
  -H "Authorization: Bearer $STAFFEDLY_API_KEY"
```

