---
title: "Create an agent"
method: POST
path: "/v1/brands/{id}/agents"
tags: ["Agents"]
---

# Create an agent

`POST /v1/brands/{id}/agents`

## Request

- Base URL: `https://api.cadencercs.com`
- URL: `https://api.cadencercs.com/v1/brands/{id}/agents`
- Auth: HTTP bearer

Local only — nothing reaches Google until `sync-google`. Hosting region and use case are stored explicitly here because Google fixes them **forever** at creation, and discovering at the last moment that we have to invent a value for a field that can never be corrected is how those get set wrong.

`CONVERSATIONAL` is the only billing category eligible for 24-hour session billing, which the whole RCS price depends on.

## Path parameters

- `id` string, required

## Request body

- object
  - `displayName` string, required: Consumer-facing agent name.
  - `hostingRegion` 'NORTH_AMERICA' | 'EUROPE' | 'ASIA_PACIFIC': **Permanent** once synced to Google.
  - `billingCategory` 'CONVERSATIONAL' | 'NON_CONVERSATIONAL': Fixed at launch.
  - `useCase` string: Defaults to the brand's. **Permanent** once synced.

## Response `200`

The agent.

- object
  - `agent` Agent, required: An agent as the API describes it. The webhook plumbing (`webhook_integration_id`, `webhook_uri`, token version) is deliberately not on the wire; `hasOwnWebhook` is the part worth knowing.
    - `id` string, required
    - `brand_id` string, required
    - `display_name` string, required
    - `rbm_agent_id` string, nullable: The agent's id at Google. Null until sync-google or link-google.
    - `use_case` string, nullable
    - `hosting_region` string, nullable: `NORTH_AMERICA` | `EUROPE` | `ASIA_PACIFIC`. **Permanent** once the agent exists at Google.
    - `billing_category` string, nullable: `CONVERSATIONAL` | `NON_CONVERSATIONAL`. Fixed at launch; only CONVERSATIONAL gets 24-hour session billing.
    - `region` string: Derived API endpoint prefix, not Google's hosting region.
    - `status` 'draft' | 'created' | 'submitted' | 'verified' | 'launching' | 'launched' | 'rejected', required: `created` reaches accepted test devices only. `launched` reaches real recipients, per carrier.
    - `hasOwnWebhook` boolean: Whether this agent overrides the partner-level inbound webhook at Google.
    - `rbm_service_id` string, nullable: The agent's messaging address (`bot@…`). Not readable from Google's API — copied by hand from the Console.
    - `deeplink_phone` string, nullable
    - `launch_video_url` string, nullable
    - `reviewer_instructions` string, nullable
    - `trigger_description` string, nullable
    - `interaction_types` string, nullable
    - `contact_name` string, nullable
    - `contact_email` string, nullable
    - `contact_phone` string, nullable
    - `contact_title` string, nullable
    - `optin_description` string, nullable
    - `second_use_case` string, nullable
    - `submitted_at` string, nullable
    - `verified_at` string, nullable
    - `reject_reason` string, nullable
    - `created_at` string

## Other responses

- `400`: Invalid spec.
- `401`: Not signed in, and no account-linked API key was sent.
- `404`: No such brand on this account.
- `500`: Unexpected server error. The body is always JSON.

---

[API](https://skmtc.dev/cadencercs/apis/cadence-api.md) · [All operations](https://skmtc.dev/cadencercs/apis/cadence-api/llms.txt) · [OpenAPI document](https://skmtc.dev/cadencercs/apis/cadence-api/revisions/9438443c2081?raw)
