---
title: "Add Plan to Agent"
method: POST
path: "/protocol/agents/{agentId}/plan/{planId}"
tags: ["Protocol - Agents"]
---

# Add Plan to Agent

`POST /protocol/agents/{agentId}/plan/{planId}`

## Request

- Base URL: `https://api.sandbox.nevermined.app/api/v1`
- URL: `https://api.sandbox.nevermined.app/api/v1/protocol/agents/{agentId}/plan/{planId}`
- Auth: HTTP bearer

Associates an existing payment plan with an agent.

## Path parameters

- `agentId` string, required
- `planId` integer, required

## Response `200`

Plan added to agent

- SuccessResponse
  - `success` boolean

## Other responses

- `401`: Unauthorized
- `404`: Agent or plan not found

---

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