import BlueHive from '@bluehive/sdk';const client = new BlueHive({ apiKey: process.env['BLUEHIVE_API_KEY'], // This is the default and can be omitted});const response = await client.fax.send({ document: { content: 'content', contentType: 'application/pdf' }, to: 'to',});console.log(response.id);
Send a fax document to a specified number using the configured fax provider.
POST
/
v1
/
fax
/
send
JavaScript
Copy
import BlueHive from '@bluehive/sdk';const client = new BlueHive({ apiKey: process.env['BLUEHIVE_API_KEY'], // This is the default and can be omitted});const response = await client.fax.send({ document: { content: 'content', contentType: 'application/pdf' }, to: 'to',});console.log(response.id);