---
title: "Create a subscription"
method: POST
path: "/v1/projects/{projectID}/subscriptions"
tags: ["Subscriptions"]
---

# Create a subscription

`POST /v1/projects/{projectID}/subscriptions`

This endpoint creates a subscriptions

## Path parameters

- `projectID` string, required

## Request body

- ModelsCreateSubscription
  - `alert_config` ModelsAlertConfiguration
    - `count` integer
    - `threshold` string
  - `app_id` string — Deprecated but necessary for backward compatibility
  - `endpoint_id` string
  - `filter_config` ModelsFilterConfiguration
    - `event_types` string[]
    - `filter` ModelsFS
      - `body` DatastoreM
      - `headers` DatastoreM
  - `name` string
  - `rate_limit_config` ModelsRateLimitConfiguration
    - `count` integer
    - `duration` integer
  - `retry_config` ModelsRetryConfiguration
    - `duration` string
    - `interval_seconds` integer
    - `retry_count` integer
    - `type` 'linear' | 'linear' | 'exponential'
  - `source_id` string

## Changes

- **2023-07-28** (v3) `2fc887538896` — 1 warning
  - removed the optional property `allOf[subschema #2]/data/source_metadata/idempotency_ttl` from the response with the `200` status
- **2023-06-22** (v3) `5c862889f0b4` — 2 info
  - added the optional property `allOf[subschema #2]/data/source_metadata/idempotency_keys` to the response with the `200` status
  - added the optional property `allOf[subschema #2]/data/source_metadata/idempotency_ttl` to the response with the `200` status

[Change history](https://skmtc.dev/getconvoy/apis/convoy-api-reference/changes/v1/projects/:projectID/subscriptions/post.md)

---

[API](https://skmtc.dev/getconvoy/apis/convoy-api-reference.md) · [All operations](https://skmtc.dev/getconvoy/apis/convoy-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/getconvoy/convoy-api-reference/revisions/2fc887538896/schema)
