---
title: "Create a new operation"
method: POST
path: "/collateral_management/operations"
tags: ["Collateral Management"]
---

# Create a new operation

`POST /collateral_management/operations`

Permissions required: **Manage Collateral Packages** and **Read vault activity**


Create a new operation in the Collateral Management service.

## Headers

- `Api-Signature` string, required
- `Api-Timestamp` integer, required

## Request body

- CMCreateOperationRequest
  - `action` 'INITIAL_DEPOSIT' | 'INITIAL_FUNDING' | 'MARGIN_RETURN' | 'PAY_DOWN' | 'PAY_UP' | 'INTEREST_PAYDOWN' | 'INTEREST_ACCRUAL' | 'TOP_UP' | 'CLOSE_RETURN' | 'REHYPE_IN' | 'REHYPE_OUT', required — The specific action to be performed in the operation. Valid actions for exposures are: 1. `INITIAL_FUNDING` 2. `PAY_DOWN` 3. `PAY_UP` 4. `INTEREST_PAYDOWN` 5. `INTEREST_ACCRUAL` Valid actions for collateral packages are: 1. `INITIAL_DEPOSIT` 2. `MARGIN_RETURN`, 3. `TOP_UP` 4. `CLOSE_RETURN`. 5. `REHYPE_IN` 6. `REHYPE_OUT`
  - `asset` CMAssetType, required — Asset symbol or ticker (e.g. BTC)
    - `assetType` string, required
    - `type` 'ANCHORAGECUSTODY' | 'EXTERNAL', required — The type of asset held in the Collateral Package. This can be either `ANCHORAGECUSTODY` for assets held in Anchorage custody, or `EXTERNAL` for assets held outside of Anchorage custody.
  - `idempotentId` string — Idempotency single key
  - `notes` string — Optional notes or comments related to the operation
  - `quantity` string, required — The quantity of the asset to be used in the operation, expressed as a decimal string.
  - `type` 'COLLATERAL_PACKAGE' | 'EXPOSURE', required — The type of entity the operation is being performed on. This can be either a `COLLATERAL_PACKAGE` or an `EXPOSURE`.
  - `typeId` string, required — The ID of the collateral package (packageId) or exposure (exposureId) for this operation

## Response `201`

operationId

- CMOperationResponse
  - `operationId` string, required

## Other responses

- `400` — Bad Request
- `401` — Unauthenticated
- `403` — Forbidden
- `429` — Too Many Requests
- `500` — Internal Server Error

---

[API](https://skmtc.net/anchorage/apis/anchorage-digital-api-reference.md) · [All operations](https://skmtc.net/anchorage/apis/anchorage-digital-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/anchorage/anchorage-digital-api-reference/versions/166864b1ec6d/schema)
