{"openapi":"3.1.0","info":{"title":"emazys API","description":"Read your team's sites and string test results. Teams plan only. Send your key in the X-API-Key header.","version":"1.0"},"paths":{"/api/v1/team":{"get":{"tags":["emazys API"],"summary":"The team your key belongs to","operationId":"get_team_api_v1_team_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"APIKeyHeader":[]}]}},"/api/v1/sites":{"get":{"tags":["emazys API"],"summary":"Your team's sites","operationId":"get_sites_api_v1_sites_get","parameters":[{"description":"Part of a site's name or address","required":false,"schema":{"type":"string","title":"Search","description":"Part of a site's name or address"},"name":"search","in":"query"},{"required":false,"schema":{"type":"integer","maximum":500.0,"minimum":1.0,"title":"Limit","default":100},"name":"limit","in":"query"},{"required":false,"schema":{"type":"integer","minimum":0.0,"title":"Offset","default":0},"name":"offset","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyHeader":[]}]}},"/api/v1/measurements":{"get":{"tags":["emazys API"],"summary":"Your team's measurements, oldest first","operationId":"get_measurements_api_v1_measurements_get","parameters":[{"description":"Only this site (the id from /sites)","required":false,"schema":{"type":"string","title":"Site Id","description":"Only this site (the id from /sites)"},"name":"site_id","in":"query"},{"description":"Only measurements taken at or after this time (ISO 8601)","required":false,"schema":{"type":"string","format":"date-time","title":"Measured After","description":"Only measurements taken at or after this time (ISO 8601)"},"name":"measured_after","in":"query"},{"description":"Only measurements taken before this time (ISO 8601)","required":false,"schema":{"type":"string","format":"date-time","title":"Measured Before","description":"Only measurements taken before this time (ISO 8601)"},"name":"measured_before","in":"query"},{"required":false,"schema":{"type":"integer","maximum":500.0,"minimum":1.0,"title":"Limit","default":100},"name":"limit","in":"query"},{"description":"The next_cursor of the previous page","required":false,"schema":{"type":"string","title":"Cursor","description":"The next_cursor of the previous page"},"name":"cursor","in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyHeader":[]}]}},"/api/v1/measurements/{measurement_id}":{"get":{"tags":["emazys API"],"summary":"One measurement, with its IV curve","operationId":"get_measurement_api_v1_measurements__measurement_id__get","parameters":[{"required":true,"schema":{"type":"string","title":"Measurement Id"},"name":"measurement_id","in":"path"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"APIKeyHeader":[]}]}},"/api/v1/live/{token}/measurements.xlsx":{"get":{"tags":["emazys API","Live links"],"summary":"A live link as an Excel file","description":"The address a live link copies. Paste it into Excel (Data, From Web) or Power BI\n(Get data, Web). Newest first, at most 50,000 rows.","operationId":"live_xlsx_api_v1_live__token__measurements_xlsx_get","parameters":[{"required":true,"schema":{"type":"string","title":"Token"},"name":"token","in":"path"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/live/{token}/measurements.csv":{"get":{"tags":["emazys API","Live links"],"summary":"A live link as a CSV file","description":"The same rows as comma-separated text with dot decimals.","operationId":"live_csv_api_v1_live__token__measurements_csv_get","parameters":[{"required":true,"schema":{"type":"string","title":"Token"},"name":"token","in":"path"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}},"securitySchemes":{"APIKeyHeader":{"type":"apiKey","description":"Your team's API key, made on the Integrations page of the emazys cloud.","in":"header","name":"X-API-Key"}}}}