Use the Agent REST API v2
The base URL is:
https://api.txcast.com/agent/v2The authoritative reference is the live OpenAPI 3.1 document. The v2 contract is intentionally breaking; do not send legacy graph definitions or v1 run commands to it.
REST accepts a newly issued manual txc_ credential. OAuth tokens are
resource-bound to MCP v2 and should be used through that transport.
Read context
Section titled “Read context”curl --fail-with-body \ -H "Authorization: Bearer $TXCAST_AGENT_TOKEN" \ https://api.txcast.com/agent/v2/contextEvery scoped route names an organisation. For example:
GET /agent/v2/organisations/{organisationId}/audit-eventsGET /agent/v2/organisations/{organisationId}/controlled-accountsPOST /agent/v2/organisations/{organisationId}/controlled-accountsGET /agent/v2/organisations/{organisationId}/registryPOST /agent/v2/organisations/{organisationId}/registry/accountsGET /agent/v2/organisations/{organisationId}/contractsPOST /agent/v2/organisations/{organisationId}/contracts/inspectPOST /agent/v2/organisations/{organisationId}/contractsGET /agent/v2/organisations/{organisationId}/workflowsGET /agent/v2/organisations/{organisationId}/workflows/{workflowId}/revisionsGET /agent/v2/organisations/{organisationId}/runsPOST /agent/v2/organisations/{organisationId}/workflow-source/validatePOST /agent/v2/organisations/{organisationId}/workflowsPUT /agent/v2/organisations/{organisationId}/workflows/{workflowId}/sourcePOST /agent/v2/organisations/{organisationId}/workflows/{workflowId}/restoresPOST /agent/v2/organisations/{organisationId}/workflows/{workflowId}/forkUse the OpenAPI document for exact workflow CAS, run-version, pagination, and
body schemas. It also defines every address-book, controlled-account, and
contract read/update/delete route, including expectedUpdatedAt and ABI-digest
concurrency fields.
Save and restore bodies use the current workflow CAS:
{ "protocol": "txcast-workflow-linear-cas-v1", "workflowId": "workflow UUID", "version": 4, "currentRevisionId": "revision UUID"}After a 409, keep the proposed source in the client. Read the current
workflow, resolve the conflict, and retry with a new CAS.
Mutations
Section titled “Mutations”Every mutation requires:
Authorization: Bearer txc_…Txcast-Agent-Name: your-client-nameTxcast-Agent-Version: your-client-versionIdempotency-Key: a-stable-key-for-this-exact-operationContent-Type: application/jsonThe organisation ID, source/body identity, and caller provenance are bound into idempotency. Reusing a key with changed input conflicts.
Isolation
Section titled “Isolation”Agent routes accept bearer credentials and reject browser session cookies. Browser action routes accept sessions and do not accept an agent bearer. This is why REST v2 cannot answer human effects or submit signatures even when the calling user could do so in the browser.