Tracira
API referenceInstructions

Get or seed instructions

Fetches the active instructions, creating them first when none exist. Call this at the start of an automation run: if the doc is missing and `default` is provided, the default becomes version 1 (`source: seed`) and is returned - so a shipped template works with zero setup. When the doc exists, `default` is ignored and the stored text always wins.

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

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

application/json

curl -X POST "https://example.com/api/instructions" \  -H "Content-Type: application/json" \  -d '{    "project": "string",    "task": "string"  }'
{  "projectName": "string",  "taskName": "string",  "content": "string",  "version": 0,  "updatedAt": "2019-08-24T14:15:22Z",  "hasPendingSuggestion": true}