Test mode: plans are proposed and nobody is charged yet.

Docs

Quick start

  1. Sign up. Camshaft makes your team, with you as its owner.
  2. In the console, open API keys and make a key. You get a client ID and a secret; the secret is shown once.
  3. Swap the key for a short-lived access token (client credentials, for Camshaft's API):
    curl -s https://auth.camshaft.lunaor.com/token -u "$CAMSHAFT_CLIENT_ID:$CAMSHAFT_CLIENT_SECRET" \
      -d grant_type=client_credentials -d resource=https://camshaft.lunaor.com
  4. Save a flow. It becomes your team's:
    curl -s -X PUT https://camshaft.lunaor.com/flows/hello -H "authorization: Bearer $TOKEN" -H 'content-type: application/json' \
      -d '{"steps": [{"kind": "signal", "name": "go", "signal": "go", "output": "boolean"}], "output": {"ok": "{{steps.go.output}}"}}'
  5. Run it, answer it and read it:
    curl -s -X POST https://camshaft.lunaor.com/flows/hello/runs -H "authorization: Bearer $TOKEN" -d '{"id": "first", "input": {}}' -H 'content-type: application/json'
    curl -s -X POST https://camshaft.lunaor.com/runs/first/signals/go -H "authorization: Bearer $TOKEN" -d '{"value": true}' -H 'content-type: application/json'
    curl -s https://camshaft.lunaor.com/runs/first -H "authorization: Bearer $TOKEN"

A key is an admin of your team's flows: it saves them, starts, reads, retries and cancels their runs, and sets their schedules. It sees nothing of any other team's. Every key of your team sees the same flows and runs.

Guides and SDKs

The API

Base URL https://camshaft.lunaor.com, JSON in and out, Authorization: Bearer <token> on every call. The main routes: