forked from BasedHardware/omi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopenapi.json
More file actions
1237 lines (1234 loc) · 49.5 KB
/
Copy pathopenapi.json
File metadata and controls
1237 lines (1234 loc) · 49.5 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": "Omi Developer API",
"description": "Programmatic access to your Omi data — memories, conversations, action items, and API keys. Build custom integrations, analytics dashboards, and automation workflows.",
"version": "1.0.0",
"contact": {
"name": "Omi",
"url": "https://omi.me"
},
"license": {
"name": "MIT",
"url": "https://github.com/BasedHardware/omi/blob/main/LICENSE"
}
},
"servers": [
{
"url": "https://api.omi.me",
"description": "Production"
}
],
"security": [
{
"bearerAuth": []
}
],
"tags": [
{ "name": "Memories", "description": "Read and write user memories — timeless facts, preferences, and insights." },
{ "name": "Conversations", "description": "Create and retrieve conversation transcripts with AI-generated summaries." },
{ "name": "Folders", "description": "Retrieve user-defined folders for organizing conversations." },
{ "name": "Action Items", "description": "Manage tasks and to-dos extracted from conversations or created manually." },
{ "name": "API Keys", "description": "Create, list, and revoke developer API keys." }
],
"paths": {
"/v1/dev/user/memories": {
"get": {
"operationId": "listMemories",
"summary": "List memories",
"description": "Retrieve your memories with optional filtering by category. Returns memories sorted by most recent first.",
"tags": ["Memories"],
"parameters": [
{
"name": "limit",
"in": "query",
"description": "Maximum number of memories to return.",
"schema": { "type": "integer", "default": 25 }
},
{
"name": "offset",
"in": "query",
"description": "Number of memories to skip for pagination.",
"schema": { "type": "integer", "default": 0 }
},
{
"name": "categories",
"in": "query",
"description": "Comma-separated list of categories to filter by (e.g. `interesting,system`).",
"schema": { "type": "string" }
}
],
"responses": {
"200": {
"description": "List of memories.",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": { "$ref": "#/components/schemas/Memory" }
},
"example": [
{
"id": "mem_789ghi",
"content": "User is building an AI fitness app with personal trainer",
"category": "interesting",
"visibility": "private",
"tags": [],
"created_at": "2025-01-15T10:30:00Z",
"updated_at": "2025-01-15T10:30:00Z",
"manually_added": false,
"reviewed": false,
"user_review": null,
"edited": false
}
]
}
}
},
"401": { "$ref": "#/components/responses/Unauthorized" }
}
},
"post": {
"operationId": "createMemory",
"summary": "Create memory",
"description": "Create a new memory. Memories are timeless facts about the user — preferences, relationships, personal details, and notable insights.",
"tags": ["Memories"],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/CreateMemory" },
"example": {
"content": "User prefers dark mode in all applications",
"category": "system",
"tags": ["preferences", "ui"]
}
}
}
},
"responses": {
"200": {
"description": "The created memory.",
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/Memory" },
"example": {
"id": "mem_xyz789",
"content": "User prefers dark mode in all applications",
"category": "system",
"visibility": "private",
"tags": ["preferences", "ui"],
"created_at": "2025-12-06T10:35:00Z",
"updated_at": "2025-12-06T10:35:00Z",
"manually_added": true
}
}
}
},
"401": { "$ref": "#/components/responses/Unauthorized" },
"422": { "$ref": "#/components/responses/ValidationError" }
}
}
},
"/v1/dev/user/memories/batch": {
"post": {
"operationId": "createMemoriesBatch",
"summary": "Create memories (batch)",
"description": "Create multiple memories in a single request. Maximum 25 memories per batch.",
"tags": ["Memories"],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/BatchCreateMemories" },
"example": {
"memories": [
{ "content": "User prefers async communication over meetings", "category": "system" },
{ "content": "User speaks fluent Japanese and French", "category": "interesting" }
]
}
}
}
},
"responses": {
"200": {
"description": "Batch creation result.",
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/BatchMemoriesResponse" },
"example": {
"memories": [
{ "id": "mem_001", "content": "User prefers async communication over meetings", "category": "system" },
{ "id": "mem_002", "content": "User speaks fluent Japanese and French", "category": "interesting" }
],
"created_count": 2
}
}
}
},
"401": { "$ref": "#/components/responses/Unauthorized" },
"422": { "$ref": "#/components/responses/ValidationError" }
}
}
},
"/v1/dev/user/memories/{memory_id}": {
"delete": {
"operationId": "deleteMemory",
"summary": "Delete memory",
"description": "Permanently delete a memory. This action cannot be undone.",
"tags": ["Memories"],
"parameters": [
{
"name": "memory_id",
"in": "path",
"required": true,
"description": "The ID of the memory to delete.",
"schema": { "type": "string" }
}
],
"responses": {
"200": {
"description": "Memory deleted.",
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/SuccessResponse" },
"example": { "success": true }
}
}
},
"401": { "$ref": "#/components/responses/Unauthorized" },
"404": { "$ref": "#/components/responses/NotFound" }
}
},
"patch": {
"operationId": "updateMemory",
"summary": "Update memory",
"description": "Update a memory's content or visibility. At least one field must be provided.",
"tags": ["Memories"],
"parameters": [
{
"name": "memory_id",
"in": "path",
"required": true,
"description": "The ID of the memory to update.",
"schema": { "type": "string" }
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/UpdateMemory" },
"example": {
"content": "User strongly prefers dark mode in all applications",
"visibility": "private"
}
}
}
},
"responses": {
"200": {
"description": "The updated memory.",
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/Memory" }
}
}
},
"401": { "$ref": "#/components/responses/Unauthorized" },
"404": { "$ref": "#/components/responses/NotFound" },
"422": { "$ref": "#/components/responses/ValidationError" }
}
}
},
"/v1/dev/user/folders": {
"get": {
"operationId": "listFolders",
"summary": "List folders",
"description": "Retrieve all folders for the authenticated user. This endpoint is strictly read-only and returns an empty list if the user has no folders yet. System folders (Work, Personal, Social) are initialized lazily through other paths (the mobile app opening the conversations screen, or the conversation post-processing pipeline), not by this endpoint.",
"tags": ["Folders"],
"parameters": [],
"responses": {
"200": {
"description": "List of folders.",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": { "$ref": "#/components/schemas/Folder" }
},
"example": [
{
"id": "folder_uuid_work",
"name": "Work",
"description": "Work, business, professional, and career-related conversations",
"color": "#3B82F6",
"icon": "💼",
"created_at": "2025-01-15T10:00:00Z",
"updated_at": "2025-01-20T13:50:00Z",
"order": 0,
"is_default": false,
"is_system": true,
"category_mapping": "work",
"conversation_count": 12
}
]
}
}
},
"401": { "$ref": "#/components/responses/Unauthorized" },
"403": {
"description": "Insufficient permissions. Required scope: `conversations:read`.",
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/ErrorResponse" },
"example": { "detail": "Insufficient permissions. Required scope: conversations:read" }
}
}
}
}
}
},
"/v1/dev/user/conversations": {
"get": {
"operationId": "listConversations",
"summary": "List conversations",
"description": "Retrieve your conversation transcripts. Only returns completed, non-discarded conversations.",
"tags": ["Conversations"],
"parameters": [
{
"name": "limit",
"in": "query",
"description": "Maximum number of conversations to return.",
"schema": { "type": "integer", "default": 25 }
},
{
"name": "offset",
"in": "query",
"description": "Number of conversations to skip.",
"schema": { "type": "integer", "default": 0 }
},
{
"name": "start_date",
"in": "query",
"description": "Filter by start date (inclusive). ISO 8601 format.",
"schema": { "type": "string", "format": "date-time" }
},
{
"name": "end_date",
"in": "query",
"description": "Filter by end date (inclusive). ISO 8601 format.",
"schema": { "type": "string", "format": "date-time" }
},
{
"name": "include_transcript",
"in": "query",
"description": "Include full transcript segments in the response.",
"schema": { "type": "boolean", "default": false }
},
{
"name": "categories",
"in": "query",
"description": "Comma-separated list of conversation categories to filter by (e.g. `work,personal`). Matches conversations whose category is any of the listed values (OR semantics).",
"schema": { "type": "string" }
},
{
"name": "folder_id",
"in": "query",
"description": "Filter conversations by folder ID. Each conversation belongs to at most one folder, so this is a single-value filter. Must be a non-empty string.",
"schema": { "type": "string", "minLength": 1 }
},
{
"name": "starred",
"in": "query",
"description": "Filter by starred status. Pass `true` for starred conversations only, `false` for non-starred.",
"schema": { "type": "boolean" }
}
],
"responses": {
"200": {
"description": "List of conversations.",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": { "$ref": "#/components/schemas/Conversation" }
},
"example": [
{
"id": "conv_202",
"created_at": "2025-01-20T13:50:00Z",
"started_at": "2025-01-20T13:50:00Z",
"finished_at": "2025-01-20T14:10:00Z",
"language": "en",
"source": "omi",
"structured": {
"title": "Feature Discussion",
"overview": "Brainstorming session for new features",
"emoji": "💼",
"category": "business",
"action_items": [],
"events": []
}
}
]
}
}
},
"400": {
"description": "Invalid `categories` value (must be a comma-separated list of valid `CategoryEnum` values).",
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/ErrorResponse" },
"example": { "detail": "Invalid category 'foo' is not a valid CategoryEnum" }
}
}
},
"401": { "$ref": "#/components/responses/Unauthorized" },
"403": {
"description": "Insufficient permissions. Required scope: `conversations:read`.",
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/ErrorResponse" },
"example": { "detail": "Insufficient permissions. Required scope: conversations:read" }
}
}
},
"422": { "$ref": "#/components/responses/ValidationError" }
}
},
"post": {
"operationId": "createConversation",
"summary": "Create conversation from text",
"description": "Create a new conversation from text content. The text is processed through the full AI pipeline: discard detection, structured generation, action item extraction, memory extraction, app integration, and webhooks.",
"tags": ["Conversations"],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/CreateConversation" },
"example": {
"text": "Meeting notes: Discussed Q1 goals. Action item: prepare budget by Friday.",
"text_source": "other_text",
"text_source_spec": "meeting_notes",
"started_at": "2025-12-06T14:00:00+00:00",
"language": "en"
}
}
}
},
"responses": {
"200": {
"description": "Conversation created.",
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/ConversationResponse" },
"example": {
"id": "conv_456",
"status": "completed",
"discarded": false
}
}
}
},
"401": { "$ref": "#/components/responses/Unauthorized" },
"422": { "$ref": "#/components/responses/ValidationError" }
}
}
},
"/v1/dev/user/conversations/{conversation_id}": {
"get": {
"operationId": "getConversation",
"summary": "Get conversation",
"description": "Retrieve a single conversation by ID, optionally including transcript segments.",
"tags": ["Conversations"],
"parameters": [
{
"name": "conversation_id",
"in": "path",
"required": true,
"description": "The ID of the conversation to retrieve.",
"schema": { "type": "string" }
},
{
"name": "include_transcript",
"in": "query",
"description": "Include full transcript segments.",
"schema": { "type": "boolean", "default": false }
}
],
"responses": {
"200": {
"description": "The conversation.",
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/Conversation" }
}
}
},
"401": { "$ref": "#/components/responses/Unauthorized" },
"404": { "$ref": "#/components/responses/NotFound" }
}
},
"patch": {
"operationId": "updateConversation",
"summary": "Update conversation",
"description": "Update a conversation's title or discard status. At least one field must be provided.",
"tags": ["Conversations"],
"parameters": [
{
"name": "conversation_id",
"in": "path",
"required": true,
"description": "The ID of the conversation to update.",
"schema": { "type": "string" }
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/UpdateConversation" },
"example": {
"title": "Q1 Planning Meeting - Budget Discussion"
}
}
}
},
"responses": {
"200": {
"description": "The updated conversation.",
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/Conversation" }
}
}
},
"401": { "$ref": "#/components/responses/Unauthorized" },
"404": { "$ref": "#/components/responses/NotFound" },
"422": { "$ref": "#/components/responses/ValidationError" }
}
},
"delete": {
"operationId": "deleteConversation",
"summary": "Delete conversation",
"description": "Permanently delete a conversation and its associated data. This action cannot be undone. Consider using PATCH with `discarded: true` to hide instead.",
"tags": ["Conversations"],
"parameters": [
{
"name": "conversation_id",
"in": "path",
"required": true,
"description": "The ID of the conversation to delete.",
"schema": { "type": "string" }
}
],
"responses": {
"200": {
"description": "Conversation deleted.",
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/SuccessResponse" },
"example": { "success": true }
}
}
},
"401": { "$ref": "#/components/responses/Unauthorized" },
"404": { "$ref": "#/components/responses/NotFound" }
}
}
},
"/v1/dev/user/conversations/from-segments": {
"post": {
"operationId": "createConversationFromSegments",
"summary": "Create conversation from transcript segments",
"description": "Create a conversation from structured transcript segments with speaker diarization. Unlike text-based conversations, transcript segments are stored and can be retrieved with `include_transcript=true`.",
"tags": ["Conversations"],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/CreateConversationFromSegments" },
"example": {
"transcript_segments": [
{ "text": "Let's review the quarterly results", "speaker": "SPEAKER_00", "is_user": true, "start": 0.0, "end": 3.5 },
{ "text": "Revenue is up 25% from last quarter", "speaker": "SPEAKER_01", "is_user": false, "start": 4.0, "end": 7.2 }
],
"source": "phone",
"language": "en"
}
}
}
},
"responses": {
"200": {
"description": "Conversation created.",
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/ConversationResponse" },
"example": {
"id": "conv_789",
"status": "completed",
"discarded": false
}
}
}
},
"401": { "$ref": "#/components/responses/Unauthorized" },
"422": { "$ref": "#/components/responses/ValidationError" }
}
}
},
"/v1/dev/user/action-items": {
"get": {
"operationId": "listActionItems",
"summary": "List action items",
"description": "Retrieve your action items (tasks/to-dos) with optional filtering.",
"tags": ["Action Items"],
"parameters": [
{
"name": "limit",
"in": "query",
"description": "Maximum number of items to return.",
"schema": { "type": "integer", "default": 100 }
},
{
"name": "offset",
"in": "query",
"description": "Number of items to skip.",
"schema": { "type": "integer", "default": 0 }
},
{
"name": "completed",
"in": "query",
"description": "Filter by completion status.",
"schema": { "type": "boolean" }
},
{
"name": "conversation_id",
"in": "query",
"description": "Filter by associated conversation ID.",
"schema": { "type": "string" }
},
{
"name": "start_date",
"in": "query",
"description": "Filter by creation start date (inclusive).",
"schema": { "type": "string", "format": "date-time" }
},
{
"name": "end_date",
"in": "query",
"description": "Filter by creation end date (inclusive).",
"schema": { "type": "string", "format": "date-time" }
}
],
"responses": {
"200": {
"description": "List of action items.",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": { "$ref": "#/components/schemas/ActionItem" }
},
"example": [
{
"id": "action_101",
"description": "Review budget proposal",
"completed": false,
"created_at": "2025-01-20T10:15:00Z",
"updated_at": "2025-01-20T10:15:00Z",
"due_at": null,
"completed_at": null,
"conversation_id": "conv_202"
}
]
}
}
},
"401": { "$ref": "#/components/responses/Unauthorized" }
}
},
"post": {
"operationId": "createActionItem",
"summary": "Create action item",
"description": "Create a new action item (task/to-do). Push notifications are sent to the Omi app if a `due_at` date is provided.",
"tags": ["Action Items"],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/CreateActionItem" },
"example": {
"description": "Review pull request #123",
"completed": false,
"due_at": "2025-12-08T15:00:00+00:00"
}
}
}
},
"responses": {
"200": {
"description": "The created action item.",
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/ActionItem" },
"example": {
"id": "action_abc123",
"description": "Review pull request #123",
"completed": false,
"created_at": "2025-12-06T10:30:00Z",
"updated_at": "2025-12-06T10:30:00Z",
"due_at": "2025-12-08T15:00:00+00:00",
"completed_at": null,
"conversation_id": null
}
}
}
},
"401": { "$ref": "#/components/responses/Unauthorized" },
"422": { "$ref": "#/components/responses/ValidationError" }
}
}
},
"/v1/dev/user/action-items/batch": {
"post": {
"operationId": "createActionItemsBatch",
"summary": "Create action items (batch)",
"description": "Create multiple action items in a single request. Maximum 50 per batch.",
"tags": ["Action Items"],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/BatchCreateActionItems" },
"example": {
"action_items": [
{ "description": "Review Q1 report", "due_at": "2025-12-10T17:00:00Z" },
{ "description": "Schedule team meeting" }
]
}
}
}
},
"responses": {
"200": {
"description": "Batch creation result.",
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/BatchActionItemsResponse" },
"example": {
"action_items": [
{ "id": "action_001", "description": "Review Q1 report" },
{ "id": "action_002", "description": "Schedule team meeting" }
],
"created_count": 2
}
}
}
},
"401": { "$ref": "#/components/responses/Unauthorized" },
"422": { "$ref": "#/components/responses/ValidationError" }
}
}
},
"/v1/dev/user/action-items/{action_item_id}": {
"patch": {
"operationId": "updateActionItem",
"summary": "Update action item",
"description": "Update an action item's description, completion status, or due date. Setting `completed: true` automatically sets `completed_at`.",
"tags": ["Action Items"],
"parameters": [
{
"name": "action_item_id",
"in": "path",
"required": true,
"description": "The ID of the action item to update.",
"schema": { "type": "string" }
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/UpdateActionItem" },
"example": { "completed": true }
}
}
},
"responses": {
"200": {
"description": "The updated action item.",
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/ActionItem" }
}
}
},
"401": { "$ref": "#/components/responses/Unauthorized" },
"404": { "$ref": "#/components/responses/NotFound" },
"422": { "$ref": "#/components/responses/ValidationError" }
}
},
"delete": {
"operationId": "deleteActionItem",
"summary": "Delete action item",
"description": "Permanently delete an action item. This action cannot be undone.",
"tags": ["Action Items"],
"parameters": [
{
"name": "action_item_id",
"in": "path",
"required": true,
"description": "The ID of the action item to delete.",
"schema": { "type": "string" }
}
],
"responses": {
"200": {
"description": "Action item deleted.",
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/SuccessResponse" },
"example": { "success": true }
}
}
},
"401": { "$ref": "#/components/responses/Unauthorized" },
"404": { "$ref": "#/components/responses/NotFound" }
}
}
},
"/v1/dev/keys": {
"get": {
"operationId": "listApiKeys",
"summary": "List API keys",
"description": "Retrieve all your developer API keys. Secret key values are not returned — only the prefix is shown.",
"tags": ["API Keys"],
"responses": {
"200": {
"description": "List of API keys.",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": { "$ref": "#/components/schemas/ApiKey" }
},
"example": [
{
"id": "key_123abc",
"name": "My Analytics Dashboard",
"key_prefix": "omi_dev_abc123",
"created_at": "2025-01-15T10:30:00Z",
"last_used_at": "2025-01-20T14:22:00Z"
}
]
}
}
},
"401": { "$ref": "#/components/responses/Unauthorized" }
}
},
"post": {
"operationId": "createApiKey",
"summary": "Create API key",
"description": "Create a new developer API key. The full key is only returned once — store it securely immediately.",
"tags": ["API Keys"],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/CreateApiKey" },
"example": { "name": "My New Integration" }
}
}
},
"responses": {
"200": {
"description": "The created API key with full secret.",
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/ApiKeyCreated" },
"example": {
"id": "key_789ghi",
"name": "My New Integration",
"key_prefix": "omi_dev_ghi789",
"key": "omi_dev_ghi789_full_secret_key_here",
"created_at": "2025-01-20T15:00:00Z",
"last_used_at": null
}
}
}
},
"401": { "$ref": "#/components/responses/Unauthorized" },
"422": { "$ref": "#/components/responses/ValidationError" }
}
}
},
"/v1/dev/keys/{key_id}": {
"delete": {
"operationId": "revokeApiKey",
"summary": "Revoke API key",
"description": "Permanently revoke (delete) a specific API key. Any requests using this key will immediately stop working.",
"tags": ["API Keys"],
"parameters": [
{
"name": "key_id",
"in": "path",
"required": true,
"description": "The ID of the key to revoke.",
"schema": { "type": "string" }
}
],
"responses": {
"204": {
"description": "Key revoked successfully."
},
"401": { "$ref": "#/components/responses/Unauthorized" },
"404": { "$ref": "#/components/responses/NotFound" }
}
}
}
},
"components": {
"securitySchemes": {
"bearerAuth": {
"type": "http",
"scheme": "bearer",
"description": "Developer API key. Get one from **Settings → Developer → Create Key** in the Omi app. Keys are prefixed with `omi_dev_`."
}
},
"schemas": {
"Memory": {
"type": "object",
"properties": {
"id": { "type": "string", "description": "Unique identifier." },
"content": { "type": "string", "description": "The memory content." },
"category": { "type": "string", "enum": ["interesting", "system", "manual"], "description": "Memory category." },
"visibility": { "type": "string", "enum": ["public", "private"], "description": "Visibility level." },
"tags": { "type": "array", "items": { "type": "string" }, "description": "List of tags." },
"created_at": { "type": "string", "format": "date-time", "description": "When the memory was created." },
"updated_at": { "type": "string", "format": "date-time", "description": "When the memory was last updated." },
"manually_added": { "type": "boolean", "description": "Whether the memory was added manually (via API or app)." },
"reviewed": { "type": "boolean", "description": "Whether the memory has been reviewed." },
"user_review": { "type": ["boolean", "null"], "description": "User's review decision." },
"edited": { "type": "boolean", "description": "Whether the memory has been edited." }
}
},
"CreateMemory": {
"type": "object",
"required": ["content"],
"properties": {
"content": { "type": "string", "minLength": 1, "maxLength": 500, "description": "The memory content." },
"category": { "type": "string", "enum": ["interesting", "system", "manual"], "description": "Memory category. Auto-categorized if not provided." },
"visibility": { "type": "string", "enum": ["public", "private"], "default": "private", "description": "Visibility level." },
"tags": { "type": "array", "items": { "type": "string" }, "description": "List of tags." }
}
},
"UpdateMemory": {
"type": "object",
"properties": {
"content": { "type": "string", "minLength": 1, "maxLength": 500, "description": "New memory content." },
"visibility": { "type": "string", "enum": ["public", "private"], "description": "New visibility level." }
}
},
"BatchCreateMemories": {
"type": "object",
"required": ["memories"],
"properties": {
"memories": { "type": "array", "items": { "$ref": "#/components/schemas/CreateMemory" }, "maxItems": 25, "description": "List of memories to create (max 25)." }
}
},
"BatchMemoriesResponse": {
"type": "object",
"properties": {
"memories": { "type": "array", "items": { "$ref": "#/components/schemas/Memory" } },
"created_count": { "type": "integer", "description": "Number of memories created." }
}
},
"Conversation": {
"type": "object",
"properties": {
"id": { "type": "string", "description": "Unique identifier." },
"created_at": { "type": "string", "format": "date-time", "description": "When the conversation record was created." },
"started_at": { "type": "string", "format": "date-time", "description": "When the conversation started." },
"finished_at": { "type": "string", "format": "date-time", "description": "When the conversation ended." },
"language": { "type": "string", "description": "Language code (e.g. `en`)." },
"source": { "type": "string", "description": "Source device or app." },
"structured": { "$ref": "#/components/schemas/StructuredData" },
"transcript_segments": {
"type": "array",
"items": { "$ref": "#/components/schemas/TranscriptSegment" },
"description": "Transcript segments (only present when `include_transcript=true`)."
},
"geolocation": { "$ref": "#/components/schemas/Geolocation" },
"folder_id": { "type": ["string", "null"], "description": "ID of the folder this conversation belongs to, or null if not in any folder." },
"folder_name": { "type": ["string", "null"], "description": "Display name of the folder, or null if not in any folder." }
}
},
"StructuredData": {
"type": "object",
"properties": {
"title": { "type": "string", "description": "AI-generated title." },
"overview": { "type": "string", "description": "Summary of the conversation." },
"emoji": { "type": "string", "description": "Representative emoji." },
"category": { "type": "string", "description": "Category (work, personal, etc.)." },
"action_items": { "type": "array", "items": { "$ref": "#/components/schemas/ActionItemSummary" } },
"events": { "type": "array", "items": { "type": "object" } }
}
},
"ActionItemSummary": {
"type": "object",
"properties": {
"description": { "type": "string" },
"completed": { "type": "boolean" },
"created_at": { "type": "string", "format": "date-time" },
"updated_at": { "type": "string", "format": "date-time" },
"due_at": { "type": ["string", "null"], "format": "date-time" },
"completed_at": { "type": ["string", "null"], "format": "date-time" }
}
},
"TranscriptSegment": {
"type": "object",
"properties": {
"id": { "type": "string", "description": "Segment identifier." },
"text": { "type": "string", "description": "The transcribed text." },
"speaker_id": { "type": "integer", "description": "Numeric speaker identifier." },
"speaker_name": { "type": "string", "description": "Human-readable speaker name." },
"start": { "type": "number", "description": "Start timestamp in seconds." },
"end": { "type": "number", "description": "End timestamp in seconds." }