Create a contact inside a Resend audience
| Billable Operation | Provider | Billing Mode Docs | Connection Docs | Cost per operation Docs |
|---|---|---|---|---|
contact-create-resend | P Resend | n/a | User | n/a |
const options = {
method: 'POST',
headers: {'content-type': 'application/json', authorization: 'Bearer <TOKEN>'},
body: JSON.stringify({
config: {environment: 'production'},
pipes: [
{
pipe_id: 'contact:create:resend@1',
connector: {strategy: 'first', connections: [{type: 'vault', connection: 'resend_123'}]},
config: {audience_id: 'abc', add_as_subscribed: true}
}
],
input: [{id: '1', email: 'test@pipe0.com', name: 'John Dorr'}]
})
};
fetch('https://api.pipe0.com/v1/pipes/run', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));