Tracira
API referenceInstructions

Save a new instructions version

Appends a version and makes it active. Token callers create a `teach` version - use after a reviewer sends a draft back with feedback: rewrite the instructions with your own AI step, then save the result here with the reviewer's comment and the log it came from. Dashboard sessions create `manual` edits or restores.

POST
/api/instructions/versions

Authorization

webhookToken
AuthorizationBearer <token>

Workspace webhook token from Settings -> Integrations.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/api/instructions/versions" \  -H "Content-Type: application/json" \  -d '{    "project": "string",    "task": "string",    "content": "string"  }'
{  "version": 0}
{  "error": "string",  "code": "string",  "fields": {    "property1": "string",    "property2": "string"  }}
{  "error": "string",  "code": "string",  "fields": {    "property1": "string",    "property2": "string"  }}