StaffGenerator

Generation API

Generate complete staffing packs programmatically. One authenticated POST returns a job description, onboarding checklist and HR policy as JSON — the same engine the app uses.

The API is available on the Pro plan. Manage keys and see usage in your dashboard.

Authentication

Every request needs an API key, sent as a Bearer token. Create a key from the API keys section of your dashboard — the raw key (prefixed sg_live_) is shown once at creation; store it securely.

Authorization: Bearer sg_live_your_api_key

Endpoint

POST https://staffgenerator.com/api/v1/generate

Request body (JSON)

Response (200)

A JSON object with the generated profiles array. Each profile is a full document pack:

{
  "count": 1,
  "locale": "en",
  "profiles": [
    {
      "role": "Senior Backend Engineer",
      "department": "fintech",
      "seniority": "senior",
      "meta": { "roleFamily": "engineering", "seniority": "senior", ... },
      "jobDescription": { "title": "...", "summary": "...", "responsibilities": ["..."], ... },
      "onboardingChecklist": [ { "heading": "Before day one", "items": ["..."] }, ... ],
      "hrPolicy": { "title": "...", "body": "..." }
    }
  ]
}

Rate limits

Every response carries standard rate-limit headers. The Pro daily cap is configurable; when it is reached, further calls return 429 until the window resets at 00:00 UTC.

Error codes

StatusMeaning
400Invalid JSON, or missing/invalid role/department/locale.
401Missing Authorization header, or an invalid/revoked API key.
402The key belongs to a free-plan user. The body includes an upgrade_url.
429Daily rate limit reached — retry after X-RateLimit-Reset.
200Success — the profiles array is returned and one usage event is recorded.

Example (cURL)

curl -X POST https://staffgenerator.com/api/v1/generate \
  -H "Authorization: Bearer sg_live_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "role": "Senior Backend Engineer",
    "department": "fintech",
    "seniority": "senior",
    "company": "Acme Inc.",
    "count": 1
  }'

Need on-demand screenshots of the pages you build with this data? Our sister tool Screencap.site turns any URL into an image via a similar simple API.