cURL
curl --request POST \ --url https://api.amisend.com/audiences \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "Newsletter Subscribers" }'
{ "_id": "<string>", "name": "<string>", "contacts": [ "<string>" ], "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z" }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Audience created successfully
The response is of type object.
object