Create Advertiser
POST
/api/public/advertisers
const url = 'https://backend.podscribe.ai/api/public/advertisers';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"advertiserName":"example","itunesId":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://backend.podscribe.ai/api/public/advertisers \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "advertiserName": "example", "itunesId": "example" }'Create a new advertiser or return an existing one if it already exists.
Provide either advertiserName or itunesId, but not both. When itunesId is provided, the endpoint
resolves or creates the show and returns the Smart Promo advertiser tied to that show.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
One of:
object
advertiserName
required
The name of the advertiser to create. Mutually exclusive with itunesId.
string
itunesId
Podcast iTunes ID. Mutually exclusive with advertiserName.
string
object
advertiserName
The name of the advertiser to create. Mutually exclusive with itunesId.
string
itunesId
required
Podcast iTunes ID. Mutually exclusive with advertiserName.
string
Examplegenerated
{ "advertiserName": "example", "itunesId": "example"}Responses
Section titled “Responses”Successfully created or retrieved advertiser
Media typeapplication/json
object
advertiserName
The advertiser name
string
lookupName
The lookup name for the advertiser
string
Examplegenerated
{ "advertiserName": "example", "lookupName": "example"}Invalid request data
Invalid token or insufficient permissions
Internal server error