# Remember a fact

## `POST /v1/records/{id}/facts`

Cite the event a fact came from when it is available. The ID can also be workspace or me for a memory profile. Requires the `write` scope.

```json
{
  "tags": [
    "Facts"
  ],
  "operationId": "remember-fact",
  "summary": "Remember a fact",
  "description": "Cite the event a fact came from when it is available. The ID can also be workspace or me for a memory profile. Requires the `write` scope.",
  "x-retainer-scope": "write",
  "parameters": [
    {
      "in": "path",
      "name": "id",
      "required": true,
      "description": "Retainer identifier.",
      "example": "d2c0648c-2994-4f16-bdf1-a0136be6037d",
      "schema": {
        "type": "string"
      }
    },
    {
      "in": "header",
      "name": "Idempotency-Key",
      "schema": {
        "type": "string",
        "minLength": 1,
        "maxLength": 200
      },
      "description": "Reuse the same key with the same request to retry."
    }
  ],
  "requestBody": {
    "required": true,
    "content": {
      "application/json": {
        "schema": {
          "type": "object",
          "properties": {
            "text": {
              "type": "string",
              "minLength": 1,
              "maxLength": 5000
            },
            "source": {
              "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)$"
            },
            "quote": {
              "type": "string",
              "minLength": 1,
              "maxLength": 5000
            },
            "supersedes": {
              "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)$"
            }
          },
          "required": [
            "text"
          ],
          "additionalProperties": false
        },
        "example": {
          "text": "Acme needs legal review before renewal.",
          "source": "0f3a026b-dd58-4cb2-a871-98a8edabec97"
        }
      }
    }
  },
  "responses": {
    "201": {
      "description": "Successful response.",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "fact": {
                "$ref": "#/components/schemas/Fact"
              }
            },
            "required": [
              "fact"
            ]
          }
        }
      }
    },
    "401": {
      "$ref": "#/components/responses/Unauthorized"
    },
    "default": {
      "$ref": "#/components/responses/ApiError"
    }
  }
}
```

[Full OpenAPI contract](/openapi.json)
