@api-emulator/intercom
v0.2.2
Published
Intercom provides customer-support APIs for admins, contacts, conversations, replies, and inbox workflows.
Readme
@api-emulator/intercom
Intercom provides customer-support APIs for admins, contacts, conversations, replies, and inbox workflows.
Use this emulator for local tests, CI, and offline agent runs. It keeps your tests separate from the production API.
Start the emulator
- Install the package.
npm install @api-emulator/intercom- From this registry, start the emulator.
npx -p api-emulator api --plugin ./providers/@intercom/api-emulator.mjs --service intercomThe emulator uses the local URL that api-emulator prints. Set your client base URL to this local URL.
Supported API
GET /adminsGET /admins/:idGET /contactsPOST /contactsGET /contacts/:idGET /conversationsPOST /conversations/searchGET /conversations/:idPOST /conversations/:id/replyPOST /conversations/:id/partsGET /inspect/contractGET /inspect/stateGET /inspect/now
Coverage
- Level:
smoke-only - Meaning: A smoke test starts the emulator and checks its main behavior.
- Evidence: a direct smoke test exists, but a conformance manifest does not exist.
Credentials
You do not need production credentials. Use fixed local credentials if your client requires them.
Test data
Add repeatable test data to the provider configuration.
intercom:
# Add provider-specific seed state here.