Create a grounded Work Contract

POST
/v1/work/contracts/create

Persist an inspectable delegation baseline without granting execution authority.

Authorization

BearerAuth
AuthorizationBearer <token>

Static bearer token used when local Server authentication is enabled.

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

application/json

application/json

application/json

curl -X POST "https://example.com/v1/work/contracts/create" \  -H "Content-Type: application/json" \  -d '{    "scope_id": "string",    "source_id": "string",    "contract": {      "schema": "powercontext.work-contract.v1",      "trust": "untrusted_input",      "objective": "string",      "facts": [        {          "text": "string",          "basis": "declared",          "evidence": [            {              "kind": "source",              "source_ref": {                "name": "string",                "source_id": "string"              }            }          ]        }      ],      "in_scope": [        "string"      ],      "exclusions": [        "string"      ],      "completion_criteria": [        "string"      ],      "authorization_notes": [        "string"      ],      "open_questions": [        "string"      ]    }  }'
{  "kind": "work-contract",  "source": {    "name": "string",    "source_id": "string"  },  "position": 1,  "content_digest": "stringstringstringstringstringstringstringstringstringstringstringstrin"}