# get_setup_guide

Returns app identity, observations/sources, app-specific pixel/identify/backfill/uninstall snippets, custom event examples and the setup instructions.

## Purpose

Everything needed to wire ONE app's codebase to HeyCrust: ready-to-paste snippets (pixel, identify-on-install hook, one-time backfill route, no-token webhook alternative) with real ids baked in, plus step-by-step agent instructions and current status. Call after list_apps when integrating an app; apply the snippets to the repo you're working in.

## Credentials and scope

Owner workspace credential. The credential determines tool visibility. For tools with appId, use the HeyCrust app UUID from list_apps; the dashboard app selector does not supply MCP arguments for you.

## Inputs

- `appId`: required; string; format: uuid — The app id from list_apps.

## Example request

The identifiers and merchant are fictional. Replace them with records returned for your own workspace; this example is schema-checked, not a promise that the fictional record exists.

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_setup_guide",
    "arguments": {
      "appId": "11111111-1111-4111-8111-111111111111"
    }
  }
}
```

POST this JSON to `https://heycrust.com/api/mcp` with `Content-Type: application/json` and `Authorization: Bearer <YOUR_CREDENTIAL>`. The tool result normally contains JSON encoded as text in `result.content`; inspect JSON-RPC errors and `result.isError` before using it.

## Result

Returns app identity, observations/sources, app-specific pixel/identify/backfill/uninstall snippets and setup instructions. `customEvents` includes the actual JSON input schema, timestamp/acknowledgement/deduplication/HTTP/retention contract, lifecycle fencing requirements, milestone semantics, minimal Urgency property examples and Remix, Express and Rails delivery adapter recipes.

Read `customEvents.contract`, `lifecycle`, `milestones`, `deliveryRecipes` and `recipeAdapterContract` before wiring events. The recipes require durable database adapters; they are not a drop-in outbox SDK. [Backend events](/docs/developers/backend-events) and [lifecycle recipes](/docs/developers/custom-event-lifecycle) explain the full contract.

## Effects and verification

Reads existing records or definitions. It does not create a payment or send a message. Verify the returned app/merchant identity and source coverage before interpreting the result.

Use [validate_custom_events](/docs/mcp/validate-custom-events) for a dry run that stores nothing. After an authorized release, use [get_custom_event_receipt](/docs/mcp/get-custom-event-receipt) with an exact natural app/event ID. Local tests, a production build, matching browser bundles, dry-run success and a stored API receipt each prove different layers. Do not declare live milestone/Flow/message verification complete without the corresponding actual evidence. Never send synthetic live events or activate automations simply to validate setup. Missing browser observations are unknown, never setup failure.

## Troubleshooting

A missing tool can mean that the credential lacks its catalog or required scopes. Invalid arguments are different from unavailable source data or a record outside the workspace. A handler can return a business error even when the argument schema is valid. Read [MCP overview](/docs/mcp) and [Help](/docs/help).
