Skip to Content
trumpetdocs

Getting Started

Create an account, generate an API key, and make your first request.

The trumpet API lets you programmatically create Pods from a template, with an optional link to a CRM record. This guide walks you through creating an account, generating an API key, and making your first request.

Before you start

You need an active brand with an admin role, an API key with the CreatePod scope, and a template_id from your trumpet dashboard (in the template URL).

Create a trumpet account

If you don't already have one, sign up for an account at trumpet.app.

Generate an API key

Navigate to Settings → API Keys in your trumpet dashboard. Click Create Key, give it a descriptive name, and select the scopes you need.

Store your key securely

Your API key is only shown once at creation. Copy it immediately and store it in a secrets manager or environment variable. You will not be able to retrieve it again.

Create a Pod

Send POST /v1/pods/new with your API key. The request body must include template_id. The CRM fields (crm_type, crm_object, crm_id) are optional — omit them to create a Pod from the template alone, as in the examples below.

curl -X POST https://trumpet.app/api/v1/pods/new \
  -H "Authorization: Bearer trpt_a1b2c3_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{
    "template_id": "69f0bafc4cc54b506b0355d8"
  }'

Optional: link a CRM record

If you want the Pod tied to a CRM record, include all three CRM fields in the same request. Your brand must have that CRM connected under Settings → Integrations. See Create Pod for valid combinations, or Update Pod to link a record after creation.

Base URL

All API requests are made to the following base URL:

https://trumpet.app/api/v1

Rate Limits

The API is rate limited on a per-endpoint basis. If you exceed the limit, you'll receive a 429 Too Many Requests response. The response headers include X-RateLimit-Remaining and X-RateLimit-Reset so you can pace your requests.

Error Format

All errors return a consistent JSON shape:

{
  "success": false,
  "error": "A human-readable description of what went wrong"
}

Next steps

Once you can create Pods via the API, explore authentication details, the full create endpoint, and real-time events.

On this page