# Create a market brief

Starts a brief on what the scope did over the window, with possible explanations and sources. Use `mode: news` to research a quiet price move; the default `auto` mode may answer a quiet scope at once with `status: ready`, free. A researched job answers 202 `generating`; read it with Get a market brief until it is `ready` or `failed`. Research is charged to your partner. Cache by `scope`, `window` and `mode`.

`POST /v1/market/briefs`

## Authentication

All credentials below are required.

- Header: `X-Api-Key: YOUR_API_KEY`

## Header parameters



```json
[
  {
    "schema": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    },
    "example": "d5565100-9342-4bc6-a803-b387a20cb536",
    "in": "header",
    "name": "idempotency-key",
    "required": true,
    "description": "A UUID you generate for this request. Send the same key and the same body to retry it safely: you get the original result back, never a second one. A different body under the same key is refused with `request_key_conflict`."
  }
]
```


## Request body



```json
{
  "required": true,
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/CreateMarketBriefInputInput"
      }
    }
  }
}
```


## Request example

Illustrative request. Replace the host, credentials and resource IDs with your own. If a request file is shown, create it from the schema above. Review the requested action before sending it.

```sh
curl --request POST 'https://api.example.test/v1/market/briefs' \
  --header 'X-Api-Key: YOUR_API_KEY' \
  --header 'idempotency-key: d5565100-9342-4bc6-a803-b387a20cb536' \
  --header 'Content-Type: application/json' \
  --data-binary '@request.json'
```

## Responses

### 200

The brief, finished at once.



```json
{
  "description": "The brief, finished at once.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/MarketBriefJob"
      }
    }
  }
}
```


### 202

The brief job, generating.



```json
{
  "description": "The brief job, generating.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/MarketBriefJob"
      }
    }
  }
}
```


### 400

The request could not be read as this operation expects.

- `invalid_input` — the body or query failed validation; `issues` names each field
- `scope_invalid` — a subject in the scope is not a subject id, or appears twice



```json
{
  "description": "The request could not be read as this operation expects.\n\n- `invalid_input` — the body or query failed validation; `issues` names each field\n- `scope_invalid` — a subject in the scope is not a subject id, or appears twice",
  "content": {
    "application/problem+json": {
      "schema": {
        "$ref": "#/components/schemas/ProblemDetails"
      }
    }
  }
}
```


### 401

A credential is missing, invalid or expired.

- `partner_key_required` — no `X-Api-Key` header was sent
- `partner_key_invalid` — the `X-Api-Key` is unknown or revoked
- `credential_expired` — the user token has expired; obtain a fresh one



```json
{
  "description": "A credential is missing, invalid or expired.\n\n- `partner_key_required` — no `X-Api-Key` header was sent\n- `partner_key_invalid` — the `X-Api-Key` is unknown or revoked\n- `credential_expired` — the user token has expired; obtain a fresh one",
  "content": {
    "application/problem+json": {
      "schema": {
        "$ref": "#/components/schemas/ProblemDetails"
      }
    }
  }
}
```


### 403

The credentials are valid but may not do this.

- `account_disabled` — an operator disabled the account
- `origin_rejected` — a browser `Origin` other than the configured web origin
- `permission_required` — the verified credential is not permitted to make this call
- `market_briefs_disabled` — market briefs are not turned on for your partner key



```json
{
  "description": "The credentials are valid but may not do this.\n\n- `account_disabled` — an operator disabled the account\n- `origin_rejected` — a browser `Origin` other than the configured web origin\n- `permission_required` — the verified credential is not permitted to make this call\n- `market_briefs_disabled` — market briefs are not turned on for your partner key",
  "content": {
    "application/problem+json": {
      "schema": {
        "$ref": "#/components/schemas/ProblemDetails"
      }
    }
  }
}
```


### 404

The resource is missing, belongs to someone else, or its id is malformed: all three answer alike.

- `subject_unsupported` — a subject in the scope is not one market briefs cover; list them with List market subjects



```json
{
  "description": "The resource is missing, belongs to someone else, or its id is malformed: all three answer alike.\n\n- `subject_unsupported` — a subject in the scope is not one market briefs cover; list them with List market subjects",
  "content": {
    "application/problem+json": {
      "schema": {
        "$ref": "#/components/schemas/ProblemDetails"
      }
    }
  }
}
```


### 409

The operation lost to the current state.

- `request_key_conflict` — the request identity already binds different terms; retrieve the original resource or use a new identity for a new request



```json
{
  "description": "The operation lost to the current state.\n\n- `request_key_conflict` — the request identity already binds different terms; retrieve the original resource or use a new identity for a new request",
  "content": {
    "application/problem+json": {
      "schema": {
        "$ref": "#/components/schemas/ProblemDetails"
      }
    }
  }
}
```


### 413

The body exceeds the size this deployment accepts.



```json
{
  "description": "The body exceeds the size this deployment accepts.",
  "content": {
    "application/problem+json": {
      "schema": {
        "$ref": "#/components/schemas/ProblemDetails"
      }
    }
  }
}
```


### 429

A limit refused the request; wait for `Retry-After` when it is sent.

- `rate_limited` — the per-key or per-user limit is spent; honour `Retry-After`
- `partner_request_capacity` — this partner's request quota across all keys and replicas is spent; honour Retry-After
- `briefs_busy` — your market briefs are at their limit of briefs generating at once; retry after `Retry-After`
- `budget_exhausted` — the user's AI usage budget, or your partner account's AI spend limit, is used up until the next day or month, or an operator froze it



```json
{
  "description": "A limit refused the request; wait for `Retry-After` when it is sent.\n\n- `rate_limited` — the per-key or per-user limit is spent; honour `Retry-After`\n- `partner_request_capacity` — this partner's request quota across all keys and replicas is spent; honour Retry-After\n- `briefs_busy` — your market briefs are at their limit of briefs generating at once; retry after `Retry-After`\n- `budget_exhausted` — the user's AI usage budget, or your partner account's AI spend limit, is used up until the next day or month, or an operator froze it",
  "content": {
    "application/problem+json": {
      "schema": {
        "$ref": "#/components/schemas/ProblemDetails"
      }
    }
  }
}
```


### 500

A fault on our side; quote `requestId` when reporting it.

- `internal` — a fault on our side; quote `requestId` when reporting it



```json
{
  "description": "A fault on our side; quote `requestId` when reporting it.\n\n- `internal` — a fault on our side; quote `requestId` when reporting it",
  "content": {
    "application/problem+json": {
      "schema": {
        "$ref": "#/components/schemas/ProblemDetails"
      }
    }
  }
}
```


### 503

The service cannot take this right now (draining, a dependency did not answer, or an operator paused the work); `retryable` says whether to try again.

- `internal` — a fault on our side; quote `requestId` when reporting it



```json
{
  "description": "The service cannot take this right now (draining, a dependency did not answer, or an operator paused the work); `retryable` says whether to try again.\n\n- `internal` — a fault on our side; quote `requestId` when reporting it",
  "content": {
    "application/problem+json": {
      "schema": {
        "$ref": "#/components/schemas/ProblemDetails"
      }
    }
  }
}
```


## Complete OpenAPI definition

The exact operation and all referenced components, including recursive schemas.



```json
{
  "operation": {
    "operationId": "market.briefs.create",
    "summary": "Create a market brief",
    "tags": [
      "market"
    ],
    "description": "Starts a brief on what the scope did over the window, with possible explanations and sources. Use `mode: news` to research a quiet price move; the default `auto` mode may answer a quiet scope at once with `status: ready`, free. A researched job answers 202 `generating`; read it with Get a market brief until it is `ready` or `failed`. Research is charged to your partner. Cache by `scope`, `window` and `mode`.",
    "requestBody": {
      "required": true,
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/CreateMarketBriefInputInput"
          }
        }
      }
    },
    "parameters": [
      {
        "schema": {
          "type": "string",
          "format": "uuid",
          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
        },
        "example": "d5565100-9342-4bc6-a803-b387a20cb536",
        "in": "header",
        "name": "idempotency-key",
        "required": true,
        "description": "A UUID you generate for this request. Send the same key and the same body to retry it safely: you get the original result back, never a second one. A different body under the same key is refused with `request_key_conflict`."
      }
    ],
    "security": [
      {
        "apiKey": []
      }
    ],
    "responses": {
      "200": {
        "description": "The brief, finished at once.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/MarketBriefJob"
            }
          }
        }
      },
      "202": {
        "description": "The brief job, generating.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/MarketBriefJob"
            }
          }
        }
      },
      "400": {
        "description": "The request could not be read as this operation expects.\n\n- `invalid_input` — the body or query failed validation; `issues` names each field\n- `scope_invalid` — a subject in the scope is not a subject id, or appears twice",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/ProblemDetails"
            }
          }
        }
      },
      "401": {
        "$ref": "#/components/responses/Unauthorized"
      },
      "403": {
        "description": "The credentials are valid but may not do this.\n\n- `account_disabled` — an operator disabled the account\n- `origin_rejected` — a browser `Origin` other than the configured web origin\n- `permission_required` — the verified credential is not permitted to make this call\n- `market_briefs_disabled` — market briefs are not turned on for your partner key",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/ProblemDetails"
            }
          }
        }
      },
      "404": {
        "description": "The resource is missing, belongs to someone else, or its id is malformed: all three answer alike.\n\n- `subject_unsupported` — a subject in the scope is not one market briefs cover; list them with List market subjects",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/ProblemDetails"
            }
          }
        }
      },
      "409": {
        "description": "The operation lost to the current state.\n\n- `request_key_conflict` — the request identity already binds different terms; retrieve the original resource or use a new identity for a new request",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/ProblemDetails"
            }
          }
        }
      },
      "413": {
        "$ref": "#/components/responses/PayloadTooLarge"
      },
      "429": {
        "description": "A limit refused the request; wait for `Retry-After` when it is sent.\n\n- `rate_limited` — the per-key or per-user limit is spent; honour `Retry-After`\n- `partner_request_capacity` — this partner's request quota across all keys and replicas is spent; honour Retry-After\n- `briefs_busy` — your market briefs are at their limit of briefs generating at once; retry after `Retry-After`\n- `budget_exhausted` — the user's AI usage budget, or your partner account's AI spend limit, is used up until the next day or month, or an operator froze it",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/ProblemDetails"
            }
          }
        }
      },
      "500": {
        "$ref": "#/components/responses/Internal"
      },
      "503": {
        "$ref": "#/components/responses/Unavailable"
      }
    }
  },
  "components": {
    "schemas": {
      "CreateMarketBriefInputInput": {
        "type": "object",
        "properties": {
          "scope": {
            "minItems": 1,
            "maxItems": 10,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200,
              "description": "A subject's id: `market`, `chain:<chain>`, `asset:<asset>`, `asset:<asset>@<chain>` or `stock:<TICKER>`."
            },
            "description": "The subjects to research together, one to ten, in any order."
          },
          "window": {
            "type": "string",
            "enum": [
              "24h"
            ],
            "description": "The window the brief explains. Only `24h` today."
          },
          "mode": {
            "description": "Use `news` to research even a quiet price move; `auto`, the default, may return a free quiet brief.",
            "type": "string",
            "enum": [
              "auto",
              "news"
            ]
          }
        },
        "required": [
          "scope",
          "window"
        ],
        "additionalProperties": false,
        "description": "What a market brief should explain."
      },
      "MarketBriefJob": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
            "description": "The brief job's id."
          },
          "scope": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200,
              "description": "A subject's id: `market`, `chain:<chain>`, `asset:<asset>`, `asset:<asset>@<chain>` or `stock:<TICKER>`."
            },
            "description": "The subjects, sorted: with `window`, a natural key to cache a brief by."
          },
          "window": {
            "type": "string",
            "enum": [
              "24h"
            ],
            "description": "The window the brief explains."
          },
          "mode": {
            "description": "The requested research mode; absent on older jobs means `auto`.",
            "type": "string",
            "enum": [
              "auto",
              "news"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "generating",
              "ready",
              "failed"
            ],
            "description": "`generating` until the brief is `ready` or the job has `failed`."
          },
          "retryAfterSeconds": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ],
            "description": "While generating, how long to wait before reading the job again."
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "description": "When the job was created."
          },
          "completedAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ],
            "description": "When the job finished."
          },
          "failure": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string",
                    "enum": [
                      "generation_failed",
                      "brief_invalid",
                      "budget_exhausted"
                    ],
                    "description": "Why the job failed."
                  },
                  "details": {
                    "description": "A safe failure category and retry guidance, without provider error text.",
                    "type": "object",
                    "properties": {
                      "stage": {
                        "type": "string",
                        "enum": [
                          "admission",
                          "research",
                          "synthesis",
                          "validation",
                          "deadline"
                        ]
                      },
                      "reason": {
                        "type": "string",
                        "enum": [
                          "unavailable",
                          "invalid_output",
                          "budget_exhausted",
                          "deadline_exceeded"
                        ]
                      },
                      "retryable": {
                        "type": "boolean",
                        "description": "Whether a deliberate new request may succeed; reusing this job's key still returns this outcome."
                      }
                    },
                    "required": [
                      "stage",
                      "reason",
                      "retryable"
                    ]
                  }
                },
                "required": [
                  "code"
                ]
              },
              {
                "type": "null"
              }
            ],
            "description": "Why the job failed, once it has."
          },
          "costCents": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^\\d+$"
              },
              {
                "type": "null"
              }
            ],
            "description": "The settled model cost of making the brief, in integer cents, once the job finished; a quiet brief costs nothing."
          },
          "brief": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MarketBrief"
              },
              {
                "type": "null"
              }
            ],
            "description": "The brief, once ready."
          }
        },
        "required": [
          "id",
          "scope",
          "window",
          "status",
          "retryAfterSeconds",
          "createdAt",
          "completedAt",
          "failure",
          "costCents",
          "brief"
        ],
        "description": "One market brief request and its outcome, kept 30 days for the partner that created it."
      },
      "MarketBrief": {
        "type": "object",
        "properties": {
          "headline": {
            "type": "string",
            "maxLength": 120,
            "description": "One line on what happened, in words."
          },
          "summary": {
            "type": "string",
            "maxLength": 600,
            "description": "Two or three sentences, in words."
          },
          "explained": {
            "type": "boolean",
            "description": "The brief's aggregate explanation flag, not a verdict for every subject. Use research.coverage for each subject's search and explanation outcome."
          },
          "evidence": {
            "description": "Exact quote witnesses from the assistive review of headline and summary; server-written abstention can have none.",
            "type": "object",
            "properties": {
              "headline": {
                "maxItems": 4,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "sourceId": {
                      "type": "string",
                      "maxLength": 16
                    },
                    "quote": {
                      "type": "string",
                      "maxLength": 200
                    }
                  },
                  "required": [
                    "sourceId",
                    "quote"
                  ]
                }
              },
              "summary": {
                "maxItems": 4,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "sourceId": {
                      "type": "string",
                      "maxLength": 16
                    },
                    "quote": {
                      "type": "string",
                      "maxLength": 200
                    }
                  },
                  "required": [
                    "sourceId",
                    "quote"
                  ]
                }
              }
            },
            "required": [
              "headline",
              "summary"
            ]
          },
          "research": {
            "description": "Whether research ran and what evidence it supplied for each subject; absent on older briefs.",
            "type": "object",
            "properties": {
              "performed": {
                "type": "boolean",
                "description": "Whether news research ran for this brief."
              },
              "skipReason": {
                "description": "Why research was skipped.",
                "type": "string",
                "const": "quiet"
              },
              "coverage": {
                "maxItems": 10,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "subject": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200,
                      "description": "A subject's id: `market`, `chain:<chain>`, `asset:<asset>`, `asset:<asset>@<chain>` or `stock:<TICKER>`."
                    },
                    "searchStatus": {
                      "type": "string",
                      "enum": [
                        "not_searched",
                        "complete",
                        "partial",
                        "unavailable"
                      ],
                      "description": "`complete` means the planned searches finished, not that every possible source was searched."
                    },
                    "explanationStatus": {
                      "type": "string",
                      "enum": [
                        "possible_driver",
                        "context_only",
                        "unexplained"
                      ],
                      "description": "What the reviewed evidence supports for this subject, separately from search completion."
                    },
                    "sourceIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "maxLength": 16
                      }
                    }
                  },
                  "required": [
                    "subject",
                    "searchStatus",
                    "explanationStatus",
                    "sourceIds"
                  ]
                }
              }
            },
            "required": [
              "performed",
              "coverage"
            ]
          },
          "moves": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MarketMove"
            },
            "description": "Each subject's figures, in scope order."
          },
          "drivers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MarketDriver"
            },
            "description": "The reasons, shared ones first."
          },
          "sources": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MarketSource"
            },
            "description": "Every source a reason cites."
          },
          "generatedAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "description": "When Fin finished the brief."
          },
          "pipelineVersion": {
            "type": "string",
            "description": "Which prompt and checks produced the brief."
          }
        },
        "required": [
          "headline",
          "summary",
          "explained",
          "moves",
          "drivers",
          "sources",
          "generatedAt",
          "pipelineVersion"
        ],
        "description": "What part of the market did over a window, and why, with sources. Every figure is Fin's; the words are a model's, checked."
      },
      "MarketMove": {
        "type": "object",
        "properties": {
          "subject": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "description": "A subject's id: `market`, `chain:<chain>`, `asset:<asset>`, `asset:<asset>@<chain>` or `stock:<TICKER>`."
          },
          "magnitude": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "quiet",
                  "notable",
                  "large"
                ]
              },
              {
                "type": "null"
              }
            ],
            "description": "How the subject's 24-hour price move compares with its usual daily move; null without enough price history."
          },
          "metrics": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MarketMetric"
            },
            "description": "Fin's own figures for the subject."
          }
        },
        "required": [
          "subject",
          "magnitude",
          "metrics"
        ],
        "description": "What one subject did over the window."
      },
      "MarketMetric": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 40,
            "description": "What is measured: price, volume, total_market_cap, btc_dominance or tvl today. New names can appear: show the ones you know and skip the rest."
          },
          "value": {
            "type": "string",
            "pattern": "^-?\\d+(?:\\.\\d+)?$",
            "description": "The measured value as an exact decimal: USD for price, volume, market cap and TVL; percent for dominance."
          },
          "unit": {
            "description": "The value's unit, when this release supplies it.",
            "type": "string",
            "enum": [
              "usd",
              "percent"
            ]
          },
          "provenance": {
            "description": "The identity, providers and actual observation times behind the figure.",
            "type": "object",
            "properties": {
              "provider": {
                "description": "The provider of the current value, when known.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "referenceTokenId": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 512
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The reference token measured, when a token price is used."
              },
              "coingeckoId": {
                "description": "The CoinGecko asset identity, when applicable.",
                "type": [
                  "string",
                  "null"
                ]
              },
              "observedAt": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The provider's observation time; null when it was not supplied."
              },
              "asOfBasis": {
                "type": "string",
                "enum": [
                  "provider",
                  "retrieval",
                  "generation"
                ],
                "description": "Whether `asOf` is a provider observation, a retrieval time or the brief's assembly time."
              },
              "comparison": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "start": {
                        "type": "object",
                        "properties": {
                          "value": {
                            "type": "string",
                            "pattern": "^-?\\d+(?:\\.\\d+)?$",
                            "description": "USD per whole unit of the measured asset or reference token."
                          },
                          "observedAt": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                            "description": "The provider's observation time."
                          },
                          "provider": {
                            "type": "string",
                            "description": "The provider that supplied this observation."
                          }
                        },
                        "required": [
                          "value",
                          "observedAt",
                          "provider"
                        ]
                      },
                      "end": {
                        "type": "object",
                        "properties": {
                          "value": {
                            "type": "string",
                            "pattern": "^-?\\d+(?:\\.\\d+)?$",
                            "description": "USD per whole unit of the measured asset or reference token."
                          },
                          "observedAt": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                            "description": "The provider's observation time."
                          },
                          "provider": {
                            "type": "string",
                            "description": "The provider that supplied this observation."
                          }
                        },
                        "required": [
                          "value",
                          "observedAt",
                          "provider"
                        ]
                      }
                    },
                    "required": [
                      "start",
                      "end"
                    ]
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The actual price observations used for the percentage change; null for a provider-reported change or a level."
              }
            },
            "required": [
              "provider",
              "referenceTokenId",
              "coingeckoId",
              "observedAt",
              "asOfBasis",
              "comparison"
            ]
          },
          "changePct": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^-?\\d+(?:\\.\\d+)?$"
              },
              {
                "type": "null"
              }
            ],
            "description": "The change over the window, in percent; null when the source gives only a level."
          },
          "asOf": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "description": "The figure's timestamp; inspect provenance.asOfBasis to distinguish a provider observation from retrieval or assembly time."
          },
          "benchmark": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "subject": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200,
                    "description": "A subject's id: `market`, `chain:<chain>`, `asset:<asset>`, `asset:<asset>@<chain>` or `stock:<TICKER>`."
                  },
                  "changePct": {
                    "type": "string",
                    "pattern": "^-?\\d+(?:\\.\\d+)?$",
                    "description": "The benchmark's change over the window, in percent."
                  },
                  "provenance": {
                    "type": "object",
                    "properties": {
                      "provider": {
                        "description": "The provider of the current value, when known.",
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "referenceTokenId": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 512
                          },
                          {
                            "type": "null"
                          }
                        ],
                        "description": "The reference token measured, when a token price is used."
                      },
                      "coingeckoId": {
                        "description": "The CoinGecko asset identity, when applicable.",
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "observedAt": {
                        "anyOf": [
                          {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                          },
                          {
                            "type": "null"
                          }
                        ],
                        "description": "The provider's observation time; null when it was not supplied."
                      },
                      "asOfBasis": {
                        "type": "string",
                        "enum": [
                          "provider",
                          "retrieval",
                          "generation"
                        ],
                        "description": "Whether `asOf` is a provider observation, a retrieval time or the brief's assembly time."
                      },
                      "comparison": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "start": {
                                "type": "object",
                                "properties": {
                                  "value": {
                                    "type": "string",
                                    "pattern": "^-?\\d+(?:\\.\\d+)?$",
                                    "description": "USD per whole unit of the measured asset or reference token."
                                  },
                                  "observedAt": {
                                    "type": "string",
                                    "format": "date-time",
                                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                                    "description": "The provider's observation time."
                                  },
                                  "provider": {
                                    "type": "string",
                                    "description": "The provider that supplied this observation."
                                  }
                                },
                                "required": [
                                  "value",
                                  "observedAt",
                                  "provider"
                                ]
                              },
                              "end": {
                                "type": "object",
                                "properties": {
                                  "value": {
                                    "type": "string",
                                    "pattern": "^-?\\d+(?:\\.\\d+)?$",
                                    "description": "USD per whole unit of the measured asset or reference token."
                                  },
                                  "observedAt": {
                                    "type": "string",
                                    "format": "date-time",
                                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                                    "description": "The provider's observation time."
                                  },
                                  "provider": {
                                    "type": "string",
                                    "description": "The provider that supplied this observation."
                                  }
                                },
                                "required": [
                                  "value",
                                  "observedAt",
                                  "provider"
                                ]
                              }
                            },
                            "required": [
                              "start",
                              "end"
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ],
                        "description": "The actual price observations used for the percentage change; null for a provider-reported change or a level."
                      }
                    },
                    "required": [
                      "provider",
                      "referenceTokenId",
                      "coingeckoId",
                      "observedAt",
                      "asOfBasis",
                      "comparison"
                    ]
                  }
                },
                "required": [
                  "subject",
                  "changePct"
                ]
              },
              {
                "type": "null"
              }
            ],
            "description": "What the subject's price change is compared with: bitcoin for crypto, the S&P 500 ETF for stocks."
          }
        },
        "required": [
          "name",
          "value",
          "changePct",
          "asOf",
          "benchmark"
        ],
        "description": "One figure Fin measured, never one the model wrote."
      },
      "MarketDriver": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string",
            "maxLength": 300,
            "description": "One reason, in words."
          },
          "eventAt": {
            "description": "Actual event time established by a quoted passage; unknown for context.",
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "classification": {
            "description": "Evidence-reviewed context or a qualified possible driver; causality is not proven.",
            "type": "string",
            "enum": [
              "possible_driver",
              "context_only"
            ]
          },
          "evidence": {
            "description": "Exact short source passages supporting this reason.",
            "maxItems": 4,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "sourceId": {
                  "type": "string",
                  "maxLength": 16
                },
                "quote": {
                  "type": "string",
                  "maxLength": 200
                }
              },
              "required": [
                "sourceId",
                "quote"
              ]
            }
          },
          "subjects": {
            "maxItems": 10,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200,
              "description": "A subject's id: `market`, `chain:<chain>`, `asset:<asset>`, `asset:<asset>@<chain>` or `stock:<TICKER>`."
            },
            "description": "The subjects this reason explains."
          },
          "sourceIds": {
            "maxItems": 4,
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 16
            },
            "description": "The ids of the sources this reason rests on."
          }
        },
        "required": [
          "text",
          "subjects",
          "sourceIds"
        ],
        "description": "One reason a move happened, with its sources."
      },
      "MarketSource": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 16,
            "description": "The source's id within this brief."
          },
          "title": {
            "type": "string",
            "description": "The source's headline."
          },
          "publisher": {
            "description": "Who published it.",
            "type": [
              "string",
              "null"
            ]
          },
          "url": {
            "type": "string",
            "maxLength": 2048,
            "description": "Where to read it."
          },
          "publishedAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ],
            "description": "When it was published, if known."
          },
          "publishedAtBasis": {
            "description": "How the publication clock was obtained; an estimate may instead be an update.",
            "type": [
              "string",
              "null"
            ]
          },
          "retrievedAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "eventAt": {
            "description": "Actual event time when source evidence establishes it; publication alone is insufficient.",
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "sourceKind": {
            "type": "string"
          },
          "evidenceLevel": {
            "type": "string",
            "enum": [
              "title_only",
              "search_excerpt",
              "provider_raw_content"
            ]
          },
          "excerpt": {
            "description": "A bounded permitted supporting passage; absent for publishers whose text cannot be relayed.",
            "anyOf": [
              {
                "type": "string",
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "title",
          "publisher",
          "url",
          "publishedAt"
        ],
        "description": "A news item a reason cites."
      },
      "ProblemDetails": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "The kind of problem as a URN, `urn:fin:error:<kind>`; stable, compare against it"
          },
          "title": {
            "type": "string",
            "description": "The kind's human title, for logs; never parse it"
          },
          "status": {
            "type": "integer",
            "minimum": 400,
            "maximum": 599,
            "description": "The HTTP status, repeated in the body"
          },
          "reason": {
            "description": "The machine-readable why. One of:\n\n- `run_active` (409) — a run already holds this conversation\n- `budget_exhausted` (429) — the user's AI usage budget, or your partner account's AI spend limit, is used up until the next day or month, or an operator froze it\n- `approval_not_pending` (409) — the approval was already decided or has expired, or its id does not exist or belongs to a different conversation\n- `execution_capacity` (429) — no capacity is free to run this right now; honour `Retry-After`\n- `execution_unavailable` (503) — the service that runs the agent could not take the work; `retryable` says whether to try again\n- `stop_pending` (409) — a stop is already in progress and its cleanup is not yet confirmed\n- `automation_changed` (409) — the automation changed while this request was handled; read it again and retry\n- `automation_held` (409) — an operator holds the automation; it fires again when released\n- `automation_invalid` (409) — the automation's definition cannot run as written\n- `automation_paused` (409) — the automation is paused; resume it first\n- `automation_has_no_webhook` (409) — the automation does not run on incoming events, so it has no webhook\n- `automation_limit` (409) — the user already has as many automations as the deployment allows\n- `profile_unknown_tool` (400) — `profile.tools` names a tool this deployment does not have\n- `deployment_paused` (503) — an operator paused this kind of work for the deployment; try again later\n- `run_not_active` (409) — the run named in the path is not the conversation's live run\n- `withdrawal_changed` (409) — the request key already binds different withdrawal terms, or the current balance cannot cover the requested amount\n- `swap_changed` (409) — the swap cannot be made as asked: an asset is no longer available or the current balance cannot cover the amount; get a new quote\n- `order_changed` (409) — the order can no longer be placed as prepared: the agent wallet no longer holds the amount, an asset is no longer offered, or its minimum no longer matches the assets' precision; prepare it again\n- `prediction_order_changed` (409) — the Polymarket order can no longer be placed as signed: the market closed or stopped taking orders, its price is off the market's tick or its size off Polymarket's minimum, its fee or cost would exceed the signed caps, the Polymarket account cannot cover it, or the signature lapsed before it was placed. Nothing was placed; prepare it again\n- `solana_trade_changed` (409) — the Solana trade can no longer run as signed: the token's decimals or program changed, the agent's Solana account or holdings no longer fit it, another Solana trade is running, or the signature lapsed before it started. Nothing moved; prepare it again\n- `trade_not_recoverable` (409) — the original trade or a recovery attempt remains active or uncertain, its unfinished actions lack conclusive recovery proof, or its remaining proposal can no longer be used\n- `order_not_cancelable` (409) — the limit order can no longer be cancelled: it filled or expired, or the swap provider never took it. Read the order for where it stands\n- `grid_not_active` (409) — the grid is not running, so it cannot be paused: it is already paused, stopping or ended. Read the grid for where it stands\n- `grid_not_paused` (409) — the grid is not paused, so there is nothing to resume. Read the grid for where it stands\n- `suggestion_changed` (409) — the suggestion no longer holds: the account or the market moved since fin made it, the user set it aside, or it cannot be made where the user is now. Say it changed, and read the page's suggestions again\n- `request_key_conflict` (409) — the request identity already binds different terms; retrieve the original resource or use a new identity for a new request\n- `question_not_pending` (409) — the questionnaire has already been answered, closed, or is not awaiting this submission\n- `flag_changed` (409) — the flag's targeting changed since you read it; read it again and retry\n- `group_changed` (409) — the group changed or was deleted since you read it; read it again and retry\n- `group_in_use` (409) — a flag's rules still name this group; take it out of those rules first\n- `group_name_taken` (409) — another group already has this name\n- `agent_wallet_required` (409) — create the agent wallet before opening a perps, prediction-market or Solana account\n- `wallet_account_unsupported` (409) — the user's wallet is an Agent API wallet, whose Intents account is a 0x address this route cannot name; read it with Get wallet account, Get wallet account balances and Open a wallet account session instead\n- `conversation_deleted` (410) — the conversation was deleted; its history stays readable\n- `automation_deleted` (410) — the automation was deleted\n- `grid_ended` (410) — the grid stopped, expired or failed; it stays readable but takes no command. A new grid needs the user's approval in chat\n- `credential_expired` (401) — the user token has expired; obtain a fresh one\n- `account_disabled` (403) — an operator disabled the account\n- `perps_disabled` (403) — perps is not enabled for this user\n- `prediction_disabled` (403) — prediction-market trading is not enabled for this user\n- `solana_disabled` (403) — Solana trading is not enabled for this user\n- `no_account` (404) — the user has not opened the account this call reads; open it first\n- `not_available_in_region` (403) — perps funding is unavailable in the user's region for this request; withdrawals remain available\n- `steering_disabled` (403) — steering a working run is not turned on for this user; send the message with Start a run once the run ends\n- `baskets_disabled` (403) — idea baskets are not turned on for this user; hide the Ideas pages and their baskets\n- `basket_buying` (409) — the basket is still buying, so it cannot be deleted yet; try again once its result is in\n- `basket_awaiting_approval` (409) — an approval to buy this basket is still open; decline it in the chat, then delete the basket\n- `basket_step_not_failed` (409) — the step bought, or the basket is not partly bought, so no order can be linked to it; read the basket again\n- `basket_step_linked` (409) — another order is already linked to this step; a link is permanent, so read the basket again\n- `basket_order_not_linkable` (400) — the order cannot stand in for this step: it is not one of the step's `failures[].linkable` orders, or another basket step already holds it\n- `voice_disabled` (403) — voice input is not turned on for this user; let them type instead\n- `voice_unavailable` (503) — this deployment has no speech model, so it cannot transcribe recordings; let the user type instead\n- `provider_unavailable` (503) — an external provider the call depends on did not answer\n- `quote_refused` (400) — 1Click would not quote this request, usually an amount below what it routes or a pair it does not offer; nothing was reserved. Change the amount or the assets and quote again; for a deposit address, no address was issued, so offer another network\n- `invalid_input` (400) — the body or query failed validation; `issues` names each field\n- `internal` (500) — a fault on our side; quote `requestId` when reporting it\n- `partner_key_required` (401) — no `X-Api-Key` header was sent\n- `partner_key_invalid` (401) — the `X-Api-Key` is unknown or revoked\n- `subject_mismatch` (403) — the `{userId}` in the path is not the token's user\n- `origin_rejected` (403) — a browser `Origin` other than the configured web origin\n- `permission_required` (403) — the verified credential is not permitted to make this call\n- `signature_required` (403) — creating the agent wallet needs the user's signature: send the user's signature of `creation.message` from Get the agent wallet as `authorization`\n- `asset_not_withdrawable` (403) — tokenized stocks cannot be withdrawn; sell them first\n- `asset_not_swappable` (403) — the swap names an asset this user cannot buy or trade with this request: a tokenized stock with no `context.country`, or one where tokenized stocks are not available, or bought while buying them is not enabled for the user; or a yield vault's share token bought while the user's `earn` flag is off\n- `asset_not_tradable` (403) — the order names an asset this user cannot buy or trade with this request: a tokenized stock with no `context.country`, or one where tokenized stocks are not available, or bought while buying them is not enabled for the user; or a yield vault's share token bought while the user's `earn` flag is off\n- `solana_token_not_tradable` (403) — Fin won't trade this token: its mint lets someone freeze, move or charge for holdings or pause transfers, it can't be sold back, Fin couldn't read its mint, it has no reliable price, or it is wrapped SOL. A sale is refused only for what would stop it landing\n- `limit_orders_disabled` (403) — limit orders are not enabled for this user\n- `grid_trading_disabled` (403) — grid trading is not enabled for this user, so a paused grid cannot be resumed; pausing and cancelling a grid are never gated\n- `deposit_limit_exceeded` (429) — the deposit would take the agent wallet past the user's deposit limit, or, for a deposit address, the wallet has no room left under it; nothing was recorded. Read `depositLimit.availableCents` from Get balances for how much fits now, and deposit no more than that\n- `policy_change_throttled` (429) — the user's Agent API wallet changed what it allows a few minutes ago, and the NEAR Intents Agent API lets it change again only after a cooldown; nothing was asked or signed, so call again once `Retry-After` has passed\n- `agent_slippage_exceeded` (403) — the user's wallet is an Agent API wallet whose agent signs only trades that lose at most the share of their value its owner allowed (`max_slippage_bps`): fees, price and slippage together, by 1Click's own USD values at the quote's minimum output. This trade's quote loses more, states no USD value, or, before there is a quote, its loss bound is already quoted with more slippage than that (half the bound, plus 1Click's fee at the most it has been seen to take, 20 basis points, before an approval). Very small trades lose more to fixed fees; nothing was signed, so ask again with a larger amount or a smaller loss bound\n- `agent_api_orders_unavailable` (403) — the user's Agent API wallet needs wallet setup to enable limit orders, or the order exceeds this wallet's 168-hour maximum; finish wallet setup or choose at most 168 hours before trying again; nothing was approved or signed\n- `destination_not_allowed` (403) — the user's wallet is an Agent API wallet, whose agent pays a deposit only to itself, to a NEAR Intents account its owner listed (on the confidential ledger) or to an address on a chain its owner listed; allow this one with Add a withdrawal destination (one owner signature), then ask again. A public NEAR Intents account, or an address with no valid spelling on its chain, cannot be paid at all; nothing was signed\n- `rate_limited` (429) — the per-key or per-user limit is spent; honour `Retry-After`\n- `partner_request_capacity` (429) — this partner's request quota across all keys and replicas is spent; honour Retry-After\n- `partner_run_capacity` (429) — this partner's active run quota is full; honour Retry-After and reuse the same request identity\n- `stream_capacity` (429) — the partner, user or replica has no free stream capacity; honour `Retry-After`\n- `invalid_cursor` (400) — the `cursor` is not one this list minted\n- `invalid_question_answer` (400) — the questionnaire answer does not match its questions or allowed choices\n- `question_closed` (410) — the questionnaire expired or was cancelled\n- `unknown_target` (400) — a rule names a partner, group or user that does not exist, or a user outside the partners the same rule names\n- `scope_invalid` (400) — a subject in the scope is not a subject id, or appears twice\n- `subject_unsupported` (404) — a subject in the scope is not one market briefs cover; list them with List market subjects\n- `brief_not_found` (404) — no market brief job with this id was created with your partner key\n- `briefs_busy` (429) — your market briefs are at their limit of briefs generating at once; retry after `Retry-After`\n- `market_briefs_disabled` (403) — market briefs are not turned on for your partner key\n- `story_not_found` (404) — no market story with this id is current: it never was one, or Fin no longer shows it because its sources were withdrawn or its figures can no longer be read",
            "type": "string",
            "enum": [
              "run_active",
              "budget_exhausted",
              "approval_not_pending",
              "execution_capacity",
              "execution_unavailable",
              "stop_pending",
              "automation_changed",
              "automation_held",
              "automation_invalid",
              "automation_paused",
              "automation_has_no_webhook",
              "automation_limit",
              "profile_unknown_tool",
              "deployment_paused",
              "run_not_active",
              "withdrawal_changed",
              "swap_changed",
              "order_changed",
              "prediction_order_changed",
              "solana_trade_changed",
              "trade_not_recoverable",
              "order_not_cancelable",
              "grid_not_active",
              "grid_not_paused",
              "suggestion_changed",
              "request_key_conflict",
              "question_not_pending",
              "flag_changed",
              "group_changed",
              "group_in_use",
              "group_name_taken",
              "agent_wallet_required",
              "wallet_account_unsupported",
              "conversation_deleted",
              "automation_deleted",
              "grid_ended",
              "credential_expired",
              "account_disabled",
              "perps_disabled",
              "prediction_disabled",
              "solana_disabled",
              "no_account",
              "not_available_in_region",
              "steering_disabled",
              "baskets_disabled",
              "basket_buying",
              "basket_awaiting_approval",
              "basket_step_not_failed",
              "basket_step_linked",
              "basket_order_not_linkable",
              "voice_disabled",
              "voice_unavailable",
              "provider_unavailable",
              "quote_refused",
              "invalid_input",
              "internal",
              "partner_key_required",
              "partner_key_invalid",
              "subject_mismatch",
              "origin_rejected",
              "permission_required",
              "signature_required",
              "asset_not_withdrawable",
              "asset_not_swappable",
              "asset_not_tradable",
              "solana_token_not_tradable",
              "limit_orders_disabled",
              "grid_trading_disabled",
              "deposit_limit_exceeded",
              "policy_change_throttled",
              "agent_slippage_exceeded",
              "agent_api_orders_unavailable",
              "destination_not_allowed",
              "rate_limited",
              "partner_request_capacity",
              "partner_run_capacity",
              "stream_capacity",
              "invalid_cursor",
              "invalid_question_answer",
              "question_closed",
              "unknown_target",
              "scope_invalid",
              "subject_unsupported",
              "brief_not_found",
              "briefs_busy",
              "market_briefs_disabled",
              "story_not_found"
            ]
          },
          "requestId": {
            "type": "string",
            "description": "The id Fin used for this request; quote it when reporting a problem"
          },
          "retryable": {
            "type": "boolean",
            "description": "Whether repeating the same request later can succeed without changing it"
          },
          "detail": {
            "description": "Only on `invalid_input`: which part of the request failed validation",
            "type": "string"
          },
          "issues": {
            "description": "Only on `invalid_input`: one entry per failing field",
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "path": {
                  "type": "string",
                  "description": "The JSON pointer of the failing field; empty for the root object"
                },
                "message": {
                  "type": "string",
                  "description": "Why the field failed"
                }
              },
              "required": [
                "path",
                "message"
              ]
            }
          }
        },
        "required": [
          "type",
          "title",
          "status",
          "requestId",
          "retryable"
        ],
        "description": "RFC 9457 problem details: what every error response carries. Never a provider's message, a query or a stack."
      }
    },
    "responses": {
      "Unauthorized": {
        "description": "A credential is missing, invalid or expired.\n\n- `partner_key_required` — no `X-Api-Key` header was sent\n- `partner_key_invalid` — the `X-Api-Key` is unknown or revoked\n- `credential_expired` — the user token has expired; obtain a fresh one",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/ProblemDetails"
            }
          }
        }
      },
      "PayloadTooLarge": {
        "description": "The body exceeds the size this deployment accepts.",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/ProblemDetails"
            }
          }
        }
      },
      "Internal": {
        "description": "A fault on our side; quote `requestId` when reporting it.\n\n- `internal` — a fault on our side; quote `requestId` when reporting it",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/ProblemDetails"
            }
          }
        }
      },
      "Unavailable": {
        "description": "The service cannot take this right now (draining, a dependency did not answer, or an operator paused the work); `retryable` says whether to try again.\n\n- `internal` — a fault on our side; quote `requestId` when reporting it",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/ProblemDetails"
            }
          }
        }
      }
    },
    "securitySchemes": {
      "apiKey": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Api-Key"
      }
    }
  }
}
```

