Oystehr
Fax Service Configuration

Fax Service Configuration

To start using the Fax Service, use the onboard endpoint (opens in a new tab) to request a fax number. This will purchase a fax number and associate it with your project.

Similarly, the offboard endpoint (opens in a new tab) will permanently release the number. If you onboard again, there is no way to guarantee that you get the same number again.

You can check the status of your project's Fax Service configuration using the configuration endpoint (opens in a new tab).

Onboarding a Fax Number

To onboard a fax number, call the onboarding endpoint in the fax API:

Onboard a fax number using the v3 SDK
import Oystehr from '@oystehr/sdk';
 
const oystehr = new Oystehr({
  accessToken: "<your_access_token>",
});
 
const response = await oystehr.fax.onboard();

A successful response would return your fax number in E.164 format:

{
  "faxNumber": "+12223334444"
}
🚧
The Fax Service only supports registering one fax number per project through the onboard endpoint. If you need additional fax numbers, please contact support to discuss your use-case.

Offboarding a Fax Number

To offboard your fax number, call the offboarding endpoint in the fax API:

Offboard a fax number using the v3 SDK
import Oystehr from '@oystehr/sdk';
 
const oystehr = new Oystehr({
  accessToken: "<your_access_token>",
});
 
const response = await oystehr.fax.offboard();

A successful response will only return a 204 status code.

Checking Configuration

Check Fax Service configuration using the SDK
import Oystehr from '@oystehr/sdk';
 
const oystehr = new Oystehr({
  accessToken: "<your_access_token>",
});
 
const response = await oystehr.fax.getConfiguration();

A successful response will return a small JSON object with the current configuration of the Fax Service for your project.

{
  "configured": true,
  "faxNumbers": [
    "+12223334444"
  ]
}
🚧
The Fax Service does not yet support FHIR R5 (opens in a new tab).