# Signals – Hiring Trends API Reference

> Platform documentation snapshot. Access, charging and provider requirements remain operation-specific; examples do not execute requests.

### What it does

Aggregated hiring activity per company and per role family over time, showing where headcount is being added, which functions are growing and how hiring velocity is trending.

### Use cases

- Sell developer tooling to companies whose engineering hiring is accelerating.
- Detect a new go-to-market push (a wave of AE or SDR hires) and pitch sales tooling at the right moment.
- Score accounts on growth momentum and route the fastest movers to senior reps.

### Parameters

| Parameter | Type | Description |
|-----------|------|-------------|
| `domain` | string | Company domain (e.g. "stripe.com"). One of domain, company, or linkedin is required. |
| `company` | string | Company name (e.g. "Stripe") |
| `linkedin` | string | Company LinkedIn URL |
| `months` | integer | Trend window in months (3-36, default: 12) |
| `include_postings` | boolean | Include live open roles from the company's careers page / ATS (default: true) |

### Response Schema

_Complete documented fields for this section, with nested notation preserved. Endpoint-specific envelopes, availability and additional fields are described under each endpoint below._

| Field | Notes |
|-------|-------|
| found | |
| months | |
| company → name, domain, linkedin, logo, employees, industry, location, description | |
| headcount → current, delta, growth_pct, series[] { date, employee_count } | |
| functions[] → category_id, category, open_roles, open_roles_all_time, open_roles_expired, last_seen_at | |
| seniorities[] → same shape as functions[] | |
| breakdowns → employment_type[], country[], payscale[], qualification[] | |
| trends[] → category_id, category, current, delta, growth_pct, points[] { month, current } | |
| highlights → fastest_growing[], shrinking[] | |
| postings[] → title, team, location, employment_type, seniority, posted, url | |
| posting_sources[] | |
| job_board → provider, url | |

**Illustrative Example Response (synthetic, not a complete endpoint schema):**

```json
{
  "data": [
    {
      "found": "string",
      "months": "string",
      "posting_sources[]": "string",
      "company": {
        "name": "string",
        "domain": "string",
        "linkedin": "https://example.com",
        "logo": "https://example.com",
        "employees": "string",
        "industry": "string",
        "location": "string",
        "description": "string"
      },
      "headcount": {
        "current": "string",
        "delta": "string",
        "growth_pct": "string",
        "series[] { date": "2025-06-01T12:00:00Z",
        "employee_count }": 0
      },
      "functions": [
        {
          "category_id": "abc123",
          "category": "string",
          "open_roles": "string",
          "open_roles_all_time": "string",
          "open_roles_expired": "string",
          "last_seen_at": "2025-06-01T12:00:00Z"
        }
      ],
      "seniorities": [
        {
          "same shape as functions[]": "string"
        }
      ],
      "breakdowns": {
        "employment_type[]": "string",
        "country[]": 0,
        "payscale[]": "string",
        "qualification[]": "string"
      },
      "trends": [
        {
          "category_id": "abc123",
          "category": "string",
          "current": "string",
          "delta": "string",
          "growth_pct": "string",
          "points[] { month": "string",
          "current }": "string"
        }
      ],
      "highlights": {
        "fastest_growing[]": "string",
        "shrinking[]": "string"
      },
      "postings": [
        {
          "title": "string",
          "team": "string",
          "location": "string",
          "employment_type": "string",
          "seniority": "string",
          "posted": "string",
          "url": "https://example.com"
        }
      ],
      "job_board": {
        "provider": "string",
        "url": "https://example.com"
      }
    }
  ],
  "pagination": {
    "page": 1,
    "page_size": 20,
    "total": 1,
    "has_more": false
  },
  "credits_used": 1
}
```

### POST /v1/signals/hiring — Get Hiring Trends

Hiring composition, headcount growth by function and seniority, plus live open roles for a single company. Costs 1 credit per record returned (each open role; 1 credit minimum for a matched company with no open roles, 0 credits when nothing matches).

**Example Request Body:**

```json
{
  "domain": "stripe.com",
  "months": 12,
  "include_postings": true
}
```

**cURL Example:**

```bash
curl -X POST 'https://bvjmtgaxijpyasjtaqiv.supabase.co/functions/v1/api-gateway' \
  -H 'Content-Type: application/json' \
  -H 'x-amz-security-token: YOUR-API-KEY' \
  -d '{
  "path": "/v1/signals/hiring",
  "method": "POST",
  "body": {
    "domain": "stripe.com",
    "months": 12,
    "include_postings": true
  }
}'
```

