-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathopenapi.yml
5970 lines (5756 loc) · 206 KB
/
openapi.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
openapi: 3.1.0
info:
title: AssemblyAI API
description: AssemblyAI API
version: 1.3.4
termsOfService: https://www.assemblyai.com/legal/terms-of-service
contact:
name: API Support
email: [email protected]
url: https://www.assemblyai.com/docs/
servers:
- url: https://api.assemblyai.com
description: AssemblyAI API
tags:
- name: transcript
description: Transcript related operations
externalDocs:
url: https://www.assemblyai.com/docs/guides/transcribing-an-audio-file
- name: LeMUR
description: LeMUR related operations
externalDocs:
url: https://www.assemblyai.com/docs/guides/processing-audio-with-llms-using-lemur
- name: streaming
description: Streaming Speech-to-Text
externalDocs:
url: https://www.assemblyai.com/docs/speech-to-text/streaming
security:
- ApiKey: []
paths:
/v2/upload:
post:
tags:
- transcript
summary: Upload a media file
description: Upload a media file to AssemblyAI's servers.
operationId: uploadFile
x-fern-sdk-group-name: files
x-fern-sdk-method-name: upload
requestBody:
content:
application/octet-stream: {}
responses:
"200":
x-label: Media file uploaded
description: Media file uploaded successfully
content:
application/json:
schema:
$ref: "#/components/schemas/UploadedFile"
"400":
$ref: "#/components/responses/BadRequest"
"401":
$ref: "#/components/responses/Unauthorized"
"404":
$ref: "#/components/responses/NotFound"
"429":
$ref: "#/components/responses/TooManyRequests"
"500":
$ref: "#/components/responses/InternalServerError"
"503":
$ref: "#/components/responses/ServiceUnavailable"
"504":
$ref: "#/components/responses/GatewayTimeout"
/v2/transcript:
post:
tags:
- transcript
summary: Transcribe audio
description: Create a transcript from a media file that is accessible via a URL.
operationId: createTranscript
x-fern-sdk-group-name: transcripts
x-fern-sdk-method-name: submit
x-fern-request-name: TranscriptParams
requestBody:
description: Params to create a transcript
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/TranscriptParams"
responses:
"200":
x-label: Transcript created
description: Transcript created and queued for processing
content:
application/json:
schema:
$ref: "#/components/schemas/Transcript"
links:
GetTranscriptById:
$ref: "#/components/links/GetTranscriptById"
GetTranscriptSentencesById:
$ref: "#/components/links/GetTranscriptSentencesById"
GetTranscriptParagraphsById:
$ref: "#/components/links/GetTranscriptParagraphsById"
GetTranscriptSubtitlesById:
$ref: "#/components/links/GetTranscriptSubtitlesById"
GetTranscriptRedactedAudioById:
$ref: "#/components/links/GetTranscriptRedactedAudioById"
WordSearchByTranscriptId:
$ref: "#/components/links/WordSearchByTranscriptId"
DeleteTranscriptById:
$ref: "#/components/links/DeleteTranscriptById"
"400":
$ref: "#/components/responses/BadRequest"
"401":
$ref: "#/components/responses/Unauthorized"
"404":
$ref: "#/components/responses/NotFound"
"429":
$ref: "#/components/responses/TooManyRequests"
"500":
$ref: "#/components/responses/InternalServerError"
"503":
$ref: "#/components/responses/ServiceUnavailable"
"504":
$ref: "#/components/responses/GatewayTimeout"
callbacks:
transcriptReadyWebhook:
"{$request.body#/webhook_url}":
post:
requestBody:
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/TranscriptReadyNotification"
responses:
"2XX":
description: Successfully received the notification
"4XX":
description: Invalid request
"5XX":
description: Unexpected error
redactedAudioWebhook:
"{$request.body#/webhook_url}":
post:
requestBody:
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/RedactedAudioNotification"
responses:
"2XX":
description: Successfully received the notification
"4XX":
description: Invalid request
"5XX":
description: Unexpected error
get:
tags:
- transcript
summary: List transcripts
x-fern-sdk-group-name: transcripts
x-fern-sdk-method-name: list
x-fern-request-name: ListTranscriptParams
operationId: listTranscripts
description: |
Retrieve a list of transcripts you created.
Transcripts are sorted from newest to oldest. The previous URL always points to a page with older transcripts.
parameters:
- name: limit
x-label: Limit
in: query
description: Maximum amount of transcripts to retrieve
schema:
$ref: "#/components/schemas/ListTranscriptParams/properties/limit"
- name: status
x-label: Status
in: query
description: Filter by transcript status
schema:
# Use TranscriptStatus instead of
# ListTranscriptParams/properties/limit for better SDK generation
$ref: "#/components/schemas/TranscriptStatus"
- name: created_on
x-label: Created on
in: query
description: Only get transcripts created on this date
schema:
$ref: "#/components/schemas/ListTranscriptParams/properties/created_on"
- name: before_id
x-label: Before ID
in: query
description: Get transcripts that were created before this transcript ID
schema:
$ref: "#/components/schemas/ListTranscriptParams/properties/before_id"
- name: after_id
x-label: After ID
in: query
description: Get transcripts that were created after this transcript ID
schema:
$ref: "#/components/schemas/ListTranscriptParams/properties/after_id"
- name: throttled_only
x-label: Throttled only
in: query
description: Only get throttled transcripts, overrides the status filter
schema:
$ref: "#/components/schemas/ListTranscriptParams/properties/throttled_only"
responses:
"200":
description: |
A list of transcripts. Transcripts are sorted from newest to oldest. The previous URL always points to a page with older transcripts.
content:
application/json:
schema:
$ref: "#/components/schemas/TranscriptList"
"400":
$ref: "#/components/responses/BadRequest"
"401":
$ref: "#/components/responses/Unauthorized"
"404":
$ref: "#/components/responses/NotFound"
"429":
$ref: "#/components/responses/TooManyRequests"
"500":
$ref: "#/components/responses/InternalServerError"
"503":
$ref: "#/components/responses/ServiceUnavailable"
"504":
$ref: "#/components/responses/GatewayTimeout"
/v2/transcript/{transcript_id}:
get:
tags:
- transcript
summary: Get transcript
operationId: getTranscript
x-fern-sdk-group-name: transcripts
x-fern-sdk-method-name: get
x-fern-request-name: GetTranscriptParams
description: Get the transcript resource. The transcript is ready when the "status" is "completed".
parameters:
- name: transcript_id
x-label: Transcript ID
in: path
description: ID of the transcript
required: true
schema:
type: string
responses:
"200":
description: The transcript resource
content:
application/json:
schema:
$ref: "#/components/schemas/Transcript"
links:
GetTranscriptById:
$ref: "#/components/links/GetTranscriptById"
GetTranscriptSentencesById:
$ref: "#/components/links/GetTranscriptSentencesById"
GetTranscriptParagraphsById:
$ref: "#/components/links/GetTranscriptParagraphsById"
GetTranscriptSubtitlesById:
$ref: "#/components/links/GetTranscriptSubtitlesById"
GetTranscriptRedactedAudioById:
$ref: "#/components/links/GetTranscriptRedactedAudioById"
WordSearchByTranscriptId:
$ref: "#/components/links/WordSearchByTranscriptId"
DeleteTranscriptById:
$ref: "#/components/links/DeleteTranscriptById"
"400":
$ref: "#/components/responses/BadRequest"
"401":
$ref: "#/components/responses/Unauthorized"
"404":
$ref: "#/components/responses/NotFound"
"429":
$ref: "#/components/responses/TooManyRequests"
"500":
$ref: "#/components/responses/InternalServerError"
"503":
$ref: "#/components/responses/ServiceUnavailable"
"504":
$ref: "#/components/responses/GatewayTimeout"
delete:
tags:
- transcript
summary: Delete transcript
description: Remove the data from the transcript and mark it as deleted.
operationId: deleteTranscript
x-fern-sdk-group-name: transcripts
x-fern-sdk-method-name: delete
parameters:
- name: transcript_id
x-label: Transcript ID
in: path
description: ID of the transcript
required: true
schema:
type: string
responses:
"200":
description: The deleted transcript response
content:
application/json:
schema:
$ref: "#/components/schemas/Transcript"
"400":
$ref: "#/components/responses/BadRequest"
"401":
$ref: "#/components/responses/Unauthorized"
"404":
$ref: "#/components/responses/NotFound"
"429":
$ref: "#/components/responses/TooManyRequests"
"500":
$ref: "#/components/responses/InternalServerError"
"503":
$ref: "#/components/responses/ServiceUnavailable"
"504":
$ref: "#/components/responses/GatewayTimeout"
/v2/transcript/{transcript_id}/{subtitle_format}:
get:
tags:
- transcript
summary: Get subtitles for transcript
description: Export your transcript in SRT or VTT format to use with a video player for subtitles and closed captions.
operationId: getSubtitles
x-fern-sdk-group-name: transcripts
x-fern-sdk-method-name: getSubtitles
x-fern-request-name: GetSubtitlesParams
parameters:
- name: transcript_id
x-label: Transcript ID
in: path
description: ID of the transcript
required: true
schema:
type: string
- name: subtitle_format
x-label: Subtitle format
in: path
description: The format of the captions
required: true
schema:
$ref: "#/components/schemas/SubtitleFormat"
- name: chars_per_caption
x-label: Number of characters per caption
in: query
description: The maximum number of characters per caption
schema:
type: integer
responses:
"200":
description: The exported captions as text
content:
text/plain:
schema:
type: string
example: |
WEBVTT
00:12.340 --> 00:16.220
Last year I showed these two slides said that demonstrate
00:16.200 --> 00:20.040
that the Arctic ice cap which for most of the last 3,000,000 years has been the
00:20.020 --> 00:25.040
size of the lower 48 States has shrunk by 40% but this understates
examples:
srt:
$ref: "#/components/examples/SrtSubtitlesResponse"
vtt:
$ref: "#/components/examples/VttSubtitlesResponse"
"400":
$ref: "#/components/responses/BadRequest"
"401":
$ref: "#/components/responses/Unauthorized"
"404":
$ref: "#/components/responses/NotFound"
"429":
$ref: "#/components/responses/TooManyRequests"
"500":
$ref: "#/components/responses/InternalServerError"
"503":
$ref: "#/components/responses/ServiceUnavailable"
"504":
$ref: "#/components/responses/GatewayTimeout"
/v2/transcript/{transcript_id}/sentences:
get:
tags:
- transcript
summary: Get sentences in transcript
operationId: getTranscriptSentences
x-fern-sdk-group-name: transcripts
x-fern-sdk-method-name: getSentences
x-fern-request-name: GetSentencesParams
description: Get the transcript split by sentences. The API will attempt to semantically segment the transcript into sentences to create more reader-friendly transcripts.
parameters:
- name: transcript_id
x-label: Transcript ID
in: path
description: ID of the transcript
required: true
schema:
type: string
responses:
"200":
description: Exported sentences
content:
application/json:
schema:
$ref: "#/components/schemas/SentencesResponse"
"400":
$ref: "#/components/responses/BadRequest"
"401":
$ref: "#/components/responses/Unauthorized"
"404":
$ref: "#/components/responses/NotFound"
"429":
$ref: "#/components/responses/TooManyRequests"
"500":
$ref: "#/components/responses/InternalServerError"
"503":
$ref: "#/components/responses/ServiceUnavailable"
"504":
$ref: "#/components/responses/GatewayTimeout"
/v2/transcript/{transcript_id}/paragraphs:
get:
tags:
- transcript
summary: Get paragraphs in transcript
operationId: getTranscriptParagraphs
x-fern-sdk-group-name: transcripts
x-fern-sdk-method-name: getParagraphs
x-fern-request-name: GetParagraphsParams
description: Get the transcript split by paragraphs. The API will attempt to semantically segment your transcript into paragraphs to create more reader-friendly transcripts.
parameters:
- name: transcript_id
x-label: Transcript ID
in: path
description: ID of the transcript
required: true
schema:
type: string
responses:
"200":
description: Exported paragraphs
content:
application/json:
schema:
$ref: "#/components/schemas/ParagraphsResponse"
"400":
$ref: "#/components/responses/BadRequest"
"401":
$ref: "#/components/responses/Unauthorized"
"404":
$ref: "#/components/responses/NotFound"
"429":
$ref: "#/components/responses/TooManyRequests"
"500":
$ref: "#/components/responses/InternalServerError"
"503":
$ref: "#/components/responses/ServiceUnavailable"
"504":
$ref: "#/components/responses/GatewayTimeout"
/v2/transcript/{transcript_id}/word-search:
get:
tags:
- transcript
summary: Search words in transcript
description: Search through the transcript for keywords. You can search for individual words, numbers, or phrases containing up to five words or numbers.
operationId: wordSearch
x-fern-sdk-group-name: transcripts
x-fern-sdk-method-name: wordSearch
x-fern-request-name: WordSearchParams
parameters:
- name: transcript_id
x-label: Transcript ID
in: path
description: ID of the transcript
required: true
schema:
type: string
- name: words
x-label: Words
in: query
description: Keywords to search for
required: true
style: form
explode: false
schema:
type: array
items:
x-label: Word
type: string
responses:
"200":
description: Word search response
content:
application/json:
schema:
$ref: "#/components/schemas/WordSearchResponse"
"400":
$ref: "#/components/responses/BadRequest"
"401":
$ref: "#/components/responses/Unauthorized"
"404":
$ref: "#/components/responses/NotFound"
"429":
$ref: "#/components/responses/TooManyRequests"
"500":
$ref: "#/components/responses/InternalServerError"
"503":
$ref: "#/components/responses/ServiceUnavailable"
"504":
$ref: "#/components/responses/GatewayTimeout"
/v2/transcript/{transcript_id}/redacted-audio:
get:
tags:
- transcript
summary: Get redacted audio
description: Retrieve the redacted audio object containing the status and URL to the redacted audio.
operationId: getRedactedAudio
x-fern-sdk-group-name: transcripts
x-fern-sdk-method-name: getRedactedAudio
x-fern-request-name: GetRedactedAudioParams
parameters:
- name: transcript_id
x-label: Transcript ID
in: path
description: ID of the transcript
required: true
schema:
type: string
responses:
"200":
description: The redacted audio object containing the status and URL to the redacted audio
content:
application/json:
schema:
$ref: "#/components/schemas/RedactedAudioResponse"
"400":
$ref: "#/components/responses/BadRequest"
"401":
$ref: "#/components/responses/Unauthorized"
"404":
$ref: "#/components/responses/NotFound"
"429":
$ref: "#/components/responses/TooManyRequests"
"500":
$ref: "#/components/responses/InternalServerError"
"503":
$ref: "#/components/responses/ServiceUnavailable"
"504":
$ref: "#/components/responses/GatewayTimeout"
/v2/realtime/token:
post:
tags:
- streaming
summary: Create temporary authentication token for Streaming STT
description: Create a temporary authentication token for Streaming Speech-to-Text
operationId: createTemporaryToken
x-fern-sdk-group-name: realtime
x-fern-sdk-method-name: createTemporaryToken
x-fern-request-name: CreateRealtimeTemporaryTokenParams
requestBody:
description: Params to create a temporary authentication token
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/CreateRealtimeTemporaryTokenParams"
responses:
"200":
description: Temporary authentication token generated
content:
application/json:
schema:
$ref: "#/components/schemas/RealtimeTemporaryTokenResponse"
"400":
$ref: "#/components/responses/BadRequest"
"401":
$ref: "#/components/responses/Unauthorized"
"404":
$ref: "#/components/responses/NotFound"
"429":
$ref: "#/components/responses/TooManyRequests"
"500":
$ref: "#/components/responses/InternalServerError"
"503":
$ref: "#/components/responses/ServiceUnavailable"
"504":
$ref: "#/components/responses/GatewayTimeout"
/lemur/v3/generate/task:
post:
tags:
- LeMUR
summary: Run a task using LeMUR
description: Use the LeMUR task endpoint to input your own LLM prompt.
operationId: lemurTask
x-fern-sdk-group-name: lemur
x-fern-sdk-method-name: task
x-fern-request-name: LemurTaskParams
requestBody:
description: Params to run the task
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/LemurTaskParams"
responses:
"200":
description: LeMUR task response
content:
application/json:
schema:
$ref: "#/components/schemas/LemurTaskResponse"
headers:
X-RateLimit-Limit:
schema:
type: integer
description: Maximum number of allowed requests in a 60 second window.
X-RateLimit-Remaining:
schema:
type: integer
description: Number of remaining requests in the current time window.
X-RateLimit-Reset:
schema:
type: integer
description: Number of seconds until the remaining requests resets to the value of X-RateLimit-Limit.
links:
PurgeLemurRequestDataById:
$ref: "#/components/links/PurgeLemurRequestDataById"
"400":
$ref: "#/components/responses/BadRequest"
"401":
$ref: "#/components/responses/Unauthorized"
"404":
$ref: "#/components/responses/NotFound"
"429":
$ref: "#/components/responses/TooManyRequests"
"500":
$ref: "#/components/responses/InternalServerError"
"503":
$ref: "#/components/responses/ServiceUnavailable"
"504":
$ref: "#/components/responses/GatewayTimeout"
/lemur/v3/generate/summary:
post:
tags:
- LeMUR
summary: Summarize a transcript using LeMUR
description: |
Custom Summary allows you to distill a piece of audio into a few impactful sentences.
You can give the model context to obtain more targeted results while outputting the results in a variety of formats described in human language.
operationId: lemurSummary
x-fern-sdk-group-name: lemur
x-fern-sdk-method-name: summary
x-fern-request-name: LemurSummaryParams
requestBody:
description: Params to generate the summary
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/LemurSummaryParams"
responses:
"200":
description: LeMUR summary response
content:
application/json:
schema:
$ref: "#/components/schemas/LemurSummaryResponse"
headers:
X-RateLimit-Limit:
schema:
type: integer
description: Maximum number of allowed requests in a 60 second window.
X-RateLimit-Remaining:
schema:
type: integer
description: Number of remaining requests in the current time window.
X-RateLimit-Reset:
schema:
type: integer
description: Number of seconds until the remaining requests resets to the value of X-RateLimit-Limit.
links:
PurgeLemurRequestDataById:
$ref: "#/components/links/PurgeLemurRequestDataById"
"400":
$ref: "#/components/responses/BadRequest"
"401":
$ref: "#/components/responses/Unauthorized"
"404":
$ref: "#/components/responses/NotFound"
"429":
$ref: "#/components/responses/TooManyRequests"
"500":
$ref: "#/components/responses/InternalServerError"
"503":
$ref: "#/components/responses/ServiceUnavailable"
"504":
$ref: "#/components/responses/GatewayTimeout"
/lemur/v3/generate/question-answer:
post:
tags:
- LeMUR
summary: Ask questions using LeMUR
description: |
Question & Answer allows you to ask free-form questions about a single transcript or a group of transcripts.
The questions can be any whose answers you find useful, such as judging whether a caller is likely to become a customer or whether all items on a meeting's agenda were covered.
operationId: lemurQuestionAnswer
x-fern-sdk-group-name: lemur
x-fern-sdk-method-name: questionAnswer
x-fern-request-name: LemurQuestionAnswerParams
requestBody:
description: Params to ask questions about the transcripts
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/LemurQuestionAnswerParams"
responses:
"200":
description: LeMUR question & answer response
content:
application/json:
schema:
$ref: "#/components/schemas/LemurQuestionAnswerResponse"
headers:
X-RateLimit-Limit:
schema:
type: integer
description: Maximum number of allowed requests in a 60 second window.
X-RateLimit-Remaining:
schema:
type: integer
description: Number of remaining requests in the current time window.
X-RateLimit-Reset:
schema:
type: integer
description: Number of seconds until the remaining requests resets to the value of X-RateLimit-Limit.
links:
PurgeLemurRequestDataById:
$ref: "#/components/links/PurgeLemurRequestDataById"
"400":
$ref: "#/components/responses/BadRequest"
"401":
$ref: "#/components/responses/Unauthorized"
"404":
$ref: "#/components/responses/NotFound"
"429":
$ref: "#/components/responses/TooManyRequests"
"500":
$ref: "#/components/responses/InternalServerError"
"503":
$ref: "#/components/responses/ServiceUnavailable"
"504":
$ref: "#/components/responses/GatewayTimeout"
/lemur/v3/generate/action-items:
post:
tags:
- LeMUR
summary: Extract action items
operationId: lemurActionItems
x-label: Extract action items using LeMUR
x-fern-sdk-group-name: lemur
x-fern-sdk-method-name: actionItems
x-fern-request-name: LemurActionItemsParams
description: Use LeMUR to generate a list of action items from a transcript
requestBody:
description: Params to generate action items from transcripts
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/LemurActionItemsParams"
responses:
"200":
description: LeMUR action items response
content:
application/json:
schema:
$ref: "#/components/schemas/LemurActionItemsResponse"
headers:
X-RateLimit-Limit:
schema:
type: integer
description: Maximum number of allowed requests in a 60 second window.
X-RateLimit-Remaining:
schema:
type: integer
description: Number of remaining requests in the current time window.
X-RateLimit-Reset:
schema:
type: integer
description: Number of seconds until the remaining requests resets to the value of X-RateLimit-Limit.
links:
PurgeLemurRequestDataById:
$ref: "#/components/links/PurgeLemurRequestDataById"
"400":
$ref: "#/components/responses/BadRequest"
"401":
$ref: "#/components/responses/Unauthorized"
"404":
$ref: "#/components/responses/NotFound"
"429":
$ref: "#/components/responses/TooManyRequests"
"500":
$ref: "#/components/responses/InternalServerError"
"503":
$ref: "#/components/responses/ServiceUnavailable"
"504":
$ref: "#/components/responses/GatewayTimeout"
/lemur/v3/{request_id}:
get:
tags:
- LeMUR
summary: Retrieve LeMUR response
description: |
Retrieve a LeMUR response that was previously generated.
operationId: getLemurResponse
x-fern-sdk-group-name: lemur
x-fern-sdk-method-name: getResponse
x-fern-request-name: GetLemurResponseParams
parameters:
- name: request_id
x-label: LeMUR request ID
in: path
description: |
The ID of the LeMUR request you previously made.
This would be found in the response of the original request.
required: true
schema:
type: string
responses:
"200":
description: LeMUR response
content:
application/json:
schema:
$ref: "#/components/schemas/LemurResponse"
"400":
$ref: "#/components/responses/BadRequest"
"401":
$ref: "#/components/responses/Unauthorized"
"404":
$ref: "#/components/responses/NotFound"
"429":
$ref: "#/components/responses/TooManyRequests"
"500":
$ref: "#/components/responses/InternalServerError"
"503":
$ref: "#/components/responses/ServiceUnavailable"
"504":
$ref: "#/components/responses/GatewayTimeout"
delete:
tags:
- LeMUR
summary: Purge LeMUR request data
description: |
Delete the data for a previously submitted LeMUR request.
The LLM response data, as well as any context provided in the original request will be removed.
operationId: purgeLemurRequestData
x-fern-sdk-group-name: lemur
x-fern-sdk-method-name: purgeRequestData
x-fern-request-name: PurgeLemurRequestDataParams
parameters:
- name: request_id
x-label: LeMUR request ID
in: path
description: The ID of the LeMUR request whose data you want to delete. This would be found in the response of the original request.
required: true
schema:
type: string
responses:
"200":
description: LeMUR request data deleted
content:
application/json:
schema:
$ref: "#/components/schemas/PurgeLemurRequestDataResponse"
"400":
$ref: "#/components/responses/BadRequest"
"401":
$ref: "#/components/responses/Unauthorized"
"404":
$ref: "#/components/responses/NotFound"
"429":
$ref: "#/components/responses/TooManyRequests"
"500":
$ref: "#/components/responses/InternalServerError"
"503":
$ref: "#/components/responses/ServiceUnavailable"
"504":
$ref: "#/components/responses/GatewayTimeout"
components:
links:
GetTranscriptById:
operationId: getTranscript
parameters:
transcript_id: "$response.body#/id"
description: The transcript ID can be used as the `transcript_id` parameter in `GET /v2/transcript/{transcript_id}`.
GetTranscriptSentencesById:
operationId: getSentences
parameters:
transcript_id: "$response.body#/id"
description: The transcript ID can be used as the `transcript_id` parameter in `GET /v2/transcript/{transcript_id}/sentences`.
GetTranscriptParagraphsById:
operationId: getParagraphs
parameters:
transcript_id: "$response.body#/id"
description: The transcript ID can be used as the `transcript_id` parameter in `GET /v2/transcript/{transcript_id}/paragraphs`.
GetTranscriptSubtitlesById:
operationId: getSubtitles
parameters:
transcript_id: "$response.body#/id"
description: The transcript ID can be used as the `transcript_id` parameter in `GET /v2/transcript/{transcript_id}/{subtitle_format}`.
GetTranscriptRedactedAudioById:
operationId: getRedactedAudio
parameters:
transcript_id: "$response.body#/id"
description: The transcript ID can be used as the `transcript_id` parameter in `GET /v2/transcript/{transcript_id}/redacted-audio`.
WordSearchByTranscriptId:
operationId: wordSearch
parameters:
transcript_id: "$response.body#/id"
description: The transcript ID can be used as the `transcript_id` parameter in `GET /v2/transcript/{transcript_id}/word-search`.
DeleteTranscriptById:
operationId: deleteTranscript
parameters:
transcript_id: "$response.body#/id"
description: The transcript ID can be used as the `transcript_id` parameter in `DELETE /v2/transcript/{transcript_id}`.
PurgeLemurRequestDataById:
operationId: purgeLemurRequestData
parameters:
request_id: "$response.body#/request_id"
description: The LeMUR request ID can be used as the `request_id` parameter in `DELETE /lemur/v3/{request_id}`.
schemas:
TranscriptWebhookNotification:
description: The notifications sent to the webhook URL.
x-label: Transcript webhook notification
x-fern-sdk-group-name: transcripts
type: object
additionalProperties: false
oneOf:
- $ref: "#/components/schemas/TranscriptReadyNotification"
- $ref: "#/components/schemas/RedactedAudioNotification"
TranscriptReadyNotification:
description: The notification when the transcript status is completed or error.
x-label: Transcript ready notification
x-fern-sdk-group-name: transcripts
type: object
additionalProperties: false
properties:
transcript_id:
x-label: Transcript ID
description: The ID of the transcript
type: string
format: uuid
status:
x-label: Transcript status
description: The status of the transcript. Either completed or error.
$ref: "#/components/schemas/TranscriptReadyStatus"
required:
- transcript_id
- status
example:
{
transcript_id: "9ea68fd3-f953-42c1-9742-976c447fb463",
status: "completed",
}
RedactedAudioNotification:
description: The notification when the redacted audio is ready.
x-label: Redacted audio notification
x-fern-sdk-group-name: transcripts
type: object
additionalProperties: false
allOf: