---
title: "Buy a subscription (BTCPay checkout)"
method: POST
path: "/api/v1/agents/subscribe"
tags: ["AI Agents"]
---

# Buy a subscription (BTCPay checkout)

`POST /api/v1/agents/subscribe`

## Request

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

Creates a BTCPay invoice for the given plan. The agent (or its developer) pays the returned payment_url; the BTCPay webhook then activates the tier automatically.

## Request body

- object
  - `plan_id` string, required
  - `billing` union
    - string
    - string

## Response `200`

---

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