Opsfitter Developers
Opsfitter API v1

The service entrance to your business system.

Every good hotel has a front door for guests and a service entrance for deliveries. Your Opsfitter system is the front of the house. The API is the service entrance: your website, POS, accounting, Slack and every other app come in the back, with a key, and only go where the key allows.

Read the 5 minute start
  • 16 kinds of records
  • 39 webhook events
  • Signed, retried webhooks
  • Same API on Hosted and Google Sheets
  • No card numbers, ever
Service entrance logsample calls
    Sample Co practice business · no key yet
    You own the business

    What this means for you

    • Your other apps can talk to Opsfitter. A booking on your website lands on the schedule. A paid invoice shows up in your accounting. An urgent ticket texts the on call manager.
    • You hand out keys, like room keys. Each key opens only what you pick (see records, change records, money, private staff pay). Turn one off and it stops that second.
    • Included with a membership. Basic can read. Pro and Business can read, write and send webhooks. Practice keys are free for anyone.
    • Someone else can set it up. Send this page to your web person or IT team. If you would rather we do it, a hand built connector is a fixed price addition from $400.
    You write code

    Start in 5 minutes

    1. 1
      Get a key. Practice: press (no sign up, 14 days, sample data). Real: the owner makes one in their portal under Connections and API.
    2. 2
      Call it. Base URL https://opsfitter.com/api/v1, key in the Authorization: Bearer header.
    3. 3
      Listen. Add a webhook and every change comes to you, signed.
    curl https://opsfitter.com/api/v1/bookings?status=confirmed \
      -H "Authorization: Bearer of_test_YOUR_PRACTICE_KEY"

    JSON in and out. Times in ISO 8601 (UTC). Money as plain numbers in your currency. OpenAPI file: openapi.json (import it into Postman, Insomnia or any code generator).

    Try it live

    The console: real calls on a practice business

    Sample Co is a small inn with a spa and a shop. It has staff, shifts, punches, bookings, invoices, money in and out, inventory, tickets and handoff notes. Change anything; it is yours for 14 days and nobody else sees it.

    /api/v1
    waiting
    Pick an endpoint on the left and press Send.
    Webhooks

    The webhook dock: watch a signed delivery arrive

    A webhook is a web address that Opsfitter calls the moment something happens. This dock has its own catcher, so you can see one land without a server.

    1

    Open a bay

    Makes a practice webhook that sends to the built in catcher.

    2

    Make something happen

    Each button is a real API call on your practice business.

    3

    Watch the dock

    1. No deliveries yet.

    What arrives

    POST https://your.app/hooks/opsfitter
    Content-Type: application/json
    Opsfitter-Event: ticket.closed
    Opsfitter-Delivery: dlv_...
    Opsfitter-Signature: t=1764900000,v1=5c2f...e91
    
    { "id": "evt_...", "object": "event", "type": "ticket.closed",
      "created_at": "2026-12-05T14:02:11.000Z", "livemode": true, "attempt": 1,
      "data": { "object": { "id": "TK-1001", "object": "ticket", "status": "closed", ... } } }
    • Answer with any 2xx within 10 seconds. Do the slow work after you answer.
    • No 2xx? We try again after 1 minute, 5 minutes, 30 minutes, 2 hours, 6 hours and 24 hours.
    • 25 failures in a row pauses the webhook and emails the owner. Nothing is lost; failed sends can be sent again from the portal or the API.
    • The same event can arrive twice (it happens with every webhook system). Use the event id to skip repeats.
    • Prefer to ask instead of being told? GET /events?created_since=... lists every change for 30 days.

    Check the signature

    Sign the raw body exactly as it arrived. Reject anything older than 5 minutes. Secrets start with whsec_ and are shown once; rotate any time.

    Every event

    How it works

    Keys, scopes, plans and limits

    Keys

    of_live_ keys reach one real system. of_test_ keys reach a practice business. Keys are shown once and kept only as a hash, so not even Opsfitter can read them back. Each key has a name, so the owner knows what uses it.

    Scopes

    Every answer tells you

    X-Request-Id (quote it if you email us), X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset. A 429 adds Retry-After in seconds.

    What each membership includes

    Loading plans...

    A Google Sheets system can also use its own direct API for free (it runs in the owner's Google account, 60 calls a minute). See Google Sheets systems.

    Errors

    StatustypeWhen
    400invalid_requestBad JSON, bad filter or cursor
    401authentication_errorNo key, wrong key, turned off or expired
    403permission_errorThe key or plan does not include that (the message says which)
    404not_foundNo such record or address
    405invalid_requestThat record cannot be deleted or changed; the message says what to do instead
    409conflictA paid invoice or received order cannot change
    422invalid_requestFields did not pass; error.fields lists each one
    429rate_limitToo many calls this minute or today
    5xxapi_errorOur side; safe to try again with the same Idempotency-Key

    Lists, paging and safe retries

    • Lists return { object: "list", data: [...], has_more, next_cursor }. Send cursor=next_cursor for the next page. limit is 1 to 100 (25 by default).
    • Filter with the field name: status=paid, location_id=H-.... Dates: date_from, date_to, updated_since, created_since.
    • Send Idempotency-Key: any-unique-text with a POST. Sent twice, you get the first answer back, never a double booking.
    • Fields you can read but not set are skipped quietly, so a record you GET can go straight back with PATCH. Unknown fields are an error, to catch typos.
    • Records that carry history are never deleted through the API: cancel, close or turn off instead. The error says how.
    Reference

    Every record, every field

    Read straight from openapi.json, so it always matches the live API.

    Loading the reference...

    Recipes

    Wire it up without paying for another app

    Every recipe uses plain webhooks and plain HTTP, so it works with free tools. Notes on cost are honest: Make's webhooks work on its free plan (within its monthly operations), n8n is free when you run it yourself, and Zapier's webhook step needs a paid Zapier plan.

    Make (free plan)

    Urgent ticket? Text the on call manager.

    1. In Make, add Webhooks, Custom webhook. Copy its address.
    2. In your portal (Connections and API), add a webhook to that address with the event ticket.created.
    3. Add a Filter: data.object.priority equals urgent.
    4. Add your texting or email module. Done.
    Make (free plan)

    Paid invoice lands in QuickBooks.

    1. Webhook event invoice.paid to a Make custom webhook.
    2. Add the QuickBooks Online module, Create a sales receipt.
    3. Map customer, lines and total.

    The payment is already in your Opsfitter money in, so the books match both places.

    Your website

    Booking form on your site goes straight onto the schedule.

    Post from your server (never put a live key in a web page):

    await fetch('https://opsfitter.com/api/v1/bookings', {
      method: 'POST',
      headers: { Authorization: 'Bearer ' + process.env.OPSFITTER_KEY,
        'Content-Type': 'application/json',
        'Idempotency-Key': form.id },
      body: JSON.stringify({ customer: form.name, email: form.email,
        service: 'Facial', date: '2026-12-20', time: '2:30 PM' })
    });
    Google Apps Script (free)

    Nightly POS sales total into the books.

    function postSales() {   // time trigger, 11 PM
      var total = /* read your POS export */ 4210.55;
      UrlFetchApp.fetch('https://opsfitter.com/api/v1/money_entries', {
        method: 'post', contentType: 'application/json',
        headers: { Authorization: 'Bearer ' +
          PropertiesService.getScriptProperties().getProperty('OPSFITTER_KEY') },
        payload: JSON.stringify({ date: Utilities.formatDate(new Date(),
          'America/New_York', 'yyyy-MM-dd'), kind: 'in', category: 'Sales',
          amount: total, party: 'POS daily total' })
      });
    }
    Python

    Payroll-ready hours for the pay period.

    import requests, csv, sys
    H = {"Authorization": "Bearer " + KEY}
    url, rows = "https://opsfitter.com/api/v1/time_entries", []
    q = {"date_from": "2026-11-29", "date_to": "2026-12-12", "limit": 100}
    while True:
        r = requests.get(url, headers=H, params=q).json()
        rows += r["data"]
        if not r["has_more"]: break
        q["cursor"] = r["next_cursor"]
    w = csv.writer(sys.stdout)
    for t in rows: w.writerow([t["staff_id"], t["date"], t["hours"]])

    Opsfitter never runs payroll. Your payroll company imports the file.

    n8n (self hosted, free)

    Low stock becomes a purchase order.

    1. Webhook node, event inventory_item.low.
    2. HTTP Request node: POST /purchase_orders with vendor and a line for par - on_hand.
    3. The manager reviews and sends it from Opsfitter.
    Zapier (paid plan)

    Any of the 7,000 Zapier apps.

    1. Trigger: Webhooks by Zapier, Catch Hook (a paid Zapier feature). Use that address as your webhook.
    2. Action: Webhooks by Zapier, Custom Request to call the API back with your key.

    On Zapier's free plan, use Make or n8n instead.

    No webhooks allowed?

    Ask every few minutes instead.

    GET /api/v1/events?created_since=2026-12-05T14:00:00Z&order=asc

    Keep the newest created_at you saw and ask again later. 30 days of events are kept.

    Google Sheets systems

    Same API when the system lives in the owner's Google Sheet

    Through the Opsfitter cloud (best)

    1. In the portal, Connections and API, press Join my Sheet. Copy the link key.
    2. In the Sheet: Opsfitter menu, API and connections, Join to Opsfitter cloud. Paste it.
    3. Make live keys and webhooks in the portal, exactly like Hosted.

    Calls go to https://opsfitter.com/api/v1. We check the key and limits, then pass a signed call to the owner's own Apps Script. Changes made in the Sheet go out as webhooks within about a minute.

    Straight to the Sheet (free, no cloud)

    1. In the Sheet: Opsfitter menu, API and connections, Make an API key. Pick what it can do.
    2. Call the web app address with api=1, the path and the key:
    https://script.google.com/macros/s/<id>/exec?api=1&path=/bookings&status=confirmed&key=of_sheet_...
    
    POST ...exec?api=1&path=/tickets&key=of_sheet_...           (add a ticket)
    POST ...exec?api=1&path=/tickets/TK-1&_method=PATCH&key=...  (change one)

    Google's rules apply: the key goes in the address (Apps Script cannot read headers), every answer is status 200 with the real status inside as "status", clients must follow redirects, and 60 calls a minute per key. Webhooks need the cloud.

    Hotels and hotel companies

    PMS and POS: what connects, and the lines we do not cross

    How hotel data comes in

    • Reports first. Nightly PMS and POS exports (arrivals, in house, room status, daily sales) load into the Handoff Log, housekeeping boards, money in and the owner dashboard. Works with every PMS.
    • Partner APIs, read only, when you already have them. If your hotel or brand already has API access to your PMS or POS (for example through the vendor's partner program), a connector can read from it on your credentials. You own that access; we never ask for your PMS passwords.
    • Many properties, one company. Each property is a location. Every record carries location_id, so a company dashboard or BI tool can pull all properties with one key, or a key per property.
    • Out to the brand. Webhooks and the API feed your own BI, Slack or Teams, accounting and payroll company imports.

    The lines we do not cross

    • We never write into a PMS. Reservations, rates, folios and guest profiles stay in the PMS and the brand's systems.
    • No card numbers, ever. The API refuses anything that looks like one. Cards are taken on Stripe or Square; Opsfitter keeps only the status.
    • No passwords. Not yours, not your vendors'. Keys and partner tokens only.
    • We do not run payroll or file taxes. You get payroll-ready files and numbers for your accountant.
    • Only what is needed. Guest details stay out unless the job needs them. Private staff pay needs its own scope.
    Security

    Built so an IT team can say yes

    Each business is walled off. The key decides the business on our side; nothing in a call can reach another one.
    Keys are hashed. Shown once, named, scoped, and turned off in one tap. Practice keys reach only sample data.
    Every call is logged. The owner sees the last calls with time, path, status and request id for 30 days.
    Signed webhooks. HMAC-SHA256 with a per webhook secret, a timestamp against replays, https only, no private addresses.
    Limits per key. Per minute and per day, so one runaway script cannot slow the business down.
    Encrypted everywhere. TLS on every call. Webhook secrets are sealed with AES-GCM at rest.

    Questions about connecting something?

    Tell us what needs to talk to what. If the API already does it, we will say so. If it needs a hand built connector, you get one fixed price first.