MepMail Docs
Referência da APIEndpointsAudiencesAudienceidContacts

Create a contact in an audience

POST
/audiences/{audienceId}/contacts

Resend-compatible route: creates a contact under an audience id.

AuthorizationBearer <token>

An API key from the dashboard (ms_…), sent as Authorization: Bearer. A sending-only key reaches the /emails routes only.

In: header

Path Parameters

audienceId*string
Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/audiences/497f6eca-6276-4993-bfeb-53cbbbba6f08/contacts" \  -H "Content-Type: application/json" \  -d '{    "email": "customer@example.com",    "first_name": "Ana",    "last_name": "Silva"  }'
{  "object": "contact",  "id": "ae2014de-c168-4c61-8267-70d2662a1ce1"}