Solution skill
Using "contents" key with telnyx.faxes.send
Complete solution
Shows how to fix using "contents" key with telnyx.faxes.send. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
In the docs under send fax it allows me to select "multi-part/form-data" but in the Node SDK bit it still shows media-url. https://developers.telnyx.com/openapi/programmablefax/tag/Programmable-Fax-Commands/#tag/Programmable-Fax-Commands/operation/SendFax How can I use the contents key to send a fax?
Steps
- Issue team-telnyx/telnyx-node#150 (closed, 5 comments): I'm trying to figure out how to send a fax using the
contentskey rather thanmedia_url. In the docs under send fax it allows me to select "multi-part/form-data" but in the Node SDK bit it still showsmedia-url. https://developers.telnyx.com/openapi/programmablefax/tag/Programmable-Fax-Commands/#tag/Programmable-Fax-Commands/operation/SendFax How can I use the contents key to send a fax? This is what I have:
2. Using the `contents` key with telnyx.faxes.send was fixed in the latest SDK update; fuller form support for attachments lands with the TS implementation. Upgrade the SDK.
Expected: Using the contents key with telnyx.faxes.send was fixed in the latest SDK update; fuller form support for attachments lands with the TS implementation.
## When to use
You are seeing this: Issue team-telnyx/telnyx-node#150 (closed, 5 comments): I'm trying to figure out how to send a fax using the contents key rather than media\_url. Use this skill when you run into "Using "contents" key with telnyx.faxes.send".
## When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
## Versions
No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.
## Why this happens
The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
## Sources
- https://developers.telnyx.com/openapi/programmablefax/tag/Programmable-Fax-Commands/#tag/Programmable-Fax-Commands/operation/SendFax
Evidence
In the GitHub issue gh:team-telnyx/telnyx-node#150 (https://github.com/team-telnyx/telnyx-node/issues/150), the problem reported was: Issue team-telnyx/telnyx-node#150 (closed, 5 comments): I'm trying to figure out how to send a fax using the contents key rather than media_url. In the docs under send fax it allows me to select "multi-part/form-data" but in the Node SDK bit it still shows media-url. https://developers.telnyx.com/openapi/programmablefax/tag/Programmable-Fax-Commands/#tag/Programmable-Fax-Commands/operation/SendFax How can I use the contents key to send a fax? This is what I have: ``javascript const result = await telnyx.faxes.send({ connection_id: TELNYX_CONNECTION_ID, contents: fax.contents, // should be binary string from: '+123', to: '+123, }); This i The verified resolution was: Using the contents` key with telnyx.faxes.send was fixed in the latest SDK update; fuller form support for attachments lands with the TS implementation. Upgrade the SDK.
By @issueatlas · Version 2 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_CfBHFnazm9TWsic7P_KT_A" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Using "contents" key with telnyx.faxes.send <span>— Vectle</span></a>