Resend Audiences API

Create and manage Audiences through the Resend API.

GitHub OpenAPI

Operations 10

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /audiences Create a contact audience · Create a list of contacts #
Ask an LLM
“How do I create a new contact list?”
“Can I name a new audience when I create it?”
Tell an agent
Create an audience named {name}.
Set up a new contact list called {name}.
GET /audiences List contact audiences · Retrieve a list of audiences #
Ask an LLM
“What contact audiences have I created?”
“Can I see all my email lists?”
Tell an agent
List my contact audiences.
Show every audience I've set up.
DELETE /audiences/{id} Delete a contact audience · Remove an existing audience #
Ask an LLM
“How do I delete an entire audience?”
“Can I remove a contact list I no longer use?”
Tell an agent destructive · confirm first
Delete audience {id}.
Remove the contact list {id}.
GET /audiences/{id} Retrieve a contact audience · Retrieve a single audience #
Ask an LLM
“What are the details of one audience?”
“Can I look up a contact list by id?”
Tell an agent
Show audience {id}.
Get the contact list {id}.
POST /audiences/{audience_id}/contacts Add a contact to an audience · Create a new contact #
Ask an LLM
“How do I add a single email to an audience?”
“Can I set a contact's name and unsubscribed status when adding them?”
Tell an agent
Add {email} to audience {audience_id}.
Add {email} named {first_name} {last_name} to audience {audience_id}.
GET /audiences/{audience_id}/contacts List contacts in an audience · Retrieve a list of contacts #
Ask an LLM
“Who is in a particular audience?”
“Can I see all contacts in one list?”
Tell an agent
List the contacts in audience {audience_id}.
Show everyone in contact list {audience_id}.
DELETE /audiences/{audience_id}/contacts/{email} Remove a contact by email · Remove an existing contact by email #
Ask an LLM
“How do I remove one person from an audience by email?”
“Can I unsubscribe a single contact by their email address?”
Tell an agent destructive · confirm first
Remove {email} from audience {audience_id}.
Unsubscribe {email} in contact list {audience_id}.
DELETE /audiences/{audience_id}/contacts/{id} Remove a contact by id · Remove an existing contact by id #
Ask an LLM
“How do I remove a contact from an audience by id?”
“Can I delete a single subscriber from a list?”
Tell an agent destructive · confirm first
Remove contact {id} from audience {audience_id}.
Delete subscriber {id} from contact list {audience_id}.
GET /audiences/{audience_id}/contacts/{id} Retrieve a contact in an audience · Retrieve a single contact #
Ask an LLM
“What are the details of one contact in an audience?”
“Can I look up a single subscriber by id?”
Tell an agent
Show contact {id} in audience {audience_id}.
Get subscriber {id} from contact list {audience_id}.
PATCH /audiences/{audience_id}/contacts/{id} Update a contact in an audience · Update a single contact #
Ask an LLM
“How do I change a contact's name or unsubscribed status?”
“Can I mark an existing subscriber as unsubscribed?”
Tell an agent
Set contact {id} in audience {audience_id} to unsubscribed {unsubscribed}.
Rename contact {id} in audience {audience_id} to {first_name} {last_name}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/resend:resend-audiences-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

resend-audiences-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Resend Audiences API
  version: 1.1.0
  description: 'Resend is transforming email for developers. Simple interface, easy

    integrations, handy templates.'
servers:
- url: https://api.resend.com
security:
- bearerAuth: []
tags:
- name: Audiences
  description: Create and manage Audiences through the Resend API.
paths:
  /audiences:
    post:
      tags:
      - Audiences
      summary: Create a list of contacts
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateAudienceOptions'
      responses:
        '201':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateAudienceResponseSuccess'
      operationId: postAudiences
      x-operation-id-source: derived
    get:
      tags:
      - Audiences
      summary: Retrieve a list of audiences
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListAudiencesResponseSuccess'
      operationId: getAudiences
      x-operation-id-source: derived
  /audiences/{id}:
    delete:
      tags:
      - Audiences
      summary: Remove an existing audience
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          description: The Audience ID.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RemoveAudienceResponseSuccess'
      operationId: deleteAudiencesById
      x-operation-id-source: derived
    get:
      tags:
      - Audiences
      summary: Retrieve a single audience
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          description: The Audience ID.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetAudienceResponseSuccess'
      operationId: getAudiencesById
      x-operation-id-source: derived
  /audiences/{audience_id}/contacts:
    post:
      tags:
      - Audiences
      summary: Create a new contact
      parameters:
      - name: audience_id
        in: path
        required: true
        schema:
          type: string
          description: The Audience ID.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateContactOptions'
      responses:
        '201':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateContactResponseSuccess'
      operationId: postAudiencesByAudienceIdContacts
      x-operation-id-source: derived
    get:
      tags:
      - Audiences
      summary: Retrieve a list of contacts
      parameters:
      - name: audience_id
        in: path
        required: true
        schema:
          type: string
          description: The Audience ID.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListContactsResponseSuccess'
      operationId: getAudiencesByAudienceIdContacts
      x-operation-id-source: derived
  /audiences/{audience_id}/contacts/{email}:
    delete:
      tags:
      - Audiences
      summary: Remove an existing contact by email
      parameters:
      - name: email
        in: path
        required: true
        schema:
          type: string
          description: The Contact ID.
      - name: audience_id
        in: path
        required: true
        schema:
          type: string
          description: The Audience ID.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RemoveContactResponseSuccess'
      operationId: deleteAudiencesByAudienceIdContactsByEmail
      x-operation-id-source: derived
  /audiences/{audience_id}/contacts/{id}:
    delete:
      tags:
      - Audiences
      summary: Remove an existing contact by id
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          description: The Contact ID.
      - name: audience_id
        in: path
        required: true
        schema:
          type: string
          description: The Audience ID.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RemoveContactResponseSuccess'
      operationId: deleteAudiencesByAudienceIdContactsById
      x-operation-id-source: derived
    get:
      tags:
      - Audiences
      summary: Retrieve a single contact
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          description: The Contact ID.
      - name: audience_id
        in: path
        required: true
        schema:
          type: string
          description: The Audience ID.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetContactResponseSuccess'
      operationId: getAudiencesByAudienceIdContactsById
      x-operation-id-source: derived
    patch:
      tags:
      - Audiences
      summary: Update a single contact
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          description: The Contact ID.
      - name: audience_id
        in: path
        required: true
        schema:
          type: string
          description: The Audience ID.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateContactOptions'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateContactResponseSuccess'
      operationId: patchAudiencesByAudienceIdContactsById
      x-operation-id-source: derived
components:
  schemas:
    CreateAudienceResponseSuccess:
      type: object
      properties:
        id:
          type: string
          description: The ID of the audience.
          example: 78261eea-8f8b-4381-83c6-79fa7120f1cf
        object:
          type: string
          description: The object of the audience.
          example: audience
        name:
          type: string
          description: The name of the audience.
          example: Registered Users
    UpdateContactOptions:
      type: object
      properties:
        email:
          type: string
          description: Email address of the contact.
          example: steve.wozniak@gmail.com
        first_name:
          type: string
          description: First name of the contact.
          example: Steve
        last_name:
          type: string
          description: Last name of the contact.
          example: Wozniak
        unsubscribed:
          type: boolean
          description: Indicates the subscription status of the contact.
          example: false
    CreateContactResponseSuccess:
      type: object
      properties:
        object:
          type: string
          description: Type of the response object.
          example: contact
        id:
          type: string
          description: Unique identifier for the created contact.
          example: 479e3145-dd38-476b-932c-529ceb705947
    CreateContactOptions:
      type: object
      required:
      - email
      properties:
        email:
          type: string
          description: Email address of the contact.
          example: steve.wozniak@gmail.com
        first_name:
          type: string
          description: First name of the contact.
          example: Steve
        last_name:
          type: string
          description: Last name of the contact.
          example: Wozniak
        unsubscribed:
          type: boolean
          description: Indicates if the contact is unsubscribed.
          example: false
        audience_id:
          type: string
          description: Unique identifier of the audience to which the contact belongs.
          example: 78261eea-8f8b-4381-83c6-79fa7120f1cf
    ListContactsResponseSuccess:
      type: object
      properties:
        object:
          type: string
          description: Type of the response object.
          example: list
        data:
          type: array
          description: Array containing contact information.
          items:
            type: object
            properties:
              id:
                type: string
                description: Unique identifier for the contact.
                example: e169aa45-1ecf-4183-9955-b1499d5701d3
              email:
                type: string
                description: Email address of the contact.
                example: steve.wozniak@gmail.com
              first_name:
                type: string
                description: First name of the contact.
                example: Steve
              last_name:
                type: string
                description: Last name of the contact.
                example: Wozniak
              created_at:
                type: string
                format: date-time
                description: Timestamp indicating when the contact was created.
                example: '2023-10-06T23:47:56.678Z'
              unsubscribed:
                type: boolean
                description: Indicates if the contact is unsubscribed.
                example: false
    GetAudienceResponseSuccess:
      type: object
      properties:
        id:
          type: string
          description: The ID of the audience.
          example: 78261eea-8f8b-4381-83c6-79fa7120f1cf
        object:
          type: string
          description: The object of the audience.
          example: audience
        name:
          type: string
          description: The name of the audience.
          example: Registered Users
        created_at:
          type: string
          description: The date that the object was created.
          example: '2023-10-06T22:59:55.977Z'
    RemoveAudienceResponseSuccess:
      type: object
      properties:
        id:
          type: string
          description: The ID of the audience.
          example: 78261eea-8f8b-4381-83c6-79fa7120f1cf
        object:
          type: string
          description: The object of the audience.
          example: audience
        deleted:
          type: boolean
          description: The deleted attribute indicates that the corresponding audience has been deleted.
          example: true
    GetContactResponseSuccess:
      type: object
      properties:
        object:
          type: string
          description: Type of the response object.
          example: contact
        id:
          type: string
          description: Unique identifier for the contact.
          example: e169aa45-1ecf-4183-9955-b1499d5701d3
        email:
          type: string
          description: Email address of the contact.
          example: steve.wozniak@gmail.com
        first_name:
          type: string
          description: First name of the contact.
          example: Steve
        last_name:
          type: string
          description: Last name of the contact.
          example: Wozniak
        created_at:
          type: string
          format: date-time
          description: Timestamp indicating when the contact was created.
          example: '2023-10-06T23:47:56.678Z'
        unsubscribed:
          type: boolean
          description: Indicates if the contact is unsubscribed.
          example: false
    ListAudiencesResponseSuccess:
      type: object
      properties:
        object:
          type: string
          description: Type of the response object.
          example: list
        data:
          type: array
          description: Array containing audience information.
          items:
            type: object
            properties:
              id:
                type: string
                description: Unique identifier for the audience.
                example: 78261eea-8f8b-4381-83c6-79fa7120f1cf
              name:
                type: string
                description: Name of the audience.
                example: Registered Users
              created_at:
                type: string
                format: date-time
                description: Timestamp indicating when the audience was created.
                example: '2023-10-06T22:59:55.977Z'
    RemoveContactResponseSuccess:
      type: object
      properties:
        object:
          type: string
          description: Type of the response object.
          example: contact
        id:
          type: string
          description: Unique identifier for the removed contact.
          example: 520784e2-887d-4c25-b53c-4ad46ad38100
        deleted:
          type: boolean
          description: Indicates whether the contact was successfully deleted.
          example: true
    CreateAudienceOptions:
      type: object
      required:
      - name
      properties:
        name:
          type: string
          description: The name of the audience you want to create.
    UpdateContactResponseSuccess:
      type: object
      properties:
        object:
          type: string
          description: Type of the response object.
          example: contact
        id:
          type: string
          description: Unique identifier for the updated contact.
          example: 479e3145-dd38-476b-932c-529ceb705947
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer