---
title: "Creates a new trade request"
method: POST
path: "/api/trades"
tags: ["Trade"]
---

# Creates a new trade request

`POST /api/trades`

## Request

- Base URL: `https://sky.coflnet.com` (the document declares no server; this is the origin it was published from)
- URL: `https://sky.coflnet.com/api/trades`
- Auth: one of:
  - API key in header `Authorization`
  - API key in header `GoogleToken`

## Request body

- TradeRequest[]
  - `id` string, nullable: Gets or sets the unique identifier of the trade request.
  - `playerUuid` string, nullable: Gets or sets the player UUID initiating the trade.
  - `playerName` string, nullable: Gets or sets the player name.
  - `buyerUuid` string, nullable: Gets or sets the buyer UUID.
  - `item` Item
    - `id` integer, nullable
    - `itemName` string, nullable
    - `tag` string, nullable
    - `extraAttributes` object, nullable
    - `enchantments` object, nullable
    - `color` integer, nullable
    - `description` string, nullable
    - `count` integer, nullable
  - `coins` integer, nullable: The amount of coins the player wants to spend
  - `wantedItems` WantedItem[], nullable: Gets or sets the list of wanted items in exchange.
    - `tag` string, nullable: Gets or sets the tag.
    - `itemName` string, nullable: Gets or sets the item name.
    - `filters` object, nullable: Gets or sets the filters.
  - `timestamp` string, date-time, required: Gets or sets the timestamp of the trade request.

## Response `200`

OK

## Other responses

- `401`: Unauthorized
- `403`: Forbidden

## Changes

- **2026-08-04** `41f7cdd4406b`: 4 breaking, 4 info
  - the request property `items/timestamp` became required (media type: application/json-patch+json)
  - the request property `items/timestamp` became required (media type: application/json)
  - the request property `items/timestamp` became required (media type: text/json)
  - the request property `items/timestamp` became required (media type: application/*+json)
  - …4 more
- **2024-01-10** `64a743ab7c2a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/coflnet/apis/skyapi/changes/api/trades/post.md)

---

[API](https://skmtc.dev/coflnet/apis/skyapi.md) - [All operations](https://skmtc.dev/coflnet/apis/skyapi/llms.txt) - [OpenAPI document](https://skmtc.dev/coflnet/apis/skyapi/revisions/c787372dc7a2?raw)
