-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathopenapi.yml
More file actions
5728 lines (5728 loc) · 179 KB
/
Copy pathopenapi.yml
File metadata and controls
5728 lines (5728 loc) · 179 KB
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: REST API
version: 1.0.0
paths:
/v1/agent/settings/think/models:
get:
operationId: list
summary: List Agent Think Models
description: Retrieves the available think models that can be used for AI agent processing
tags:
- agent > v1 > settings > think > models
responses:
'200':
description: List of available think models
content:
application/json:
schema:
$ref: '#/components/schemas/AgentThinkModelsV1Response'
'400':
description: Invalid Request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/v1/projects/{project_id}/agents:
post:
operationId: create
summary: Create an Agent Configuration
description: >-
Creates a new reusable agent configuration. The `config` field must be a valid JSON string representing the
`agent` block of a Settings message. The returned `agent_id` can be passed in place of the full `agent` object
in future Settings messages.
tags:
- voiceAgent > configurations
parameters:
- name: project_id
in: path
description: The unique identifier of the project
required: true
schema:
type: string
- name: Authorization
in: header
description: |
Use `Authorization: Token <API_KEY>`
Example: `Authorization: Token 12345abcdef`
required: true
schema:
type: string
responses:
'200':
description: Agent configuration created successfully
content:
application/json:
schema:
$ref: '#/components/schemas/CreateAgentConfigurationV1Response'
'400':
description: Invalid Request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
requestBody:
description: Agent configuration details
content:
application/json:
schema:
$ref: '#/components/schemas/CreateAgentConfigurationV1Request'
get:
operationId: list
summary: List Agent Configurations
description: >-
Returns all agent configurations for the specified project. Configurations are returned in their uninterpolated
form—template variable placeholders appear as-is rather than with their substituted values.
tags:
- voiceAgent > configurations
parameters:
- name: project_id
in: path
description: The unique identifier of the project
required: true
schema:
type: string
- name: Authorization
in: header
description: |
Use `Authorization: Token <API_KEY>`
Example: `Authorization: Token 12345abcdef`
required: true
schema:
type: string
responses:
'200':
description: A list of agent configurations
content:
application/json:
schema:
$ref: '#/components/schemas/ListAgentConfigurationsV1Response'
'400':
description: Invalid Request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/v1/projects/{project_id}/agents/{agent_id}:
get:
operationId: get
summary: Get an Agent Configuration
description: Returns the specified agent configuration in its uninterpolated form
tags:
- voiceAgent > configurations
parameters:
- name: project_id
in: path
description: The unique identifier of the project
required: true
schema:
type: string
- name: agent_id
in: path
description: The unique identifier of the agent configuration
required: true
schema:
type: string
- name: Authorization
in: header
description: |
Use `Authorization: Token <API_KEY>`
Example: `Authorization: Token 12345abcdef`
required: true
schema:
type: string
responses:
'200':
description: An agent configuration
content:
application/json:
schema:
$ref: '#/components/schemas/AgentConfigurationV1'
'400':
description: Invalid Request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
put:
operationId: update
summary: Update Agent Metadata
description: >-
Updates the metadata associated with an agent configuration. The config itself is immutable—to change the
configuration, delete the existing agent and create a new one.
tags:
- voiceAgent > configurations
parameters:
- name: project_id
in: path
description: The unique identifier of the project
required: true
schema:
type: string
- name: agent_id
in: path
description: The unique identifier of the agent configuration
required: true
schema:
type: string
- name: Authorization
in: header
description: |
Use `Authorization: Token <API_KEY>`
Example: `Authorization: Token 12345abcdef`
required: true
schema:
type: string
responses:
'200':
description: Agent configuration updated
content:
application/json:
schema:
$ref: '#/components/schemas/AgentConfigurationV1'
'400':
description: Invalid Request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
requestBody:
description: Updated metadata for the agent configuration
content:
application/json:
schema:
$ref: '#/components/schemas/UpdateAgentMetadataV1Request'
delete:
operationId: delete
summary: Delete an Agent Configuration
description: >-
Deletes the specified agent configuration. Deleting an agent configuration can cause a production outage if your
service references this agent UUID. Migrate all active sessions to a new configuration before deleting.
tags:
- voiceAgent > configurations
parameters:
- name: project_id
in: path
description: The unique identifier of the project
required: true
schema:
type: string
- name: agent_id
in: path
description: The unique identifier of the agent configuration
required: true
schema:
type: string
- name: Authorization
in: header
description: |
Use `Authorization: Token <API_KEY>`
Example: `Authorization: Token 12345abcdef`
required: true
schema:
type: string
responses:
'200':
description: Agent configuration deleted
content:
application/json:
schema:
$ref: '#/components/schemas/DeleteAgentConfigurationV1Response'
'400':
description: Invalid Request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/v1/projects/{project_id}/agent-variables:
post:
operationId: create
summary: Create an Agent Variable
description: >-
Creates a new template variable. Variables follow the `DG_<VARIABLE_NAME>` naming format and can substitute any
JSON value in an agent configuration.
tags:
- voiceAgent > variables
parameters:
- name: project_id
in: path
description: The unique identifier of the project
required: true
schema:
type: string
- name: Authorization
in: header
description: |
Use `Authorization: Token <API_KEY>`
Example: `Authorization: Token 12345abcdef`
required: true
schema:
type: string
responses:
'200':
description: Agent variable created successfully
content:
application/json:
schema:
$ref: '#/components/schemas/AgentVariableV1'
'400':
description: Invalid Request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
requestBody:
description: Agent variable details
content:
application/json:
schema:
$ref: '#/components/schemas/CreateAgentVariableV1Request'
get:
operationId: list
summary: List Agent Variables
description: Returns all template variables for the specified project
tags:
- voiceAgent > variables
parameters:
- name: project_id
in: path
description: The unique identifier of the project
required: true
schema:
type: string
- name: Authorization
in: header
description: |
Use `Authorization: Token <API_KEY>`
Example: `Authorization: Token 12345abcdef`
required: true
schema:
type: string
responses:
'200':
description: A list of agent variables
content:
application/json:
schema:
$ref: '#/components/schemas/ListAgentVariablesV1Response'
'400':
description: Invalid Request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/v1/projects/{project_id}/agent-variables/{variable_id}:
get:
operationId: get
summary: Get an Agent Variable
description: Returns the specified template variable
tags:
- voiceAgent > variables
parameters:
- name: project_id
in: path
description: The unique identifier of the project
required: true
schema:
type: string
- name: variable_id
in: path
description: The unique identifier of the agent variable
required: true
schema:
type: string
- name: Authorization
in: header
description: |
Use `Authorization: Token <API_KEY>`
Example: `Authorization: Token 12345abcdef`
required: true
schema:
type: string
responses:
'200':
description: An agent variable
content:
application/json:
schema:
$ref: '#/components/schemas/AgentVariableV1'
'400':
description: Invalid Request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
patch:
operationId: update
summary: Update an Agent Variable
description: Updates the value of an existing template variable
tags:
- voiceAgent > variables
parameters:
- name: project_id
in: path
description: The unique identifier of the project
required: true
schema:
type: string
- name: variable_id
in: path
description: The unique identifier of the agent variable
required: true
schema:
type: string
- name: Authorization
in: header
description: |
Use `Authorization: Token <API_KEY>`
Example: `Authorization: Token 12345abcdef`
required: true
schema:
type: string
responses:
'200':
description: Agent variable updated
content:
application/json:
schema:
$ref: '#/components/schemas/AgentVariableV1'
'400':
description: Invalid Request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
requestBody:
description: Updated value for the agent variable
content:
application/json:
schema:
$ref: '#/components/schemas/UpdateAgentVariableV1Request'
delete:
operationId: delete
summary: Delete an Agent Variable
description: Deletes the specified template variable
tags:
- voiceAgent > variables
parameters:
- name: project_id
in: path
description: The unique identifier of the project
required: true
schema:
type: string
- name: variable_id
in: path
description: The unique identifier of the agent variable
required: true
schema:
type: string
- name: Authorization
in: header
description: |
Use `Authorization: Token <API_KEY>`
Example: `Authorization: Token 12345abcdef`
required: true
schema:
type: string
responses:
'200':
description: Agent variable deleted
content:
application/json:
schema:
$ref: '#/components/schemas/DeleteAgentVariableV1Response'
'400':
description: Invalid Request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/v1/listen:
post:
operationId: transcribe
summary: Transcribe and analyze pre-recorded audio and video
description: Transcribe audio and video using Deepgram's speech-to-text REST API
tags:
- listen > v1 > media
parameters:
- name: callback
in: query
description: URL to which we'll make the callback request
required: false
schema:
type: string
- name: callback_method
in: query
description: HTTP method by which the callback request will be made
required: false
schema:
$ref: '#/components/schemas/V1ListenPostParametersCallbackMethod'
default: POST
- name: extra
in: query
description: Arbitrary key-value pairs that are attached to the API response for usage in downstream processing
required: false
schema:
$ref: '#/components/schemas/V1ListenPostParametersExtra'
- name: sentiment
in: query
description: Recognizes the sentiment throughout a transcript or text
required: false
schema:
type: boolean
default: false
- name: summarize
in: query
description: Summarize content. For Listen API, supports string version option. For Read API, accepts boolean only.
required: false
schema:
$ref: '#/components/schemas/V1ListenPostParametersSummarize'
- name: tag
in: query
description: Label your requests for the purpose of identification during usage reporting
required: false
schema:
$ref: '#/components/schemas/V1ListenPostParametersTag'
- name: topics
in: query
description: Detect topics throughout a transcript or text
required: false
schema:
type: boolean
default: false
- name: custom_topic
in: query
description: Custom topics you want the model to detect within your input audio or text if present Submit up to `100`.
required: false
schema:
$ref: '#/components/schemas/V1ListenPostParametersCustomTopic'
- name: custom_topic_mode
in: query
description: >-
Sets how the model will interpret strings submitted to the `custom_topic` param. When `strict`, the model
will only return topics submitted using the `custom_topic` param. When `extended`, the model will return its
own detected topics in addition to those submitted using the `custom_topic` param
required: false
schema:
$ref: '#/components/schemas/V1ListenPostParametersCustomTopicMode'
default: extended
- name: intents
in: query
description: Recognizes speaker intent throughout a transcript or text
required: false
schema:
type: boolean
default: false
- name: custom_intent
in: query
description: Custom intents you want the model to detect within your input audio if present
required: false
schema:
$ref: '#/components/schemas/V1ListenPostParametersCustomIntent'
- name: custom_intent_mode
in: query
description: >-
Sets how the model will interpret intents submitted to the `custom_intent` param. When `strict`, the model
will only return intents submitted using the `custom_intent` param. When `extended`, the model will return
its own detected intents in the `custom_intent` param.
required: false
schema:
$ref: '#/components/schemas/V1ListenPostParametersCustomIntentMode'
default: extended
- name: detect_entities
in: query
description: Identifies and extracts key entities from content in submitted audio
required: false
schema:
type: boolean
default: false
- name: detect_language
in: query
description: Identifies the dominant language spoken in submitted audio
required: false
schema:
$ref: '#/components/schemas/V1ListenPostParametersDetectLanguage'
- name: diarize
in: query
description: >-
Deprecated: use `diarize_model` instead. Recognize speaker changes. Each word in the transcript will be
assigned a speaker number starting at 0.
required: false
schema:
type: boolean
default: false
- name: diarize_model
in: query
description: >-
Select and enable a specific diarization model version. Specifying this parameter enables diarization and
selects the model — you do not need to also set the deprecated `diarize=true` parameter. For batch,
supported values are `latest` (currently v2), `v1`, and `v2`. For streaming, supported values are `latest`
(currently v1) and `v1`; `v2` returns a validation error on streaming requests.
required: false
schema:
$ref: '#/components/schemas/V1ListenPostParametersDiarizeModel'
- name: dictation
in: query
description: Dictation mode for controlling formatting with dictated speech
required: false
schema:
type: boolean
default: false
- name: encoding
in: query
description: Specify the expected encoding of your submitted audio
required: false
schema:
$ref: '#/components/schemas/V1ListenPostParametersEncoding'
- name: filler_words
in: query
description: Filler Words can help transcribe interruptions in your audio, like "uh" and "um"
required: false
schema:
type: boolean
default: false
- name: keyterm
in: query
description: Key term prompting can boost or suppress specialized terminology and brands. Only compatible with Nova-3
required: false
schema:
type: array
items:
type: string
- name: keywords
in: query
description: Keywords can boost or suppress specialized terminology and brands
required: false
schema:
$ref: '#/components/schemas/V1ListenPostParametersKeywords'
- name: language
in: query
description: >-
The [BCP-47 language tag](https://tools.ietf.org/html/bcp47) that hints at the primary spoken language.
Depending on the Model and API endpoint you choose only certain languages are available
required: false
schema:
type: string
default: en
- name: measurements
in: query
description: Spoken measurements will be converted to their corresponding abbreviations
required: false
schema:
type: boolean
default: false
- name: model
in: query
description: AI model used to process submitted audio
required: false
schema:
$ref: '#/components/schemas/V1ListenPostParametersModel'
default: base-general
- name: multichannel
in: query
description: Transcribe each audio channel independently
required: false
schema:
type: boolean
default: false
- name: numerals
in: query
description: Numerals converts numbers from written format to numerical format
required: false
schema:
type: boolean
default: false
- name: paragraphs
in: query
description: Splits audio into paragraphs to improve transcript readability
required: false
schema:
type: boolean
default: false
- name: profanity_filter
in: query
description: >-
Profanity Filter looks for recognized profanity and converts it to the nearest recognized non-profane word
or removes it from the transcript completely
required: false
schema:
type: boolean
default: false
- name: punctuate
in: query
description: Add punctuation and capitalization to the transcript
required: false
schema:
type: boolean
default: false
- name: redact
in: query
description: Redaction removes sensitive information from your transcripts
required: false
schema:
$ref: '#/components/schemas/V1ListenPostParametersRedact'
default: false
- name: replace
in: query
description: Search for terms or phrases in submitted audio and replaces them
required: false
schema:
$ref: '#/components/schemas/V1ListenPostParametersReplace'
- name: search
in: query
description: Search for terms or phrases in submitted audio
required: false
schema:
$ref: '#/components/schemas/V1ListenPostParametersSearch'
- name: smart_format
in: query
description: >-
Apply formatting to transcript output. When set to true, additional formatting will be applied to
transcripts to improve readability
required: false
schema:
type: boolean
default: false
- name: utterances
in: query
description: Segments speech into meaningful semantic units
required: false
schema:
type: boolean
default: false
- name: utt_split
in: query
description: Seconds to wait before detecting a pause between words in submitted audio
required: false
schema:
type: number
format: double
default: 0.8
- name: version
in: query
description: Version of an AI model to use
required: false
schema:
$ref: '#/components/schemas/V1ListenPostParametersVersion'
default: latest
- name: mip_opt_out
in: query
description: >-
Opts out requests from the Deepgram Model Improvement Program. Refer to our Docs for pricing impacts before
setting this to true. https://dpgr.am/deepgram-mip
required: false
schema:
type: boolean
default: false
- name: Authorization
in: header
description: |
Use `Authorization: Token <API_KEY>`
Example: `Authorization: Token 12345abcdef`
required: true
schema:
type: string
responses:
'200':
description: Returns either transcription results, or a request_id when using a callback.
content:
application/json:
schema:
$ref: '#/components/schemas/listen_v1_media_transcribe_Response_200'
'400':
description: Invalid Request
content:
application/json:
schema:
$ref: '#/components/schemas/ListenV1Response'
requestBody:
description: Transcribe an audio or video file
content:
application/json:
schema:
$ref: '#/components/schemas/ListenV1RequestUrl'
/v1/speak:
post:
operationId: generate
summary: Text to Speech transformation
description: Convert text into natural-sounding speech using Deepgram's TTS REST API
tags:
- speak > v1 > audio
parameters:
- name: callback
in: query
description: URL to which we'll make the callback request
required: false
schema:
type: string
- name: callback_method
in: query
description: HTTP method by which the callback request will be made
required: false
schema:
$ref: '#/components/schemas/V1SpeakPostParametersCallbackMethod'
default: POST
- name: mip_opt_out
in: query
description: >-
Opts out requests from the Deepgram Model Improvement Program. Refer to our Docs for pricing impacts before
setting this to true. https://dpgr.am/deepgram-mip
required: false
schema:
type: boolean
default: false
- name: tag
in: query
description: Label your requests for the purpose of identification during usage reporting
required: false
schema:
$ref: '#/components/schemas/V1SpeakPostParametersTag'
- name: bit_rate
in: query
description: >-
The bitrate of the audio in bits per second. Choose from predefined ranges or specific values based on the
encoding type.
required: false
schema:
$ref: '#/components/schemas/V1SpeakPostParametersBitRate'
default: 48000
- name: container
in: query
description: >-
Container specifies the file format wrapper for the output audio. The available options depend on the
encoding type.
required: false
schema:
$ref: '#/components/schemas/V1SpeakPostParametersContainer'
default: wav
- name: encoding
in: query
description: Encoding allows you to specify the expected encoding of your audio output
required: false
schema:
$ref: '#/components/schemas/V1SpeakPostParametersEncoding'
default: mp3
- name: model
in: query
description: AI model used to process submitted text
required: false
schema:
$ref: '#/components/schemas/V1SpeakPostParametersModel'
default: aura-asteria-en
- name: sample_rate
in: query
description: >-
Sample Rate specifies the sample rate for the output audio. Based on the encoding, different sample rates
are supported. For some encodings, the sample rate is not configurable
required: false
schema:
$ref: '#/components/schemas/V1SpeakPostParametersSampleRate'
default: 24000
- name: speed
in: query
description: >-
Speaking rate multiplier that adjusts the pace of generated speech while preserving natural prosody and
voice quality. Not yet supported in all languages.
required: false
schema:
type: number
format: double
default: 1
- name: Authorization
in: header
description: |
Use `Authorization: Token <API_KEY>`
Example: `Authorization: Token 12345abcdef`
required: true
schema:
type: string
responses:
'200':
description: Successful text-to-speech transformation
content:
application/json:
schema:
$ref: '#/components/schemas/speak_v1_audio_generate_Response_200'
'400':
description: Invalid Request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
requestBody:
description: Transform text to speech
content:
application/json:
schema:
$ref: '#/components/schemas/SpeakV1Request'
/v1/read:
post:
operationId: analyze
summary: Analyze text content
description: Analyze text content using Deepgrams text analysis API
tags:
- read > v1 > text
parameters:
- name: callback
in: query
description: URL to which we'll make the callback request
required: false
schema:
type: string
- name: callback_method
in: query
description: HTTP method by which the callback request will be made
required: false
schema:
$ref: '#/components/schemas/V1ReadPostParametersCallbackMethod'
default: POST
- name: sentiment
in: query
description: Recognizes the sentiment throughout a transcript or text
required: false
schema:
type: boolean
default: false
- name: summarize
in: query
description: Summarize content. For Listen API, supports string version option. For Read API, accepts boolean only.
required: false
schema:
$ref: '#/components/schemas/V1ReadPostParametersSummarize'
- name: tag
in: query
description: Label your requests for the purpose of identification during usage reporting
required: false
schema:
$ref: '#/components/schemas/V1ReadPostParametersTag'
- name: topics
in: query
description: Detect topics throughout a transcript or text
required: false
schema:
type: boolean
default: false
- name: custom_topic
in: query
description: Custom topics you want the model to detect within your input audio or text if present Submit up to `100`.
required: false
schema:
$ref: '#/components/schemas/V1ReadPostParametersCustomTopic'
- name: custom_topic_mode
in: query
description: >-
Sets how the model will interpret strings submitted to the `custom_topic` param. When `strict`, the model
will only return topics submitted using the `custom_topic` param. When `extended`, the model will return its
own detected topics in addition to those submitted using the `custom_topic` param
required: false
schema:
$ref: '#/components/schemas/V1ReadPostParametersCustomTopicMode'
default: extended
- name: intents
in: query
description: Recognizes speaker intent throughout a transcript or text
required: false
schema:
type: boolean
default: false
- name: custom_intent
in: query
description: Custom intents you want the model to detect within your input audio if present
required: false
schema:
$ref: '#/components/schemas/V1ReadPostParametersCustomIntent'
- name: custom_intent_mode
in: query
description: >-
Sets how the model will interpret intents submitted to the `custom_intent` param. When `strict`, the model
will only return intents submitted using the `custom_intent` param. When `extended`, the model will return
its own detected intents in the `custom_intent` param.
required: false
schema:
$ref: '#/components/schemas/V1ReadPostParametersCustomIntentMode'
default: extended
- name: language
in: query
description: >-
The [BCP-47 language tag](https://tools.ietf.org/html/bcp47) that hints at the primary spoken language.
Depending on the Model and API endpoint you choose only certain languages are available
required: false
schema:
type: string
default: en
- name: Authorization
in: header
description: |
Use `Authorization: Token <API_KEY>`
Example: `Authorization: Token 12345abcdef`
required: true
schema:
type: string
responses:
'200':
description: Successful text analysis
content:
application/json:
schema:
$ref: '#/components/schemas/ReadV1Response'
'400':
description: Invalid Request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
requestBody:
description: Analyze a text file
content:
application/json:
schema:
$ref: '#/components/schemas/ReadV1Request'
/v1/projects:
get:
operationId: list
summary: List Projects
description: Retrieves basic information about the projects associated with the API key
tags:
- manage > v1 > projects
parameters:
- name: Authorization
in: header
description: |
Use `Authorization: Token <API_KEY>`
Example: `Authorization: Token 12345abcdef`
required: true
schema:
type: string
responses:
'200':
description: A list of projects
content: