Skip to Content
Getting StartedQuickstart

Quickstart

Get up and running with the IdentityCall API in 5 minutes. This guide will walk you through uploading your first recording and retrieving the transcription.

Prerequisites

Before you begin, you’ll need:

Step 1: Set Up Your API Key

First, set your API key as an environment variable:

export IDENTITYCALL_API_KEY="idc_your_api_key_here"

Step 2: Upload a Recording

Upload your audio file to start the transcription process:

curl -X POST "https://api.identitycall.com/api/v1/public/recordings" \ -H "Authorization: Bearer $IDENTITYCALL_API_KEY" \ -F "file=@your-recording.mp3" \ -F "language=en" \ -F "name=My First Recording"

Response:

{ "data": { "id": 123, "status": "pending", "created_at": "2025-01-15T10:30:00Z" } }

Transcription is asynchronous. The recording status will be pending immediately after upload, then change to processing, and finally completed when ready.

Step 3: Check Recording Status

Wait for the transcription to complete (usually 1-2 minutes for a 5-minute recording):

curl -X GET "https://api.identitycall.com/api/v1/public/recordings/123" \ -H "Authorization: Bearer $IDENTITYCALL_API_KEY"

Step 4: Get the Transcription

Once the status is completed, retrieve the full transcription:

curl -X GET "https://api.identitycall.com/api/v1/public/recordings/123/transcription" \ -H "Authorization: Bearer $IDENTITYCALL_API_KEY"

Response:

{ "data": { "recording_id": 123, "language": "en", "full_text": "Hello, thank you for calling IdentityCall support...", "dialogues": [ { "id": 456, "position": 1, "speaker": "Speaker 1", "text": "Hello, thank you for calling IdentityCall support. How can I help you today?", "start_ms": 0, "end_ms": 4500, "emotion": { "happy": 0.7, "neutral": 0.2, "calm": 0.1, "sad": 0.0, "angry": 0.0, "fearful": 0.0, "surprised": 0.0, "disgust": 0.0 } }, { "id": 457, "position": 2, "speaker": "Speaker 2", "text": "Hi, I'm having trouble logging into my account.", "start_ms": 5000, "end_ms": 8200, "emotion": { "happy": 0.0, "neutral": 0.6, "calm": 0.1, "sad": 0.2, "angry": 0.1, "fearful": 0.0, "surprised": 0.0, "disgust": 0.0 } } ] } }

Step 5: Get Analysis Results

Retrieve goal achievements, keyword detections, and pause analysis:

curl -X GET "https://api.identitycall.com/api/v1/public/recordings/123/results" \ -H "Authorization: Bearer $IDENTITYCALL_API_KEY"

Next Steps

Now that you’ve uploaded your first recording, explore these topics: