---
title: "Create Subscription"
method: POST
path: "/v1/subscribe"
tags: ["subscribe"]
---

# Create Subscription

`POST /v1/subscribe`

## Request

- Base URL: `https://leads.compuute.se` (the document declares no server; this is the origin it was published from)
- URL: `https://leads.compuute.se/v1/subscribe`
- Auth: none declared

Subscribe to webhook delivery of new leads matching criteria.

## Headers

- `X-API-Key` string, nullable

## Request body

- SubscribeRequest
  - `criteria` SearchCriteria, required
    - `industries` Industry[], nullable
    - `stages` Stage[], nullable
    - `regions` Region[], nullable
    - `min_employees` integer, nullable
    - `min_icp_score` integer
    - `min_buying_intent` integer
    - `tech_stack_contains` string[], nullable
    - `max_age_days` integer
  - `webhook_url` string, uri, required
  - `webhook_secret` string, required: Shared secret for HMAC verification (min 16 chars)
  - `frequency` string: hourly, daily, or weekly
  - `max_leads_per_delivery` integer

## Response `201`

Successful Response

- SubscribeResponse
  - `subscription` SubscriptionInfo, required
    - `subscription_id` string, uuid, required
    - `webhook_url` string, required
    - `frequency` string, required
    - `max_leads_per_delivery` integer, required
    - `criteria` SearchCriteria, required
      - `industries` Industry[], nullable
      - `stages` Stage[], nullable
      - `regions` Region[], nullable
      - `min_employees` integer, nullable
      - `min_icp_score` integer
      - `min_buying_intent` integer
      - `tech_stack_contains` string[], nullable
      - `max_age_days` integer
    - `next_delivery` string, nullable
    - `is_active` boolean
    - `created_at` string, nullable
  - `message` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/compuute/apis/lead-enrichment-api.md) · [All operations](https://skmtc.dev/compuute/apis/lead-enrichment-api/llms.txt) · [OpenAPI document](https://skmtc.dev/compuute/apis/lead-enrichment-api/revisions/a9702cd98531?raw)
