Aller à la documentation
API

Ajouter une note à un fil

Épingler une note privée à un fil.

POST/threads/{id}/notes

Exécute le véritable appel sur votre espace de travail.

POST /threads/{id}/notes

Épingler une note privée à un fil.

Exemple

Nécessite threads:write. content fait jusqu'à 20 000 caractères, color vaut default, red, orange, yellow, green, blue, purple ou pink, et pinned garde la note en haut. Répond 201 avec la note.

curl
curl -X POST "$OE/threads/thr_7c1e4a90/notes" -H "$AUTH" -H "Content-Type: application/json" \  -d '{ "content": "Waiting on the signed contract before replying.", "color": "yellow", "pinned": true }'
Réponse
{  "object": "note",  "id": "b3d1f0c2-7a4e-4f7b-9c1d-2e8f6a5b4c3d",  "threadId": "thr_7c1e4a90",  "content": "Waiting on the signed contract before replying.",  "color": "yellow",  "pinned": true,  "order": 4,  "createdAt": "2026-09-30T09:12:44.000Z",  "updatedAt": "2026-09-30T09:12:44.000Z"}

Une nouvelle note se place après les autres. Envoyer deux fois la même requête ajoute deux notes.

Référence