forked from limitless-ai-inc/limitless-api-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopenapi.yml
More file actions
181 lines (173 loc) · 5.33 KB
/
Copy pathopenapi.yml
File metadata and controls
181 lines (173 loc) · 5.33 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
openapi: 3.0.3
info:
title: Limitless Developer API
description: API for accessing lifelogs, providing transparency and portability to user data.
version: 1.0.0
servers:
- url: https://api.limitless.ai/
description: Production server
tags:
- name: Lifelogs
description: Operations related to lifelogs data
components:
schemas:
ContentNode:
type: object
properties:
type:
type: string
description: Type of content node (e.g., heading1, heading2, heading3, blockquote). More types might be added.
content:
type: string
description: Content of the node.
startTime:
type: string
format: date-time
description: ISO format in given timezone.
endTime:
type: string
format: date-time
description: ISO format in given timezone.
startOffsetMs:
type: integer
description: Milliseconds after start of this entry.
endOffsetMs:
type: integer
description: Milliseconds after start of this entry.
children:
type: array
items:
$ref: "#/components/schemas/ContentNode"
description: Child content nodes.
speakerName:
type: string
description: Speaker identifier, present for certain node types (e.g., blockquote).
nullable: true
speakerIdentifier:
type: string
description: Speaker identifier, when applicable. Set to "user" when the speaker has been identified as the user.
enum: ["user"]
nullable: true
Lifelog:
type: object
properties:
id:
type: string
description: Unique identifier for the entry.
title:
type: string
description: Title of the entry. Equal to the first heading1 node.
markdown:
type: string
description: Raw markdown content of the entry.
nullable: true
contents:
type: array
items:
$ref: "#/components/schemas/ContentNode"
description: List of ContentNodes.
startTime:
type: string
format: date-time
description: ISO format in given timezone.
endTime:
type: string
format: date-time
description: ISO format in given timezone.
MetaLifelogs:
type: object
properties:
nextCursor:
type: string
description: Cursor for pagination to retrieve the next set of lifelogs.
nullable: true
count:
type: integer
description: Number of lifelogs in the current response.
Meta:
type: object
properties:
lifelogs:
$ref: "#/components/schemas/MetaLifelogs"
LifelogsResponseData:
type: object
properties:
lifelogs:
type: array
items:
$ref: "#/components/schemas/Lifelog"
LifelogsResponse:
type: object
properties:
data:
$ref: "#/components/schemas/LifelogsResponseData"
meta:
$ref: "#/components/schemas/Meta"
paths:
/v1/lifelogs:
get:
operationId: getLifelogs
summary: Returns a list of lifelogs.
description: Returns a list of lifelogs based on specified time range or date.
tags:
- Lifelogs
parameters:
- in: query
name: timezone
schema:
type: string
description: IANA timezone specifier. If missing, UTC is used.
- in: query
name: date
schema:
type: string
format: date
description: Will return all entries beginning on a date in the given timezone (YYYY-MM-DD).
- in: query
name: start
schema:
type: string
format: date-time
description: Start datetime in modified ISO-8601 format (YYYY-MM-DD or YYYY-MM-DD HH:mm:SS). Timezones/offsets will be ignored.
- in: query
name: end
schema:
type: string
format: date-time
description: End datetime in modified ISO-8601 format (YYYY-MM-DD or YYYY-MM-DD HH:mm:SS). Timezones/offsets will be ignored.
- in: query
name: cursor
schema:
type: string
description: Cursor for pagination to retrieve the next set of entries.
- in: query
name: direction
schema:
type: string
enum: ["asc", "desc"]
default: "desc"
description: Sort direction for entries.
- in: query
name: includeMarkdown
schema:
type: boolean
default: true
description: Whether to include markdown content in the response.
- in: query
name: includeHeadings
schema:
type: boolean
default: true
description: Whether to include headings in the response.
- in: query
name: limit
schema:
type: integer
description: Maximum number of entries to return.
responses:
"200":
description: Successful response with entries.
content:
application/json:
schema:
$ref: "#/components/schemas/LifelogsResponse"