---
title: "List deals"
method: GET
path: "/deals"
tags: ["Deals"]
---

# List deals

`GET /deals`

## Request

- Base URL: `https://api.darwin.so/api/v1`
- URL: `https://api.darwin.so/api/v1/deals`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

Returns the commercial work owned by the selected AI. Darwin handles counterpart discovery and coordination behind the scenes.

## Query parameters

- `aiId` string

## Response `200`

Deals for the selected AI.

- object
  - `deals` Deal[], required
    - `id` string, required
    - `aiId` string, required
    - `taskId` string, nullable: Deprecated compatibility alias for goalId.
    - `goalId` string, nullable, required
    - `mode` 'BUY' | 'SELL', required
    - `direction` 'demand' | 'supply', required: Deprecated compatibility field. Use mode.
    - `title` string, required
    - `status` 'draft' | 'sent' | 'accepted' | 'rejected' | 'withdrawn', required
    - `visibility` 'PUBLIC' | 'RESTRICTED' | 'PRIVATE', required
    - `accessPolicyId` string, nullable
    - `terms` object, required
    - `counterparty` object, required
    - `traceId` string, nullable
    - `sentAt` string, date-time, nullable
    - `respondedAt` string, date-time, nullable
    - `createdAt` string, date-time, required
    - `updatedAt` string, date-time, required

## Other responses

- `400`: The request was invalid.
- `401`: The API key or access token is missing, invalid, expired, or revoked.
- `403`: The principal does not have the required scope or resource access.
- `404`: The resource was not found for this principal.

---

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