{"components":{"responses":{},"schemas":{"User":{"properties":{"api_key":{"type":"string"},"api_quota":{"type":"integer"},"bigquery_additional_projects":{"nullable":true,"type":"string"},"bigquery_dataset_id":{"nullable":true,"type":"string"},"bigquery_dataset_location":{"nullable":true,"type":"string"},"bigquery_project_id":{"nullable":true,"type":"string"},"bigquery_reservation_alerts":{"nullable":true,"type":"string"},"bigquery_reservation_search":{"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"},"metadata":{"nullable":true,"type":"object"},"name":{"type":"string"},"partner_upgraded":{"nullable":true,"type":"boolean"},"phone":{"nullable":true,"type":"string"},"provider":{"type":"string"},"system_monitoring":{"type":"boolean"},"token":{"type":"string"}},"required":["email","provider","token","api_key"],"title":"User","type":"object"},"EventListResponse":{"items":{"$ref":"#/components/schemas/Event"},"title":"EventListResponse","type":"array"},"EndpointApiSchemaListResponse":{"items":{"$ref":"#/components/schemas/EndpointApiSchema"},"title":"EndpointApiSchemaListResponse","type":"array"},"RuleBatchResponse":{"properties":{"errors":{"items":{"type":"string"},"type":"array"},"results":{"items":{"$ref":"#/components/schemas/RuleApiSchema"},"type":"array"}},"required":["errors","results"],"title":"RuleBatchResponse","type":"object"},"QueryResult":{"properties":{"result":{"items":{"type":"object"},"type":"array"}},"required":["result"],"title":"QueryResult","type":"object"},"AlertApiSchemaListResponse":{"items":{"$ref":"#/components/schemas/AlertApiSchema"},"title":"AlertApiSchemaListResponse","type":"array"},"AccessTokenListResponse":{"items":{"$ref":"#/components/schemas/AccessToken"},"title":"AccessTokenListResponse","type":"array"},"QueryParseResult":{"properties":{"errors":{"oneOf":[{"type":"object"},{"type":"string"}]},"result":{"type":"object"}},"required":["result"],"title":"QueryParseResult","type":"object"},"KeyValueApiSchemaListResponse":{"items":{"$ref":"#/components/schemas/KeyValueApiSchema"},"title":"KeyValueApiSchemaListResponse","type":"array"},"SyslogConfigSchema":{"properties":{"ca_cert":{"nullable":true,"type":"string"},"cipher_key":{"nullable":true,"type":"string"},"client_cert":{"nullable":true,"type":"string"},"client_key":{"nullable":true,"type":"string"},"host":{"type":"string"},"max_message_bytes":{"nullable":true,"type":"integer"},"port":{"type":"integer"},"structured_data":{"nullable":true,"type":"string"},"tls":{"type":"boolean"}},"required":["host","port"],"title":"SyslogConfigSchema","type":"object"},"NotFoundResponse":{"properties":{"error":{"type":"string"}},"required":["error"],"title":"NotFoundResponse","type":"object"},"UnprocessableEntityResponse":{"properties":{"errors":{"type":"object"}},"required":["errors"],"title":"UnprocessableEntityResponse","type":"object"},"BigQueryConfigSchema":{"properties":{"dataset_id":{"nullable":true,"type":"string"},"project_id":{"nullable":true,"type":"string"}},"title":"BigQueryConfigSchema","type":"object"},"BackendApiParams":{"properties":{"config":{"anyOf":[{"$ref":"#/components/schemas/WebhookConfigSchema"},{"$ref":"#/components/schemas/DatadogConfigSchema"},{"$ref":"#/components/schemas/SentryConfigSchema"},{"$ref":"#/components/schemas/PostgresConfigSchema"},{"$ref":"#/components/schemas/BigQueryConfigSchema"},{"$ref":"#/components/schemas/LokiConfigSchema"},{"$ref":"#/components/schemas/ClickhouseConfigSchema"},{"$ref":"#/components/schemas/IncidentioConfigSchema"},{"$ref":"#/components/schemas/S3ConfigSchema"},{"$ref":"#/components/schemas/AxiomConfigSchema"},{"$ref":"#/components/schemas/OtlpConfigSchema"},{"$ref":"#/components/schemas/Last9ConfigSchema"},{"$ref":"#/components/schemas/SyslogConfigSchema"}]},"default_ingest?":{"type":"boolean"},"description":{"nullable":true,"type":"string"},"metadata":{"nullable":true,"type":"object"},"name":{"type":"string"},"type":{"type":"string"}},"required":["name","type","config"],"title":"BackendApiParams","type":"object"},"EndpointApiSchema":{"properties":{"backend_id":{"nullable":true,"type":"integer"},"cache_duration_seconds":{"type":"integer"},"description":{"nullable":true,"type":"string"},"enable_auth":{"type":"boolean"},"enable_dynamic_reservation":{"type":"boolean"},"id":{"type":"integer"},"labels":{"nullable":true,"type":"string"},"language":{"type":"string"},"max_limit":{"type":"integer"},"name":{"type":"string"},"proactive_requerying_seconds":{"type":"integer"},"query":{"type":"string"},"redact_pii":{"type":"boolean"},"sandboxable":{"nullable":true,"type":"boolean"},"source_mapping":{"nullable":true,"type":"object"},"token":{"type":"string"}},"required":["name","query"],"title":"EndpointApiSchema","type":"object"},"PostgresConfigSchema":{"properties":{"database":{"nullable":true,"type":"string"},"hostname":{"nullable":true,"type":"string"},"password":{"nullable":true,"type":"string"},"pool_size":{"nullable":true,"type":"integer"},"port":{"nullable":true,"type":"integer"},"schema":{"nullable":true,"type":"string"},"url":{"nullable":true,"type":"string"},"username":{"nullable":true,"type":"string"}},"title":"PostgresConfigSchema","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"},"BackendApiSchema":{"properties":{"config":{"anyOf":[{"$ref":"#/components/schemas/WebhookConfigSchema"},{"$ref":"#/components/schemas/DatadogConfigSchema"},{"$ref":"#/components/schemas/SentryConfigSchema"},{"$ref":"#/components/schemas/PostgresConfigSchema"},{"$ref":"#/components/schemas/BigQueryConfigSchema"},{"$ref":"#/components/schemas/LokiConfigSchema"},{"$ref":"#/components/schemas/ClickhouseConfigSchema"},{"$ref":"#/components/schemas/IncidentioConfigSchema"},{"$ref":"#/components/schemas/S3ConfigSchema"},{"$ref":"#/components/schemas/AxiomConfigSchema"},{"$ref":"#/components/schemas/OtlpConfigSchema"},{"$ref":"#/components/schemas/Last9ConfigSchema"},{"$ref":"#/components/schemas/SyslogConfigSchema"}]},"default_ingest?":{"type":"boolean"},"description":{"nullable":true,"type":"string"},"id":{"type":"integer"},"inserted_at":{"type":"string"},"metadata":{"nullable":true,"type":"object"},"name":{"type":"string"},"token":{"type":"string"},"type":{"type":"string"},"updated_at":{"type":"string"}},"required":["name","type","config"],"title":"BackendApiSchema","type":"object"},"SentryConfigSchema":{"properties":{"dsn":{"type":"string"}},"required":["dsn"],"title":"SentryConfigSchema","type":"object"},"ServerError":{"properties":{"error":{"type":"string"}},"required":["error"],"title":"ServerError","type":"object"},"Event":{"properties":{"event_message":{"type":"string"},"timestamp":{"type":"integer"}},"title":"Event","type":"object"},"SourceListResponse":{"items":{"$ref":"#/components/schemas/Source"},"title":"SourceListResponse","type":"array"},"EndpointQuery":{"properties":{"error":{"oneOf":[{"type":"object"},{"type":"string"}]},"result":{"items":{"type":"object"},"type":"array"}},"title":"EndpointQuery","type":"object"},"KeyValueApiSchema":{"properties":{"id":{"type":"integer"},"key":{"type":"string"},"value":{"type":"object"}},"required":["key","value"],"title":"KeyValueApiSchema","type":"object"},"RuleParams":{"properties":{"backend_id":{"type":"integer"},"lql_string":{"type":"string"},"sink":{"nullable":true,"type":"string"},"source_id":{"type":"integer"}},"required":["lql_string"],"title":"RuleParams","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"},"TeamListResponse":{"items":{"$ref":"#/components/schemas/Team"},"title":"TeamListResponse","type":"array"},"EndpointApiParams":{"properties":{"backend_id":{"nullable":true,"type":"integer"},"cache_duration_seconds":{"type":"integer"},"description":{"nullable":true,"type":"string"},"enable_auth":{"type":"boolean"},"enable_dynamic_reservation":{"type":"boolean"},"labels":{"nullable":true,"type":"string"},"language":{"type":"string"},"max_limit":{"type":"integer"},"name":{"type":"string"},"proactive_requerying_seconds":{"type":"integer"},"query":{"type":"string"},"redact_pii":{"type":"boolean"},"sandboxable":{"nullable":true,"type":"boolean"}},"required":["name","query"],"title":"EndpointApiParams","type":"object"},"SourceParams":{"properties":{"bigquery_clustering_fields":{"nullable":true,"type":"string"},"bigquery_table_ttl":{"nullable":true,"type":"integer"},"bq_storage_write_api":{"nullable":true,"type":"boolean"},"custom_event_message_keys":{"nullable":true,"type":"string"},"default_ingest_backend_enabled?":{"type":"boolean"},"default_search_lql":{"nullable":true,"type":"string"},"description":{"nullable":true,"type":"string"},"disable_tailing":{"nullable":true,"type":"boolean"},"drop_lql_string":{"nullable":true,"type":"string"},"enable_spooling":{"nullable":true,"type":"boolean"},"favorite":{"type":"boolean"},"labels":{"nullable":true,"type":"string"},"lock_schema":{"type":"boolean"},"name":{"type":"string"},"notifications":{"$ref":"#/components/schemas/Notification"},"notifications_every":{"type":"integer"},"retention_days":{"nullable":true,"type":"integer"},"service_name":{"nullable":true,"type":"string"},"slack_hook_url":{"nullable":true,"type":"string"},"suggested_keys":{"nullable":true,"type":"string"},"transform_copy_fields":{"nullable":true,"type":"string"},"transform_drop_fields":{"nullable":true,"type":"string"},"transform_key_values":{"nullable":true,"type":"string"},"validate_schema":{"type":"boolean"},"webhook_notification_url":{"nullable":true,"type":"string"}},"required":["name"],"title":"SourceParams","type":"object"},"Last9ConfigSchema":{"properties":{"password":{"type":"string"},"region":{"type":"string"},"username":{"type":"string"}},"required":["region","username","password"],"title":"Last9ConfigSchema","type":"object"},"TeamParams":{"properties":{"name":{"type":"string"}},"required":["name"],"title":"TeamParams","type":"object"},"KeyValueBulkUpsertResponse":{"properties":{"inserted_count":{"type":"integer"}},"required":["inserted_count"],"title":"KeyValueBulkUpsertResponse","type":"object"},"S3ConfigSchema":{"properties":{"access_key_id":{"type":"string"},"batch_timeout":{"nullable":true,"type":"integer"},"endpoint":{"nullable":true,"type":"string"},"s3_bucket":{"type":"string"},"secret_access_key":{"type":"string"},"storage_region":{"type":"string"}},"required":["s3_bucket","storage_region","access_key_id","secret_access_key"],"title":"S3ConfigSchema","type":"object"},"AccessToken":{"properties":{"description":{"nullable":true,"type":"string"},"id":{"type":"integer"},"inserted_at":{"format":"date-time","type":"string"},"scopes":{"type":"string"},"token":{"nullable":true,"type":"string"}},"title":"AccessToken","type":"object"},"DatadogConfigSchema":{"properties":{"api_key":{"type":"string"},"region":{"type":"string"}},"required":["api_key","region"],"title":"DatadogConfigSchema","type":"object"},"RuleApiSchemaListResponse":{"items":{"$ref":"#/components/schemas/RuleApiSchema"},"title":"RuleApiSchemaListResponse","type":"array"},"WebhookConfigSchema":{"properties":{"gzip":{"type":"boolean"},"headers":{"type":"object"},"http":{"nullable":true,"type":"string"},"url":{"type":"string"}},"required":["url"],"title":"WebhookConfigSchema","type":"object"},"RuleApiSchema":{"properties":{"backend_id":{"type":"integer"},"id":{"type":"integer"},"lql_string":{"type":"string"},"sink":{"nullable":true,"type":"string"},"source_id":{"type":"integer"},"token":{"type":"string"}},"required":["lql_string"],"title":"RuleApiSchema","type":"object"},"BackendApiSchemaListResponse":{"items":{"$ref":"#/components/schemas/BackendApiSchema"},"title":"BackendApiSchemaListResponse","type":"array"},"LokiConfigSchema":{"properties":{"headers":{"type":"object"},"password":{"nullable":true,"type":"string"},"url":{"type":"string"},"username":{"nullable":true,"type":"string"}},"required":["url"],"title":"LokiConfigSchema","type":"object"},"AlertApiSchema":{"properties":{"backends":{"items":{"$ref":"#/components/schemas/BackendApiSchema"},"type":"array"},"cron":{"type":"string"},"description":{"nullable":true,"type":"string"},"enabled":{"type":"boolean"},"id":{"type":"integer"},"language":{"type":"string"},"name":{"type":"string"},"query":{"type":"string"},"slack_hook_url":{"nullable":true,"type":"string"},"token":{"type":"string"},"webhook_notification_url":{"nullable":true,"type":"string"}},"required":["name","query","cron","language"],"title":"AlertApiSchema","type":"object"},"RuleCreateResponse":{"anyOf":[{"$ref":"#/components/schemas/RuleApiSchema"},{"$ref":"#/components/schemas/RuleBatchResponse"}],"title":"RuleCreateResponse"},"LogsCreated":{"properties":{"message":{"example":"Logged!","type":"string"}},"title":"LogsCreated","type":"object"},"BadRequestResponse":{"properties":{"error":{"oneOf":[{"type":"string"},{"type":"object"}]}},"required":["error"],"title":"BadRequestResponse","type":"object"},"UnauthorizedResponse":{"properties":{"error":{"type":"string"}},"required":["error"],"title":"UnauthorizedResponse","type":"object"},"AxiomConfigSchema":{"properties":{"api_token":{"type":"string"},"dataset_name":{"type":"string"},"domain":{"type":"string"}},"required":["domain","api_token","dataset_name"],"title":"AxiomConfigSchema","type":"object"},"SourceSchema":{"properties":{},"title":"SourceSchema","type":"object"},"AlertApiUpdateParams":{"properties":{"backend_ids":{"description":"Complete replacement set of attached backend IDs","items":{"minimum":1,"type":"integer"},"type":"array"},"cron":{"type":"string"},"description":{"nullable":true,"type":"string"},"enabled":{"type":"boolean"},"language":{"type":"string"},"name":{"type":"string"},"query":{"type":"string"},"slack_hook_url":{"nullable":true,"type":"string"},"webhook_notification_url":{"nullable":true,"type":"string"}},"title":"AlertApiUpdateParams","type":"object"},"ClickhouseConfigSchema":{"properties":{"async_insert_cluster_url":{"nullable":true,"type":"string"},"async_insert_max_rows":{"nullable":true,"type":"integer"},"database":{"type":"string"},"max_event_age_hours":{"nullable":true,"type":"integer"},"password":{"nullable":true,"type":"string"},"pool_size":{"nullable":true,"type":"integer"},"port":{"type":"integer"},"read_only_url":{"nullable":true,"type":"string"},"url":{"type":"string"},"use_async_inserts_for_small_batches":{"nullable":true,"type":"boolean"},"username":{"nullable":true,"type":"string"}},"required":["url","database","port"],"title":"ClickhouseConfigSchema","type":"object"},"OtlpConfigSchema":{"properties":{"endpoint":{"type":"string"},"gzip":{"type":"boolean"},"headers":{"type":"object"},"protocol":{"nullable":true,"type":"string"}},"required":["endpoint"],"title":"OtlpConfigSchema","type":"object"},"Source":{"properties":{"api_quota":{"type":"integer"},"backends":{"items":{"$ref":"#/components/schemas/BackendApiSchema"},"type":"array"},"bigquery_clustering_fields":{"nullable":true,"type":"string"},"bigquery_table_ttl":{"nullable":true,"type":"integer"},"bq_storage_write_api":{"nullable":true,"type":"boolean"},"bq_table_id":{"nullable":true,"type":"string"},"custom_event_message_keys":{"nullable":true,"type":"string"},"default_ingest_backend_enabled?":{"type":"boolean"},"default_search_lql":{"nullable":true,"type":"string"},"description":{"nullable":true,"type":"string"},"disable_tailing":{"nullable":true,"type":"boolean"},"drop_lql_string":{"nullable":true,"type":"string"},"favorite":{"type":"boolean"},"has_rejected_events":{"type":"boolean"},"id":{"type":"integer"},"labels":{"nullable":true,"type":"string"},"lock_schema":{"type":"boolean"},"metrics":{"nullable":true,"type":"object"},"name":{"type":"string"},"notifications":{"items":{"$ref":"#/components/schemas/Notification"},"nullable":true,"type":"object"},"notifications_every":{"type":"integer"},"public_token":{"nullable":true,"type":"string"},"retention_days":{"nullable":true,"type":"integer"},"service_name":{"nullable":true,"type":"string"},"slack_hook_url":{"nullable":true,"type":"string"},"suggested_keys":{"nullable":true,"type":"string"},"token":{"type":"string"},"transform_copy_fields":{"nullable":true,"type":"string"},"transform_drop_fields":{"nullable":true,"type":"string"},"transform_key_values":{"nullable":true,"type":"string"},"validate_schema":{"type":"boolean"},"webhook_notification_url":{"nullable":true,"type":"string"}},"required":["name"],"title":"Source","type":"object"},"BackendConnectionTest":{"properties":{"connected?":{"type":"boolean"},"reason":{"type":"string"}},"required":["connected?"],"title":"BackendConnectionTest","type":"object"},"AlertApiCreateParams":{"properties":{"backend_ids":{"description":"Complete replacement set of attached backend IDs","items":{"minimum":1,"type":"integer"},"type":"array"},"cron":{"type":"string"},"description":{"nullable":true,"type":"string"},"enabled":{"type":"boolean"},"language":{"type":"string"},"name":{"type":"string"},"query":{"type":"string"},"slack_hook_url":{"nullable":true,"type":"string"},"webhook_notification_url":{"nullable":true,"type":"string"}},"required":["name","query","cron"],"title":"AlertApiCreateParams","type":"object"},"IncidentioConfigSchema":{"properties":{"alert_source_config_id":{"type":"string"},"api_token":{"type":"string"},"metadata":{"type":"object"}},"required":["api_token","alert_source_config_id"],"title":"IncidentioConfigSchema","type":"object"},"TeamUser":{"properties":{"email":{"type":"string"},"name":{"type":"string"}},"required":["email","name"],"title":"TeamUser","type":"object"}},"securitySchemes":{"authorization":{"bearerFormat":"JWT","scheme":"bearer","type":"http"}}},"info":{"title":"logflare","version":"1.50.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"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}},"description":"Unauthorized"}},"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":{"application/json":{"schema":{"properties":{"error":{"type":"string"}},"required":["error"],"title":"UnauthorizedResponse","type":"object"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"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 access token","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":{"description":"Accepted Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"properties":{"error":{"type":"string"}},"required":["error"],"title":"NotFoundResponse","type":"object"}}},"description":"Not found"}},"summary":"Delete access token","tags":["management"]}},"/api/account":{"get":{"callbacks":{},"operationId":"LogflareWeb.UserController.api_show","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}},"description":"User One Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}},"description":"Unauthorized"}},"summary":"Fetch account","tags":["management"]}},"/api/alerts":{"get":{"callbacks":{},"operationId":"LogflareWeb.Api.AlertController.index","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/AlertApiSchema"},"title":"AlertApiSchemaListResponse","type":"array"}}},"description":"AlertApiSchema List Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}},"description":"Unauthorized"}},"summary":"List alerts","tags":["management"]},"post":{"callbacks":{},"operationId":"LogflareWeb.Api.AlertController.create","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertApiCreateParams"}}},"description":"AlertApiCreateParams Parameters","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertApiSchema"}}},"description":"Created Response"},"400":{"content":{"application/json":{"schema":{"properties":{"error":{"oneOf":[{"type":"string"},{"type":"object"}]}},"required":["error"],"title":"BadRequestResponse","type":"object"}}},"description":"Bad request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"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 alert","tags":["management"]}},"/api/alerts/{token}":{"delete":{"callbacks":{},"operationId":"LogflareWeb.Api.AlertController.delete","parameters":[{"description":"Alert UUID","in":"path","name":"token","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Accepted Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"properties":{"error":{"type":"string"}},"required":["error"],"title":"NotFoundResponse","type":"object"}}},"description":"Not found"}},"summary":"Delete alert","tags":["management"]},"get":{"callbacks":{},"operationId":"LogflareWeb.Api.AlertController.show","parameters":[{"description":"Alert UUID","in":"path","name":"token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertApiSchema"}}},"description":"AlertApiSchema Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"properties":{"error":{"type":"string"}},"required":["error"],"title":"NotFoundResponse","type":"object"}}},"description":"Not found"}},"summary":"Fetch alert","tags":["management"]},"patch":{"callbacks":{},"operationId":"LogflareWeb.Api.AlertController.update (2)","parameters":[{"description":"Alert UUID","in":"path","name":"token","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertApiUpdateParams"}}},"description":"AlertApiUpdateParams Parameters","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertApiSchema"}}},"description":"Accepted Response"},"204":{"description":"Accepted Response"},"400":{"content":{"application/json":{"schema":{"properties":{"error":{"oneOf":[{"type":"string"},{"type":"object"}]}},"required":["error"],"title":"BadRequestResponse","type":"object"}}},"description":"Bad request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"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 alert","tags":["management"]},"put":{"callbacks":{},"operationId":"LogflareWeb.Api.AlertController.update","parameters":[{"description":"Alert UUID","in":"path","name":"token","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertApiUpdateParams"}}},"description":"AlertApiUpdateParams Parameters","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertApiSchema"}}},"description":"Accepted Response"},"204":{"description":"Accepted Response"},"400":{"content":{"application/json":{"schema":{"properties":{"error":{"oneOf":[{"type":"string"},{"type":"object"}]}},"required":["error"],"title":"BadRequestResponse","type":"object"}}},"description":"Bad request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"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 alert","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"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}},"description":"Unauthorized"}},"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/BackendApiParams"}}},"description":"BackendApiParams Parameters","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackendApiSchema"}}},"description":"Created Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"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 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":{"description":"Accepted Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"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"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"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/BackendApiParams"}}},"description":"BackendApiParams Parameters","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackendApiSchema"}}},"description":"Accepted Response"},"204":{"description":"Accepted Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"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 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/BackendApiParams"}}},"description":"BackendApiParams Parameters","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackendApiSchema"}}},"description":"Accepted Response"},"204":{"description":"Accepted Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"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 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"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"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"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}},"description":"Unauthorized"}},"summary":"List endpoints","tags":["management"]},"post":{"callbacks":{},"operationId":"LogflareWeb.Api.EndpointController.create","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EndpointApiParams"}}},"description":"EndpointApiParams Parameters","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EndpointApiSchema"}}},"description":"Created Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"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":{"application/json":{"schema":{"properties":{"error":{"type":"string"}},"required":["error"],"title":"UnauthorizedResponse","type":"object"}}},"description":"Unauthorized"},"500":{"content":{"application/json":{"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":{"application/json":{"schema":{"properties":{"error":{"type":"string"}},"required":["error"],"title":"UnauthorizedResponse","type":"object"}}},"description":"Unauthorized"},"500":{"content":{"application/json":{"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":{"application/json":{"schema":{"properties":{"error":{"type":"string"}},"required":["error"],"title":"UnauthorizedResponse","type":"object"}}},"description":"Unauthorized"},"500":{"content":{"application/json":{"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":{"description":"Accepted Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"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"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"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/EndpointApiParams"}}},"description":"EndpointApiParams Parameters","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EndpointApiSchema"}}},"description":"Accepted Response"},"204":{"description":"Accepted Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"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/EndpointApiParams"}}},"description":"EndpointApiParams Parameters","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EndpointApiSchema"}}},"description":"Accepted Response"},"204":{"description":"Accepted Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"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":{"application/json":{"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":{"application/json":{"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"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}},"description":"Unauthorized"}},"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"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}},"description":"Unauthorized"}},"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/KeyValueBulkUpsertResponse"}}},"description":"Created Response"},"400":{"content":{"application/json":{"schema":{"properties":{"error":{"oneOf":[{"type":"string"},{"type":"object"}]}},"required":["error"],"title":"BadRequestResponse","type":"object"}}},"description":"Bad request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}},"description":"Unauthorized"}},"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":{"application/json":{"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":{"application/json":{"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":"SQL string","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"}},{"description":"Backend ID to execute the query against. When provided with sql=, the language is inferred from the backend type.","in":"query","name":"backend_id","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryResult"}}},"description":"QueryResult One Response"},"400":{"content":{"application/json":{"schema":{"properties":{"error":{"oneOf":[{"type":"string"},{"type":"object"}]}},"required":["error"],"title":"BadRequestResponse","type":"object"}}},"description":"Bad request"},"401":{"content":{"application/json":{"schema":{"properties":{"error":{"type":"string"}},"required":["error"],"title":"UnauthorizedResponse","type":"object"}}},"description":"Unauthorized"}},"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":{"application/json":{"schema":{"properties":{"error":{"oneOf":[{"type":"string"},{"type":"object"}]}},"required":["error"],"title":"BadRequestResponse","type":"object"}}},"description":"Bad request"},"401":{"content":{"application/json":{"schema":{"properties":{"error":{"type":"string"}},"required":["error"],"title":"UnauthorizedResponse","type":"object"}}},"description":"Unauthorized"}},"summary":"Parses a query","tags":["management"]}},"/api/rules":{"get":{"callbacks":{},"operationId":"LogflareWeb.Api.RuleController.index","parameters":[{"description":"Optional backend ID to filter the rule list","in":"query","name":"backend_id","required":false,"schema":{"type":"integer"}},{"description":"Optional backend UUID to filter the rule list","in":"query","name":"backend_token","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/RuleApiSchema"},"title":"RuleApiSchemaListResponse","type":"array"}}},"description":"RuleApiSchema List Response"},"401":{"content":{"application/json":{"schema":{"properties":{"error":{"type":"string"}},"required":["error"],"title":"UnauthorizedResponse","type":"object"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"properties":{"error":{"type":"string"}},"required":["error"],"title":"NotFoundResponse","type":"object"}}},"description":"Not found"}},"summary":"List rules owned by the authenticated user","tags":["management"]},"post":{"callbacks":{},"operationId":"LogflareWeb.Api.RuleController.create","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleParams"}}},"description":"RuleParams Parameters","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleCreateResponse"}}},"description":"Rule create response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleBatchResponse"}}},"description":"RuleBatchResponse Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"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 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":{"description":"Accepted Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"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"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"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/RuleParams"}}},"description":"RuleParams Parameters","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleApiSchema"}}},"description":"Accepted Response"},"204":{"description":"Accepted Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"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 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/RuleParams"}}},"description":"RuleParams Parameters","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuleApiSchema"}}},"description":"Accepted Response"},"204":{"description":"Accepted Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"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 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"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}},"description":"Unauthorized"}},"summary":"List sources","tags":["management"]},"post":{"callbacks":{},"operationId":"LogflareWeb.Api.SourceController.create","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"properties":{"bigquery_clustering_fields":{"nullable":true,"type":"string"},"bigquery_table_ttl":{"nullable":true,"type":"integer"},"bq_storage_write_api":{"nullable":true,"type":"boolean"},"custom_event_message_keys":{"nullable":true,"type":"string"},"default_ingest_backend_enabled?":{"type":"boolean"},"default_search_lql":{"nullable":true,"type":"string"},"description":{"nullable":true,"type":"string"},"disable_tailing":{"nullable":true,"type":"boolean"},"drop_lql_string":{"nullable":true,"type":"string"},"enable_spooling":{"nullable":true,"type":"boolean"},"favorite":{"type":"boolean"},"labels":{"nullable":true,"type":"string"},"lock_schema":{"type":"boolean"},"name":{"type":"string"},"notifications":{"$ref":"#/components/schemas/Notification"},"notifications_every":{"type":"integer"},"retention_days":{"nullable":true,"type":"integer"},"service_name":{"nullable":true,"type":"string"},"slack_hook_url":{"nullable":true,"type":"string"},"suggested_keys":{"nullable":true,"type":"string"},"transform_copy_fields":{"nullable":true,"type":"string"},"transform_drop_fields":{"nullable":true,"type":"string"},"transform_key_values":{"nullable":true,"type":"string"},"validate_schema":{"type":"boolean"},"webhook_notification_url":{"nullable":true,"type":"string"}},"required":["name"],"title":"SourceParams","type":"object"}}},"description":"Source Parameters","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Source"}}},"description":"Created Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"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 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"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"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"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"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"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"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"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"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":{"description":"Accepted Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"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"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"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":{"properties":{"bigquery_clustering_fields":{"nullable":true,"type":"string"},"bigquery_table_ttl":{"nullable":true,"type":"integer"},"bq_storage_write_api":{"nullable":true,"type":"boolean"},"custom_event_message_keys":{"nullable":true,"type":"string"},"default_ingest_backend_enabled?":{"type":"boolean"},"default_search_lql":{"nullable":true,"type":"string"},"description":{"nullable":true,"type":"string"},"disable_tailing":{"nullable":true,"type":"boolean"},"drop_lql_string":{"nullable":true,"type":"string"},"enable_spooling":{"nullable":true,"type":"boolean"},"favorite":{"type":"boolean"},"labels":{"nullable":true,"type":"string"},"lock_schema":{"type":"boolean"},"name":{"type":"string"},"notifications":{"$ref":"#/components/schemas/Notification"},"notifications_every":{"type":"integer"},"retention_days":{"nullable":true,"type":"integer"},"service_name":{"nullable":true,"type":"string"},"slack_hook_url":{"nullable":true,"type":"string"},"suggested_keys":{"nullable":true,"type":"string"},"transform_copy_fields":{"nullable":true,"type":"string"},"transform_drop_fields":{"nullable":true,"type":"string"},"transform_key_values":{"nullable":true,"type":"string"},"validate_schema":{"type":"boolean"},"webhook_notification_url":{"nullable":true,"type":"string"}},"required":["name"],"title":"SourceParams","type":"object"}}},"description":"Source Parameters","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Source"}}},"description":"Source Response"},"204":{"description":"Accepted Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"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 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":{"properties":{"bigquery_clustering_fields":{"nullable":true,"type":"string"},"bigquery_table_ttl":{"nullable":true,"type":"integer"},"bq_storage_write_api":{"nullable":true,"type":"boolean"},"custom_event_message_keys":{"nullable":true,"type":"string"},"default_ingest_backend_enabled?":{"type":"boolean"},"default_search_lql":{"nullable":true,"type":"string"},"description":{"nullable":true,"type":"string"},"disable_tailing":{"nullable":true,"type":"boolean"},"drop_lql_string":{"nullable":true,"type":"string"},"enable_spooling":{"nullable":true,"type":"boolean"},"favorite":{"type":"boolean"},"labels":{"nullable":true,"type":"string"},"lock_schema":{"type":"boolean"},"name":{"type":"string"},"notifications":{"$ref":"#/components/schemas/Notification"},"notifications_every":{"type":"integer"},"retention_days":{"nullable":true,"type":"integer"},"service_name":{"nullable":true,"type":"string"},"slack_hook_url":{"nullable":true,"type":"string"},"suggested_keys":{"nullable":true,"type":"string"},"transform_copy_fields":{"nullable":true,"type":"string"},"transform_drop_fields":{"nullable":true,"type":"string"},"transform_key_values":{"nullable":true,"type":"string"},"validate_schema":{"type":"boolean"},"webhook_notification_url":{"nullable":true,"type":"string"}},"required":["name"],"title":"SourceParams","type":"object"}}},"description":"Source Parameters","required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Source"}}},"description":"Source Response"},"204":{"description":"Accepted Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"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 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"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}},"description":"Unauthorized"}},"summary":"List teams","tags":["management"]},"post":{"callbacks":{},"operationId":"LogflareWeb.Api.TeamController.create","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamParams"}}},"description":"TeamParams Parameters","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Team"}}},"description":"Created Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"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":{"description":"Accepted Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"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"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"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/TeamParams"}}},"description":"TeamParams Parameters","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Team"}}},"description":"Created Response"},"204":{"description":"Accepted Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"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/TeamParams"}}},"description":"TeamParams Parameters","required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Team"}}},"description":"Created Response"},"204":{"description":"Accepted Response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"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":[]}