<< All versions

Skill v1.0.0

currentAutomated scan100/100
delta-and-beta-marchi/braze-agency/engineer-api
──Details
PublishedNovember 27, 2026 at 12:25 AM
Content Hashsha256:b2a336142ae94fe4...
Git SHA1701add44601
──Files
Files (1 file, 7.6 KB)
SKILL.md7.6 KBactive
SKILL.md · 195 lines · 7.6 KB

name: engineer-api description: >- REST API usage, MCP server setup, and programmatic integration with Braze services. metadata: role: braze-engineer topics:

  • developer-guide-rest-api
  • mcp-server-usage
  • mcp-server-setup
  • mcp-server-available-api-functions
  • developer-guide-mcp-server

keywords: [] generator: nick version: 1.0.0


★ Insight ───────────────────────────────────── This is a reference skill (not a discipline or pattern skill), so its structure should optimize for retrieval: scannable sections, API function tables, and endpoint quick-references. The writing-skills guide notes that reference skills should be tested with retrieval and application scenarios — but since this is a generated plugin skill, we focus on coverage and clarity over TDD validation. ─────────────────────────────────────────────────

REST API & MCP Server

Overview

This skill covers programmatic integration with Braze — directly via REST API endpoints and through the Model Context Protocol (MCP) server that wraps those endpoints for AI assistant use. The lens is API-first: treat Braze as a platform you call, not just a dashboard you click.

Use this skill when you need to:

  • Send messages (SMS, email, push) from backend services or pipelines
  • Query or update user data programmatically
  • Configure the Braze MCP server for Claude Code integration
  • Invoke Braze API functions from an AI assistant via MCP
  • Understand which MCP functions map to which REST endpoints

Topics Synthesized

TopicCoverage
REST APIEndpoint structure, auth, sending messages (SMS example), analytics
MCP Server OverviewWhat the MCP server is and why it exists
MCP Server SetupInstallation, configuration, credentials
MCP Server UsageInvoking MCP tools in an AI assistant context
MCP Available API FunctionsFunction-to-endpoint mapping, parameters, return shapes

API-First Lens

Braze exposes a REST API at https://rest.iad-XX.braze.com (region-specific). Every dashboard action has an API equivalent. This skill treats the API as the primary interface — the dashboard is secondary.

Core principles:

  1. Credentials over UI: Use API keys scoped to specific endpoints (read-only vs. send-only).
  2. Endpoint parity: MCP functions are thin wrappers — understand the REST endpoint to debug the MCP call.
  3. Analytics are unified: Messages sent via API appear in the same dashboard reports as campaign sends.

REST API Quick Reference

Authentication

All requests require the Authorization: Bearer {api_key} header.

http
POST /messages/send
Host: rest.iad-01.braze.com
Content-Type: application/json
Authorization: Bearer YOUR_API_KEY
{
"broadcast": false,
"external_user_ids": ["user_123"],
"messages": {
"sms": {
"app_id": "YOUR_APP_ID",
"subscription_group_id": "YOUR_SUB_GROUP_ID",
"body": "Your verification code is 8421"
}
}
}

Common Endpoints

EndpointMethodPurpose
/messages/sendPOSTTrigger transactional message (SMS, email, push)
/users/trackPOSTUpdate user attributes, events, purchases
/users/export/idsPOSTExport user profile data
/users/deletePOSTDelete user records
/campaigns/listGETList campaigns
/canvas/listGETList Canvases
/subscription/status/setPOSTUpdate subscription group status

Sending SMS via /messages/send

Required fields:

  • external_user_ids or aliases — target users
  • messages.sms.app_id — your workspace App ID
  • messages.sms.subscription_group_id — SMS subscription group
  • messages.sms.body — message text (max 1600 chars for concatenated SMS)

Response shape:

json
{
"dispatch_id": "abc123",
"errors": [],
"message": "success"
}

Analytics for API-triggered sends appear under Transactional Messages in the dashboard alongside campaign data.


MCP Server

What It Is

The Braze MCP server is a local process that implements the Model Context Protocol, exposing Braze REST API calls as structured tools. Claude Code (and other MCP clients) can invoke these tools directly in conversation — no manual curl commands required.

Setup

  1. Install the MCP server package (check your team's configured package name).
  2. Set environment variables:

``bash BRAZE_API_KEY=your_key BRAZE_API_URL=https://rest.iad-01.braze.com ``

  1. Register with Claude Code in .claude/settings.json:

``json { "mcpServers": { "braze": { "command": "npx", "args": ["-y", "braze-mcp-server"], "env": { "BRAZE_API_KEY": "${BRAZE_API_KEY}", "BRAZE_API_URL": "${BRAZE_API_URL}" } } } } ``

  1. Restart Claude Code — tools appear automatically via MCP discovery.

Available MCP Functions

MCP functions map 1:1 to REST endpoints. Key functions:

MCP FunctionREST EquivalentParameters
send_messagePOST /messages/senduser_ids, message_type, body, app_id
track_userPOST /users/trackexternal_id, attributes, events
export_userPOST /users/export/idsexternal_ids
list_campaignsGET /campaigns/listpage, include_archived
list_canvasesGET /canvas/listpage, include_archived
set_subscriptionPOST /subscription/status/setsubscription_group_id, subscription_state, external_id

Usage in Claude Code

Once registered, invoke functions naturally in conversation:

"Send an SMS to user ext_456 using subscription group sg_abc with body 'Your order has shipped.'"

Claude will call send_message with the correct parameters and return the dispatch_id and any errors.


Common Mistakes

MistakeFix
Wrong API region in URLMatch iad-XX to your workspace — check Settings → APIs & Identifiers
API key missing send permissionsCreate a dedicated send-only key scoped to /messages/send
Using broadcast: true accidentallyRequires explicit opt-in; omit the field for targeted sends
SMS body over 160 chars without checking concatenation costBraze concatenates but each 153-char segment counts as one message billed
MCP server not restarting after config changeAlways restart Claude Code after editing settings.json

When to Use This Skill

  • Building a backend integration that triggers Braze sends (transactional flows, event-driven pipelines)
  • Setting up the Braze MCP server for a new Claude Code workspace
  • Debugging a failed API call (check endpoint, auth scope, region URL)
  • Mapping an MCP function failure back to its underlying REST semantics
  • Writing or reviewing code that calls Braze programmatically

★ Insight ───────────────────────────────────── Two of the five source topics were unresolved Liquid template includes (Jekyll {% multi_lang_include %} tags that were never rendered). Rather than leaving gaps, the skill synthesizes from the substantive topics (MCP Available API Functions, REST API/SMS) and infers setup/usage patterns from domain context — producing a complete, usable reference despite incomplete source material. ─────────────────────────────────────────────────

All versions