Skip to main content

Retrieve Document

Get document details and content.

Endpoint

GET /api/v3/documents/{id}

Response

{
"id": 123,
"name": "Team Meeting January 2025",
"type": "transcript",
"language": "en",
"duration_seconds": 3600,
"status": "completed",
"created_at": "2025-01-17T10:00:00Z",
"updated_at": "2025-01-17T15:30:00Z",
"content": {
"text": "Full transcript text...",
"segments": [
{
"start": 0.0,
"end": 2.5,
"text": "Hello, welcome to the meeting.",
"speaker": "Speaker 1",
"confidence": 0.95
}
],
"speakers": [
{"id": "Speaker 1", "segments_count": 45},
{"id": "Speaker 2", "segments_count": 38}
]
}
}

Examples

cURL

curl https://api.scriptix.io/api/v3/documents/123 \
-H "Authorization: Bearer YOUR_API_KEY"

Python

response = requests.get(
'https://api.scriptix.io/api/v3/documents/123',
headers={'Authorization': 'Bearer YOUR_API_KEY'}
)

doc = response.json()
print(f"Name: {doc['name']}")
print(f"Duration: {doc['duration_seconds']}s")
print(f"Transcript: {doc['content']['text']}")