---
title: "Create an audience"
method: POST
path: "/audiences"
tags: ["Audiences"]
---

# Create an audience

`POST /audiences`

## Request

- Base URL: `https://rcs-templates-api-dot-msg2ai-server.ue.r.appspot.com/api/agent`
- URL: `https://rcs-templates-api-dot-msg2ai-server.ue.r.appspot.com/api/agent/audiences`
- Auth: HTTP bearer

Create a new contact list for an agent to send against.

## Request body

- object
  - `name` string, required
  - `description` string
  - `source` string: Free-text provenance, e.g. "Jaipur wedding planners leads.csv".
  - `contacts` object[]
    - `firstName` string
    - `lastName` string
    - `number` string: Phone number; required for the contact to be reachable.
    - `email` string
    - `attributes` object

## Response `200`

Success.

- object

## Other responses

- `400`: Arguments failed validation.
- `401`: Missing or invalid agent key.
- `403`: Key does not hold the audiences:write scope.
- `429`: Rate limited.

---

[API](https://skmtc.dev/wa-campaigns/apis/whatsapp-campaigns-agent-gateway.md) · [All operations](https://skmtc.dev/wa-campaigns/apis/whatsapp-campaigns-agent-gateway/llms.txt) · [OpenAPI document](https://skmtc.dev/wa-campaigns/apis/whatsapp-campaigns-agent-gateway/revisions/24503d56cc7b?raw)
