---
title: "Subscribe to a plan"
method: POST
path: "/api/subscriptions/subscribe"
tags: ["Subscriptions"]
---

# Subscribe to a plan

`POST /api/subscriptions/subscribe`

## Request

- Base URL: `https://api.hiyd.ai`
- URL: `https://api.hiyd.ai/api/subscriptions/subscribe`
- Auth: HTTP bearer

## Request body

- object
  - `plan_id` string, uuid, required
  - `payment_provider` 'stripe' | 'apple' | 'google' | 'manual'
  - `payment_provider_id` string

## Response `200`

Subscription created successfully

## Other responses

- `400`: Invalid request

---

[API](https://skmtc.dev/hiyd/apis/hiyd-backend-api.md) - [All operations](https://skmtc.dev/hiyd/apis/hiyd-backend-api/llms.txt) - [OpenAPI document](https://skmtc.dev/hiyd/apis/hiyd-backend-api/revisions/23598d347e1b?raw)
