{"openapi":"3.1.0","info":{"title":"Apizie","version":"2.0.0","description":"One API key, one envelope, many public data sources."},"servers":[{"url":"https://zieapi.vercel.app"}],"security":[{"ApiKeyAuth":[]}],"paths":{"/v1/analytics:redeal-analytics/get-events":{"get":{"operationId":"analytics_redeal_analytics_get_events","summary":"get events for analytics","description":"GET /events","tags":["analytics"],"parameters":[{"name":"company","in":"query","required":false,"description":"pass an optional company Id","schema":{"type":"string","description":"pass an optional company Id"}},{"name":"site","in":"query","required":false,"description":"pass an optional site Id","schema":{"type":"string","description":"pass an optional site Id"}},{"name":"deal","in":"query","required":false,"description":"pass an optional deal Id","schema":{"type":"string","description":"pass an optional deal Id"}},{"name":"type","in":"query","required":false,"description":"type of records to return","schema":{"type":"string","enum":["all","clicks","contacts"],"description":"type of records to return"}},{"name":"nexttoken","in":"query","required":false,"description":"next token to start returning records from","schema":{"type":"string","description":"next token to start returning records from"}},{"name":"queryexecutionid","in":"query","required":false,"description":"id of execution to get more records based on next token","schema":{"type":"string","description":"id of execution to get more records based on next token"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"live"}}},"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key"}},"schemas":{"RunEnvelope":{"type":"object","required":["project","data","timestamp"],"properties":{"project":{"type":"string","example":"dev-tools:hash"},"data":{},"timestamp":{"type":"string","format":"date-time"}}},"ErrorEnvelope":{"type":"object","properties":{"content":{},"message":{"type":"string"},"errors":{"type":"array","items":{}},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"responses":{"Error":{"description":"Invalid key, plan gate, rate limit or upstream failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}}