Skip to Content
trumpetdocs

Create Pod

Create Pods from a template via the REST API, with an optional CRM link.

POST /v1/pods/new

Creates a new Pod from a specified template, optionally linked to a CRM record.

Authentication

Requires the CreatePod scope. Pass your API key in the Authorization header. See Authentication.

Body parameters

ParameterTypeRequiredDescription
template_idstringRequiredThe ID of the trumpet template to use for the Pod. You can find this in the URL of the Template, e.g. 69f0bafc4cc54b506b0355d8.
crm_typestringOptionalThe CRM provider. One of: hubspot, salesforce, activecampaign, msdynamics, sugarcrm, brevo, pipedrive. Required if crm_id or crm_object is provided.
crm_objectstringOptionalThe CRM object type to create the Pod from. Valid values depend on the crm_type — see the table below. Required if crm_id or crm_type is provided.
crm_idstringOptionalThe unique identifier of the record in your CRM. Required if crm_type or crm_object is provided.
owner_emailstringOptionalEmail address of the user who should own the Pod. Must be a member of your brand. Defaults to the user who created the API key.
pod_typestringOptionalOne of: content (default sales Pod), customer (Customer Success Pod), enablement (internal Enablement Pod). Defaults to content when omitted. CRM linking and customer account resolution are skipped for enablement Pods.

CRM fields are optional as a group

crm_type, crm_object, and crm_id can be omitted entirely to create a Pod from the template alone. If any one of them is provided, all three are required and validated, and the Pod is linked to the CRM record. To link a CRM record later, use Update Pod.

Valid CRM objects by type

When CRM fields are provided, the crm_object value must be valid for the given crm_type. Note that Salesforce uses PascalCase object names while other CRMs use lowercase.

CRM TypeValid Objects
hubspotcontacts, deals, companies
salesforceLead, Opportunity, Account, Contact
activecampaigncontacts, deals, companies
msdynamicscontacts, deals, companies
sugarcrmcontacts, deals, companies
brevodeals, companies
pipedrivedeals, contacts

Example requests

Template only

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",
    "owner_email": "alice@yourcompany.com"
  }'

With CRM record

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",
    "crm_type": "hubspot",
    "crm_object": "deals",
    "crm_id": "12345",
    "owner_email": "alice@yourcompany.com"
  }'

Success response

Returns 200 OK with the created Pod data:

{
  "success": true,
  "data": {
    "id": "69f0bafc4cc54b506b0355d8",
    "edit_url": "https://trumpet.app/pods/69f0bafc4cc54b506b0355d8/edit",
    "live_url": "https://trumpet.app/p/69f0bafc4cc54b506b0355d8"
  }
}

Error responses

StatusErrorCause
400Validation errorMissing or invalid field. The error message specifies which field and what's wrong.
400No crm_type integration foundThe specified CRM isn't connected to the brand. Connect it in Settings → Integrations.
401Invalid or revoked API keyThe API key is missing, malformed, revoked, or deleted.
403Insufficient permissionsThe API key lacks the CreatePod scope.
404Brand not foundThe brand associated with the API key has been deleted.
404User not foundThe owner_email doesn't match any user in the brand, or the key creator no longer exists.
404Template not foundNo template with that template_id exists for your brand.
404CRM record not foundThe crm_id doesn't match any record of the specified crm_object type in the CRM.
429Rate limit exceededMore than 30 requests per minute for this key. Retry after a short delay.

Finding your template ID

Open any template in the trumpet dashboard and check the URL — the template ID is the last segment, e.g. 69f0bafc4cc54b506b0355d8.

On this page