Creates a new audience.
Authorization
authorization AuthorizationBearer <token>
In: header
Path Parameters
account_id*string
The account for which the audience should be created.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://api.surge.app/accounts/acct_01j9a43avnfqzbjfch6pygv1td/audiences" \ -H "Content-Type: application/json" \ -d '{ "name": "The Family" }'{
"id": "aud_01j9dy8mdzfn3r0e8x1tbdrdrf",
"name": "The Family"
}{
"error": {
"message": "The requested resource could not be found.",
"type": "not_found"
}
}