Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.thehog.ai/llms.txt

Use this file to discover all available pages before exploring further.

Send a POST request to /api/context to retrieve a fully assembled GTM intelligence snapshot for your project. The response combines your messaging framework, ICP personas, competitor list, and data-quality signals into a single object so your downstream automations — outreach drafts, scoring models, research jobs — can operate with consistent, up-to-date context rather than assembling it themselves.

Request

POST https://api.thehog.ai/api/context
projectId
string
The project to load context for. You can omit this if your API key is scoped to a single project; The Hog will resolve it automatically.

Response

The endpoint returns 200 OK synchronously. The response envelope wraps the context object in data and includes request metadata and credit cost in meta.
data
object
required
The assembled GTM context object.
meta
object
required
Request metadata.

Examples

curl --request POST \
  --url https://api.thehog.ai/api/context \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "projectId": "proj_01HXYZ"
  }'