-
Notifications
You must be signed in to change notification settings - Fork 415
/
minbox.json
2240 lines (2240 loc) · 103 KB
/
minbox.json
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
{
"endpoints": [
{
"name": "User",
"methods": [
{
"MethodName": "show",
"Synopsis": "Gets information about the authenticated user",
"HTTPMethod": "GET",
"URI": "/user",
"RequiresOAuth": "Y",
"parameters": [
]
},
{
"MethodName": "update",
"Synopsis": "Updates user account information",
"HTTPMethod": "PUT",
"URI": "/user",
"RequiresOAuth": "Y",
"parameters": [
{
"Name": "name",
"Required": "N",
"Default": "",
"Type": "string",
"Description": "The name of the user"
},
{
"Name": "stationery_id",
"Required": "N",
"Default": "",
"Type": "string",
"Description": "The ID of the Stationery to set"
},
{
"Name": "settings",
"Required": "N",
"Default": "",
"Type": "hash",
"Description": "A hash of settings like default background, stationary, etc."
},
{
"Name": "facebook_id",
"Required": "N",
"Default": "",
"Type": "string",
"Description": "The Facebook ID for this user, determined during the Facebook authorization process."
},
{
"Name": "facebook_access_token",
"Required": "N",
"Default": "",
"Type": "string",
"Description": "The access token returned after a successful Facebook authorization. These tend to expire after a couple hours unles exchanged for a long-running token."
},
{
"Name": "facebook_access_token_expiry",
"Required": "N",
"Default": "",
"Type": "integer",
"Description": "The UTC timestamp for when the access token will expire. Only really necessary when a long-running token has been requested, otherwise defaults to a couple hours."
},
{
"Name": "device_token",
"Required": "N",
"Default": "",
"Type": "string",
"Description": "The APN token of the iOS Device being used. Optional, but necessary to enable APNs."
},
{
"Name": "invalidate",
"Required": "N",
"Default": "",
"Type": "string",
"Description": "Any truthy value here will invalidate the user's current oauth token. Intended for testing purposes only."
},
{
"Name": "refresh_unread",
"Required": "N",
"Default": "",
"Type": "string",
"Description": "Any truthy value here will send a Push containing the latest unread Folds, Conversations, and Messages. Intended for testing purposes only."
},
{
"Name": "apns",
"Required": "N",
"Default": "",
"Type": "string",
"Description": "Any truthy value here will send an APN via the development provisioning profile, containing the most recent message the authenticated user has received."
},
{
"Name": "pusher_test",
"Required": "N",
"Default": "",
"Type": "string",
"Description": "Any truthy value here will send a test Pusher message via the pusher_channel of the user."
},
{
"Name": "connection",
"Required": "N",
"Default": "",
"Type": "enumerated",
"EnumeratedList": [
"error",
"warn",
"ok"
],
"Description": "Will send a Pusher message related to email account connectivity for the level specified. Connection status specified here is not saved permanently."
}
]
},
{
"MethodName": "destroy",
"Synopsis": "Completely destroys the authenticated user.",
"HTTPMethod": "DELETE",
"URI": "/user",
"RequiresOAuth": "Y",
"parameters": [
]
}
]
},
{
"name": "EmailAccounts",
"methods": [
{
"MethodName": "index",
"Synopsis": "List the email accounts of the authenticated user",
"HTTPMethod": "GET",
"URI": "/email_accounts",
"RequiresOAuth": "Y",
"parameters": [
]
},
{
"MethodName": "show",
"Synopsis": "Show information about a specific email account",
"HTTPMethod": "GET",
"URI": "/email_accounts/:id",
"RequiresOAuth": "Y",
"parameters": [
{
"Name": "id",
"Required": "Y",
"Default": "",
"Type": "string",
"Description": "The ID or email address"
}
]
},
{
"MethodName": "create",
"Synopsis": "Adds a new email account to the user",
"HTTPMethod": "POST",
"URI": "/email_accounts",
"RequiresOAuth": "Y",
"parameters": [
{
"Name": "email",
"Required": "Y",
"Default": "",
"Type": "string",
"Description": "The email address to add"
}
]
},
{
"MethodName": "update",
"Synopsis": "Updates information about an email account",
"HTTPMethod": "PUT",
"URI": "/email_accounts/:id",
"RequiresOAuth": "Y",
"parameters": [
{
"Name": "id",
"Required": "Y",
"Default": "",
"Type": "string",
"Description": "The ID or email address"
},
{
"Name": "verify",
"Required": "N",
"Default": "",
"Type": "string",
"Description": "The verification code. Will mark this email account as verified if correct."
},
{
"Name": "resend",
"Required": "N",
"Default": "",
"Type": "string",
"Description": "When present, the verification email will be resent for unverified email accounts."
}
]
},
{
"MethodName": "destroy",
"Synopsis": "Removes an email account. For the moment this will only work for unverified, non-primary email accounts",
"HTTPMethod": "DELETE",
"URI": "/email_accounts/:id",
"RequiresOAuth": "Y",
"parameters": [
{
"Name": "id",
"Required": "Y",
"Default": "",
"Type": "string",
"Description": "The ID or email address"
}
]
}
]
},
{
"name": "Contacts",
"methods": [
{
"MethodName": "index",
"Synopsis": "Gets a list of the User's Contacts",
"HTTPMethod": "GET",
"URI": "/contacts",
"RequiresOAuth": "Y",
"parameters": [
{
"Name": "fold_id",
"Required": "N",
"Default": "",
"Type": "string",
"Description": "The ID of a Fold to filter the Contacts by"
},
{
"Name": "stack_id",
"Required": "N",
"Default": "",
"Type": "string",
"Description": "The ID of a Stack to filter the Contacts by"
},
{
"Name": "limit",
"Required": "N",
"Default": "10",
"Type": "integer",
"Description": "The maximum number of results to return, or the number per page when requesting paginated results"
},
{
"Name": "page",
"Required": "N",
"Default": "1",
"Type": "integer",
"Description": "The page number, when requesting paginated results, minimum 1"
}
]
},
{
"MethodName": "show",
"Synopsis": "Gets information about a specific Contact",
"HTTPMethod": "GET",
"URI": "/contacts/:id",
"RequiresOAuth": "Y",
"parameters": [
{
"Name": "id",
"Required": "Y",
"Default": "",
"Type": "string",
"Description": "The ID of the Contact (can be appended to the path of the URL)"
}
]
},
{
"MethodName": "bulk_create",
"Synopsis": "Creates multiple contacts in one go. Returns an array of either contact hashes or {errors: [a hash of errors on each field]}",
"HTTPMethod": "POST",
"URI": "/contacts/bulk",
"RequiresOAuth": "Y",
"parameters": [
{
"Name": "contacts",
"Required": "Y",
"Default": "",
"Type": "array",
"Description": "An array of attribute hashes, one for each contact to be created. Should include at least 'name' and 'email' keys, and may optionally include a 'classification_from_user' parameter that can be 'home' or 'work'."
}
],
"response": {
"parameters": [
{
"Name": "contacts",
"Type": "array",
"Description": "An array of both attribute hashes for the created contacts or error hashes for the contacts that had errors"
}
],
"examples": [
{
"contacts": [
{
"id": "512d0644fd8774c156000042",
"email": "some_email@example.com",
"remote_id": "some_email@example.com",
"name": "Some Name",
"first_name": "Some",
"pinned": false,
"rank": 0.0,
"avatar_urls": {
"largest": "/avatar/api/person/some_email@example.com/largest/image.jpg",
"larger": "/avatar/api/person/some_email@example.com/larger/image.jpg",
"large": "/avatar/api/person/some_email@example.com/large/image.jpg",
"medium": "/avatar/api/person/some_email@example.com/medium/image.jpg",
"small": "/avatar/api/person/some_email@example.com/small/image.jpg",
"smaller": "/avatar/api/person/some_email@example.com/smaller/image.jpg",
"round": "/avatar/api/person/some_email@example.com/round/image.jpg",
"300": "/avatar/api/person/some_email@example.com/300/image.jpg"
},
"is_service": false,
"last_seen_at": null,
"type": "contact"
},
{
"errors": {
"remote_id": ["can't be blank"],
"email": ["does not appear to be valid"]
}
}
]
}
]
}
},
{
"MethodName": "create",
"Synopsis": "Creates a new Contact for the User, or can be used to add new OR EXISTING Contacts to a specified Stack",
"HTTPMethod": "POST",
"URI": "/contacts",
"RequiresOAuth": "Y",
"parameters": [
{
"Name": "email",
"Required": "Y",
"Default": "",
"Type": "string",
"Description": "The email address of the Contact"
},
{
"Name": "stack_id",
"Required": "N",
"Default": "",
"Type": "string",
"Description": "If using this call to add a Contact to a Stack, the ID of the specific Stack"
},
{
"Name": "name",
"Required": "N",
"Default": "",
"Type": "string",
"Description": "A name for this Contact. If none given, will default to the email prefix"
},
{
"Name": "service_id",
"Required": "N",
"Default": "",
"Type": "string",
"Description": "If this Contact is to be associated with a Service, the ID of the specific Service"
}
]
},
{
"MethodName": "update",
"Synopsis": "Updates information about a Contact. This method can also be used for removing Contacts from a specific Stack.",
"HTTPMethod": "PUT",
"URI": "/contacts/:id",
"RequiresOAuth": "Y",
"parameters": [
{
"Name": "id",
"Required": "Y",
"Default": "",
"Type": "string",
"Description": "The ID of the Contact (can be appended to the path of the URL)"
},
{
"Name": "email",
"Required": "N",
"Default": "",
"Type": "string",
"Description": "A new email address for the Contact (must not already exist in the User's Contact list)"
},
{
"Name": "name",
"Required": "N",
"Default": "",
"Type": "string",
"Description": "A new name for the Contact"
},
{
"Name": "pinned",
"Required": "N",
"Default": "",
"Type": "string",
"Description": "Any truthy value for this parameter will mark the Contact as pinned (favourite)"
},
{
"Name": "unfave",
"Required": "N",
"Default": "",
"Type": "string",
"Description": "Any truthy value for this parameter will remove the Contact as a favourite (unpin)"
},
{
"Name": "stack_id",
"Required": "N",
"Default": "",
"Type": "string",
"Description": "Adds the Contact to the Stack specified"
},
{
"Name": "nonperson",
"Required": "N",
"Default": "",
"Type": "string",
"Description": "Any truthy value for this parameter will convert a person Contact into a non-person Contact (company)."
},
{
"Name": "person",
"Required": "N",
"Default": "",
"Type": "string",
"Description": "Any truthy value for this parameter will convert a non-person (company) Contact into a person Contact."
}
]
},
{
"MethodName": "destroy",
"Synopsis": "Removes a Contact from a Stack, or entirely from the User's Contact list.",
"HTTPMethod": "DELETE",
"URI": "/contacts/:id",
"RequiresOAuth": "Y",
"parameters": [
{
"Name": "id",
"Required": "Y",
"Default": "",
"Type": "string",
"Description": "The ID of the Contact (can be appended to the path of the URL)"
},
{
"Name": "stack_id",
"Required": "N",
"Default": "",
"Type": "string",
"Description": "The ID of the Stack to remove the Contact from"
}
]
}
]
},
{
"name": "Conversations",
"methods": [
{
"MethodName": "index",
"Synopsis": "Gets a list of the user's Conversations",
"HTTPMethod": "GET",
"URI": "/conversations",
"RequiresOAuth": "Y",
"parameters": [
{
"Name": "fold_id",
"Required": "N",
"Default": "",
"Type": "string",
"Description": "The ID of a Fold to filter the Conversations by"
},
{
"Name": "contact_id",
"Required": "N",
"Default": "",
"Type": "string",
"Description": "The ID of a Contact to query the Conversations by. Will return all conversations the contact is a member of."
},
{
"Name": "limit",
"Required": "N",
"Default": "5",
"Type": "integer",
"Description": "The maximum number of results to return, or the number per page when requesting paginated results"
},
{
"Name": "page",
"Required": "N",
"Default": "1",
"Type": "integer",
"Description": "The page number, when requesting paginated results, minimum 1"
},
{
"Name": "message_ids",
"Required": "N",
"Default": "",
"Type": "string",
"Description": "Specific messages to include in the response. In comma delimited or array form. This overrides any message pagination parameters."
},
{
"Name": "messages_limit",
"Required": "N",
"Default": "",
"Type": "integer",
"Description": "The number of messages to return per each conversation. Note the default is zero!"
},
{
"Name": "messages_page",
"Required": "N",
"Default": "",
"Type": "integer",
"Description": "The messages page number, when including messages in request, minimum 1"
},
{
"Name": "filter",
"Required": "N",
"Default": "",
"Type": "enumerated",
"EnumeratedList": [
"date",
"updated_since",
"read"
],
"Description": "An attribute to filter results by (eg. \"date\")"
},
{
"Name": "criteria",
"Required": "N",
"Default": "",
"Type": "string",
"Description": "A value to use for the filter parameter (eg. a timestamp for the \"date\" filter, \"true\" or \"false\" for the \"read\" filter.)"
}
]
},
{
"MethodName": "show",
"Synopsis": "Gets information about a specific Conversation",
"HTTPMethod": "GET",
"URI": "/conversations/:id",
"RequiresOAuth": "Y",
"parameters": [
{
"Name": "id",
"Required": "Y",
"Default": "",
"Type": "string",
"Description": "The ID of the Conversation (can be appended to the path of the URL)"
},
{
"Name": "quoted_text",
"Required": "N",
"Default": "",
"Type": "string",
"Description": "Any truthy value here will return a 'quoted_text' string instead of the array of messages"
},
{
"Name": "quoted_text_sort",
"Required": "N",
"Default": "",
"Type": "enumerated",
"EnumeratedList": [
"desc",
"asc"
],
"Description": "The direction to sort messages in the quoted text by. Sort is by date in this direction, default is 'desc'."
},
{
"Name": "message_ids",
"Required": "N",
"Default": "",
"Type": "string",
"Description": "Specific messages to include in the response, including in quoted text. In comma delimited or array form. This overrides any message pagination parameters."
},
{
"Name": "messages_limit",
"Required": "N",
"Default": "",
"Type": "integer",
"Description": "The number of messages to return with this conversation. If quoted_text is specified, this parameter is ignored."
},
{
"Name": "messages_page",
"Required": "N",
"Default": "",
"Type": "integer",
"Description": "The messages page number, when including messages in request, minimum 1"
}
]
},
{
"MethodName": "update",
"Synopsis": "Updates information about a Conversation",
"HTTPMethod": "PUT",
"URI": "/conversations/:id",
"RequiresOAuth": "Y",
"parameters": [
{
"Name": "id",
"Required": "Y",
"Default": "",
"Type": "string",
"Description": "The ID of the Conversation (can be appended to the path of the URL)"
},
{
"Name": "read",
"Required": "N",
"Default": "",
"Type": "string",
"Description": "Any truthy value for this parameter will mark all Messages in this Conversation as read"
},
{
"Name": "unread",
"Required": "N",
"Default": "",
"Type": "string",
"Description": "Any truthy value for this parameter will mark all Messages in this Conversation as unread"
},
{
"Name": "message_ids",
"Required": "N",
"Default": "",
"Type": "string",
"Description": "Specific messages to include in the response. In comma delimited or array form. This overrides any message pagination parameters."
},
{
"Name": "messages_limit",
"Required": "N",
"Default": "",
"Type": "integer",
"Description": "The number of messages to return with this conversation."
},
{
"Name": "messages_page",
"Required": "N",
"Default": "",
"Type": "integer",
"Description": "The messages page number, when including messages in request, minimum 1"
},
{
"Name": "undo_destroy",
"Required": "N",
"Default": "",
"Type": "string",
"Description": "Any truthy value here will attempt to undo a previous delete request. After a timeout undo is no longer possible."
}
]
},
{
"MethodName": "destroy",
"Synopsis": "Deletes a Conversation from our system after a brief timeout for undo. All messages are moved into the Trash folder on the IMAP server.",
"HTTPMethod": "DELETE",
"URI": "/conversations/:id",
"RequiresOAuth": "Y",
"parameters": [
{
"Name": "id",
"Required": "Y",
"Default": "",
"Type": "string",
"Description": "The ID of the Conversation (can be appended to the path of the URL)"
}
]
}
]
},
{
"name": "Messages",
"methods": [
{
"MethodName": "index",
"Synopsis": "Gets a list of the user's Messages, with optional filter/search criteria.",
"HTTPMethod": "GET",
"URI": "/messages",
"RequiresOAuth": "Y",
"parameters": [
{
"Name": "conversation_id",
"Required": "N",
"Default": "",
"Type": "string",
"Description": "The ID of the Conversation to scope Messages by"
},
{
"Name": "limit",
"Required": "N",
"Default": "10",
"Type": "integer",
"Description": "The maximum number of results to return, or the number per page when requesting paginated results"
},
{
"Name": "page",
"Required": "N",
"Default": "1",
"Type": "integer",
"Description": "The page number, when requesting paginated results, minimum 1"
},
{
"Name": "filter",
"Required": "N",
"Default": "",
"Type": "enumerated",
"EnumeratedList": [
"date",
"updated_since"
],
"Description": "An attribute to filter results by (eg. \"date\")"
},
{
"Name": "criteria",
"Required": "N",
"Default": "",
"Type": "string",
"Description": "A value to use for the filter parameter (eg. a timestamp for the \"date\" filter)"
}
]
},
{
"MethodName": "show",
"Synopsis": "Gets information about a specific Message",
"HTTPMethod": "GET",
"URI": "/messages/:id",
"RequiresOAuth": "Y",
"parameters": [
{
"Name": "id",
"Required": "Y",
"Default": "",
"Type": "string",
"Description": "The ID of the Message (can be appended to the path of the URL)"
},
{
"Name": "conversation_id",
"Required": "N",
"Default": "",
"Type": "string",
"Description": "The ID of the Conversation to scope Messages by"
},
{
"Name": "quoted_text",
"Required": "N",
"Default": "",
"Type": "string",
"Description": "Any truthy value here will return a quoted_text attribute containing the message body in email quoted format."
}
]
},
{
"MethodName": "create",
"Synopsis": "Creates a new Message *AND SENDS IT* 10 seconds later",
"HTTPMethod": "POST",
"URI": "/messages",
"RequiresOAuth": "Y",
"parameters": [
{
"Name": "email_account_id",
"Required": "N",
"Default": "",
"Type": "string",
"Description": "The ID of the EmailAccount belonging to the user that this message shall be sent from. If omitted, the primary EmailAccount is used."
},
{
"Name": "conversation_id",
"Required": "N",
"Default": "",
"Type": "string",
"Description": "The ID of a Conversation that this Message is to be a part of. All Contacts on the Conversation will receive a copy of the Message."
},
{
"Name": "subject",
"Required": "N",
"Default": "",
"Type": "string",
"Description": "A custom subject for the Message. Will default to the Conversation subject, or a generic subject if it is the first Message."
},
{
"Name": "to",
"Required": "N",
"Default": "",
"Type": "string",
"Description": "A single email address, or a list of email addresses. One of to or cc are required."
},
{
"Name": "cc",
"Required": "N",
"Default": "",
"Type": "string",
"Description": "A single email address, or a list of email addresses. One of to or cc are required."
},
{
"Name": "body",
"Required": "Y",
"Default": "",
"Type": "string",
"Description": "The body text of the message. Should be plain text (for the moment)."
},
{
"Name": "stack_id",
"Required": "N",
"Default": "",
"Type": "string",
"Description": "The ID of a Stack, if specified all Contacts in the Stack will receive a copy of the message"
},
{
"Name": "contact_id",
"Required": "N",
"Default": "",
"Type": "string",
"Description": "The ID of a Contact to receive the message"
},
{
"Name": "draft_id",
"Required": "N",
"Default": "",
"Type": "string",
"Description": "The ID of the Draft that this Message was created from. *When the Message is delivered, the Draft is destroyed automatically.*"
},
{
"Name": "deliver_at",
"Required": "N",
"Default": "",
"Type": "number",
"Description": "A UTC unix timestamp (in seconds) for a future time to deliver the message. Will be ignored if invalid."
},
{
"Name": "forward_conversation_id",
"Required": "N",
"Default": "",
"Type": "string",
"Description": "The ID of the Conversation that this message is a forward of. All messages in the conversation will be quoted below the body."
},
{
"Name": "forward_message_ids",
"Required": "N",
"Default": "",
"Type": "string",
"Description": "The IDs of specifc Messages from the Forwarded Conversation to be quoted. If ommitted, all Messages are quoted."
},
{
"Name": "attachment_ids",
"Required": "N",
"Default": "",
"Type": "string",
"Description": "An array of existing attachment ids to be associated with this message"
},
{
"Name": "gallery_id",
"Required": "N",
"Default": "",
"Type": "string",
"Description": "The ID of an existing Gallery to attach to this Message. A link to the Gallery will be embedded in the Message body."
}
]
},
{
"MethodName": "update",
"Synopsis": "Updates information about a Message. Used only for specific functions like marking as read/unread, etc.",
"HTTPMethod": "PUT",
"URI": "/messages/:id",
"RequiresOAuth": "Y",
"parameters": [
{
"Name": "id",
"Required": "Y",
"Default": "",
"Type": "string",
"Description": "The ID of the Message (can be appended to the path of the URL)"
},
{
"Name": "unread",
"Required": "N",
"Default": "",
"Type": "string",
"Description": "Any truthy value for this parameter will the Message as unread"
},
{
"Name": "read",
"Required": "N",
"Default": "",
"Type": "string",
"Description": "Any truthy value for this parameter will mark the Message as read"
},
{
"Name": "spam",
"Required": "N",
"Default": "",
"Type": "string",
"Description": "Any truthy value for this parameter will mark the Message as spam"
},
{
"Name": "undo_send",
"Required": "N",
"Default": "",
"Type": "string",
"Description": "Any truthy value for this parameter will attempt to undo delivery of the message (unless it has already been delivered or is not eligible)."
}
]
},
{
"MethodName": "destroy",
"Synopsis": "Deletes a Message from our system, and moves it into the Trash folder on the IMAP server.",
"HTTPMethod": "DELETE",
"URI": "/messages/:id",
"RequiresOAuth": "Y",
"parameters": [
{
"Name": "id",
"Required": "Y",
"Default": "",
"Type": "string",
"Description": "The ID of the Message (can be appended to the path of the URL)"
}
]
}
]
},
{
"name": "Drafts",
"methods": [
{
"MethodName": "index",
"Synopsis": "Gets a list of the user's Drafts.",
"HTTPMethod": "GET",
"URI": "/drafts",
"RequiresOAuth": "Y",
"parameters": [
{
"Name": "limit",
"Required": "N",
"Default": "20",
"Type": "integer",
"Description": "The maximum number of results to return, or the number per page when requesting paginated results"
},
{
"Name": "page",
"Required": "N",
"Default": "1",
"Type": "integer",
"Description": "The page number, when requesting paginated results, minimum 1"
}
]
},
{
"MethodName": "show",
"Synopsis": "Gets information about a specific Draft",
"HTTPMethod": "GET",
"URI": "/drafts/:id",
"RequiresOAuth": "Y",
"parameters": [
{
"Name": "id",
"Required": "Y",
"Default": "",
"Type": "string",
"Description": "The ID of the Draft (can be appended to the path of the URL)"
}
]
},
{
"MethodName": "create",
"Synopsis": "Creates a new Draft",
"HTTPMethod": "POST",
"URI": "/drafts",
"RequiresOAuth": "Y",
"parameters": [
{
"Name": "subject",
"Required": "N",
"Default": "",
"Type": "string",
"Description": "A subject for the Draft."
},
{
"Name": "body",
"Required": "N",
"Default": "",
"Type": "string",
"Description": "The body text of the Draft. Should be plain text (for the moment)."
}
]
},
{
"MethodName": "update",
"Synopsis": "Updates an existing Draft.",
"HTTPMethod": "PUT",
"URI": "/drafts/:id",
"RequiresOAuth": "Y",
"parameters": [
{
"Name": "id",
"Required": "Y",
"Default": "",
"Type": "string",
"Description": "The ID of the Draft (can be appended to the path of the URL)"
},
{
"Name": "subject",
"Required": "N",