Brain
POST /v1/brain/links
Create a directed graph edge
POST /v1/brain/linksCreate a directed graph edge
Required scope: brain:write
Body fields
| Name | Required | Notes |
|---|---|---|
fromId | yes | |
toId | yes | |
kind | yes |
Example
curl -X POST 'https://brain.unisonlabs.ai/v1/brain/links' \
-H "Authorization: Bearer $UNISON_TOKEN" \
-H 'content-type: application/json' \
-d '{"fromId": "...", "toId": "...", "kind": "..."}'Returns the JSON described above on success, or an error envelope { "error": { "code", "message" } } on failure.