POST
/
v1
/
fax
/
send
JavaScript
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);
{
  "id": "<string>",
  "status": "queued",
  "provider": "<string>",
  "to": "<string>",
  "from": "<string>",
  "createdAt": "<string>",
  "estimatedDelivery": "<string>"
}

Authorizations

Authorization
string
header
required

API key for accessing BlueHive API endpoints. Format: "ApiKey <your-api-key>" or "Bearer <your-api-key>"

Body

application/json

Response

200
application/json

Default Response

The response is of type object.