Skip to main content
POST
Without provider, Importly uses the video’s own captions ($0.003). Setting provider (or providerOptions) skips captions and always runs speech-to-text. For a walkthrough, see Transcripts.

One call: mode and wait

Send "mode": "auto" and "wait": true to get a transcript for any video in a single request. Importly uses the captions when there are some and built-in speech-to-text when there aren’t, and returns the finished transcript in the response, in the same shape as GET /transcribe/status. maxCostDollars caps the speech-to-text charge on the auto fallback too: if the estimate is over it, the job fails with MAX_COST_EXCEEDED instead of running. wait holds the request for up to that many seconds (true means 30, the most is 60). Captions are usually ready in a few seconds. If the job is still running when the time is up, the response has the jobId and status, and you finish with the status endpoint or a webhook, as without wait. Leaving out mode keeps the behavior requests had before these options existed.

Provider options

providerOptions (on Import: transcriptOptions) is passed to your provider, so it uses that provider’s own option names. Use it with assemblyai, deepgram, or openai, and always set provider too: options alone skip captions without picking a provider, so the job fails with TRANSCRIPTION_PROVIDER_REQUIRED (on Import, the transcript is skipped). The top-level language is sent under each provider’s own name: Deepgram language (also for importly), AssemblyAI language_code, OpenAI language. If providerOptions already sets that name, or turns on the provider’s language detection (Deepgram detect_language, AssemblyAI language_detection), your value is used and language isn’t added. Importly sets where the provider gets the audio and where it sends the result, so options that would change either are dropped (matched case-insensitively): audio_url, webhook_url, webhook_auth_header_name, and webhook_auth_header_value for AssemblyAI, and callback and callback_method for Deepgram. With provider: "importly", providerOptions is ignored. Poll the result with GET /transcribe/status, or receive it by webhook.

Authorizations

Authorization
string
header
required

Your API key from the dashboard, sent as Authorization: Bearer <api key>.

Body

application/json
url
string<uri>
required

Public media URL to transcribe.

Example:

"https://www.youtube.com/watch?v=jNQXAC9IVRw"

mode
enum<string>

Where the transcript comes from. auto: the media's captions, or speech-to-text when it has none. captions: captions only; with none the job fails with TRANSCRIPTION_PROVIDER_REQUIRED and a quote, at no charge. ai: always speech-to-text. With auto and ai, speech-to-text is the built-in importly unless you set provider. When omitted: captions, or speech-to-text if you set provider or providerOptions.

Available options:
auto,
captions,
ai
Example:

"auto"

wait

Return the finished transcript in this response when it's ready within this many seconds (true waits 30, at most 60). If it isn't, the response has the jobId as usual. Omit it to get the jobId right away.

Example:

true

language
string

Spoken language as a two-letter code, e.g. es. For captions it picks the track (English if present when omitted). For speech-to-text it's sent to the provider; when omitted, importly, deepgram and assemblyai transcribe as English and openai auto-detects.

Example:

"en"

provider
enum<string>

Speech-to-text provider. importly is built in and needs no key. Without mode, setting a provider skips captions and always runs speech-to-text; with mode: "auto" it's the fallback when there are no captions.

Available options:
importly,
assemblyai,
deepgram,
openai
apiKey
string

Your key for the chosen provider. Not needed for importly, or if you saved one with POST /transcription-provider.

providerOptions
object

Options passed through to your provider under its own option names, e.g. { "speaker_labels": true } for AssemblyAI or { "model": "nova-3" } for Deepgram. Options that change where the provider reads audio or sends results are dropped. Ignored with importly. Always set provider too.

maxCostDollars
number

Cap for speech-to-text, built in or with your own key, including the auto fallback. If the estimated charge exceeds it, the job fails with MAX_COST_EXCEEDED and the estimate instead of running. With built-in speech-to-text, if the duration can't be determined up front, the cap is charged and the unused part refunded afterward. The charge is all-in, so the cap covers the audio download too.

webhookUrl
string<uri>

HTTPS URL that receives the result when the job finishes. It must not point to a private or internal address. A job that fails for good sends one webhook with success: false, code and message.

Example:

"https://example.com/webhooks/importly"

Response

The transcription job was queued. With wait, the finished or failed job when it ended in time (the same data as GET /transcribe/status), otherwise its jobId and current status.

success
boolean
required
data
object
required