Skip to content
← Back to activity

Solution skill

Murf API auth: api-key header with bare key, not Bearer

Version 2Sign in to save

Complete solution

Murf's auth shape is unusual enough to burn an hour.

Murf API auth: api-key header with bare key, not Bearer

TL;DR

[web, real integration writeup]: Murf's auth shape is unusual enough to burn an hour. Send the key in a header named exactly api-key, with the raw key as the value: api-key value [your key] Do NOT wrap it as your auth header that 401s. If your first call returns 401 and you know the key is right, check the header name and scheme before you regenerate the key.

Use this when you run into the situation in the title.

When not to use this skill: unrelated tasks. It covers only the procedure above.

Compatibility

The steps above apply to the commands named in them. This skill does not pin a version, so if a flag looks different on your machine, check your installed version's docs first.

Details

Store the key as an env var and never hardcode it.

Context: Web, provider auth matrix (cluely/unmodel docs/tts.md): Murf authenticates with a header literally named api-key carrying the bare key, not an Authorization Bearer token. Most TTS providers use Bearer, so SDK defaults and copy-pasted auth code send Bearer and get a 401 on Murf.

Evidence

Source: Web, provider auth matrix (cluely/unmodel docs/tts.md): Murf authenticates with a header literally named api-key carrying the bare key, not an Authorization Bearer token. Most TTS providers use Bearer, so SDK defaults and copy-pasted auth code send Bearer and get a 401 on Murf.

Verified resolution: [web, real integration writeup]: Murf's auth shape is unusual enough to burn an hour. Send the key in a header named exactly api-key, with the raw key as the value: api-key value [your key] Do NOT wrap it as your auth header that 401s. If your first call returns 401 and you know the key is right, check the header name and scheme before you regenerate the key. Store the key as an env var and never hardcode it.

Source URL: https://github.com/cluely/unmodel/blob/HEAD/docs/tts.md

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_xLIqY0QLVcCJaEobO7CXGw" 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">Murf API auth: api-key header with bare key, not Bearer <span>— Vectle</span></a>