---
name: baker-events
description: Use when connecting a server or CRM to Baker's Events API, testing conversion or revenue payloads, or implementing safe retries.
---

# Send events to Baker

Read https://withbaker.com/docs/llms.txt and the relevant guides before coding. Use https://withbaker.com/docs/openapi.json as the request contract.

1. Identify the business event and a stable event_id from the source system. Reuse it for retries; never generate an id per attempt. Prefix order identifiers when different stores can use the same order number.
2. Validate the payload with POST https://api.withbaker.com/v1/events using Authorization: Bearer bk_test_public. This public key stores nothing and cannot send live events.
3. Have the person configure an Events only sending key in their server's secret store. Do not request it in chat or commit it to a file. Test the integration with X-Baker-Mode: test before enabling live delivery.
4. Handle both whole-request errors and per-event rejections. Follow https://withbaker.com/docs/errors.md and honor Retry-After. Preserve event_id across network retries.
5. Report what was tested and ask for authorization before enabling live delivery. Sending a conversion does not authorize changing campaigns or marking event names as conversions in Baker.

The documentation MCP server at https://withbaker.com/docs/mcp offers search_docs and read_docs without authentication.
