Read company context

Read one kind of saved context — company profiles, products and services, personas, competitors or intelligence documents — together with the fields that resource accepts. This is what the agents write from.

GEThttps://app.trygtm.com/api/v1/context/{resource}
Scope
read

Path parameters

resourcestringrequired
Which kind of context record.company_profilesproducts_servicespersonascompetitorsintelligence_documents

Query parameters

idstringoptional
One record's id. On a read, omit for the newest 20. On a save, omit to create.

Request

curl https://app.trygtm.com/api/v1/context/personas \
  -H "Authorization: Bearer $TRYGTM_API_KEY"

Response

{
  "data": {
    "resource": "personas",
    "purpose": "Buyer personas the copy agent writes for.",
    "editable_fields": [
      {
        "name": "name",
        "kind": "text",
        "required": true
      }
    ],
    "records": [
      {
        "id": "b2c3d4e5-f6a7-4b8c-9d0e-1f2a3b4c5d6e",
        "name": "Demand gen leader"
      }
    ]
  }
}

Was this page helpful?