-
Notifications
You must be signed in to change notification settings - Fork 13
/
dmca-2.1.1.yaml
751 lines (751 loc) · 21.4 KB
/
dmca-2.1.1.yaml
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
openapi: 3.0.1
info:
title: DMCA API
description: "This is the documentation for dmca services API. You can create a
free account at dmca.com for use with many of these API calls.You can also use
any existing DMCA account.\n\n[Visit DMCA.com for access to this API ](https://www.dmca.com?api)
"
termsOfService: https://www.dmca.com/TermsOfService
version: 2.1.1
servers:
- url: https://api.dmca.com
tags:
- name: Public API
description: Common API methods for using DMCA services
externalDocs:
description: Find out more
url: https://www.dmca.com/?r=oasapi
- name: DMCA Takedowns Public API
description: CRUD Operations for DMCA Cases
externalDocs:
description: Find out more
url: https://www.dmca.com/takedowns.aspx?r=oasapi
- name: DMCA DIY Cases
description: CRUD Operations for do-it-yourself (DIY cases - not managed or processed)
externalDocs:
description: Find out more
url: https://www.dmca.com/ProtectionPro.aspx#DIYCaseManagement?r=oasapi
- name: DMCA Compliance API
description: CRUD Operations for DMCA Compliance
externalDocs:
description: Find out more
url: https://www.dmca.com/compliant.aspx?r=oasapi
- name: DMCA Badges
description: Management and CRUD Operations for DMCA Badge related services
externalDocs:
description: Find out more
url: https://www.dmca.com/badges.aspx
- name: DMCA.com Affiliate
description: Common API methods for using DMCA services
externalDocs:
description: Find out more
url: https://www.dmca.com/Affiliates/Signup.aspx?r=oasapi
- name: DMCA Site Report
description: Common API methods for using DMCA services
externalDocs:
description: Find out more
url: https://www.dmca.com/?r=oasapi
paths:
/register:
post:
tags:
- Public API
summary: register a new user for dmca.com and this API
description: Registers a new dmca.com user and returns a badge ID. A confirmation
email will be sent to the email provided with login instructions.
operationId: /register/post
requestBody:
description: create a new child object under your account
content:
application/json:
schema:
$ref: '#/components/schemas/newUserObj'
required: true
responses:
200:
description: Success operation
401:
description: Failed operation
security:
- apikeyQuery: []
/login:
post:
tags:
- Public API
summary: login to the DMCA.com API
description: Logs you in with standard email and password credentials, returns
a token for use in API calls. Please make sure you're only doing this in the
!!BODY!! with !!HTTPS only!!. HTTPS is MANDATORY.
operationId: /login/post
requestBody:
description: create a new child object under your account
content:
application/json:
schema:
$ref: '#/components/schemas/loginObj'
required: true
responses:
200:
description: Success operation
401:
description: Failed operation
security:
- apikeyQuery: []
/createCase:
post:
tags:
- DMCA Takedowns Public API
summary: Creates a new takedown case and returns a case ID
description: Creates a Takedown case to be processed by DMCA.com, the user that's
creating the case will get a case creation email notice
operationId: /createCase/post
parameters:
- name: Token
in: header
description: Security token from Login method or from API section of DMCA.com
website
required: true
style: simple
explode: false
schema:
type: string
requestBody:
description: create a new dmca takedown case object under your account
content:
application/json:
schema:
$ref: '#/components/schemas/createCaseObj'
required: true
responses:
200:
description: Success operation - Returns Case ID
429:
description: Failed request - Rate limit exceeded
security:
- apikeyQuery: []
/updateCase:
post:
tags:
- DMCA Takedowns Public API
summary: Updates an existing takedown case and returns a case ID
description: Updates an existing case object. Max 100 executions per day (email
[email protected] to have limit increased) Parameter names are case sensitive
operationId: /updateCase/post
parameters:
- name: Token
in: header
description: Security token from Login method or from API section of DMCA.com
website
required: true
style: simple
explode: false
schema:
type: string
requestBody:
description: create a new dmca takedown case object under your account
content:
application/json:
schema:
$ref: '#/components/schemas/updateCaseObj'
required: true
responses:
200:
description: Success operation - Returns Case ID
security:
- apikeyQuery: []
/listCases:
get:
tags:
- DMCA Takedowns Public API
summary: gets a list of account cases
description: Returns a list of takedown cases associated with the account
operationId: /listCases/get
parameters:
- name: Token
in: header
description: Security token from Login method or from API section of DMCA.com
website
required: true
style: simple
explode: false
schema:
type: string
- name: page
in: query
description: allows for paging through result set, max results is 50 per page.
i.e. page=3
required: false
style: form
explode: true
schema:
type: number
responses:
200:
description: Success operation - Returns list of cases
security:
- apikeyQuery: []
/getCaseById:
get:
tags:
- DMCA Takedowns Public API
- DMCA Compliance API
- DMCA DIY Cases
summary: gets a case by its ID, must be owned by the API users account
description: Returns a single case object
operationId: /getCaseById/get
parameters:
- name: Token
in: header
description: Security token from Login method or from API section of DMCA.com
website
required: true
style: simple
explode: false
schema:
type: string
- name: id
in: query
description: case the ID that's returned by listCases or createCase method
required: true
style: form
explode: true
schema:
type: string
responses:
200:
description: Success operation - Returns the requested case object
404:
description: Failed operation - Case not found
security:
- apikeyQuery: []
/listDIYCases:
get:
tags:
- DMCA DIY Cases
summary: Gets a list of DIY cases on your account
description: Returns a list of takedown cases associated with the account
operationId: /listDIYCases/get
parameters:
- name: Token
in: header
description: Security token from Login method or from API section of DMCA.com
website
required: true
style: simple
explode: false
schema:
type: string
- name: page
in: query
description: allows for paging through result set, max results is 50 per page.
i.e. page=3
required: false
style: form
explode: true
schema:
type: number
responses:
200:
description: Success operation - Returns list of cases
security:
- apikeyQuery: []
/createDIYCase:
post:
tags:
- DMCA DIY Cases
summary: Creates a new DIY takedown case
description: Creates a new DIY Case and returns its ID (A free do it yourself
takedown case). This will not be reviewed, processed or sent anywhere.
operationId: /createDIYCase/post
parameters:
- name: Token
in: header
description: Security token from Login method or from API section of DMCA.com
website
required: true
style: simple
explode: false
schema:
type: string
requestBody:
description: create a new DIY case object under your account
content:
application/json:
schema:
$ref: '#/components/schemas/createDIYCaseObj'
required: true
responses:
200:
description: Success operation - Returns Case ID
security:
- apikeyQuery: []
/createComplianceCase:
post:
tags:
- DMCA Compliance API
summary: Creates a new compliance case for site specified
description: On Accounts with compliance case submission services enabled this
method will add a case to the compliance list on the site owners account.
The site must have this service enabled.
operationId: /createComplianceCase/post
requestBody:
description: create a new compliance case under the site id provided
content:
application/json:
schema:
$ref: '#/components/schemas/complianceCaseObj'
required: true
responses:
200:
description: Success operation - Returns Case ID. Case creation email will
be sent
security:
- apikeyQuery: []
/listComplianceCases:
get:
tags:
- DMCA Compliance API
summary: Gets a list of Compliance cases
description: Returns a list of takedown cases associated with the account
operationId: /listComplianceCases/get
parameters:
- name: Token
in: header
description: Security token from Login method or from API section of DMCA.com
website
required: true
style: simple
explode: false
schema:
type: string
- name: page
in: query
description: allows for paging through result set, max results is 50 per page.
i.e. page=3
required: false
style: form
explode: true
schema:
type: number
responses:
200:
description: Success operation - Returns list of cases
security:
- apikeyQuery: []
/queuePage:
get:
tags:
- DMCA Badges
summary: Queue a page to be scanned
description: Queue a page to scanned
operationId: /queuePage/get
parameters:
- name: id
in: query
description: badge id
required: true
style: form
explode: true
schema:
type: string
- name: refurl
in: query
description: url to be scanned. should include https:// or http://
required: true
style: form
explode: true
schema:
type: string
responses:
200:
description: Success operation
security:
- apikeyQuery: []
/getRegisteredBadges:
get:
tags:
- DMCA Badges
summary: Get DMCA badge embed codes
description: Use this to generate badge codes for a given badge / account
operationId: /getRegisteredBadges/get
parameters:
- name: AccountID
in: query
description: badge or account id
required: true
style: form
explode: true
schema:
type: string
responses:
200:
description: Success operation
security:
- apikeyQuery: []
/registerAffiliate:
post:
tags:
- DMCA.com Affiliate
summary: Registers a child account
description: Creates a new affiliate / child account and returns the new child
account username and pw. Child account will be emailed to confirm
operationId: /registerAffiliate/post
parameters:
- name: Token
in: header
description: Security token from Login method or from API section of DMCA.com
website
required: true
style: simple
explode: false
schema:
type: string
requestBody:
description: create a new child object under your account
content:
application/json:
schema:
$ref: '#/components/schemas/newChildObj'
required: true
responses:
200:
description: Success operation
401:
description: Failed operation
security:
- apikeyQuery: []
/listAffiliates:
get:
tags:
- DMCA.com Affiliate
summary: Returns list of child accounts
description: Returns a list of affiliate under your account
operationId: /listAffiliates/get
parameters:
- name: page
in: query
description: allows for paging through result set, max results is 50 per page.
i.e. page=3
required: false
style: form
explode: true
schema:
type: number
- name: Token
in: header
description: Security token from Login method or from API section of DMCA.com
website
required: true
style: simple
explode: false
schema:
type: string
responses:
200:
description: Success operation - Returns list of affiliates
security:
- apikeyQuery: []
/getAffiliateStats:
get:
tags:
- DMCA.com Affiliate
summary: Returns commission report
description: Returns a breakdown of orders that have come in, what will be paid
or whats owed
operationId: /getAffiliateStats/get
parameters:
- name: Token
in: header
description: Security token from Login method or from API section of DMCA.com
website
required: true
style: simple
explode: false
schema:
type: string
- name: page
in: query
description: allows for paging through result set, max results is 50 per page.
i.e. page=3
required: false
style: form
explode: true
schema:
type: number
responses:
200:
description: Success operation - Returns list of affiliates
security:
- apikeyQuery: []
/resetChildPw:
post:
tags:
- DMCA.com Affiliate
summary: Reset and resend the pw of a child account
description: This operation will reset and resend a new PW to a child account.
It will first verify that the child account belongs to the corresponding security
token
operationId: /resetChildPw/post
parameters:
- name: Token
in: header
description: Security token from Login method or from API section of DMCA.com
website
required: true
style: simple
explode: false
schema:
type: string
requestBody:
description: email address of the child account to have its password reset
content:
application/json:
schema:
$ref: '#/components/schemas/emailObj'
required: true
responses:
200:
description: Success operation
401:
description: Failed operation
security:
- apikeyQuery: []
/enableProtectionPro:
post:
tags:
- DMCA.com Affiliate
summary: Enable Protection Pro on affiliate/child account
description: This operation will enable protection pro on the account specified.
They will receive a welcome email that will direct them into the dmca.com
dashboard.
operationId: /enableProtectionPro/post
parameters:
- name: childAccountId
in: query
description: account id of the child account to be upgraded
required: true
style: form
explode: true
schema:
type: string
- name: Token
in: header
description: Security token from Login method or from API section of DMCA.com
website
required: true
style: simple
explode: false
schema:
type: string
responses:
200:
description: Success operation
401:
description: Failed operation
security:
- apikeyQuery: []
/disableProtectionPro:
post:
tags:
- DMCA.com Affiliate
summary: Disable Protection Pro on affiliate/child account
description: This operation will disable protection pro on the account specified.
operationId: /disableProtectionPro/post
parameters:
- name: childAccountId
in: query
description: account id of the child account to be upgraded
required: true
style: form
explode: true
schema:
type: string
- name: Token
in: header
description: Security token from Login method or from API section of DMCA.com
website
required: true
style: simple
explode: false
schema:
type: string
responses:
200:
description: Success operation
401:
description: Failed operation
security:
- apikeyQuery: []
/getSiteReport/{domain}:
get:
tags:
- DMCA Site Report
summary: Returns a single site report object
description: Returns a single site report object. If the site report (profile)
for the given domain doesn't exist, the base record will be created but will
still need to be claimed, validated etc. to be edited.
operationId: /getSiteReport/{domain}
parameters:
- name: domain
in: path
description: the fully qualified domain name of the site report
required: true
style: simple
explode: false
schema:
type: string
responses:
200:
description: Success operation
components:
schemas:
createCaseObj:
type: object
properties:
subject:
type: string
description:
type: string
copiedFromUrl:
type: string
infringingUrl:
type: string
infringingSiteIp:
type: string
xml:
name: createCaseObj
createDIYCaseObj:
type: object
properties:
subject:
type: string
description:
type: string
copiedFromUrl:
type: string
infringingUrl:
type: string
infringingSiteIp:
type: string
type:
type: string
enum:
- Business - General
- Personal - General
- Toolkit Business Request CAN
- Toolkit Business Request EU
- Toolkit Personal Request CAN
- Toolkit Personal Request EU
- Toolkit Personal Request India
- Toolkit Business Request India
xml:
name: createCaseObj
updateCaseObj:
type: object
properties:
case_id:
type: string
status:
type: string
subject:
type: string
description:
type: string
copiedFromUrl:
type: string
infringingUrl:
type: string
infringingSiteIp:
type: string
priority:
type: string
xml:
name: updateCaseObj
complianceCaseObj:
type: object
properties:
submitterEmail:
type: string
submitterFirstName:
type: string
submitterLastName:
type: string
submitterCompanyName:
type: string
description:
type: string
copiedFromUrl:
type: string
infringingUrl:
type: string
infringingSiteIp:
type: string
siteId:
type: string
description: id of the site the case is being submitted to. (note the site
owner must have this feature enabled)
xml:
name: complianceCaseObj
newChildObj:
type: object
properties:
FirstName:
type: string
LastName:
type: string
ClientEmail:
type: string
description: New clients email
example: [email protected]
CompanyName:
type: string
AffiliateToken:
type: string
description: 10 digit affiliate token
xml:
name: newChildObj
newUserObj:
type: object
properties:
FirstName:
type: string
LastName:
type: string
Email:
type: string
description: email address. (will be emailed to validate)
example: [email protected]
CompanyName:
type: string
mpi:
type: string
description: Main Product Interest
enum:
- Protection Pro
- DMCA Takedowns
- DMCA Compliance
xml:
name: newUserObj
loginObj:
type: object
properties:
email:
type: string
example: [email protected]
password:
type: string
xml:
name: loginObj
emailObj:
type: object
properties:
ClientEmail:
type: string
example: [email protected]
xml:
name: emailObj
securitySchemes:
apikeyQuery:
type: apiKey
name: Token
in: header