-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathopenapi.yml
3790 lines (3790 loc) · 120 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: Deepgram API Specification
version: 1.0.0
description: |
Deepgram's voice AI platform provides APIs for speech-to-text, text-to-speech, and language understanding. From medical transcription to autonomous agents, Deepgram is the go-to choice for developers of voice AI experiences.
The Deepgram API allows you to interact with Deepgram programmatically.
You can use our API to: - Transcribe speech to text. - Transform text to speech. - Analyze text. - Administer your Deepgram account.
termsOfService: https://deepgram.com/terms/
contact:
email: [email protected]
url: https://community.deepgram.com
name: Deepgram Developer Relations
license:
name: Privacy Notice
url: https://deepgram.com/privacy/
servers:
- url: https://api.deepgram.com
description: Deepgram Production API
security:
- ApiKeyAuth: []
tags:
- name: Speech to Text
description: Power your apps with world-class speech recognition
- name: Audio Intelligence
description: Analyze audio sources
- name: Text Intelligence
description: Analyze the content of text sources
- name: Text to Speech
description: Transform text to speech
- name: Management API
description: Manage your projects
externalDocs:
description: Learn more about using Deepgram on our docs.
url: http://developers.deepgram.com
paths:
/v1/listen:
description: Use Deepgram's speech-to-text API to transcribe and analyze pre-recorded audio
post:
summary: Transcribe and analyze pre-recorded audio
tags:
- Speech to Text
security:
- ApiKeyAuth: []
description: Transcribe audio using Deepgram's speech-to-text API
operationId: listen
requestBody:
description: Transcribe an audio file
content:
application/json:
schema:
$ref: '#/components/schemas/ListenRequestUrl'
audio/*:
schema:
$ref: '#/components/schemas/ListenRequestFile'
required: true
parameters:
- $ref: '#/components/parameters/callback'
- $ref: '#/components/parameters/callback_method'
- $ref: '#/components/parameters/custom_topic'
- $ref: '#/components/parameters/custom_topic_mode'
- $ref: '#/components/parameters/custom_intent'
- $ref: '#/components/parameters/custom_intent_mode'
- $ref: '#/components/parameters/detect_entities'
- $ref: '#/components/parameters/detect_language'
- $ref: '#/components/parameters/diarize_version'
- $ref: '#/components/parameters/diarize'
- $ref: '#/components/parameters/dictation'
- $ref: '#/components/parameters/encoding'
- $ref: '#/components/parameters/extra'
- $ref: '#/components/parameters/filler_words'
- $ref: '#/components/parameters/intents'
- $ref: '#/components/parameters/keyterm'
- $ref: '#/components/parameters/keywords'
- $ref: '#/components/parameters/language'
- $ref: '#/components/parameters/measurements'
- $ref: '#/components/parameters/model'
- $ref: '#/components/parameters/multichannel'
- $ref: '#/components/parameters/numerals'
- $ref: '#/components/parameters/paragraphs'
- $ref: '#/components/parameters/profanity_filter'
- $ref: '#/components/parameters/punctuate'
- $ref: '#/components/parameters/redact'
- $ref: '#/components/parameters/replace'
- $ref: '#/components/parameters/search'
- $ref: '#/components/parameters/sentiment'
- $ref: '#/components/parameters/smart_format'
- $ref: '#/components/parameters/summarize'
- $ref: '#/components/parameters/tag'
- $ref: '#/components/parameters/topics'
- $ref: '#/components/parameters/utterances'
- $ref: '#/components/parameters/utt_split'
- $ref: '#/components/parameters/version'
responses:
'200':
description: Successful transcription
content:
application/json:
schema:
$ref: '#/components/schemas/response'
'400':
$ref: '#/components/responses/bad_request'
'401':
$ref: '#/components/responses/unauthorized'
'402':
$ref: '#/components/responses/payment_required'
'403':
$ref: '#/components/responses/insufficient_permissions'
callbacks:
transcriptionCallback:
'{$request.query.callback}':
post:
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/response'
responses:
'200':
description: We expect a 200 to determine whether the callback was successfully received
/v1/read:
description: Use Deepgram's speech-to-text API to analyze the content of text sources
post:
summary: Analyze text content
tags:
- Text Intelligence
security:
- ApiKeyAuth: []
operationId: TextRead
description: Analyze text content using Deepgram's text analysis API
requestBody:
description: Analyze a text file
content:
application/json:
schema:
$ref: '#/components/schemas/text_request'
parameters:
- $ref: '#/components/parameters/callback'
- $ref: '#/components/parameters/callback_method'
- $ref: '#/components/parameters/custom_topic'
- $ref: '#/components/parameters/custom_topic_mode'
- $ref: '#/components/parameters/intents'
- $ref: '#/components/parameters/language'
- $ref: '#/components/parameters/sentiment'
- $ref: '#/components/parameters/summarize'
- $ref: '#/components/parameters/topics'
responses:
'200':
description: Successful text analysis
content:
application/json:
schema:
$ref: '#/components/schemas/text_response'
'400':
$ref: '#/components/responses/bad_request'
'401':
$ref: '#/components/responses/unauthorized'
callbacks:
transcriptionCallback:
'{$request.query.callback}':
post:
description: Callback endpoint for text analysis results
requestBody:
description: The text analysis results
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/text_response'
responses:
'200':
description: We expect a 200 to determine whether the callback was successfully received
/v1/speak:
description: Use Deepgram's Aura text-to-speech API to transform text to speech
post:
summary: Text to Speech transformation
tags:
- Text to Speech
security:
- ApiKeyAuth: []
description: Convert text into natural-sounding speech using Deepgram's TTS API
operationId: speak
requestBody:
description: Transform text to speech
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/speak_request'
parameters:
- $ref: '#/components/parameters/bit_rate'
- $ref: '#/components/parameters/callback'
- $ref: '#/components/parameters/container'
- $ref: '#/components/parameters/speak_encoding'
- $ref: '#/components/parameters/speak_model'
- $ref: '#/components/parameters/speak_sample_rate'
responses:
'200':
description: Successful text to speech
content:
audio/mpeg:
schema:
type: string
format: binary
audio/wav:
schema:
type: string
format: binary
audio/l16;rate=24000:
schema:
type: string
format: binary
audio/ogg;codecs=opus:
schema:
type: string
format: binary
audio/flac:
schema:
type: string
format: binary
audio/acc:
schema:
type: string
format: binary
audio/mulaw;rate=8000:
schema:
type: string
format: binary
audio/alaw;rate=8000:
schema:
type: string
format: binary
'400':
$ref: '#/components/responses/bad_request'
'403':
$ref: '#/components/responses/insufficient_permissions'
'413':
$ref: '#/components/responses/payload_too_large'
'415':
$ref: '#/components/responses/unsupported_media_type'
callbacks:
transcriptionCallback:
'{$request.query.callback}':
post:
description: Callback endpoint for text-to-speech results
requestBody:
description: The text-to-speech processing results
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/speak_response'
responses:
'200':
description: We expect a 200 to determine whether the callback was successfully received
/v1/projects:
description: Manage your projects
get:
summary: List Projects
tags:
- Management API
security:
- ApiKeyAuth: []
operationId: listProjects
description: Retrieves basic information about the projects associated with the API key
responses:
'200':
description: A list of projects
content:
application/json:
schema:
type: object
properties:
projects:
type: array
items:
type: object
properties:
project_id:
type: string
description: The unique identifier of the project
name:
type: string
description: The name of the project
'403':
$ref: '#/components/responses/authentication_failed'
/v1/projects/{project_id}:
description: Manage individual project details and settings
parameters:
- $ref: '#/components/parameters/project_id'
get:
summary: Get a Project
tags:
- Management API
security:
- ApiKeyAuth: []
operationId: getProject
description: Retrieves information about the specified project
parameters:
- $ref: '#/components/parameters/limit'
- $ref: '#/components/parameters/start'
- $ref: '#/components/parameters/end'
- $ref: '#/components/parameters/page'
responses:
'200':
description: A project
content:
application/json:
schema:
type: object
properties:
project_id:
type: string
description: The unique identifier of the project
name:
type: string
description: The name of the project
'400':
$ref: '#/components/responses/projects_bad_request'
'403':
$ref: '#/components/responses/authentication_failed'
'404':
$ref: '#/components/responses/project_not_found'
patch:
summary: Update a Project
tags:
- Management API
security:
- ApiKeyAuth: []
operationId: updateProject
description: Updates the name or other properties of an existing project
parameters:
- $ref: '#/components/parameters/project_id'
requestBody:
description: The name of the project
content:
application/json:
schema:
$ref: '#/components/schemas/update_projects'
responses:
'200':
description: A project
content:
application/json:
schema:
type: object
properties:
message:
type: string
description: confirmation message
example:
message: Successfully updated project info.
'400':
$ref: '#/components/responses/projects_bad_request'
'403':
$ref: '#/components/responses/authentication_failed'
'404':
$ref: '#/components/responses/project_not_found'
delete:
summary: Delete a Project
tags:
- Management API
security:
- ApiKeyAuth: []
operationId: deleteProject
description: Deletes the specified project
parameters:
- $ref: '#/components/parameters/project_id'
responses:
'200':
description: A project
content:
application/json:
schema:
type: object
properties:
message:
type: string
description: confirmation message
example:
message: Successfully deleted a project.
'400':
$ref: '#/components/responses/projects_bad_request'
'403':
$ref: '#/components/responses/authentication_failed'
'404':
$ref: '#/components/responses/project_not_found'
/v1/projects/{project_id}/balances:
description: Manage your project balances
get:
summary: Get Project Balances
tags:
- Management API
security:
- ApiKeyAuth: []
operationId: getProjectBalances
description: Generates a list of outstanding balances for the specified project
parameters:
- $ref: '#/components/parameters/project_id'
responses:
'200':
description: A list of outstanding balances
content:
application/json:
schema:
type: object
properties:
balances:
type: array
items:
type: object
properties:
balance_id:
type: string
description: The unique identifier of the balance
amount:
type: integer
default: 0
description: The amount of the balance
units:
type: string
description: The units of the balance, such as "USD"
purchase_order_id:
type: string
description: Description or reference of the purchase
example:
balances:
- balance_id: b123456-7890-1234-5678-901234
amount: 250
units: usd
purchase_order_id: b123456-7890-1234-5678-901234
'400':
$ref: '#/components/responses/projects_bad_request'
'403':
$ref: '#/components/responses/authentication_failed'
'404':
$ref: '#/components/responses/project_not_found'
/v1/projects/{project_id}/balances/{balance_id}:
description: Manage your project balances
get:
summary: Get a Project Balance
tags:
- Management API
security:
- ApiKeyAuth: []
operationId: getProjectBalance
description: Retrieves details about the specified balance
parameters:
- $ref: '#/components/parameters/project_id'
- $ref: '#/components/parameters/balance_id'
responses:
'200':
description: A specific balance
content:
application/json:
schema:
type: object
properties:
balance_id:
type: string
description: The unique identifier of the balance
amount:
type: integer
default: 0
description: The amount of the balance
units:
type: string
description: The units of the balance, such as "USD"
purchase_order_id:
type: string
description: Description or reference of the purchase
example:
balance_id: b123456-7890-1234-5678-901234
amount: 250
units: usd
purchase_order_id: b123456-7890-1234-5678-901234
'400':
$ref: '#/components/responses/projects_bad_request'
'403':
$ref: '#/components/responses/authentication_failed'
'404':
$ref: '#/components/responses/project_not_found'
/v1/projects/{project_id}/models:
description: Manage your project models
get:
summary: Get All Project Models
tags:
- Management API
security:
- ApiKeyAuth: []
operationId: listProjectModels
description: Returns metadata on all the latest models that a specific project has access to, including non-public models
parameters:
- $ref: '#/components/parameters/project_id'
- $ref: '#/components/parameters/include_outdated'
responses:
'200':
description: A list of models
content:
application/json:
schema:
type: object
properties:
stt:
type: array
items:
$ref: '#/components/schemas/stt_models'
tts:
type: array
items:
$ref: '#/components/schemas/tts_models'
'400':
$ref: '#/components/responses/projects_bad_request'
/v1/projects/{project_id}/models/{model_id}:
description: Manage your project models
parameters:
- $ref: '#/components/parameters/project_id'
- $ref: '#/components/parameters/model_id'
get:
summary: Get a Project Model
tags:
- Management API
security:
- ApiKeyAuth: []
operationId: getProjectModel
description: Returns metadata for a specific model
responses:
'200':
description: A specific model
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/stt_models'
- $ref: '#/components/schemas/tts_models'
'400':
$ref: '#/components/responses/projects_bad_request'
/v1/projects/{project_id}/keys:
description: Manage your project keys
parameters:
- $ref: '#/components/parameters/project_id'
- $ref: '#/components/parameters/keys_status'
get:
summary: List Project Keys
tags:
- Management API
security:
- ApiKeyAuth: []
operationId: listProjectKeys
description: Retrieves all API keys associated with the specified project
parameters:
- $ref: '#/components/parameters/project_id'
responses:
'200':
description: A list of API keys
content:
application/json:
schema:
type: object
properties:
api_keys:
type: array
items:
$ref: '#/components/schemas/keys'
'403':
$ref: '#/components/responses/authentication_failed'
'404':
$ref: '#/components/responses/project_not_found'
post:
summary: Create a Project Key
tags:
- Management API
security:
- ApiKeyAuth: []
operationId: createProjectKey
description: Creates a new API key with specified settings for the project
parameters:
- $ref: '#/components/parameters/project_id'
requestBody:
description: The API key settings
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/keys'
responses:
'200':
description: API key created successfully
content:
application/json:
schema:
$ref: '#/components/schemas/key_created'
'403':
$ref: '#/components/responses/authentication_failed'
'404':
$ref: '#/components/responses/project_not_found'
/v1/projects/{project_id}/keys/{key_id}:
description: Manage your project keys
get:
summary: Get a Project Key
tags:
- Management API
security:
- ApiKeyAuth: []
operationId: getProjectKey
description: Retrieves information about a specified API key
parameters:
- $ref: '#/components/parameters/project_id'
- $ref: '#/components/parameters/key_id'
responses:
'200':
description: A specific API key
content:
application/json:
schema:
type: object
properties:
item:
$ref: '#/components/schemas/key'
'403':
$ref: '#/components/responses/authentication_failed'
'404':
$ref: '#/components/responses/project_not_found'
delete:
tags:
- Management API
security:
- ApiKeyAuth: []
operationId: deleteProjectKey
summary: Delete a Project Key
description: Deletes an API key for a specific project
parameters:
- $ref: '#/components/parameters/project_id'
- $ref: '#/components/parameters/key_id'
responses:
'200':
description: API key deleted
content:
application/json:
schema:
type: object
properties:
message:
type: string
description: A message indicating that the API key was deleted
example:
message: Successfully deleted the API key!
'403':
$ref: '#/components/responses/authentication_failed'
'404':
$ref: '#/components/responses/project_not_found'
/v1/projects/{project_id}/members:
description: Manage your project members
get:
summary: List Project Members
tags:
- Management API
security:
- ApiKeyAuth: []
operationId: listProjectMembers
description: Retrieves a list of account objects for a specific project
parameters:
- $ref: '#/components/parameters/project_id'
responses:
'200':
description: A list of account objects
content:
application/json:
schema:
type: object
properties:
members:
type: array
items:
type: object
properties:
member_id:
type: string
description: The unique identifier of the member
scopes:
type: array
items:
type: string
description: The API scopes of the member
email:
type: string
first_name:
type: string
last_name:
type: string
'403':
$ref: '#/components/responses/authentication_failed'
'404':
$ref: '#/components/responses/project_not_found'
/v1/projects/{project_id}/members/{member_id}:
description: Manage your project members
delete:
summary: Delete a Project Member
tags:
- Management API
security:
- ApiKeyAuth: []
operationId: deleteProjectMember
description: Removes a member from the project using their unique member ID
parameters:
- $ref: '#/components/parameters/project_id'
- $ref: '#/components/parameters/member_id'
responses:
'200':
description: Delete the specific member from the project
content:
application/json:
schema:
type: object
properties:
message:
type: string
description: confirmation message
example:
message: Successfully removed account from project.
'403':
$ref: '#/components/responses/authentication_failed'
'404':
$ref: '#/components/responses/project_not_found'
/v1/projects/{project_id}/members/{member_id}/scopes:
description: Manage your project members
get:
summary: List Project Member Scopes
tags:
- Management API
security:
- ApiKeyAuth: []
operationId: listProjectMemberScopes
description: Retrieves a list of scopes for a specific member
parameters:
- $ref: '#/components/parameters/project_id'
- $ref: '#/components/parameters/member_id'
responses:
'200':
description: A list of scopes for a specific member
content:
application/json:
schema:
type: object
properties:
scopes:
type: array
items:
type: string
description: The API scopes of the member
'403':
$ref: '#/components/responses/authentication_failed'
'404':
$ref: '#/components/responses/project_not_found'
put:
summary: Update Project Member Scopes
tags:
- Management API
security:
- ApiKeyAuth: []
operationId: updateProjectMemberScopes
description: Updates the scopes for a specific member
parameters:
- $ref: '#/components/parameters/project_id'
- $ref: '#/components/parameters/member_id'
requestBody:
description: A scope to update
content:
application/json:
schema:
$ref: '#/components/schemas/update_member_scope'
responses:
'200':
description: Updated the scopes for a specific member
content:
application/json:
schema:
type: object
properties:
message:
type: string
description: confirmation message
example:
message: Successfully updated the account scopes.
'403':
$ref: '#/components/responses/authentication_failed'
'404':
$ref: '#/components/responses/project_not_found'
/v1/projects/{project_id}/invites:
description: Manage your project invites
get:
summary: List Project Invites
tags:
- Management API
security:
- ApiKeyAuth: []
operationId: listProjectInvites
description: Generates a list of invites for a specific project
parameters:
- $ref: '#/components/parameters/project_id'
responses:
'200':
description: A list of invites for a specific project
content:
application/json:
schema:
type: object
properties:
invites:
type: array
items:
type: object
properties:
email:
type: string
description: The email address of the invitee
scope:
type: string
description: The scope of the invitee
post:
summary: Create a Project Invite
tags:
- Management API
security:
- ApiKeyAuth: []
operationId: createProjectInvite
description: Generates an invite for a specific project
parameters:
- $ref: '#/components/parameters/project_id'
requestBody:
description: email to invite to the project
content:
application/json:
schema:
$ref: '#/components/schemas/create_project_invite'
responses:
'200':
description: The invite was successfully generated
content:
application/json:
schema:
type: object
properties:
message:
type: string
description: confirmation message
'400':
$ref: '#/components/responses/invalid_request'
'401':
$ref: '#/components/responses/project_unauthorized'
'403':
$ref: '#/components/responses/authentication_failed'
'404':
$ref: '#/components/responses/project_not_found'
/v1/projects/{project_id}/invites/{email}:
description: Manage your project invites
delete:
summary: Delete a Project Invite
tags:
- Management API
security:
- ApiKeyAuth: []
operationId: deleteProjectInvite
description: Deletes an invite for a specific project
parameters:
- $ref: '#/components/parameters/project_id'
- $ref: '#/components/parameters/email'
responses:
'200':
description: The invite was successfully deleted
content:
application/json:
schema:
type: object
properties:
message:
type: string
description: confirmation message
'400':
$ref: '#/components/responses/invalid_request'
'401':
$ref: '#/components/responses/project_unauthorized'
'403':
$ref: '#/components/responses/authentication_failed'
'404':
$ref: '#/components/responses/project_not_found'
/v1/projects/{project_id}/leave:
description: Manage your project accounts
delete:
summary: Leave a Project
tags:
- Management API
security:
- ApiKeyAuth: []
operationId: deleteProjectLeave
description: Removes the authenticated account from the specific project
parameters:
- $ref: '#/components/parameters/project_id'
responses:
'200':
description: Successfully removed account from project
content:
application/json:
schema:
type: object
properties:
message:
type: string
description: confirmation message
'400':
$ref: '#/components/responses/invalid_request'
'401':
$ref: '#/components/responses/project_unauthorized'
'403':
$ref: '#/components/responses/authentication_failed'
'404':
$ref: '#/components/responses/project_not_found'
/v1/projects/{project_id}/requests:
description: Manage your project requests
get:
summary: List Project Requests
tags:
- Management API
security:
- ApiKeyAuth: []
operationId: listProjectRequests
description: Generates a list of requests for a specific project
parameters:
- $ref: '#/components/parameters/project_id'
- $ref: '#/components/parameters/start'
- $ref: '#/components/parameters/end'
- $ref: '#/components/parameters/limit'
- $ref: '#/components/parameters/page'
responses:
'200':
description: A list of requests for a specific project
content:
application/json:
schema:
type: object
properties:
page:
type: integer
description: The page number of the paginated response
limit:
type: integer
description: The number of results per page
requests:
type: array
items:
$ref: '#/components/schemas/request'
'400':
$ref: '#/components/responses/projects_bad_request'
'403':
$ref: '#/components/responses/authentication_failed'
'404':
$ref: '#/components/responses/project_not_found'
/v1/projects/{project_id}/requests/{request_id}:
description: Manage your project requests
get:
summary: Get a Project Request
tags:
- Management API
security:
- ApiKeyAuth: []
operationId: getProjectRequest
description: Retrieves a specific request for a specific project
parameters:
- $ref: '#/components/parameters/project_id'
- $ref: '#/components/parameters/request_id'
responses:
'200':
description: A specific request for a specific project
content:
application/json:
schema:
type: object
properties:
request:
type: object
$ref: '#/components/schemas/request'
/v1/projects/{project_id}/usage:
description: Manage your project usage
get:
summary: Get Project Usage
tags:
- Management API
security:
- ApiKeyAuth: []
operationId: getProjectUsage
description: Retrieves the usage for a specific project
parameters:
- $ref: '#/components/parameters/project_id'
- $ref: '#/components/parameters/start'
- $ref: '#/components/parameters/end'
- $ref: '#/components/parameters/project_filters'
responses:
'200':
$ref: '#/components/responses/usage'