# Ask Amanucci

Source: https://amanucci.com/nl/docs/developers/api/ask/askAmanucci

## POST /v1/me/ask-threads/{threadId}/messages

Ask Amanucci

Ask Amanucci a question in a thread of your own, in a seat hat: the answer streams back as the AI SDK UI message stream. Amanucci reads with your authority, through the same task catalog as MCP. The one write it performs is on your own presets (`keep_presets`: save, change, rename, delete), as you, at most five writes an answer; every other write and every signed act is never performed here: it answers that you act on its page. A new thread id begins a thread in the request's hat, in the books the question's context names when the hat reaches them (else in the whole hat); a thread is only ever its author's, in that hat, while the hat reaches its books. Session only; an operator hat is refused.

Operation ID: `askAmanucci`

### Parameters

```json
[
  {
    "schema": {
      "type": "string",
      "format": "uuid",
      "description": "The thread's client-minted uuid v7: a new one begins a thread with this question."
    },
    "required": true,
    "description": "The thread's client-minted uuid v7: a new one begins a thread with this question.",
    "name": "threadId",
    "in": "path"
  }
]
```

### Request body

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

### Responses

#### 200 The answer, as server-sent UI message chunks; or, for a question already answered, the stored answer as the same stream.

```json
{
  "text/event-stream": {
    "schema": {
      "type": "string"
    }
  }
}
```

#### 401 Dead or absent credential (`unauthenticated`).

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```

#### 403 Authenticated, present, and refused: a missing grant, a missing seat, or a missing step-up.

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```

#### 404 Absent, or hidden from this asker — the two are indistinguishable (`not-found`).

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```

#### 409 The world is not in the state the request assumed: a stale `expectedSeq`, or a transition already made.

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```

#### 422 The request did not satisfy the schema (`invalid-input`).

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```

#### 429 Too many requests on this door's bucket (`rate-limited`); refused before any handler ran, `Retry-After` says when to come back.

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```

#### 503 Temporarily unavailable; `Retry-After` says when to come back.

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```
