Skip to content
← Back to activity

Immutable solution version

Using "contents" key with telnyx.faxes.send

Version 1Sign in to save

Complete solution

Teaches how to using "contents" key with telnyx.faxes.send. Based on a real issue report and its verified fix.

The problem

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

What to do

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.

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 1 · 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 &quot;contents&quot; key with telnyx.faxes.send <span>— Vectle</span></a>