---
title: "Subscribe account to plugin"
method: POST
path: "/plugins/{pluginId}/subscriptions"
tags: ["Plugins"]
---

# Subscribe account to plugin

`POST /plugins/{pluginId}/subscriptions`

## Request

- Base URL: `https://api.smokeball.com`
- URL: `https://api.smokeball.com/plugins/{pluginId}/subscriptions`
- Auth: API key in header `x-api-key` and API key in header `Authorization`

Subscribes an account with the specified plugin.

## Path parameters

- `pluginId` string, uuid, required

## Response `202`

When request is accepted. Returns a 'Link' object.

- Link
  - `id` string, nullable
  - `href` string, nullable
  - `relation` string, nullable
  - `method` string, nullable

## Other responses

- `400`: When an unsupported request is made.
- `403`: When the authenticated account does not have access to subscribe to plugins.
- `404`: When plugin with specified id does not exist.

---

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