---
title: "Request subscription confirmation"
method: POST
path: "/v1/subscriptions"
tags: ["Subscriptions"]
---

# Request subscription confirmation

`POST /v1/subscriptions`

## Request

- Base URL: `https://api.samva.dev`
- URL: `https://api.samva.dev/v1/subscriptions`
- Auth: API key in header `x-api-key`

Sends a confirmation email from your sender. Only the recipient's explicit confirmation adds them to the active static contact group and clears the optional unsubscribe group. The link expires after seven days and can be used once. A custom published email template receives confirmUrl. Sending follows ordinary sender, admission, billing, and brand-footer settings. Requires email send authority in addition to the declared contact grants, including the optional unsubscribe preference change.

## Request body

- SubscribePayload
  - `email` string, required: The recipient email address; confirmation proves consent for this address.
  - `contactGroupId` string, required
  - `from` object, required: Your verified email sender. The ordinary send pipeline selects its domain and customer brand.
    - `email` string, required
    - `name` string, nullable
  - `unsubscribeGroupId` string
  - `templateSlug` string, nullable: A published email template slug receiving confirmUrl. Omit it to send the default confirmation email.
  - `consentIp` string, nullable: The recipient IP recorded by your server when they requested subscription.
  - `consentSource` string, nullable: The signup page or source recorded by your server when consent was requested.

## Response `200`

SubscribeResult

- SubscribeResult
  - `success` boolean, required
  - `expiresAt` string, required

## Other responses

- `401`: UnauthorizedError
- `402`: PaymentRequiredError
- `403`: ForbiddenError | OnboardingReviewRequiredError | FlagDisabledError
- `404`: ResourceNotFoundError
- `409`: ConflictError
- `422`: ValidationError | BrandAddressRequiredError | CampaignFooterRequiredError
- `429`: RateLimitedError
- `500`: InternalError
- `502`: BillingProviderError | ExternalServiceError
- `503`: SenderNotReadyError | DeliveryUnavailableError
- `504`: GatewayTimeoutError

---

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