88 name : MIT
99 url : https://choosealicense.com/licenses/mit
1010 title : Croct Export
11- version : 0.5 .0
11+ version : 0.6 .0
1212servers :
1313- description : Production endpoint
1414 url : https://api.croct.io/export
@@ -192,6 +192,114 @@ paths:
192192 - export
193193 x-accepts :
194194 - application/json
195+ /events/{id} :
196+ get :
197+ operationId : exportEventById
198+ parameters :
199+ - description : The unique identifier of the event
200+ explode : false
201+ in : path
202+ name : id
203+ required : true
204+ schema :
205+ format : uuid
206+ type : string
207+ style : simple
208+ responses :
209+ " 200 " :
210+ content :
211+ application/json :
212+ schema :
213+ $ref : " #/components/schemas/SingleEventResponse"
214+ description : Event found
215+ " 404 " :
216+ content :
217+ application/json :
218+ schema :
219+ $ref : " #/components/schemas/ApiProblem"
220+ description : Request error
221+ default :
222+ content :
223+ application/json :
224+ schema :
225+ $ref : " #/components/schemas/ApiProblem"
226+ description : Request error
227+ tags :
228+ - export
229+ x-accepts :
230+ - application/json
231+ /session/{sessionId} :
232+ get :
233+ operationId : exportSessionById
234+ parameters :
235+ - description : The unique identifier of the session
236+ explode : false
237+ in : path
238+ name : sessionId
239+ required : true
240+ schema :
241+ format : uuid
242+ type : string
243+ style : simple
244+ responses :
245+ " 200 " :
246+ content :
247+ application/json :
248+ schema :
249+ $ref : " #/components/schemas/Session"
250+ description : Session found
251+ " 404 " :
252+ content :
253+ application/json :
254+ schema :
255+ $ref : " #/components/schemas/ApiProblem"
256+ description : Request error
257+ default :
258+ content :
259+ application/json :
260+ schema :
261+ $ref : " #/components/schemas/ApiProblem"
262+ description : Request error
263+ tags :
264+ - export
265+ x-accepts :
266+ - application/json
267+ /user/{userId} :
268+ get :
269+ operationId : exportUserById
270+ parameters :
271+ - description : The unique identifier of the user
272+ explode : false
273+ in : path
274+ name : userId
275+ required : true
276+ schema :
277+ format : uuid
278+ type : string
279+ style : simple
280+ responses :
281+ " 200 " :
282+ content :
283+ application/json :
284+ schema :
285+ $ref : " #/components/schemas/User"
286+ description : User found
287+ " 404 " :
288+ content :
289+ application/json :
290+ schema :
291+ $ref : " #/components/schemas/ApiProblem"
292+ description : Request error
293+ default :
294+ content :
295+ application/json :
296+ schema :
297+ $ref : " #/components/schemas/ApiProblem"
298+ description : Request error
299+ tags :
300+ - export
301+ x-accepts :
302+ - application/json
195303components :
196304 parameters :
197305 WindowStart :
@@ -592,10 +700,14 @@ components:
592700 metadata :
593701 key : metadata
594702 type : web
703+ id : id
595704 sessionId : 046b6c7f-0b8a-43b9-b35d-6489e6daee91
596705 userId : 046b6c7f-0b8a-43b9-b35d-6489e6daee91
597706 timestamp : 0
598707 properties :
708+ id :
709+ description : The unique identifier of the event.
710+ type : string
599711 sessionId :
600712 description : The ID of the session assigned to the event.
601713 format : uuid
@@ -615,6 +727,7 @@ components:
615727 $ref : " #/components/schemas/EventPayload"
616728 required :
617729 - context
730+ - id
618731 - payload
619732 - sessionId
620733 - timestamp
@@ -713,6 +826,7 @@ components:
713826 metadata :
714827 key : metadata
715828 type : web
829+ id : id
716830 sessionId : 046b6c7f-0b8a-43b9-b35d-6489e6daee91
717831 userId : 046b6c7f-0b8a-43b9-b35d-6489e6daee91
718832 timestamp : 0
@@ -722,6 +836,7 @@ components:
722836 metadata :
723837 key : metadata
724838 type : web
839+ id : id
725840 sessionId : 046b6c7f-0b8a-43b9-b35d-6489e6daee91
726841 userId : 046b6c7f-0b8a-43b9-b35d-6489e6daee91
727842 timestamp : 0
@@ -739,6 +854,35 @@ components:
739854 - metadata
740855 - nextCursor
741856 type : object
857+ SingleEventResponse :
858+ example :
859+ metadata :
860+ organizationSlug : organizationSlug
861+ applicationSlug : applicationSlug
862+ organizationName : organizationName
863+ workspaceName : workspaceName
864+ workspaceSlug : workspaceSlug
865+ applicationName : applicationName
866+ event :
867+ payload :
868+ ' @type ' : ' @type'
869+ context :
870+ metadata :
871+ key : metadata
872+ type : web
873+ id : id
874+ sessionId : 046b6c7f-0b8a-43b9-b35d-6489e6daee91
875+ userId : 046b6c7f-0b8a-43b9-b35d-6489e6daee91
876+ timestamp : 0
877+ properties :
878+ metadata :
879+ $ref : " #/components/schemas/EventResponse_metadata"
880+ event :
881+ $ref : " #/components/schemas/Event"
882+ required :
883+ - event
884+ - metadata
885+ type : object
742886 EventType :
743887 enum :
744888 - userSignedUp
0 commit comments