The Postman collection for the AssemblyAI API
Postman is a user-friendly tool for testing API endpoints. The AssemblyAI API Postman collection contains all the HTTP requests you can make to the AssemblyAI API, so you don't need to write them yourself.
Quickstart
- 1
Open the AssemblyAI API collection in Postman and click the Fork button. This will create a copy of the collection that you can edit.
Fill out the form and click Fork Collection.
- 2
Next, click on the Variables tab and configure the
apiKey
variable with your AssemblyAI API key. You can find your AssemblyAI API key in the AssemblyAI dashboard. - 3
Let's upload an audio file:
- Open the Files > Upload a media file request
- Switch to the Body tab
- Change the dropdown from none to binary
- Select an audio file of your choosing, or download this sample audio file
- Click the Send button
Inspect the Body of the response and copy the
upload_url
value. - 4
Now that the audio file is uploaded, you can transcribe the audio file.
- Open the Transcripts > Transcribe audio request
- Switch to the Body tab
- Find the
audio_url
property and update it to theupload_url
value from the previous request. - Remove all the other properties. Optionally, you can leave any property that you do want to use.
- Click the Send button
Inspect the Body of the response and copy the
id
value. - 5
The transcription job will take longer depending on the duration of the file. You need to check the
status
property to check if a transcript is ready. Thestatus
goes fromqueued
toprocessing
tocompleted
. Thestatus
can also becomeerror
at any point. If an error occurs, you can find the error message under theerror
property.- Open the Transcripts > Get transcript request
- Find the
transcript_id
under Path variables and update the value with theid
value from the previous request. - Remove all the other properties. Optionally, you can leave any property that you do want to use.
- Click the Send button
Inspect the Body of the response to check if the
status
iscompleted
orerror
. If not, resend the request until it iscompleted
orerror
. - 6
Now that you have a completed transcript, you can send these other HTTP requests with your current transcript ID:
- Transcripts
- Get subtitles for transcript
- Get sentences in transcript
- Get paragraphs in transcript
- Search words in transcript
- Get redacted audio (if PII audio redaction is enabled)
- LeMUR
- Run a task using LeMUR
- Summarize a transcript using LeMUR
- Ask questions using LeMUR
- Extract action items
Let's prompt an LLM to summarize the transcript using LeMUR:
- Open the LeMUR > Run a task using LeMUR request
- Switch to the Body tab
- Find the
transcript_ids
property and replace the sample ID with your transcript ID - Set the
final_model
property to"anthropic/claude-3-5-sonnet"
- Set the
prompt
property to"Summarize the transcript"
- Remove the other properties
- Click the Send button
- Transcripts