Skip to Content
Open Retainer
Facts

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.

Authorization

bearerAuth
headerAuthorizationBearer <token>

A workspace API key.

Path Parameters

id*string

Retainer identifier.

Header Parameters

Idempotency-Key?string

Reuse the same key with the same request to retry.

Length1 <= length <= 200

Request Body

application/json
  1. body
text*string
Length1 <= length <= 5000
source?string
Match^([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)$
Formatuuid
quote?string
Length1 <= length <= 5000
supersedes?string
Match^([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)$
Formatuuid

Response Body

Successful response.

application/json
  1. response
fact*|
Example Request
curl -X POST 'https://retainer.tamloot.cc/v1/records/d2c0648c-2994-4f16-bdf1-a0136be6037d/facts' \  -H 'Authorization: Bearer YOUR_WORKSPACE_API_KEY' \  -H 'Content-Type: application/json' \  -d '{  "text": "Acme needs legal review before renewal.",  "source": "0f3a026b-dd58-4cb2-a871-98a8edabec97"}'
Example Response
{  "fact": {    "record": "4d59c234-2278-409a-b612-f158aa22befe",    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "content": "string",    "kind": "stated",    "validFrom": "2019-08-24T14:15:22Z",    "validTo": "2019-08-24T14:15:22Z",    "writtenBy": {      "via": "string",      "type": "user",      "id": "string",      "name": "string"    },    "sources": [      {        "event": "1a4a8620-0119-4336-af71-a3b3e24f5ebc",        "quote": "string"      }    ],    "status": "current"  }}