Skip to Content
Tracira
API referenceInstructions

Queue feedback for the instructions

Adds a note to the queue that the next suggested instructions update is drafted from - the same queue the dashboard's Teach the AI and Request a change fill. Use it for feedback that reaches your automation outside Tracira, such as a correction typed in your own chat app.

Nothing changes on its own: the manager sees the note under the instructions, creates the draft and accepts it in the dashboard.

Pass your own id for the note as ref. Sending the same ref again replaces that note instead of adding a second one, and DELETE /api/instructions/feedback with the ref withdraws it - for example when the change was already applied or turned down in your own app.

The instructions must exist first (see POST /api/instructions); otherwise you get 404 with code: NO_INSTRUCTIONS.

posthttps://www.tracira.com/api/instructions/feedback
POST
/api/instructions/feedback

Authorization

webhookToken
headerAuthorizationBearer <token>

Workspace API token, from the Integrations page.

Request Body

application/json
  1. body
project*string
task*string
comment*string

What the AI should do differently, in plain language. This is what the draft is written from.

Lengthlength <= 2000
logId?|

The output this feedback is about. Linked only when it belongs to your workspace; the manager can open it from the note.

author?|

Who gave the feedback, shown on the note, e.g. Jeff (Telegram).

Lengthlength <= 200
ref?|

Your own id for this note, used to replace or withdraw it later.

Lengthlength <= 200

Response Body

Queued.

application/json
  1. response
ok?boolean
at?string

When the note was queued; also identifies it.

Formatdate-time
queuedCount?integer

Notes now waiting to be drafted (at most 20; the oldest drop off).

Example Request
curl -X POST 'https://www.tracira.com/api/instructions/feedback' \  -H 'Content-Type: application/json' \  -d '{  "project": "Customer Support",  "task": "Email reply",  "comment": "Always mention the 30-day return policy when someone asks about refunds.",  "author": "Jeff (Telegram)",  "ref": "proposal-42",  "logId": "b7d1c9e4-3f2a-4d5b-9c81-0a6e7f2b4d13"}'
Example Response
{  "ok": true,  "at": "2019-08-24T14:15:22Z",  "queuedCount": 0}