---
title: "Close a position"
method: POST
path: "/api/portfolio/positions/close"
tags: ["Portfolio"]
---

# Close a position

`POST /api/portfolio/positions/close`

Creates a sell order intent to close part of an account position. API keys need the `portfolio:write` scope. Review the current position before calling this endpoint.

## Request body

- object
  - `tokenId` string, required
  - `amount` number, required

## Response `200`

Close-position intent was queued.

- object
  - `intentId` string, uuid
  - `status` string
  - `amount` number

## Other responses

- `400` — Request is invalid for the current position.
- `401` — Missing, invalid, revoked, or expired credentials.
- `403` — Credential is valid but cannot perform this action.

---

[API](https://skmtc.net/carboncopyinc/apis/blueprints-api.md) · [All operations](https://skmtc.net/carboncopyinc/apis/blueprints-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/carboncopyinc/blueprints-api/versions/821dba6e3373/schema)
