{"components":{"responses":{},"schemas":{"AcceptedResponse":{"title":"AcceptedResponse"},"AccessToken":{"properties":{"description":{"type":"string"},"id":{"type":"integer"},"inserted_at":{"format":"date-time","type":"string"},"scopes":{"type":"string"},"token":{"type":"string"}},"title":"AccessToken","type":"object"},"AccessTokenListResponse":{"items":{"$ref":"#/components/schemas/AccessToken"},"title":"AccessTokenListResponse","type":"array"},"BackendApiSchema":{"properties":{"config":{"type":"object"},"default_ingest?":{"type":"boolean"},"id":{"type":"integer"},"inserted_at":{"format":"date-time","type":"string"},"metadata":{"type":"object"},"name":{"type":"string"},"token":{"type":"string"},"updated_at":{"format":"date-time","type":"string"}},"required":["name"],"title":"BackendApiSchema","type":"object"},"BackendApiSchemaListResponse":{"items":{"$ref":"#/components/schemas/BackendApiSchema"},"title":"BackendApiSchemaListResponse","type":"array"},"BackendConnectionTest":{"properties":{"connected?":{"type":"boolean"},"reason":{"type":"string"}},"required":["connected?"],"title":"BackendConnectionTest","type":"object"},"BadRequest":{"title":"BadRequest"},"EndpointApiSchema":{"properties":{"cache_duration_seconds":{"type":"integer"},"description":{"nullable":true,"type":"string"},"enable_auth":{"type":"boolean"},"id":{"type":"integer"},"max_limit":{"type":"integer"},"name":{"type":"string"},"proactive_requerying_seconds":{"type":"integer"},"query":{"type":"string"},"sandboxable":{"nullable":true,"type":"boolean"},"source_mapping":{"nullable":true,"type":"object"},"token":{"type":"string"}},"required":["name","query"],"title":"EndpointApiSchema","type":"object"},"EndpointApiSchemaListResponse":{"items":{"$ref":"#/components/schemas/EndpointApiSchema"},"title":"EndpointApiSchemaListResponse","type":"array"},"EndpointQuery":{"properties":{"error":{"oneOf":[{"type":"object"},{"type":"string"}]},"result":{"items":{"type":"object"},"type":"array"}},"title":"EndpointQuery","type":"object"},"Event":{"properties":{"event_message":{"type":"string"},"timestamp":{"type":"integer"}},"title":"Event","type":"object"},"EventListResponse":{"items":{"$ref":"#/components/schemas/Event"},"title":"EventListResponse","type":"array"},"KeyValueApiSchema":{"properties":{"id":{"type":"integer"},"key":{"type":"string"},"value":{"type":"object"}},"required":["key","value"],"title":"KeyValueApiSchema","type":"object"},"KeyValueApiSchemaListResponse":{"items":{"$ref":"#/components/schemas/KeyValueApiSchema"},"title":"KeyValueApiSchemaListResponse","type":"array"},"LogsCreated":{"properties":{"message":{"example":"Logged!","type":"string"}},"title":"LogsCreated","type":"object"},"NotFoundResponse":{"properties":{"error":{"type":"string"}},"required":["error"],"title":"NotFoundResponse","type":"object"},"Notification":{"properties":{"other_email_notifications":{"type":"string"},"team_user_ids_for_email":{"items":{"type":"string"},"type":"array"},"team_user_ids_for_schema_updates":{"items":{"type":"string"},"type":"array"},"team_user_ids_for_sms":{"items":{"type":"string"},"type":"array"},"user_email_notifications":{"type":"boolean"},"user_schema_update_notifications":{"type":"boolean"},"user_text_notifications":{"type":"boolean"}},"title":"Notification","type":"object"},"QueryParseResult":{"properties":{"errors":{"oneOf":[{"type":"object"},{"type":"string"}]},"result":{"type":"object"}},"required":["result"],"title":"QueryParseResult","type":"object"},"QueryResult":{"properties":{"errors":{"oneOf":[{"type":"object"},{"type":"string"}]},"result":{"type":"object"}},"required":["result"],"title":"QueryResult","type":"object"},"QueryResultListResponse":{"items":{"$ref":"#/components/schemas/QueryResult"},"title":"QueryResultListResponse","type":"array"},"RuleApiSchema":{"properties":{"backend_id":{"type":"integer"},"id":{"type":"integer"},"inserted_at":{"format":"date-time","type":"string"},"lql_string":{"type":"string"},"source_id":{"type":"integer"},"token":{"type":"string"},"updated_at":{"format":"date-time","type":"string"}},"required":["name"],"title":"RuleApiSchema","type":"object"},"RuleApiSchemaListResponse":{"items":{"$ref":"#/components/schemas/RuleApiSchema"},"title":"RuleApiSchemaListResponse","type":"array"},"ServerError":{"title":"ServerError"},"Source":{"properties":{"api_quota":{"type":"integer"},"bigquery_table_ttl":{"type":"integer"},"bq_table_id":{"type":"string"},"custom_event_message_keys":{"type":"string"},"default_ingest_backend_enabled?":{"type":"boolean"},"description":{"nullable":true,"type":"string"},"favorite":{"type":"boolean"},"has_rejected_events":{"type":"boolean"},"id":{"type":"integer"},"inserted_at":{"format":"date-time","type":"string"},"metrics":{"type":"object"},"name":{"type":"string"},"notifications":{"items":{"$ref":"#/components/schemas/Notification"},"type":"object"},"public_token":{"type":"string"},"slack_hook_url":{"type":"string"},"token":{"type":"string"},"updated_at":{"format":"date-time","type":"string"},"webhook_notification_url":{"type":"string"}},"required":["name"],"title":"Source","type":"object"},"SourceListResponse":{"items":{"$ref":"#/components/schemas/Source"},"title":"SourceListResponse","type":"array"},"SourceSchema":{"properties":{},"title":"SourceSchema","type":"object"},"Team":{"properties":{"name":{"type":"string"},"team_users":{"items":{"$ref":"#/components/schemas/TeamUser"},"type":"array"},"token":{"type":"string"},"user":{"$ref":"#/components/schemas/User"}},"required":["name"],"title":"Team","type":"object"},"TeamListResponse":{"items":{"$ref":"#/components/schemas/Team"},"title":"TeamListResponse","type":"array"},"TeamUser":{"properties":{"email":{"type":"string"},"name":{"type":"string"}},"required":["email","name"],"title":"TeamUser","type":"object"},"Unauthorized":{"title":"Unauthorized"},"UnprocessableEntityResponse":{"properties":{"errors":{"type":"object"}},"required":["errors"],"title":"UnprocessableEntityResponse","type":"object"},"User":{"properties":{"api_key":{"type":"string"},"api_quota":{"type":"integer"},"bigquery_dataset_id":{"nullable":true,"type":"string"},"bigquery_dataset_location":{"nullable":true,"type":"string"},"bigquery_project_id":{"nullable":true,"type":"string"},"company":{"nullable":true,"type":"string"},"email":{"type":"string"},"email_me_product":{"type":"boolean"},"email_preferred":{"type":"string"},"image":{"nullable":true,"type":"string"},"name":{"type":"string"},"phone":{"nullable":true,"type":"string"},"provider":{"type":"string"},"token":{"type":"string"}},"required":["email","provider","token","api_key"],"title":"User","type":"object"}},"securitySchemes":{"authorization":{"bearerFormat":"JWT","scheme":"bearer","type":"http"}}},"info":{"title":"logflare","version":"1.39.0"},"openapi":"3.0.0","paths":{"/api/access-tokens":{"get":{"callbacks":{},"operationId":"LogflareWeb.Api.AccessTokenController.index","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/AccessToken"},"title":"AccessTokenListResponse","type":"array"}}},"description":"AccessToken List Response"}},"summary":"List access tokens","tags":["management"]},"post":{"callbacks":{},"operationId":"LogflareWeb.Api.AccessTokenController.create","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessToken"}}},"description":"AccessToken Parameters","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessToken"}}},"description":"Created Response"},"401":{"content":{"text/plain":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}},"description":"Unauthorized"},"404":{"content":{"text/plain":{"schema":{"properties":{"error":{"type":"string"}},"required":["error"],"title":"NotFoundResponse","type":"object"}}},"description":"Not found"}},"summary":"Create source","tags":["management"]}},"/api/access-tokens/{token}":{"delete":{"callbacks":{},"operationId":"LogflareWeb.Api.AccessTokenController.delete","parameters":[{"description":"Access Token","in":"path","name":"token","required":true,"schema":{"type":"string"}}],"responses":{"204":{"content":{"text/plain":{"schema":{"title":"AcceptedResponse"}}},"description":"Accepted Response"},"404":{"content":{"text/plain":{"schema":{"properties":{"error":{"type":"string"}},"required":["error"],"title":"NotFoundResponse","type":"object"}}},"description":"Not found"}},"summary":"Delete access token","tags":["management"]}},"/api/backends":{"get":{"callbacks":{},"operationId":"LogflareWeb.Api.BackendController.index","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/BackendApiSchema"},"title":"BackendApiSchemaListResponse","type":"array"}}},"description":"BackendApiSchema List Response"}},"summary":"List backends. Default managed backends are not included.","tags":["management"]},"post":{"callbacks":{},"operationId":"LogflareWeb.Api.BackendController.create","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackendApiSchema"}}},"description":"BackendApiSchema Parameters","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackendApiSchema"}}},"description":"Created Response"},"404":{"content":{"text/plain":{"schema":{"properties":{"error":{"type":"string"}},"required":["error"],"title":"NotFoundResponse","type":"object"}}},"description":"Not found"}},"summary":"Create backend","tags":["management"]}},"/api/backends/{token}":{"delete":{"callbacks":{},"operationId":"LogflareWeb.Api.BackendController.delete","parameters":[{"description":"Backend Token","in":"path","name":"token","required":true,"schema":{"type":"string"}}],"responses":{"204":{"content":{"text/plain":{"schema":{"title":"AcceptedResponse"}}},"description":"Accepted Response"},"404":{"content":{"text/plain":{"schema":{"properties":{"error":{"type":"string"}},"required":["error"],"title":"NotFoundResponse","type":"object"}}},"description":"Not found"}},"summary":"Delete backend","tags":["management"]},"get":{"callbacks":{},"operationId":"LogflareWeb.Api.BackendController.show","parameters":[{"description":"Backend token","in":"path","name":"token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackendApiSchema"}}},"description":"BackendApiSchema Response"},"404":{"content":{"text/plain":{"schema":{"properties":{"error":{"type":"string"}},"required":["error"],"title":"NotFoundResponse","type":"object"}}},"description":"Not found"}},"summary":"Fetch backend","tags":["management"]},"patch":{"callbacks":{},"operationId":"LogflareWeb.Api.BackendController.update (2)","parameters":[{"description":"Backend Token","in":"path","name":"token","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackendApiSchema"}}},"description":"BackendApiSchema Parameters","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackendApiSchema"}}},"description":"Accepted Response"},"204":{"content":{"text/plain":{"schema":{"title":"AcceptedResponse"}}},"description":"Accepted Response"},"404":{"content":{"text/plain":{"schema":{"properties":{"error":{"type":"string"}},"required":["error"],"title":"NotFoundResponse","type":"object"}}},"description":"Not found"}},"summary":"Update backend","tags":["management"]},"put":{"callbacks":{},"operationId":"LogflareWeb.Api.BackendController.update","parameters":[{"description":"Backend Token","in":"path","name":"token","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackendApiSchema"}}},"description":"BackendApiSchema Parameters","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackendApiSchema"}}},"description":"Accepted Response"},"204":{"content":{"text/plain":{"schema":{"title":"AcceptedResponse"}}},"description":"Accepted Response"},"404":{"content":{"text/plain":{"schema":{"properties":{"error":{"type":"string"}},"required":["error"],"title":"NotFoundResponse","type":"object"}}},"description":"Not found"}},"summary":"Update backend","tags":["management"]}},"/api/backends/{token}/test":{"post":{"callbacks":{},"operationId":"LogflareWeb.Api.BackendController.test_connection","parameters":[{"description":"Backend Token","in":"path","name":"token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackendConnectionTest"}}},"description":"BackendConnectionTest Response"},"404":{"content":{"text/plain":{"schema":{"properties":{"error":{"type":"string"}},"required":["error"],"title":"NotFoundResponse","type":"object"}}},"description":"Not found"}},"summary":"Test backend connection","tags":["management"]}},"/api/endpoints":{"get":{"callbacks":{},"operationId":"LogflareWeb.Api.EndpointController.index","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/EndpointApiSchema"},"title":"EndpointApiSchemaListResponse","type":"array"}}},"description":"EndpointApiSchema List Response"}},"summary":"List endpoints","tags":["management"]},"post":{"callbacks":{},"operationId":"LogflareWeb.Api.EndpointController.create","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EndpointApiSchema"}}},"description":"EndpointApiSchema Parameters","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EndpointApiSchema"}}},"description":"Created Response"},"404":{"content":{"text/plain":{"schema":{"properties":{"error":{"type":"string"}},"required":["error"],"title":"NotFoundResponse","type":"object"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"properties":{"errors":{"type":"object"}},"required":["errors"],"title":"UnprocessableEntityResponse","type":"object"}}},"description":"Unprocessable Entity"}},"summary":"Create endpoint","tags":["management"]}},"/api/endpoints/query/name/{name}":{"get":{"callbacks":{},"description":"Full details are available in the [Logflare Endpoints documentation](https://docs.logflare.app/concepts/endpoints/)","operationId":"LogflareWeb.EndpointsController.query","parameters":[{"description":"Endpoint UUID or name","example":"a040ae88-3e27-448b-9ee6-622278b23193","in":"path","name":"token_or_name","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EndpointQuery"}}},"description":"EndpointQuery Response"},"401":{"content":{"text/plain":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}},"description":"Unauthorized"},"500":{"content":{"text/plain":{"schema":{"$ref":"#/components/schemas/ServerError"}}},"description":"Server error"}},"summary":"Query a Logflare Endpoint","tags":["Public"]}},"/api/endpoints/query/{token_or_name}":{"get":{"callbacks":{},"description":"Full details are available in the [Logflare Endpoints documentation](https://docs.logflare.app/concepts/endpoints/)","operationId":"LogflareWeb.EndpointsController.query (2)","parameters":[{"description":"Endpoint UUID or name","example":"a040ae88-3e27-448b-9ee6-622278b23193","in":"path","name":"token_or_name","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EndpointQuery"}}},"description":"EndpointQuery Response"},"401":{"content":{"text/plain":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}},"description":"Unauthorized"},"500":{"content":{"text/plain":{"schema":{"$ref":"#/components/schemas/ServerError"}}},"description":"Server error"}},"summary":"Query a Logflare Endpoint","tags":["Public"]},"post":{"callbacks":{},"description":"Full details are available in the [Logflare Endpoints documentation](https://docs.logflare.app/concepts/endpoints/)","operationId":"LogflareWeb.EndpointsController.query (3)","parameters":[{"description":"Endpoint UUID or name","example":"a040ae88-3e27-448b-9ee6-622278b23193","in":"path","name":"token_or_name","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EndpointQuery"}}},"description":"EndpointQuery Response"},"401":{"content":{"text/plain":{"schema":{"$ref":"#/components/schemas/Unauthorized"}}},"description":"Unauthorized"},"500":{"content":{"text/plain":{"schema":{"$ref":"#/components/schemas/ServerError"}}},"description":"Server error"}},"summary":"Query a Logflare Endpoint","tags":["Public"]}},"/api/endpoints/{token}":{"delete":{"callbacks":{},"operationId":"LogflareWeb.Api.EndpointController.delete","parameters":[{"description":"Endpoint UUID Token","in":"path","name":"token","required":true,"schema":{"type":"string"}}],"responses":{"204":{"content":{"text/plain":{"schema":{"title":"AcceptedResponse"}}},"description":"Accepted Response"},"404":{"content":{"text/plain":{"schema":{"properties":{"error":{"type":"string"}},"required":["error"],"title":"NotFoundResponse","type":"object"}}},"description":"Not found"}},"summary":"Delete endpoint","tags":["management","management"]},"get":{"callbacks":{},"operationId":"LogflareWeb.Api.EndpointController.show","parameters":[{"description":"Endpoint UUID Token","in":"path","name":"token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EndpointApiSchema"}}},"description":"EndpointApiSchema Response"},"404":{"content":{"text/plain":{"schema":{"properties":{"error":{"type":"string"}},"required":["error"],"title":"NotFoundResponse","type":"object"}}},"description":"Not found"}},"summary":"Fetch endpoint","tags":["management"]},"patch":{"callbacks":{},"operationId":"LogflareWeb.Api.EndpointController.update (2)","parameters":[{"description":"Endpoint UUID Token","in":"path","name":"token","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EndpointApiSchema"}}},"description":"EndpointApiSchema Parameters","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EndpointApiSchema"}}},"description":"Accepted Response"},"204":{"content":{"text/plain":{"schema":{"title":"AcceptedResponse"}}},"description":"Accepted Response"},"404":{"content":{"text/plain":{"schema":{"properties":{"error":{"type":"string"}},"required":["error"],"title":"NotFoundResponse","type":"object"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"properties":{"errors":{"type":"object"}},"required":["errors"],"title":"UnprocessableEntityResponse","type":"object"}}},"description":"Unprocessable Entity"}},"summary":"Update endpoint","tags":["management"]},"put":{"callbacks":{},"operationId":"LogflareWeb.Api.EndpointController.update","parameters":[{"description":"Endpoint UUID Token","in":"path","name":"token","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EndpointApiSchema"}}},"description":"EndpointApiSchema Parameters","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EndpointApiSchema"}}},"description":"Accepted Response"},"204":{"content":{"text/plain":{"schema":{"title":"AcceptedResponse"}}},"description":"Accepted Response"},"404":{"content":{"text/plain":{"schema":{"properties":{"error":{"type":"string"}},"required":["error"],"title":"NotFoundResponse","type":"object"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"properties":{"errors":{"type":"object"}},"required":["errors"],"title":"UnprocessableEntityResponse","type":"object"}}},"description":"Unprocessable Entity"}},"summary":"Update endpoint","tags":["management"]}},"/api/events":{"options":{"callbacks":{},"description":"Full details are available in the [ingestion documentation](https://docs.logflare.app/concepts/ingestion/)","operationId":"LogflareWeb.LogController.create","parameters":[{"description":"Source UUID","example":"a040ae88-3e27-448b-9ee6-622278b23193","in":"query","name":"source","required":false,"schema":{"type":"string"}},{"description":"Source name","example":"MyApp.MySource","in":"query","name":"source_name","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LogsCreated"}}},"description":"Created Response"},"500":{"content":{"text/plain":{"schema":{"$ref":"#/components/schemas/ServerError"}}},"description":"Server error"}},"summary":"Create log event","tags":["Public"]},"post":{"callbacks":{},"description":"Full details are available in the [ingestion documentation](https://docs.logflare.app/concepts/ingestion/)","operationId":"LogflareWeb.LogController.create (2)","parameters":[{"description":"Source UUID","example":"a040ae88-3e27-448b-9ee6-622278b23193","in":"query","name":"source","required":false,"schema":{"type":"string"}},{"description":"Source name","example":"MyApp.MySource","in":"query","name":"source_name","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LogsCreated"}}},"description":"Created Response"},"500":{"content":{"text/plain":{"schema":{"$ref":"#/components/schemas/ServerError"}}},"description":"Server error"}},"summary":"Create log event","tags":["Public"]}},"/api/key-values":{"delete":{"callbacks":{},"operationId":"LogflareWeb.Api.KeyValueController.delete","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"properties":{"accessor":{"description":"Dot-path or JSONPath into the JSONB value (required with values)","type":"string"},"keys":{"items":{"type":"string"},"type":"array"},"values":{"items":{"type":"string"},"type":"array"}},"type":"object"}}},"description":"Bulk delete","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"deleted_count":{"type":"integer"}},"type":"object"}}},"description":"Deleted count"}},"summary":"Bulk delete key-value pairs by keys or by accessor path into values","tags":["management"]},"get":{"callbacks":{},"operationId":"LogflareWeb.Api.KeyValueController.index","parameters":[{"description":"Filter by key (exact match)","in":"query","name":"key","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/KeyValueApiSchema"},"title":"KeyValueApiSchemaListResponse","type":"array"}}},"description":"KeyValueApiSchema List Response"}},"summary":"List key-value pairs","tags":["management"]},"post":{"callbacks":{},"operationId":"LogflareWeb.Api.KeyValueController.create","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/KeyValueApiSchema"},"type":"array"}}},"description":"Key-value pairs","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyValueApiSchema"}}},"description":"Created Response"}},"summary":"Bulk upsert key-value pairs","tags":["management"]}},"/api/logs":{"options":{"callbacks":{},"description":"Full details are available in the [ingestion documentation](https://docs.logflare.app/concepts/ingestion/)","operationId":"LogflareWeb.LogController.create (3)","parameters":[{"description":"Source UUID","example":"a040ae88-3e27-448b-9ee6-622278b23193","in":"query","name":"source","required":false,"schema":{"type":"string"}},{"description":"Source name","example":"MyApp.MySource","in":"query","name":"source_name","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LogsCreated"}}},"description":"Created Response"},"500":{"content":{"text/plain":{"schema":{"$ref":"#/components/schemas/ServerError"}}},"description":"Server error"}},"summary":"Create log event","tags":["Public"]},"post":{"callbacks":{},"description":"Full details are available in the [ingestion documentation](https://docs.logflare.app/concepts/ingestion/)","operationId":"LogflareWeb.LogController.create (4)","parameters":[{"description":"Source UUID","example":"a040ae88-3e27-448b-9ee6-622278b23193","in":"query","name":"source","required":false,"schema":{"type":"string"}},{"description":"Source name","example":"MyApp.MySource","in":"query","name":"source_name","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LogsCreated"}}},"description":"Created Response"},"500":{"content":{"text/plain":{"schema":{"$ref":"#/components/schemas/ServerError"}}},"description":"Server error"}},"summary":"Create log event","tags":["Public"]}},"/api/query":{"get":{"callbacks":{},"operationId":"LogflareWeb.Api.QueryController.query","parameters":[{"description":"BigQuery SQL string, alias for bq_sql","in":"query","name":"sql","required":false,"schema":{"type":"string"}},{"description":"BigQuery SQL string","example":"select current_timestamp() as 'test'","in":"query","name":"bq_sql","required":false,"schema":{"type":"string"}},{"description":"ClickHouse SQL string","example":"select now() as 'test'","in":"query","name":"ch_sql","required":false,"schema":{"type":"string"}},{"description":"PostgresSQL string","example":"select current_date() as 'test'","in":"query","name":"pg_sql","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/QueryResult"},"title":"QueryResultListResponse","type":"array"}}},"description":"QueryResult List Response"}},"summary":"Execute a query","tags":["management"]}},"/api/query/parse":{"get":{"callbacks":{},"operationId":"LogflareWeb.Api.QueryController.parse","parameters":[{"allowEmptyValue":true,"description":"BigQuery SQL string, alias for bq_sql","in":"query","name":"sql","required":false,"schema":{"type":"string"}},{"description":"BigQuery SQL string","example":"select current_timestamp() as 'test'","in":"query","name":"bq_sql","required":false,"schema":{"type":"string"}},{"description":"ClickHouse SQL string","example":"select now() as 'test'","in":"query","name":"ch_sql","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryParseResult"}}},"description":"QueryParseResult One Response"},"400":{"content":{"text/plain":{"schema":{"$ref":"#/components/schemas/BadRequest"}}},"description":"Bad request"}},"summary":"Parses a query","tags":["management"]}},"/api/rules":{"get":{"callbacks":{},"operationId":"LogflareWeb.Api.RuleController.index","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/RuleApiSchema"},"title":"RuleApiSchemaListResponse","type":"array"}}},"description":"RuleApiSchema List Response"}},"summary":"List rules","tags":["management"]},"post":{"callbacks":{},"operationId":"LogflareWeb.Api.RuleController.create","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleApiSchema"}}},"description":"RuleApiSchema Parameters","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleApiSchema"}}},"description":"Created Response"},"404":{"content":{"text/plain":{"schema":{"properties":{"error":{"type":"string"}},"required":["error"],"title":"NotFoundResponse","type":"object"}}},"description":"Not found"}},"summary":"Create rule. Allows batch creation if as a list.","tags":["management"]}},"/api/rules/{token}":{"delete":{"callbacks":{},"operationId":"LogflareWeb.Api.RuleController.delete","parameters":[{"description":"Rule UUID","in":"path","name":"token","required":true,"schema":{"type":"string"}}],"responses":{"204":{"content":{"text/plain":{"schema":{"title":"AcceptedResponse"}}},"description":"Accepted Response"},"404":{"content":{"text/plain":{"schema":{"properties":{"error":{"type":"string"}},"required":["error"],"title":"NotFoundResponse","type":"object"}}},"description":"Not found"}},"summary":"Delete rule","tags":["management"]},"get":{"callbacks":{},"operationId":"LogflareWeb.Api.RuleController.show","parameters":[{"description":"Rule UUID","in":"path","name":"token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleApiSchema"}}},"description":"RuleApiSchema Response"},"404":{"content":{"text/plain":{"schema":{"properties":{"error":{"type":"string"}},"required":["error"],"title":"NotFoundResponse","type":"object"}}},"description":"Not found"}},"summary":"Fetch rule","tags":["management"]},"patch":{"callbacks":{},"operationId":"LogflareWeb.Api.RuleController.update (2)","parameters":[{"description":"Rule UUID","in":"path","name":"token","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleApiSchema"}}},"description":"RuleApiSchema Parameters","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleApiSchema"}}},"description":"Accepted Response"},"204":{"content":{"text/plain":{"schema":{"title":"AcceptedResponse"}}},"description":"Accepted Response"},"404":{"content":{"text/plain":{"schema":{"properties":{"error":{"type":"string"}},"required":["error"],"title":"NotFoundResponse","type":"object"}}},"description":"Not found"}},"summary":"Update rule","tags":["management"]},"put":{"callbacks":{},"operationId":"LogflareWeb.Api.RuleController.update","parameters":[{"description":"Rule UUID","in":"path","name":"token","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleApiSchema"}}},"description":"RuleApiSchema Parameters","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleApiSchema"}}},"description":"Accepted Response"},"204":{"content":{"text/plain":{"schema":{"title":"AcceptedResponse"}}},"description":"Accepted Response"},"404":{"content":{"text/plain":{"schema":{"properties":{"error":{"type":"string"}},"required":["error"],"title":"NotFoundResponse","type":"object"}}},"description":"Not found"}},"summary":"Update rule","tags":["management"]}},"/api/sources":{"get":{"callbacks":{},"operationId":"LogflareWeb.Api.SourceController.index","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Source"},"title":"SourceListResponse","type":"array"}}},"description":"Source List Response"}},"summary":"List sources","tags":["management"]},"post":{"callbacks":{},"operationId":"LogflareWeb.Api.SourceController.create","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Source"}}},"description":"Source Parameters","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Source"}}},"description":"Created Response"},"404":{"content":{"text/plain":{"schema":{"properties":{"error":{"type":"string"}},"required":["error"],"title":"NotFoundResponse","type":"object"}}},"description":"Not found"}},"summary":"Create source","tags":["management"]}},"/api/sources/{source_token}/backends/{backend_token}":{"delete":{"callbacks":{},"operationId":"LogflareWeb.Api.SourceController.remove_backend","parameters":[{"description":"Source Token","in":"path","name":"source_token","required":true,"schema":{"type":"string"}},{"description":"Backend Token","in":"path","name":"backend_token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Source"}}},"description":"Source Response"},"404":{"content":{"text/plain":{"schema":{"properties":{"error":{"type":"string"}},"required":["error"],"title":"NotFoundResponse","type":"object"}}},"description":"Not found"}},"summary":"Remove source backend","tags":["management"]},"post":{"callbacks":{},"operationId":"LogflareWeb.Api.SourceController.add_backend","parameters":[{"description":"Source Token","in":"path","name":"source_token","required":true,"schema":{"type":"string"}},{"description":"Backend Token","in":"path","name":"backend_token","required":true,"schema":{"type":"string"}}],"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Source"}}},"description":"Source Response"},"404":{"content":{"text/plain":{"schema":{"properties":{"error":{"type":"string"}},"required":["error"],"title":"NotFoundResponse","type":"object"}}},"description":"Not found"}},"summary":"Add source backend","tags":["management"]}},"/api/sources/{source_token}/recent":{"get":{"callbacks":{},"operationId":"LogflareWeb.Api.SourceController.recent","parameters":[{"description":"Source Token","in":"path","name":"source_token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Event"},"title":"EventListResponse","type":"array"}}},"description":"Event List Response"},"404":{"content":{"text/plain":{"schema":{"properties":{"error":{"type":"string"}},"required":["error"],"title":"NotFoundResponse","type":"object"}}},"description":"Not found"}},"summary":"Recent events in a source","tags":["management"]}},"/api/sources/{source_token}/schema":{"get":{"callbacks":{},"operationId":"LogflareWeb.Api.SourceController.show_schema","parameters":[{"description":"Source Token","in":"path","name":"source_token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourceSchema"}}},"description":"SourceSchema Response"},"404":{"content":{"text/plain":{"schema":{"properties":{"error":{"type":"string"}},"required":["error"],"title":"NotFoundResponse","type":"object"}}},"description":"Not found"}},"summary":"Show source schema","tags":["management"]}},"/api/sources/{token}":{"delete":{"callbacks":{},"operationId":"LogflareWeb.Api.SourceController.delete","parameters":[{"description":"Source Token","in":"path","name":"token","required":true,"schema":{"type":"string"}}],"responses":{"204":{"content":{"text/plain":{"schema":{"title":"AcceptedResponse"}}},"description":"Accepted Response"},"404":{"content":{"text/plain":{"schema":{"properties":{"error":{"type":"string"}},"required":["error"],"title":"NotFoundResponse","type":"object"}}},"description":"Not found"}},"summary":"Delete source","tags":["management"]},"get":{"callbacks":{},"operationId":"LogflareWeb.Api.SourceController.show","parameters":[{"description":"Source Token","in":"path","name":"token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Source"}}},"description":"Source Response"},"404":{"content":{"text/plain":{"schema":{"properties":{"error":{"type":"string"}},"required":["error"],"title":"NotFoundResponse","type":"object"}}},"description":"Not found"}},"summary":"Fetch source","tags":["management"]},"patch":{"callbacks":{},"operationId":"LogflareWeb.Api.SourceController.update (2)","parameters":[{"description":"Source Token","in":"path","name":"token","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Source"}}},"description":"Source Parameters","required":false},"responses":{"200":{"content":{"text/plain":{"schema":{"title":"AcceptedResponse"}}},"description":"Accepted Response"},"204":{"content":{"text/plain":{"schema":{"title":"AcceptedResponse"}}},"description":"Accepted Response"},"404":{"content":{"text/plain":{"schema":{"properties":{"error":{"type":"string"}},"required":["error"],"title":"NotFoundResponse","type":"object"}}},"description":"Not found"}},"summary":"Update source","tags":["management"]},"put":{"callbacks":{},"operationId":"LogflareWeb.Api.SourceController.update","parameters":[{"description":"Source Token","in":"path","name":"token","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Source"}}},"description":"Source Parameters","required":false},"responses":{"200":{"content":{"text/plain":{"schema":{"title":"AcceptedResponse"}}},"description":"Accepted Response"},"204":{"content":{"text/plain":{"schema":{"title":"AcceptedResponse"}}},"description":"Accepted Response"},"404":{"content":{"text/plain":{"schema":{"properties":{"error":{"type":"string"}},"required":["error"],"title":"NotFoundResponse","type":"object"}}},"description":"Not found"}},"summary":"Update source","tags":["management"]}},"/api/teams":{"get":{"callbacks":{},"operationId":"LogflareWeb.Api.TeamController.index","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Team"},"title":"TeamListResponse","type":"array"}}},"description":"Team List Response"}},"summary":"List teams","tags":["management"]},"post":{"callbacks":{},"operationId":"LogflareWeb.Api.TeamController.create","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Team"}}},"description":"Team Parameters","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Team"}}},"description":"Created Response"},"404":{"content":{"text/plain":{"schema":{"properties":{"error":{"type":"string"}},"required":["error"],"title":"NotFoundResponse","type":"object"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"properties":{"errors":{"type":"object"}},"required":["errors"],"title":"UnprocessableEntityResponse","type":"object"}}},"description":"Unprocessable Entity"}},"summary":"Create Team","tags":["management"]}},"/api/teams/{token}":{"delete":{"callbacks":{},"operationId":"LogflareWeb.Api.TeamController.delete","parameters":[{"description":"Team Token","in":"path","name":"token","required":true,"schema":{"type":"string"}}],"responses":{"204":{"content":{"text/plain":{"schema":{"title":"AcceptedResponse"}}},"description":"Accepted Response"},"404":{"content":{"text/plain":{"schema":{"properties":{"error":{"type":"string"}},"required":["error"],"title":"NotFoundResponse","type":"object"}}},"description":"Not found"}},"summary":"Delete Team","tags":["management"]},"get":{"callbacks":{},"operationId":"LogflareWeb.Api.TeamController.show","parameters":[{"description":"Team Token","in":"path","name":"token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Team"}}},"description":"Team Response"},"404":{"content":{"text/plain":{"schema":{"properties":{"error":{"type":"string"}},"required":["error"],"title":"NotFoundResponse","type":"object"}}},"description":"Not found"}},"summary":"Fetch team","tags":["management"]},"patch":{"callbacks":{},"operationId":"LogflareWeb.Api.TeamController.update (2)","parameters":[{"description":"Team Token","in":"path","name":"token","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Team"}}},"description":"Team Parameters","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Team"}}},"description":"Created Response"},"204":{"content":{"text/plain":{"schema":{"title":"AcceptedResponse"}}},"description":"Accepted Response"},"404":{"content":{"text/plain":{"schema":{"properties":{"error":{"type":"string"}},"required":["error"],"title":"NotFoundResponse","type":"object"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"properties":{"errors":{"type":"object"}},"required":["errors"],"title":"UnprocessableEntityResponse","type":"object"}}},"description":"Unprocessable Entity"}},"summary":"Update team","tags":["management"]},"put":{"callbacks":{},"operationId":"LogflareWeb.Api.TeamController.update","parameters":[{"description":"Team Token","in":"path","name":"token","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Team"}}},"description":"Team Parameters","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Team"}}},"description":"Created Response"},"204":{"content":{"text/plain":{"schema":{"title":"AcceptedResponse"}}},"description":"Accepted Response"},"404":{"content":{"text/plain":{"schema":{"properties":{"error":{"type":"string"}},"required":["error"],"title":"NotFoundResponse","type":"object"}}},"description":"Not found"},"422":{"content":{"application/json":{"schema":{"properties":{"errors":{"type":"object"}},"required":["errors"],"title":"UnprocessableEntityResponse","type":"object"}}},"description":"Unprocessable Entity"}},"summary":"Update team","tags":["management"]}}},"security":[],"servers":[{"url":"https://logflare.app","variables":{}}],"tags":[]}