API v1Stable major · additive within v1

Sandbox with fh_test_

Contract-first REST for builders and agents. Same control plane as Fat Heron products — documented here for the developer surface.

Rehearse mutations safely: dry-run adapters, sb- projects, simulate recipes, then promote with a live key.

Required scopes: read, write · Base https://api.fatheron.dev

Steps

  1. 1. Check sandbox status

    GET /v1/sandbox/status
    X-API-Key: fh_live_…

    sandbox_mode true for fh_test_ keys. Lists dry_run_actions and recipes.

  2. 2. Simulate a failure recipe

    POST /v1/sandbox/simulate
    X-API-Key: fh_live_…
    Content-Type: application/json
    
    {
      "recipe": "billing.payment_failed"
    }

    No outbound webhook delivery. Other recipes: alias.created, dns.delegation_failed, webhook.delivery_failed.

  3. 3. Build a plan from a manifest

    POST /v1/sandbox/plan
    X-API-Key: fh_live_…
    Content-Type: application/json
    
    {
      "project": {
        "name": "Acme Launch",
        "slug": "acme-launch"
      },
      "alias": {
        "local_part": "hello",
        "domain_name": "example.com",
        "forwards_to": "[email protected]"
      }
    }

    Or use fh apply --file manifest.json with a test key.

  4. 4. Promote with a live key

    POST /v1/sandbox/promote
    X-API-Key: fh_live_…
    Content-Type: application/json
    
    {
      "plan": {
        "plan_id": "plan-…",
        "manifest": {},
        "steps": []
      }
    }

    Requires fh_live_. Real side effects. CLI: fh promote --file plan.json

Failure remediation

All agent recipes

Sandbox with fh_test_ · Fat Heron Developers