Save company context
Create a context record, or edit one by sending its id, using the fields Read company context returned. Omitted fields are preserved. Save facts, not guesses: the agents quote this.
POST
https://app.trygtm.com/api/v1/context/{resource}- Scope
write- MCP tool
- save_workspace_context
Path parameters
resourcestringrequired- Which kind of context record.
company_profilesproducts_servicespersonascompetitorsintelligence_documents
Headers
Idempotency-Keystringoptional- A key unique to this write, up to 255 characters. A retry carrying the same key returns the first response instead of running again. Kept for 24 hours.
Body
idstringoptional- One record's id. On a read, omit for the newest 20. On a save, omit to create.
fieldsobjectrequired- The fields to set, by the names the read returned as editable. Omitted fields are preserved.
Request
curl -X POST https://app.trygtm.com/api/v1/context/personas \
-H "Authorization: Bearer $TRYGTM_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"fields": {
"name": "Demand gen leader"
}
}'Response
{
"data": {
"resource": "personas",
"id": "b2c3d4e5-f6a7-4b8c-9d0e-1f2a3b4c5d6e",
"changed_fields": [
"name"
],
"status": "saved"
}
}