{"openapi":"3.0.0","paths":{"\/v2\/projects\/{ref}\/warehouse\/replication\/restart":{"post":{"description":"Starts a stopped managed pipeline or restarts a starting, started or failed pipeline, preserving the selected tables and saved layouts. Restart interrupts replication; in-progress initial copies may restart from scratch. If lost-slot recreation is configured, startup can rebuild destination tables. The response confirms acceptance only. Incomplete setup markers are preserved and require a successful setup retry. Inspect warehouse status for runtime diagnostics and observed table progress; these observations do not identify completion of this request. Inspect state before retrying an uncertain response.\n\nThis endpoint is currently in its **Alpha** stage.","operationId":"v2-restart-warehouse-replication","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"pattern":"^[a-z]+$","example":"abcdefghijklmnopqrst","type":"string"}}],"responses":{"202":{"description":"","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/V2WarehouseRestartResponse_Output"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"402":{"description":"This feature requires the Pro, Team, or Enterprise organization plan.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"403":{"description":"Forbidden action","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"404":{"description":"Managed Warehouse pipeline not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"409":{"description":"Warehouse lifecycle or runtime state does not permit restart","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"503":{"description":"Restart outcome uncertain; inspect runtime and table state before retrying","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}}},"security":[{"bearer":[]}],"summary":"Start or restart Warehouse replication","tags":["Projects Warehouse"],"x-allowed-plans":["Pro","Team","Enterprise"],"x-badges":[{"name":"OAuth scope: database:write","position":"after"},{"name":"Only available on Pro, Team, Enterprise","position":"before"},{"name":"Alpha","position":"before"}],"x-endpoint-owners":["pipelines"],"x-fga-permissions":[["project_admin_write","database_write"]],"x-oauth-scope":"database:write","x-operation":{"group":"warehouse.replication","method":"restart"},"x-scalar-stability":"experimental"}},"\/v2\/projects\/{ref}\/warehouse\/replication\/add":{"post":{"description":"Adds one eligible source table or the currently eligible tables in a schema to an enabled Warehouse. Existing selections and layouts are preserved; already-selected tables are unchanged. Schema selection excludes future tables, except future partitions of selected partition roots. An active pipeline restarts once, interrupting replication for other tables; their in-progress initial copies may restart from scratch. A stopped pipeline remains stopped and requires an explicit start before copying. Initial copy adds source reads; duration is unknown. Unsafe reattachment of retained data is rejected. The response describes configuration and restart acceptance, not completed copy or streaming. Failures may have partial effects; inspect table and pipeline state before retrying.\n\nThis endpoint is currently in its **Alpha** stage.","operationId":"v2-add-warehouse-replication","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"pattern":"^[a-z]+$","example":"abcdefghijklmnopqrst","type":"string"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/V2WarehouseReplicationRequest"}}}},"responses":{"202":{"description":"","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/V2WarehouseReplicationResponse_Output"}}}},"400":{"description":"Invalid or ineligible source selection","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"402":{"description":"This feature requires the Pro, Team, or Enterprise organization plan.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"403":{"description":"Forbidden action","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"404":{"description":"Warehouse pipeline, publication or selected table not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"409":{"description":"Warehouse lifecycle, initial sync or retained data conflict","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"503":{"description":"Backend unavailable or outcome uncertain; inspect table and pipeline state before retrying","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}}},"security":[{"bearer":[]}],"summary":"Add source tables to Warehouse replication","tags":["Projects Warehouse"],"x-allowed-plans":["Pro","Team","Enterprise"],"x-badges":[{"name":"OAuth scope: database:write","position":"after"},{"name":"Only available on Pro, Team, Enterprise","position":"before"},{"name":"Alpha","position":"before"}],"x-endpoint-owners":["pipelines"],"x-fga-permissions":[["project_admin_write","database_write"]],"x-oauth-scope":"database:write","x-operation":{"group":"warehouse.replication","method":"add"},"x-scalar-stability":"experimental"}},"\/v2\/projects\/{ref}\/warehouse\/replication\/remove":{"post":{"description":"Removes one selected source table or all selected tables in a schema as a batch. Source PostgreSQL rows and existing Warehouse data are retained. The retained copy stops receiving updates. An active pipeline restarts once, interrupting replication for other tables; their in-progress initial copies may restart from scratch. A stopped pipeline stays stopped. Removing an unselected target is unchanged. Removing the last target leaves Warehouse enabled with an empty selection. Publication changes and restart acceptance do not establish observed exclusion by active replication. Failures may have partial effects; inspect the selection and pipeline before retrying.\n\nThis endpoint is currently in its **Alpha** stage.","operationId":"v2-remove-warehouse-replication","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"pattern":"^[a-z]+$","example":"abcdefghijklmnopqrst","type":"string"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/V2WarehouseReplicationRequest"}}}},"responses":{"202":{"description":"","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/V2WarehouseReplicationResponse_Output"}}}},"400":{"description":"Invalid or ineligible source selection","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"402":{"description":"This feature requires the Pro, Team, or Enterprise organization plan.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"403":{"description":"Forbidden action","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"404":{"description":"Warehouse pipeline, publication or selected table not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"409":{"description":"Warehouse lifecycle, initial sync or retained data conflict","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"503":{"description":"Backend unavailable or outcome uncertain; inspect table and pipeline state before retrying","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}}},"security":[{"bearer":[]}],"summary":"Remove source tables from Warehouse replication","tags":["Projects Warehouse"],"x-allowed-plans":["Pro","Team","Enterprise"],"x-badges":[{"name":"OAuth scope: database:write","position":"after"},{"name":"Only available on Pro, Team, Enterprise","position":"before"},{"name":"Alpha","position":"before"}],"x-endpoint-owners":["pipelines"],"x-fga-permissions":[["project_admin_write","database_write"]],"x-oauth-scope":"database:write","x-operation":{"group":"warehouse.replication","method":"remove"},"x-scalar-stability":"experimental"}},"\/v2\/projects\/{ref}\/warehouse\/replication\/resync":{"post":{"description":"Resets replication for one selected source table using its currently saved layout. Source rows, saved layouts and completed replication state for unrelated tables are preserved. In-progress initial copies of other tables may restart from scratch. The Warehouse copy is deleted and rebuilt when replication resumes; table reads may be unavailable, freshness can lag, and the source incurs additional reads. Stopping and restarting the pipeline interrupts replication for other tables. Duration is unknown. The pipeline must be started and initial sync enabled for the table before the reset. The immediate response retains ETL reset states; it does not establish recopy completion. Inspect warehouse tables get and warehouse status separately. Do not automatically retry an uncertain response: repeating this request may reset the table again. There is no server-side preview, revision check, idempotency key or operation polling.\n\nThis endpoint is currently in its **Alpha** stage.","operationId":"v2-resync-warehouse-replication","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"pattern":"^[a-z]+$","example":"abcdefghijklmnopqrst","type":"string"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/V2WarehouseResyncRequest"}}}},"responses":{"202":{"description":"","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/V2WarehouseResyncResponse_Output"}}}},"400":{"description":"Invalid or ineligible source selection","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"402":{"description":"This feature requires the Pro, Team, or Enterprise organization plan.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"403":{"description":"Forbidden action","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"404":{"description":"Warehouse pipeline, publication or selected table not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"409":{"description":"Warehouse lifecycle, initial sync or retained data conflict","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"503":{"description":"Backend unavailable or outcome uncertain; inspect table and pipeline state before retrying","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}}},"security":[{"bearer":[]}],"summary":"Reset and rebuild one Warehouse table","tags":["Projects Warehouse"],"x-allowed-plans":["Pro","Team","Enterprise"],"x-badges":[{"name":"OAuth scope: database:write","position":"after"},{"name":"Only available on Pro, Team, Enterprise","position":"before"},{"name":"Alpha","position":"before"}],"x-endpoint-owners":["pipelines"],"x-fga-permissions":[["project_admin_write","database_write"]],"x-oauth-scope":"database:write","x-operation":{"group":"warehouse.replication","method":"resync"},"x-scalar-stability":"experimental"}},"\/v2\/projects\/{ref}\/warehouse\/capacity":{"get":{"description":"Returns capacity, admission, assignment-wait, and activation measurements over a bounded time\nrange, using the project\u2019s stored Warehouse placement. Use `since` or both `from` and `to`;\nthe default is the last 30 minutes.\n\nEach measurement includes its definition, unit, aggregation, requested and effective ranges,\n`rate_window_seconds`, source-sample freshness, availability, coverage, and full series with\ndimension labels such as `reason`, `kind`, and `result`.\n\nExecutor invocations in flight are distinct from worker admission grants. Occupied admission\nincludes active plus pending grants. The configured admission limit does not imply an open\ngate or spare capacity. Missing, stale, and insufficient observations remain unavailable or\n`null`; they do not establish healthy or idle capacity.\n\nPoint timestamps are evaluation times; `last_sample_at` is the original source-sample time.\nRates and latency quantiles describe the effective rate window at each point, not the entire\nrequested range.\n\nEach request returns up to eight measurements, and a failure of one measurement does not\ndiscard the other results. No raw queries or backend selectors are accepted.\n\nThis endpoint is currently in its **Alpha** stage.","operationId":"v2-get-warehouse-capacity","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"pattern":"^[a-z]+$","example":"abcdefghijklmnopqrst","type":"string"}},{"name":"since","required":false,"in":"query","description":"Look back from server time, for example 30m, 2h, or 1d. Defaults to 30m when from\/to are omitted. Maximum 30d. Cannot be combined with from\/to.","schema":{"pattern":"^[1-9]\\d*(s|m|h|d)$","type":"string"}},{"name":"from","required":false,"in":"query","description":"Range start as an ISO 8601 timestamp with seconds and a time zone, for example `2026-11-18T09:30:00Z`, within the last 30 days. Requires to; cannot be combined with since.","schema":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"}},{"name":"to","required":false,"in":"query","description":"Range end as an ISO 8601 timestamp with seconds and a time zone, for example `2026-11-18T09:30:00Z`, no later than server time. Requires from; cannot be combined with since. The service tolerates up to 60 seconds of request delay or clock skew.","schema":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"}},{"name":"attributes","required":false,"in":"query","description":"Up to eight distinct measurements. Defaults to `query_in_flight`, `worker_admission_limit`, `worker_admission_active`, `worker_admission_pending`, `worker_admission_occupied`, `admission_rejection_rate`, `assignment_wait_p95`, `activation_duration_p95`. Supply a comma-separated list. Allowed measurements: `query_in_flight`, `worker_admission_limit`, `worker_admission_active`, `worker_admission_pending`, `worker_admission_occupied`, `admission_rejection_rate`, `assignment_wait_mean`, `assignment_wait_p95`, `activation_rate`, `activation_duration_mean`, `activation_duration_p95`.","schema":{"type":"string"}},{"name":"interval","required":false,"in":"query","description":"Defaults to 1m. The effective step increases to stay within 1,441 points per series. Rate and latency windows are at least 5m.","schema":{"type":"string","enum":["1m","5m","10m","30m","1h","1d"]}}],"responses":{"200":{"description":"","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/V2WarehouseCapacityResponse_Output"}}}},"400":{"description":"validation_failed: Invalid measurement selection, range, interval, or query parameter","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"402":{"description":"This feature requires the Pro, Team, or Enterprise organization plan.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"403":{"description":"Forbidden action","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"404":{"description":"Project not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"503":{"description":"warehouse_metrics_unavailable: Metrics query capacity is temporarily unavailable; retry after a short delay. warehouse_setup_unavailable: Warehouse feature or project metadata unavailable.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}}},"security":[{"bearer":[]}],"summary":"Inspect Warehouse capacity diagnostics","tags":["Projects Warehouse"],"x-allowed-plans":["Pro","Team","Enterprise"],"x-badges":[{"name":"OAuth scope: database:read","position":"after"},{"name":"Only available on Pro, Team, Enterprise","position":"before"},{"name":"Alpha","position":"before"}],"x-endpoint-owners":["pipelines"],"x-fga-permissions":[["database_read"]],"x-oauth-scope":"database:read","x-operation":{"group":"warehouse.inspect","method":"capacity"},"x-scalar-stability":"experimental"}},"\/v2\/projects\/{ref}\/warehouse\/ingestion-stats":{"get":{"description":"Returns DuckLake ingestion throughput and WAL lag from the authorized pipelines and their independently resolved ETL regions. Select from six measurements: events received\/processed per second, bytes received\/processed per second, replication WAL lag and receive WAL lag. All six are selected by default. Use since or both from and to; defaults to the last 30 minutes. Rates describe each effective rate window. Pipeline IDs and worker, replication-path or event-type dimensions are retained. WAL lag is bytes; negative sentinels become null. Processed throughput acknowledges destination acceptance, not guaranteed durability. Missing, stale and unavailable values remain null. No raw queries or backend selection are accepted. A failure of one measurement does not discard successful siblings. Maintenance, inline-flush and sampled storage-health measurements are available from storage-stats.\n\nThis endpoint is currently in its **Alpha** stage.","operationId":"v2-get-warehouse-ingestion-stats","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"pattern":"^[a-z]+$","example":"abcdefghijklmnopqrst","type":"string"}},{"name":"since","required":false,"in":"query","description":"Look back from server time, for example 30m, 2h, or 1d. Defaults to 30m when from\/to are omitted. Maximum 30d. Cannot be combined with from\/to.","schema":{"pattern":"^[1-9]\\d*(s|m|h|d)$","type":"string"}},{"name":"from","required":false,"in":"query","description":"Range start as an ISO 8601 timestamp with seconds and a time zone, for example `2026-11-18T09:30:00Z`, within the last 30 days. Requires to; cannot be combined with since.","schema":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"}},{"name":"to","required":false,"in":"query","description":"Range end as an ISO 8601 timestamp with seconds and a time zone, for example `2026-11-18T09:30:00Z`, no later than server time. Requires from; cannot be combined with since. The service tolerates up to 60 seconds of request delay or clock skew.","schema":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"}},{"name":"attributes","required":false,"in":"query","description":"Up to eight distinct measurements. Defaults to `ingestion_events_received_rate`, `ingestion_events_processed_rate`, `ingestion_bytes_received_rate`, `ingestion_bytes_processed_rate`, `replication_wal_lag_bytes`, `replication_receive_wal_lag_bytes`. Supply a comma-separated list. Allowed measurements: `ingestion_events_received_rate`, `ingestion_events_processed_rate`, `ingestion_bytes_received_rate`, `ingestion_bytes_processed_rate`, `replication_wal_lag_bytes`, `replication_receive_wal_lag_bytes`.","schema":{"type":"string"}},{"name":"interval","required":false,"in":"query","description":"Defaults to 1m. The effective step increases to stay within 1,441 points per series. Rate windows are at least 5m.","schema":{"type":"string","enum":["1m","5m","10m","30m","1h","1d"]}}],"responses":{"200":{"description":"","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/V2WarehouseIngestionStatsResponse_Output"}}}},"400":{"description":"validation_failed: Invalid measurement selection, range, interval, or query parameter","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"402":{"description":"This feature requires the Pro, Team, or Enterprise organization plan.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"403":{"description":"Forbidden action","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"404":{"description":"Project not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"503":{"description":"warehouse_metrics_unavailable: Metrics query capacity is temporarily unavailable; retry after a short delay. warehouse_setup_unavailable: Warehouse feature or project metadata unavailable.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}}},"security":[{"bearer":[]}],"summary":"Inspect Warehouse ingestion throughput and WAL lag","tags":["Projects Warehouse"],"x-allowed-plans":["Pro","Team","Enterprise"],"x-badges":[{"name":"OAuth scope: database:read","position":"after"},{"name":"Only available on Pro, Team, Enterprise","position":"before"},{"name":"Alpha","position":"before"}],"x-endpoint-owners":["pipelines"],"x-fga-permissions":[["database_read"]],"x-oauth-scope":"database:read","x-operation":{"group":"warehouse.inspect","method":"ingestion-stats"},"x-scalar-stability":"experimental"}},"\/v2\/projects\/{ref}\/warehouse\/storage-stats":{"get":{"description":"Returns up to eight DuckLake maintenance, inline-flush or sampled storage-health measurements from the authorized pipelines and their independently resolved ETL regions. Use since or both from and to; defaults to the last 30 minutes. Rates describe each effective rate window. Pipeline IDs and allowed operation, outcome, table or controller-process dimensions are retained. Table summary means are observations across tables and time, not current inventories. Sampled health has unknown observation freshness: last_sample_at is scrape receipt, not a successful recent health sample. Catalog-wide metrics require the collector exclusive-ownership gate; shared catalogs remain unavailable. Maintenance pause outcomes differ from run outcomes, and result availability is per controller process without global latest-run ordering. Missing, stale and unavailable values remain null. No raw queries or backend selection are accepted. A failure of one measurement does not discard successful siblings. Throughput and WAL lag are available from ingestion-stats.\n\nThis endpoint is currently in its **Alpha** stage.","operationId":"v2-get-warehouse-storage-stats","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"pattern":"^[a-z]+$","example":"abcdefghijklmnopqrst","type":"string"}},{"name":"since","required":false,"in":"query","description":"Look back from server time, for example 30m, 2h, or 1d. Defaults to 30m when from\/to are omitted. Maximum 30d. Cannot be combined with from\/to.","schema":{"pattern":"^[1-9]\\d*(s|m|h|d)$","type":"string"}},{"name":"from","required":false,"in":"query","description":"Range start as an ISO 8601 timestamp with seconds and a time zone, for example `2026-11-18T09:30:00Z`, within the last 30 days. Requires to; cannot be combined with since.","schema":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"}},{"name":"to","required":false,"in":"query","description":"Range end as an ISO 8601 timestamp with seconds and a time zone, for example `2026-11-18T09:30:00Z`, no later than server time. Requires from; cannot be combined with since. The service tolerates up to 60 seconds of request delay or clock skew.","schema":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"}},{"name":"attributes","required":false,"in":"query","description":"Up to eight distinct measurements. Defaults to `maintenance_pause_active`, `maintenance_run_rate`, `inline_flush_rows_rate`, `table_active_data_file_avg_size_bytes_mean`, `table_small_file_ratio_mean`, `table_deleted_row_ratio_mean`, `catalog_deletion_backlog_bytes`, `catalog_oldest_deletion_age`. Supply a comma-separated list. Allowed measurements: `maintenance_request_rate`, `maintenance_pause_active`, `maintenance_pause_duration_mean`, `maintenance_run_rate`, `maintenance_results_available`, `maintenance_merge_adjacent_files_created_rate`, `maintenance_rewrite_data_files_created_rate`, `maintenance_expired_snapshots_rate`, `maintenance_cleaned_up_files_rate`, `inline_flush_rows_rate`, `inline_flush_rows_mean`, `inline_flush_duration_mean`, `table_active_data_files_mean`, `table_active_data_bytes_mean`, `table_active_data_file_avg_size_bytes_mean`, `table_small_file_ratio_mean`, `table_active_delete_files_mean`, `table_active_delete_bytes_mean`, `table_deleted_row_ratio_mean`, `table_inlined_data_bytes`, `catalog_active_data_files`, `catalog_snapshots`, `catalog_oldest_snapshot_age`, `catalog_deletion_backlog_files`, `catalog_deletion_backlog_bytes`, `catalog_oldest_deletion_age`.","schema":{"type":"string"}},{"name":"interval","required":false,"in":"query","description":"Defaults to 1m. The effective step increases to stay within 1,441 points per series. Rate and latency windows are at least 5m.","schema":{"type":"string","enum":["1m","5m","10m","30m","1h","1d"]}}],"responses":{"200":{"description":"","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/V2WarehouseStorageStatsResponse_Output"}}}},"400":{"description":"validation_failed: Invalid measurement selection, range, interval, or query parameter","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"402":{"description":"This feature requires the Pro, Team, or Enterprise organization plan.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"403":{"description":"Forbidden action","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"404":{"description":"Project not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"503":{"description":"warehouse_metrics_unavailable: Metrics query capacity is temporarily unavailable; retry after a short delay. warehouse_setup_unavailable: Warehouse feature or project metadata unavailable.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}}},"security":[{"bearer":[]}],"summary":"Inspect Warehouse storage and maintenance statistics","tags":["Projects Warehouse"],"x-allowed-plans":["Pro","Team","Enterprise"],"x-badges":[{"name":"OAuth scope: database:read","position":"after"},{"name":"Only available on Pro, Team, Enterprise","position":"before"},{"name":"Alpha","position":"before"}],"x-endpoint-owners":["pipelines"],"x-fga-permissions":[["database_read"]],"x-oauth-scope":"database:read","x-operation":{"group":"warehouse.inspect","method":"storage-stats"},"x-scalar-stability":"experimental"}},"\/v2\/projects\/{ref}\/warehouse\/query-stats":{"get":{"description":"Returns aggregate workload measurements over a bounded time range, using the project\u2019s stored Warehouse placement. Use since or both from and to; the default is the last 30 minutes. Each measurement includes its definition, unit, aggregation, requested and effective ranges, rate_window_seconds, source-sample freshness, availability, and full series with dimension labels. Point timestamps are evaluation times; last_sample_at is the original source-sample time. Rates and latency quantiles describe the effective rate window at each point, not the entire requested range. Do not average interval percentiles into a whole-range percentile. Executor invocations include metadata\/schema work and are not counts of user SQL statements. Timeouts are included in errors; cancellation is separate. Missing and unavailable values remain null. No query history, individual-query attribution, raw queries, or backend selectors are exposed. Each request returns up to eight measurements. A failure of one measurement does not discard the other results.\n\nThis endpoint is currently in its **Alpha** stage.","operationId":"v2-get-warehouse-query-stats","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"pattern":"^[a-z]+$","example":"abcdefghijklmnopqrst","type":"string"}},{"name":"since","required":false,"in":"query","description":"Look back from server time, for example 30m, 2h, or 1d. Defaults to 30m when from\/to are omitted. Maximum 30d. Cannot be combined with from\/to.","schema":{"pattern":"^[1-9]\\d*(s|m|h|d)$","type":"string"}},{"name":"from","required":false,"in":"query","description":"Range start as an ISO 8601 timestamp with seconds and a time zone, for example `2026-11-18T09:30:00Z`, within the last 30 days. Requires to; cannot be combined with since.","schema":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"}},{"name":"to","required":false,"in":"query","description":"Range end as an ISO 8601 timestamp with seconds and a time zone, for example `2026-11-18T09:30:00Z`, no later than server time. Requires from; cannot be combined with since. The service tolerates up to 60 seconds of request delay or clock skew.","schema":{"format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","type":"string"}},{"name":"attributes","required":false,"in":"query","description":"Up to eight distinct measurements. Defaults to `query_rate`, `query_duration_p50`, `query_duration_p95`, `query_duration_p99`, `query_error_rate`, `query_timeout_rate`. Supply a comma-separated list. Allowed measurements: `query_rate`, `query_error_rate`, `query_timeout_rate`, `query_canceled_rate`, `query_duration_mean`, `query_duration_p50`, `query_duration_p95`, `query_duration_p99`, `duckdb_duration_mean`, `rpc_rate`, `rpc_duration_mean`, `rpc_duration_p95`.","schema":{"type":"string"}},{"name":"interval","required":false,"in":"query","description":"Defaults to 1m. The effective step increases to stay within 1,441 points per series. Rate and latency windows are at least 5m.","schema":{"type":"string","enum":["1m","5m","10m","30m","1h","1d"]}}],"responses":{"200":{"description":"","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/V2WarehouseQueryStatsResponse_Output"}}}},"400":{"description":"validation_failed: Invalid measurement selection, range, interval, or query parameter","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"402":{"description":"This feature requires the Pro, Team, or Enterprise organization plan.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"403":{"description":"Forbidden action","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"404":{"description":"Project not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"503":{"description":"warehouse_metrics_unavailable: Metrics query capacity is temporarily unavailable; retry after a short delay. warehouse_setup_unavailable: Warehouse feature or project metadata unavailable.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}}},"security":[{"bearer":[]}],"summary":"Inspect Warehouse workload query statistics","tags":["Projects Warehouse"],"x-allowed-plans":["Pro","Team","Enterprise"],"x-badges":[{"name":"OAuth scope: database:read","position":"after"},{"name":"Only available on Pro, Team, Enterprise","position":"before"},{"name":"Alpha","position":"before"}],"x-endpoint-owners":["pipelines"],"x-fga-permissions":[["database_read"]],"x-oauth-scope":"database:read","x-operation":{"group":"warehouse.inspect","method":"query-stats"},"x-scalar-stability":"experimental"}},"\/v2\/projects\/{ref}\/warehouse":{"delete":{"description":"Stops replication and removes the Warehouse publication, FDW and dependent foreign tables, reader group, catalog access and query routing asynchronously. Stored Warehouse data is retained by default. Set delete_data=true to permanently delete the managed catalog schema and dedicated Storage bucket; destination SQL and Storage write permissions are also required. Legacy shared buckets and source Postgres tables are preserved. Reader memberships are not restored on re-enablement. Safe retries return the existing cleanup identity; changing an in-progress data policy returns a conflict. Poll the linked teardown for completion or partial cleanup failures.\n\nThis endpoint is currently in its **Alpha** stage.","operationId":"v2-disable-warehouse","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"pattern":"^[a-z]+$","example":"abcdefghijklmnopqrst","type":"string"}},{"name":"delete_data","required":false,"in":"query","description":"Permanently delete managed Warehouse data. Defaults to false (retain data). Source Postgres tables and legacy shared buckets are preserved.","schema":{"type":"boolean","default":false}}],"responses":{"202":{"links":{"teardown":{"operationId":"v2-get-warehouse-teardown","parameters":{"ref":"$request.path.ref","operation_id":"$response.body#\/data\/id"}}},"description":"","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/V2WarehouseTeardownResponse_Output"}}}},"400":{"description":"Invalid deletion option or unmanaged destination","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"402":{"description":"This feature requires the Pro, Team, or Enterprise organization plan.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"403":{"description":"Forbidden action","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"409":{"description":"Warehouse mutation or cleanup policy conflict","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"503":{"description":"Warehouse cleanup unavailable","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}}},"security":[{"bearer":[]}],"summary":"Disable Warehouse replication and access","tags":["Projects Warehouse"],"x-allowed-plans":["Pro","Team","Enterprise"],"x-badges":[{"name":"OAuth scope: database:write","position":"after"},{"name":"Only available on Pro, Team, Enterprise","position":"before"},{"name":"Alpha","position":"before"}],"x-endpoint-owners":["pipelines"],"x-fga-permissions":[["project_admin_write","database_write"]],"x-oauth-scope":"database:write","x-operation":{"group":"warehouse","method":"disable"},"x-scalar-stability":"experimental"}},"\/v2\/projects\/{ref}\/warehouse\/teardowns\/current":{"get":{"description":"Reads the current durable cleanup state without contacting ETL or inspecting the FDW. Disabling means cleanup is in progress; disabled means cleanup completed; deletion_failed means cleanup may be partial. The original data policy and failure reason remain available. Optionally supply operation_id to observe a specific disable attempt. Returns a conflict if no cleanup state is available or the supplied identity does not match the current operation.\n\nThis endpoint is currently in its **Alpha** stage.","operationId":"v2-get-warehouse-teardown","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"pattern":"^[a-z]+$","example":"abcdefghijklmnopqrst","type":"string"}},{"name":"operation_id","required":false,"in":"query","description":"Optional cleanup operation identity returned by disable. Omit to read the current cleanup; when supplied, a different current operation returns a conflict.","schema":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"}}],"responses":{"200":{"description":"","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/V2WarehouseTeardownResponse_Output"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"403":{"description":"Forbidden action","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"409":{"description":"Cleanup state is unavailable or the supplied operation identity is no longer current","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"503":{"description":"Warehouse cleanup state unavailable","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}}},"security":[{"bearer":[]}],"summary":"Get Warehouse cleanup status","tags":["Projects Warehouse"],"x-badges":[{"name":"OAuth scope: database:read","position":"after"},{"name":"Alpha","position":"before"}],"x-endpoint-owners":["pipelines"],"x-fga-permissions":[["database_read"]],"x-oauth-scope":"database:read","x-operation":{"group":"warehouse.teardowns","method":"get","poll":{"status":"\/data\/attributes\/lifecycle_status","succeeded":["disabled"],"failed":["deletion_failed"],"error":"\/data\/attributes\/cleanup_error"}},"x-scalar-stability":"experimental"}},"\/v2\/projects\/{ref}\/warehouse\/enable":{"post":{"description":"Enables replication for the currently eligible tables in a schema, or the named tables in that schema. Resolves source identities under the mutation lock without a preview or revision. Repeating the same selection is safe; a different existing selection is rejected. Schema selection excludes future tables; selected partition roots include future partitions. Acceptance does not imply completed synchronization.\n\nThis endpoint is currently in its **Alpha** stage.","operationId":"v2-enable-warehouse","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"pattern":"^[a-z]+$","example":"abcdefghijklmnopqrst","type":"string"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/V2WarehouseEnableRequest"}}}},"responses":{"202":{"links":{"setup":{"operationId":"v2-get-warehouse-setup","parameters":{"ref":"$request.path.ref","selection_id":"$response.body#\/data\/attributes\/selection_id"}}},"description":"","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/V2WarehouseEnableAcceptedResponse_Output"}}}},"400":{"description":"Empty or unsupported selection","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"402":{"description":"This feature requires the Pro, Team, or Enterprise organization plan.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"403":{"description":"Forbidden action","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"409":{"description":"Existing selection or lifecycle conflict","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"503":{"description":"Warehouse setup unavailable","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}}},"security":[{"bearer":[]}],"summary":"Enable Warehouse replication","tags":["Projects Warehouse"],"x-allowed-plans":["Pro","Team","Enterprise"],"x-badges":[{"name":"OAuth scope: database:write","position":"after"},{"name":"Only available on Pro, Team, Enterprise","position":"before"},{"name":"Alpha","position":"before"}],"x-endpoint-owners":["pipelines"],"x-fga-permissions":[["project_admin_write","database_write"]],"x-oauth-scope":"database:write","x-operation":{"group":"warehouse","method":"enable"},"x-scalar-stability":"experimental"}},"\/v2\/projects\/{ref}\/warehouse\/setups":{"post":{"description":"Replaces the full selection, preserving existing placement and destination settings. Resolves source identities under the mutation lock. Empty selections asynchronously disable Warehouse while retaining data. FDW installation is opt-in. Acceptance does not imply completed synchronization.\n\nThis endpoint is currently in its **Alpha** stage.","operationId":"v2-create-warehouse-setup","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"pattern":"^[a-z]+$","example":"abcdefghijklmnopqrst","type":"string"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/V2WarehouseSetupRequest"}}}},"responses":{"202":{"description":"","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/V2WarehouseSetupAcceptedResponse_Output"}}}},"400":{"description":"Empty or unsupported selection","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"402":{"description":"This feature requires the Pro, Team, or Enterprise organization plan.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"403":{"description":"Forbidden action","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"409":{"description":"Source identity or lifecycle conflict","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"503":{"description":"Warehouse setup unavailable","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}}},"security":[{"bearer":[]}],"summary":"Set up Warehouse or replace its replication selection","tags":["Projects Warehouse"],"x-allowed-plans":["Pro","Team","Enterprise"],"x-badges":[{"name":"OAuth scope: database:write","position":"after"},{"name":"Only available on Pro, Team, Enterprise","position":"before"},{"name":"Alpha","position":"before"}],"x-endpoint-owners":["pipelines"],"x-fga-permissions":[["project_admin_write","database_write"]],"x-oauth-scope":"database:write","x-operation":{"group":"warehouse.setups","method":"create"},"x-scalar-stability":"experimental"}},"\/v2\/projects\/{ref}\/warehouse\/setups\/current":{"get":{"description":"Returns setup phases, linked tables, pipeline and routing state, cleanup errors, and optional FDW inspection. Set inspect_fdw=false to skip database FDW inspection. A null table replication_state means no observation is available. Status succeeded requires initial copy, a running pipeline and ready routing; it does not verify query connectivity. Pass the selection_id returned by enable to reject a changed selection while waiting.\n\nThis endpoint is currently in its **Alpha** stage.","operationId":"v2-get-warehouse-setup","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"pattern":"^[a-z]+$","example":"abcdefghijklmnopqrst","type":"string"}},{"name":"inspect_fdw","required":false,"in":"query","description":"Inspect database FDW state. Defaults to true for current-status reads and false when selection_id is supplied.","schema":{"type":"string","enum":["true","false"]}},{"name":"selection_id","required":false,"in":"query","description":"Accepted selection identity returned by enable. A different current nonempty selection returns a conflict.","schema":{"pattern":"^[a-f0-9]{64}$","type":"string"}}],"responses":{"200":{"description":"","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/V2WarehouseSetupStatusResponse_Output"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"403":{"description":"Forbidden action","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"409":{"description":"The accepted selection changed","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"503":{"description":"Warehouse status unavailable","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}}},"security":[{"bearer":[]}],"summary":"Get Warehouse initial synchronization status","tags":["Projects Warehouse"],"x-badges":[{"name":"OAuth scope: database:read","position":"after"},{"name":"Alpha","position":"before"}],"x-endpoint-owners":["pipelines"],"x-fga-permissions":[["database_read"]],"x-oauth-scope":"database:read","x-operation":{"group":"warehouse.setups","method":"get","poll":{"status":"\/data\/attributes\/status","succeeded":["succeeded"],"failed":["failed"],"error":"\/data\/attributes\/status_error","inspect":"v2-get-warehouse-status"}},"x-scalar-stability":"experimental"}},"\/v2\/projects\/{ref}\/warehouse\/status":{"get":{"description":"Returns provisioning, configured compute, replication, cleanup lifecycle and supported capabilities, including when individual dependencies are unavailable. Enabled Warehouse state is independent of the selected table count. Readiness is inferred from configuration and replication; query connectivity is not checked. Does not inspect the FDW. Observation timestamps are retrieval times, separate from table sync lag, pipeline apply lag and feedback age. Read access remains available without a replication entitlement; mutation endpoints enforce their own entitlements and permissions. Runtime diagnostics classify current failures. Table errors and progress are explicitly current, last-known or unavailable; they do not establish completion of a particular restart or resync. Capabilities describe Management API operations: workload_metrics includes query-stats and capacity; query_explain does not describe SQL EXPLAIN through the Warehouse connection.\n\nThis endpoint is currently in its **Alpha** stage.","operationId":"v2-get-warehouse-status","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"pattern":"^[a-z]+$","example":"abcdefghijklmnopqrst","type":"string"}}],"responses":{"200":{"description":"","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/V2WarehouseContextResponse_Output"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"403":{"description":"Forbidden action","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"503":{"description":"Warehouse feature or project metadata unavailable","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}}},"security":[{"bearer":[]}],"summary":"Get consolidated Warehouse status and capabilities","tags":["Projects Warehouse"],"x-badges":[{"name":"OAuth scope: database:read","position":"after"},{"name":"Alpha","position":"before"}],"x-endpoint-owners":["pipelines"],"x-fga-permissions":[["database_read"]],"x-oauth-scope":"database:read","x-operation":{"group":"warehouse","method":"status"},"x-scalar-stability":"experimental"}},"\/v2\/projects\/{ref}\/warehouse\/connection":{"get":{"description":"Returns the public Arrow Flight SQL endpoint resolved from the project's Warehouse routing, with TLS required on port 443. Status is configured availability and query connectivity is not checked, so DNS readiness does not prove a query will succeed. Login uses a role in the source project database with that role's existing password (postgres uses the project database password), including when the catalog and storage are in another project. The role needs supabase_warehouse_reader membership, which is separate from Management API authorization. No passwords, tokens, catalog credentials or private endpoints are returned, and endpoint, host and port are null unless status is available or pending. Example client: `usql -W 'flightsql:\/\/postgres@<host>:443?tls=enabled'`.\n\nThis endpoint is currently in its **Alpha** stage.","operationId":"v2-get-warehouse-connection","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"pattern":"^[a-z]+$","example":"abcdefghijklmnopqrst","type":"string"}}],"responses":{"200":{"description":"","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/V2WarehouseConnectionResponse_Output"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"403":{"description":"Forbidden action","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"503":{"description":"Warehouse feature or project metadata unavailable","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}}},"security":[{"bearer":[]}],"summary":"Get Warehouse Flight SQL connection details","tags":["Projects Warehouse"],"x-badges":[{"name":"OAuth scope: database:read","position":"after"},{"name":"Alpha","position":"before"}],"x-endpoint-owners":["pipelines"],"x-fga-permissions":[["database_read"]],"x-oauth-scope":"database:read","x-operation":{"group":"warehouse","method":"connection"},"x-scalar-stability":"experimental"}},"\/v2\/projects\/{ref}\/warehouse\/tables":{"get":{"description":"Lists the source tables selected for Warehouse replication with their replication status and freshness, from the same observations as the Warehouse status. Freshness comes from the replication slot that carries each table: its own sync slot until it follows changes, then the pipeline apply slot; one slot never stands in for the other. lag_ms is that slot's flush lag. Postgres reports no lag time for a caught-up slot without new WAL, so lag_ms can be null while replication_feedback.flush_lag_bytes is 0; neither is ever filled with zero when unknown. observed_at is when the API read the replication state, not when data last synchronized. A stopped, failed or unreadable pipeline reports its tables as stopped or unknown rather than live, and keeps each table's last recorded state. Returns an empty list when Warehouse is not set up, its publication is missing, or it is being disabled or failed to clean up.\n\nThis endpoint is currently in its **Alpha** stage.","operationId":"v2-list-warehouse-tables","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"pattern":"^[a-z]+$","example":"abcdefghijklmnopqrst","type":"string"}}],"responses":{"200":{"description":"","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/V2WarehouseTablesResponse_Output"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"403":{"description":"Forbidden action","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"404":{"description":"Warehouse DuckLake destination not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"503":{"description":"Warehouse feature, project metadata or table selection unavailable","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}}},"security":[{"bearer":[]}],"summary":"List tables replicated to Warehouse","tags":["Projects Warehouse"],"x-badges":[{"name":"OAuth scope: database:read","position":"after"},{"name":"Alpha","position":"before"}],"x-endpoint-owners":["pipelines"],"x-fga-permissions":[["database_read"]],"x-oauth-scope":"database:read","x-operation":{"group":"warehouse.tables","method":"list"},"x-scalar-stability":"experimental"}},"\/v2\/projects\/{ref}\/warehouse\/tables\/{table_id}":{"get":{"description":"Returns one source table selected for Warehouse replication by its source OID, from the same observations and with the same status and freshness attributes as the Warehouse tables list. Returns 404 when the table is not selected for replication, including when Warehouse is not set up, its publication is missing, or it is being disabled.\n\nThis endpoint is currently in its **Alpha** stage.","operationId":"v2-get-warehouse-table","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"pattern":"^[a-z]+$","example":"abcdefghijklmnopqrst","type":"string"}},{"name":"table_id","required":true,"in":"path","description":"Source PostgreSQL table OID, as returned by the Warehouse tables list.","schema":{"maxLength":10,"pattern":"^[1-9]\\d*$","example":"16385","type":"string"}}],"responses":{"200":{"description":"","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/V2WarehouseTableResponse_Output"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"403":{"description":"Forbidden action","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"404":{"description":"Table not replicated to Warehouse, or Warehouse DuckLake destination not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"503":{"description":"Warehouse feature, project metadata or table selection unavailable","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}}},"security":[{"bearer":[]}],"summary":"Get a table replicated to Warehouse","tags":["Projects Warehouse"],"x-badges":[{"name":"OAuth scope: database:read","position":"after"},{"name":"Alpha","position":"before"}],"x-endpoint-owners":["pipelines"],"x-fga-permissions":[["database_read"]],"x-oauth-scope":"database:read","x-operation":{"group":"warehouse.tables","method":"get"},"x-scalar-stability":"experimental"}},"\/v2\/projects\/{ref}\/warehouse\/tables\/{table_id}\/layout":{"get":{"description":"Returns the sorting and partitioning rules saved for one replicated table, by source OID, beside the layout the DuckLake catalog records for it. The two are reported separately and can differ: the replicator applies saved rules when it starts and then hourly, and a stopped pipeline applies them on its next start. observation_status reports whether the catalog was read; desired rules are returned even when it was not. A catalog layout governs files written after it changes and does not establish that existing files are sorted or partitioned. Returns 404 when the table is not replicated, including when Warehouse is not set up, is being disabled or failed to clean up.\n\nThis endpoint is currently in its **Alpha** stage.","operationId":"v2-get-warehouse-table-layout","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"pattern":"^[a-z]+$","example":"abcdefghijklmnopqrst","type":"string"}},{"name":"table_id","required":true,"in":"path","description":"Source PostgreSQL table OID, as returned by the Warehouse tables list.","schema":{"maxLength":10,"pattern":"^[1-9]\\d*$","example":"16385","type":"string"}}],"responses":{"200":{"description":"","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/V2WarehouseTableLayoutResponse_Output"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"403":{"description":"Forbidden action","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"404":{"description":"Table not replicated to Warehouse","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"503":{"description":"Warehouse feature, project metadata or table layout unavailable","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}}},"security":[{"bearer":[]}],"summary":"Get the layout of a table replicated to Warehouse","tags":["Projects Warehouse"],"x-badges":[{"name":"OAuth scope: database:read","position":"after"},{"name":"Alpha","position":"before"}],"x-endpoint-owners":["pipelines"],"x-fga-permissions":[["database_read"]],"x-oauth-scope":"database:read","x-operation":{"group":"warehouse.tables.layout","method":"get"},"x-scalar-stability":"experimental"},"patch":{"description":"Updates saved sorting and partitioning rules for one source table object identifier (OID). Provide sort_by or partition_by; empty and reset-only patches are rejected. Omitted settings are preserved. Null makes a setting unmanaged. An empty partition list clears partitioning, and the none sort selector clears sorting. The backend validates the source schema and preserves other tables. When the layout changes, an active pipeline is restarted. A stopped pipeline stays stopped. reset_table defaults to false, preserving historical files and replication progress. When the layout changes, --reset-table resets the table and copies it again. This requires initial sync to be enabled. Reads are disrupted during the copy. An unchanged layout never restarts the pipeline or resets the table. Acceptance and application_status report orchestration. Run warehouse tables layout get to compare the desired and observed rules. Run warehouse tables get to check table replication status. These reads do not establish completion of this specific update. There is no revision, idempotency, resolved preview, or durable operation contract. A failed update can leave partial effects, including a completed reset. Inspect the saved layout, pipeline, and table state before retrying.\n\nThis endpoint is currently in its **Alpha** stage.","operationId":"v2-update-warehouse-table-layout","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"pattern":"^[a-z]+$","example":"abcdefghijklmnopqrst","type":"string"}},{"name":"table_id","required":true,"in":"path","description":"Source PostgreSQL table OID, as returned by the Warehouse tables list.","schema":{"maxLength":10,"pattern":"^[1-9]\\d*$","example":"16385","type":"string"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/V2WarehouseTableLayoutUpdateRequest"}}}},"responses":{"202":{"description":"","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/V2WarehouseTableLayoutResponse_Output"}}}},"400":{"description":"Invalid layout or source schema","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"402":{"description":"This feature requires the Pro, Team, or Enterprise organization plan.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"403":{"description":"Forbidden action","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"404":{"description":"Warehouse pipeline or replicated table not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"409":{"description":"Warehouse or pipeline mutation conflict, or reset requested without initial sync","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"503":{"description":"Layout update unavailable or outcome uncertain; inspect the saved layout, pipeline, and table state before retrying","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}}},"security":[{"bearer":[]}],"summary":"Update the layout of a table replicated to Warehouse","tags":["Projects Warehouse"],"x-allowed-plans":["Pro","Team","Enterprise"],"x-badges":[{"name":"OAuth scope: database:write","position":"after"},{"name":"Only available on Pro, Team, Enterprise","position":"before"},{"name":"Alpha","position":"before"}],"x-endpoint-owners":["pipelines"],"x-fga-permissions":[["project_admin_write","database_write"]],"x-oauth-scope":"database:write","x-operation":{"group":"warehouse.tables.layout","method":"update"},"x-scalar-stability":"experimental"}},"\/v2\/projects\/{ref}\/analytics\/log-drains":{"get":{"operationId":"v2-list-log-drains","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"pattern":"^[a-z]+$","example":"abcdefghijklmnopqrst","type":"string"}}],"responses":{"200":{"description":"","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ListLogDrainsResponse_Output"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"403":{"description":"Forbidden action","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"500":{"description":"Failed to fetch log drains","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}}},"security":[{"bearer":[]}],"summary":"List project log drains","tags":["Analytics"],"x-badges":[{"name":"OAuth scope: analytics_config:read","position":"after"}],"x-endpoint-owners":["observability"],"x-fga-permissions":[["analytics_config_read"]],"x-oauth-scope":"analytics_config:read"},"post":{"operationId":"v2-create-log-drain","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"pattern":"^[a-z]+$","example":"abcdefghijklmnopqrst","type":"string"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/CreateLogDrainRequestOpenApi"}}}},"responses":{"201":{"description":"","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/LogDrainResponse_Output"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"402":{"description":"This feature requires the Pro, Team, or Enterprise organization plan.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"403":{"description":"Forbidden action","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"500":{"description":"Failed to create a log drain","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}}},"security":[{"bearer":[]}],"summary":"Create a log drain for a project","tags":["Analytics"],"x-allowed-plans":["Pro","Team","Enterprise"],"x-badges":[{"name":"Only available on Pro, Team, Enterprise","position":"before"},{"name":"OAuth scope: analytics_config:write","position":"after"}],"x-endpoint-owners":["observability"],"x-fga-permissions":[["analytics_config_write"]],"x-oauth-scope":"analytics_config:write"}},"\/v2\/projects\/{ref}\/analytics\/log-drains\/{id}":{"put":{"operationId":"v2-update-log-drain","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"pattern":"^[a-z]+$","example":"abcdefghijklmnopqrst","type":"string"}},{"name":"id","required":true,"in":"path","description":"Log drains identifier","schema":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/UpdateLogDrainRequestOpenApi"}}}},"responses":{"200":{"description":"","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/LogDrainResponse_Output"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"403":{"description":"Forbidden action","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"500":{"description":"Failed to update log drain","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}}},"security":[{"bearer":[]}],"summary":"Update a project log drain","tags":["Analytics"],"x-badges":[{"name":"OAuth scope: analytics_config:write","position":"after"}],"x-endpoint-owners":["observability"],"x-fga-permissions":[["analytics_config_write"]],"x-oauth-scope":"analytics_config:write"},"delete":{"operationId":"v2-delete-log-drain","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"pattern":"^[a-z]+$","example":"abcdefghijklmnopqrst","type":"string"}},{"name":"id","required":true,"in":"path","description":"Log drains identifier","schema":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","type":"string"}}],"responses":{"204":{"description":""},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"403":{"description":"Forbidden action","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"500":{"description":"Failed to delete a log drain","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}}},"security":[{"bearer":[]}],"summary":"Delete a project log drain","tags":["Analytics"],"x-badges":[{"name":"OAuth scope: analytics_config:write","position":"after"}],"x-endpoint-owners":["observability"],"x-fga-permissions":[["analytics_config_write"]],"x-oauth-scope":"analytics_config:write"}},"\/v2\/projects\/{ref}\/advisors\/run":{"post":{"operationId":"v2-run-project-advisors","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"pattern":"^[a-z]+$","example":"abcdefghijklmnopqrst","type":"string"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/V2RunProjectAdvisorsBody"}}}},"responses":{"200":{"description":"","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/V2ProjectAdvisorsResponse_Output"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"403":{"description":"Forbidden action","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}}},"security":[{"bearer":[]}],"summary":"Runs the project advisors with the given names","tags":["Advisors"],"x-endpoint-owners":["control-plane"],"x-fga-permissions":[["advisors_read"]]}},"\/v2\/projects\/{ref}\/backups\/download":{"post":{"operationId":"v2-download-project-backup","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"pattern":"^[a-z]+$","example":"abcdefghijklmnopqrst","type":"string"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DownloadBackupBody"}}}},"responses":{"201":{"description":"","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DownloadBackupResponse_Output"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"403":{"description":"Forbidden action","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"404":{"description":"Project not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"500":{"description":"Failed to download project backup","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}}},"security":[{"bearer":[]}],"summary":"Download project backup","tags":["Projects"],"x-badges":[{"name":"OAuth scope: database:write","position":"after"}],"x-endpoint-owners":["managed-postgres","control-plane"],"x-fga-permissions":[["backups_write"]],"x-oauth-scope":"database:write"}},"\/v2\/projects\/{ref}\/backups\/downloadable-backups":{"get":{"operationId":"v2-project-get-downloadable-backups","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"pattern":"^[a-z]+$","example":"abcdefghijklmnopqrst","type":"string"}}],"responses":{"200":{"description":"","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/DownloadableBackupsResponse_Output"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"403":{"description":"Forbidden action","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"404":{"description":"Project not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"500":{"description":"Failed to get project backups","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}}},"security":[{"bearer":[]}],"summary":"Gets backups that might be downloadable, but potentially not restorable.","tags":["Projects"],"x-badges":[{"name":"OAuth scope: database:read","position":"after"}],"x-endpoint-owners":["managed-postgres","control-plane"],"x-fga-permissions":[["backups_read"]],"x-oauth-scope":"database:read"}},"\/v2\/projects\/{ref}\/branches":{"post":{"description":"Creates a database branch from the specified project. Compute and disk size can be set here so the branch is provisioned at the requested size, instead of being resized after creation.","operationId":"v2-create-a-branch","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"pattern":"^[a-z]+$","example":"abcdefghijklmnopqrst","type":"string"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/V2CreateBranchRequest"}}}},"responses":{"201":{"description":"","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/V2BranchResponse_Output"}}}},"400":{"description":"Invalid branch configuration for this project","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"402":{"description":"Organization plan does not cover the requested branch","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"403":{"description":"Forbidden action","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"500":{"description":"Failed to create database branch","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}}},"security":[{"bearer":[]}],"summary":"Create a database branch","tags":["Environments"],"x-badges":[{"name":"OAuth scope: environment:write","position":"after"}],"x-endpoint-owners":["dev-workflows"],"x-fga-permissions":[["branching_development_create"],["branching_production_create"]],"x-oauth-scope":"environment:write"}},"\/v2\/projects\/{ref}\/config":{"get":{"description":"Returns the project's database, pooler, Auth, Data API, Realtime and Storage configuration \u2014 the same configuration a branch inherits from its base project. Each is the effective config, so a setting the project has never overridden is reported at its platform default rather than as null. Auth secrets are returned as an HMAC of their value. `storage` is read live from the storage service; the rest come from this platform's own records.\n\nThis endpoint is currently in its **Alpha** stage.","operationId":"v2-get-project-config","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"pattern":"^[a-z]+$","example":"abcdefghijklmnopqrst","type":"string"}}],"responses":{"200":{"description":"","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/V2ProjectConfigResponse_Output"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"403":{"description":"Forbidden action","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}}},"security":[{"bearer":[]}],"summary":"Get a project's service configuration","tags":["Projects"],"x-badges":[{"name":"Alpha","position":"before"}],"x-endpoint-owners":["control-plane","infra"],"x-fga-permissions":[["database_config_read","database_read","database_ssl_config_read","database_network_restrictions_read","auth_config_read","data_api_config_read","realtime_config_read","storage_config_read"]],"x-scalar-stability":"experimental"}},"\/v2\/projects\/{ref}\/functions":{"delete":{"operationId":"v2-delete-project-function","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"pattern":"^[a-z]+$","example":"abcdefghijklmnopqrst","type":"string"}}],"responses":{"204":{"description":""},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"403":{"description":"Forbidden action","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"404":{"description":"Project not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"500":{"description":"Failed to delete project functions","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}}},"security":[{"bearer":[]}],"summary":"Deletes all Edge Functions from a project","tags":["Projects"],"x-badges":[{"name":"OAuth scope: edge_functions:write","position":"after"}],"x-endpoint-owners":["support-tooling","functions"],"x-fga-permissions":[["edge_functions_write"]],"x-oauth-scope":"edge_functions:write"}},"\/v2\/projects\/{ref}\/notebooks":{"get":{"description":"Returns a cursor-paginated list of the project notebooks. Notebook bodies are omitted \u2014 read a single notebook to get its cells.","operationId":"v2-list-notebooks","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"pattern":"^[a-z]+$","example":"abcdefghijklmnopqrst","type":"string"}},{"name":"page","required":false,"in":"query","schema":{"properties":{"before":{"description":"Cursor in cursor-based pagination to return up to `page[size]` records before (exclusive) the entry specified by this query param.","type":"string","minLength":1},"after":{"description":"Cursor in cursor-based pagination to return up to `page[size]` records after (exclusive) the entry specified by this query param.","type":"string","minLength":1},"size":{"description":"Up to how many records to return.\n\nMinimum: 1. Maximum: 100.","example":"10","default":"20","type":"string","pattern":"^-?\\d+$"}},"type":"object"},"style":"deepObject"},{"name":"filter","required":false,"in":"query","schema":{"properties":{"name":{"type":"string","minLength":1}},"type":"object"},"style":"deepObject"},{"name":"sort","required":false,"in":"query","schema":{"type":"string","enum":["name","-name","inserted_at","-inserted_at"]}}],"responses":{"200":{"description":"","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/V2ListNotebooksResponse_Output"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"403":{"description":"Forbidden action","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"500":{"description":"Failed to retrieve project's notebooks","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}}},"security":[{"bearer":[]}],"summary":"List notebooks of a project","tags":["Projects"],"x-badges":[{"name":"OAuth scope: database:read","position":"after"}],"x-endpoint-owners":["control-plane"],"x-fga-permissions":[["project_notebooks_read"]],"x-oauth-scope":"database:read"},"post":{"description":"Creates a notebook shared with everyone who has access to the project. Cell ids are assigned by the server and returned in the response.","operationId":"v2-create-notebook","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"pattern":"^[a-z]+$","example":"abcdefghijklmnopqrst","type":"string"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/V2CreateNotebookRequest"}}}},"responses":{"201":{"description":"","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/V2NotebookResponse_Output"}}}},"400":{"description":"The request repeats a cell id","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"403":{"description":"Forbidden action","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"500":{"description":"Failed to create notebook","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}}},"security":[{"bearer":[]}],"summary":"Create a notebook","tags":["Projects"],"x-badges":[{"name":"OAuth scope: database:write","position":"after"}],"x-endpoint-owners":["control-plane"],"x-fga-permissions":[["project_notebooks_write"]],"x-oauth-scope":"database:write"}},"\/v2\/projects\/{ref}\/notebooks\/{id}":{"get":{"operationId":"v2-get-notebook","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"pattern":"^[a-z]+$","example":"abcdefghijklmnopqrst","type":"string"}},{"name":"id","required":true,"in":"path","schema":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","example":"44444444-4444-4444-8444-444444444444","type":"string"}}],"responses":{"200":{"description":"","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/V2NotebookResponse_Output"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"403":{"description":"Forbidden action","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"404":{"description":"Notebook not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"500":{"description":"Failed to retrieve notebook","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}}},"security":[{"bearer":[]}],"summary":"Get a notebook","tags":["Projects"],"x-badges":[{"name":"OAuth scope: database:read","position":"after"}],"x-endpoint-owners":["control-plane"],"x-fga-permissions":[["project_notebooks_read"]],"x-oauth-scope":"database:read"},"patch":{"description":"Updates the attributes provided and leaves the rest untouched. Sending `content` replaces the whole notebook body.","operationId":"v2-update-notebook","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"pattern":"^[a-z]+$","example":"abcdefghijklmnopqrst","type":"string"}},{"name":"id","required":true,"in":"path","schema":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","example":"44444444-4444-4444-8444-444444444444","type":"string"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/V2UpdateNotebookRequest"}}}},"responses":{"200":{"description":"","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/V2NotebookResponse_Output"}}}},"400":{"description":"The request references a cell that does not exist on this notebook, or repeats a cell id","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"403":{"description":"Forbidden action","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"404":{"description":"Notebook not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"500":{"description":"Failed to update notebook","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}}},"security":[{"bearer":[]}],"summary":"Update a notebook","tags":["Projects"],"x-badges":[{"name":"OAuth scope: database:write","position":"after"}],"x-endpoint-owners":["control-plane"],"x-fga-permissions":[["project_notebooks_write"]],"x-oauth-scope":"database:write"},"delete":{"operationId":"v2-delete-notebook","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"pattern":"^[a-z]+$","example":"abcdefghijklmnopqrst","type":"string"}},{"name":"id","required":true,"in":"path","schema":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","example":"44444444-4444-4444-8444-444444444444","type":"string"}}],"responses":{"204":{"description":""},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"403":{"description":"Forbidden action","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"404":{"description":"Notebook not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"500":{"description":"Failed to delete notebook","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}}},"security":[{"bearer":[]}],"summary":"Delete a notebook","tags":["Projects"],"x-badges":[{"name":"OAuth scope: database:write","position":"after"}],"x-endpoint-owners":["control-plane"],"x-fga-permissions":[["project_notebooks_write"]],"x-oauth-scope":"database:write"}},"\/v2\/projects\/{ref}\/transfers\/previews":{"post":{"operationId":"v2-preview-a-project-transfer","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"pattern":"^[a-z]+$","example":"abcdefghijklmnopqrst","type":"string"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/V2TransferProjectBody"}}}},"responses":{"200":{"description":"","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/V2PreviewProjectTransferResponse_Output"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"403":{"description":"Forbidden action","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}}},"security":[{"bearer":[]}],"summary":"Previews transferring a project to a different organizations, shows eligibility and impact","tags":["Projects"],"x-endpoint-owners":["control-plane"],"x-fga-permissions":[["project_admin_read"]]}},"\/v2\/projects\/{ref}\/transfers":{"post":{"operationId":"v2-transfer-a-project","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"pattern":"^[a-z]+$","example":"abcdefghijklmnopqrst","type":"string"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/V2TransferProjectBody"}}}},"responses":{"200":{"description":""},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"403":{"description":"Forbidden action","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}}},"security":[{"bearer":[]}],"summary":"Transfers a project to a different organization","tags":["Projects"],"x-endpoint-owners":["control-plane"],"x-fga-permissions":[["organization_admin_write"]]}},"\/v2\/projects\/{ref}\/private-link\/associations":{"get":{"operationId":"v2-list-private-link-associations","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"pattern":"^[a-z]+$","example":"abcdefghijklmnopqrst","type":"string"}}],"responses":{"200":{"description":"","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/V2ListPrivateLinkAssociationsResponse_Output"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"403":{"description":"Forbidden action","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"500":{"description":"Failed to retrieve AWS accounts for project","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}}},"security":[{"bearer":[]}],"summary":"List AWS accounts attached to the project PrivateLink share","tags":["Projects"],"x-endpoint-owners":["platform-networking","control-plane"],"x-fga-permissions":[["project_admin_read"]]},"post":{"description":"Adds an AWS account to the project's PrivateLink configuration and schedules the AWS resources to be created.","operationId":"v2-create-private-link-association","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"pattern":"^[a-z]+$","example":"abcdefghijklmnopqrst","type":"string"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/V2CreatePrivateLinkAssociationRequest"}}}},"responses":{"201":{"description":"","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/V2PrivateLinkAssociationResponse_Output"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"402":{"description":"This feature requires the Team, or Enterprise organization plan.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"403":{"description":"Forbidden action","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"500":{"description":"Failed to add AWS account to PrivateLink share","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}}},"security":[{"bearer":[]}],"summary":"Add an AWS account to the project PrivateLink share","tags":["Projects"],"x-allowed-plans":["Team","Enterprise"],"x-badges":[{"name":"Only available on Team, Enterprise","position":"before"}],"x-endpoint-owners":["platform-networking","control-plane"],"x-fga-permissions":[["project_admin_write"]]}},"\/v2\/projects\/{ref}\/private-link\/associations\/aws-account\/{aws_account_id}":{"delete":{"description":"Removes an AWS account from the project's PrivateLink configuration (targeting the primary database). Cleans up the associated AWS resources.","operationId":"v2-delete-private-link-association","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"pattern":"^[a-z]+$","example":"abcdefghijklmnopqrst","type":"string"}},{"name":"aws_account_id","required":true,"in":"path","description":"AWS account ID used in PrivateLink association","schema":{"type":"string"}}],"responses":{"204":{"description":""},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"403":{"description":"Forbidden action","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"500":{"description":"Failed to remove AWS account from PrivateLink share","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}}},"security":[{"bearer":[]}],"summary":"Remove an AWS account from the project PrivateLink share","tags":["Projects"],"x-endpoint-owners":["platform-networking","control-plane"],"x-fga-permissions":[["project_admin_write"]]}},"\/v2\/projects\/{ref}\/private-link\/associations\/aws-account\/{aws_account_id}\/database\/{database_identifier}":{"delete":{"description":"Removes an AWS account from the project's PrivateLink configuration for the given read replica. Cleans up the associated AWS resources.","operationId":"v2-delete-private-link-association-for-database","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"pattern":"^[a-z]+$","example":"abcdefghijklmnopqrst","type":"string"}},{"name":"aws_account_id","required":true,"in":"path","description":"AWS account ID used in PrivateLink association","schema":{"type":"string"}},{"name":"database_identifier","required":true,"in":"path","description":"Identifier of the read replica this PrivateLink association targets","schema":{"type":"string"}}],"responses":{"204":{"description":""},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"403":{"description":"Forbidden action","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"500":{"description":"Failed to remove AWS account from PrivateLink share","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}}},"security":[{"bearer":[]}],"summary":"Remove an AWS account from a specific database PrivateLink share","tags":["Projects"],"x-endpoint-owners":["platform-networking","control-plane"],"x-fga-permissions":[["project_admin_write"]]}},"\/v2\/projects\/{ref}\/compute":{"get":{"description":"Returns all compute instances you've previously deployed to the specified project.\n\nThis endpoint is currently in its **Alpha** stage.","operationId":"v2-list-all-compute-instances","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"pattern":"^[a-z]+$","example":"abcdefghijklmnopqrst","type":"string"}}],"responses":{"200":{"description":"","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/V2ListComputeInstancesResponse_Output"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"403":{"description":"Forbidden action","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}}},"security":[{"bearer":[]}],"summary":"List all compute instances","tags":["Compute"],"x-badges":[{"name":"OAuth scope: edge_functions:read","position":"after"},{"name":"Alpha","position":"before"}],"x-endpoint-owners":["functions"],"x-fga-permissions":[["workers_read"]],"x-oauth-scope":"edge_functions:read","x-scalar-stability":"experimental"}},"\/v2\/projects\/{ref}\/compute\/{name}":{"get":{"description":"Returns a compute instance along with the counts of its running instances. Poll this after a deploy until `build_state` leaves `building`.\n\nThis endpoint is currently in its **Alpha** stage.","operationId":"v2-get-a-compute-instance","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"pattern":"^[a-z]+$","example":"abcdefghijklmnopqrst","type":"string"}},{"name":"name","required":true,"in":"path","schema":{"pattern":"^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$","example":"hello-world","type":"string"}}],"responses":{"200":{"description":"","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/V2ComputeInstanceResponse_Output"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"403":{"description":"Forbidden action","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}}},"security":[{"bearer":[]}],"summary":"Retrieve a compute instance","tags":["Compute"],"x-badges":[{"name":"OAuth scope: edge_functions:read","position":"after"},{"name":"Alpha","position":"before"}],"x-endpoint-owners":["functions"],"x-fga-permissions":[["workers_read"]],"x-oauth-scope":"edge_functions:read","x-scalar-stability":"experimental"},"delete":{"description":"Tombstones the compute instance. Its running instances and image are torn down asynchronously.\n\nThis endpoint is currently in its **Alpha** stage.","operationId":"v2-delete-a-compute-instance","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"pattern":"^[a-z]+$","example":"abcdefghijklmnopqrst","type":"string"}},{"name":"name","required":true,"in":"path","schema":{"pattern":"^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$","example":"hello-world","type":"string"}}],"responses":{"204":{"description":""},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"403":{"description":"Forbidden action","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}}},"security":[{"bearer":[]}],"summary":"Delete a compute instance","tags":["Compute"],"x-badges":[{"name":"OAuth scope: edge_functions:write","position":"after"},{"name":"Alpha","position":"before"}],"x-endpoint-owners":["functions"],"x-fga-permissions":[["workers_write"]],"x-oauth-scope":"edge_functions:write","x-scalar-stability":"experimental"}},"\/v2\/projects\/{ref}\/compute\/{name}\/uploads":{"post":{"description":"PUT the `.tar.gz` build context to the returned `url` before `expires_at`, then deploy with the upload id as `context_upload_id`. The bytes go straight to storage \u2014 no management API request carries them.\n\nThis endpoint is currently in its **Alpha** stage.","operationId":"v2-create-compute-instance-upload","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"pattern":"^[a-z]+$","example":"abcdefghijklmnopqrst","type":"string"}},{"name":"name","required":true,"in":"path","schema":{"pattern":"^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$","example":"hello-world","type":"string"}}],"responses":{"201":{"description":"","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/V2ComputeInstanceUploadResponse_Output"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"403":{"description":"Forbidden action","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}}},"security":[{"bearer":[]}],"summary":"Mint a presigned slot for a build-context upload","tags":["Compute"],"x-badges":[{"name":"OAuth scope: edge_functions:write","position":"after"},{"name":"Alpha","position":"before"}],"x-endpoint-owners":["functions"],"x-fga-permissions":[["workers_write"]],"x-oauth-scope":"edge_functions:write","x-scalar-stability":"experimental"}},"\/v2\/projects\/{ref}\/compute\/{name}\/deploy":{"post":{"description":"Creates the compute instance if it does not exist, building from a context staged through the uploads endpoint. The build runs asynchronously: this answers 202 and the compute instance reaches `build_state` `active` or `failed` later.\n\nThis endpoint is currently in its **Alpha** stage.","operationId":"v2-deploy-a-compute-instance","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"pattern":"^[a-z]+$","example":"abcdefghijklmnopqrst","type":"string"}},{"name":"name","required":true,"in":"path","schema":{"pattern":"^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$","example":"hello-world","type":"string"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/V2DeployComputeInstanceRequest"}}}},"responses":{"202":{"description":"","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/V2ComputeInstanceResponse_Output"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"403":{"description":"Forbidden action","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}}},"security":[{"bearer":[]}],"summary":"Deploy a compute instance","tags":["Compute"],"x-badges":[{"name":"OAuth scope: edge_functions:write","position":"after"},{"name":"Alpha","position":"before"}],"x-endpoint-owners":["functions"],"x-fga-permissions":[["workers_write"]],"x-oauth-scope":"edge_functions:write","x-scalar-stability":"experimental"}},"\/v2\/projects\/{ref}\/database\/clone\/cloneable-backups":{"get":{"operationId":"v2-projects-database-cloneable-backups","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"pattern":"^[a-z]+$","example":"abcdefghijklmnopqrst","type":"string"}}],"responses":{"200":{"description":"","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/CloneableBackupsResponse_Output"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"403":{"description":"Forbidden action","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"500":{"description":"Failed to list cloneable backups candidates","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}}},"security":[{"bearer":[]}],"summary":"List the valid physical backups that can be used to clone into a new project","tags":["Projects"],"x-badges":[{"name":"OAuth scope: database:read","position":"after"}],"x-endpoint-owners":["managed-postgres","control-plane"],"x-fga-permissions":[["backups_read"]],"x-oauth-scope":"database:read"}},"\/v2\/projects\/{ref}\/database\/clone\/status":{"get":{"operationId":"v2-projects-database-clone-status","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"pattern":"^[a-z]+$","example":"abcdefghijklmnopqrst","type":"string"}}],"responses":{"200":{"description":"","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/CloneStatusResponse_Output"}}}},"400":{"description":"Invalid request for clone project status","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"403":{"description":"Forbidden action","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"500":{"description":"Failed to retrieve clone project status","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}}},"security":[{"bearer":[]}],"summary":"Retrieve the current status of an existing cloning process","tags":["Projects"],"x-badges":[{"name":"OAuth scope: database:read","position":"after"}],"x-endpoint-owners":["managed-postgres","control-plane"],"x-fga-permissions":[["backups_read"]],"x-oauth-scope":"database:read"}},"\/v2\/projects\/{ref}\/environments\/{environment}\/variables":{"get":{"description":"This is an **experimental** endpoint. It is subject to change or removal in future versions. Use it with caution, as it may not remain supported or stable.\n\nThis endpoint is currently in its **Beta** stage.","operationId":"v2-list-environment-variables","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"pattern":"^[a-z]+$","example":"abcdefghijklmnopqrst","type":"string"}},{"name":"environment","required":true,"in":"path","description":"Environment of the project. The default branch uses `production`, every other branch `development`.","schema":{"type":"string","enum":["production","development"]}}],"responses":{"200":{"description":"","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/V2ListEnvironmentVariablesResponse_Output"}}}},"400":{"description":"Not the root project","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"403":{"description":"Forbidden action","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}}},"security":[{"bearer":[]}],"summary":"List variables of an environment","tags":["Environments"],"x-badges":[{"name":"Beta","position":"before"},{"name":"OAuth scope: environment:read","position":"after"}],"x-endpoint-owners":["control-plane"],"x-fga-permissions":[["environment_variables_read"]],"x-oauth-scope":"environment:read","x-scalar-stability":"experimental"}},"\/v2\/projects\/{ref}\/environments\/{environment}\/variables\/{name}":{"put":{"description":"This is an **experimental** endpoint. It is subject to change or removal in future versions. Use it with caution, as it may not remain supported or stable.\n\nThis endpoint is currently in its **Beta** stage.","operationId":"v2-set-environment-variable","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"pattern":"^[a-z]+$","example":"abcdefghijklmnopqrst","type":"string"}},{"name":"environment","required":true,"in":"path","description":"Environment of the project. The default branch uses `production`, every other branch `development`.","schema":{"type":"string","enum":["production","development"]}},{"name":"name","required":true,"in":"path","description":"Name of the variable or secret. Variables and secrets share one namespace. Must not start with the SUPABASE_ prefix.","schema":{"maxLength":256,"pattern":"^(?!SUPABASE_)[A-Za-z_][A-Za-z0-9_]*$","example":"API_URL","type":"string"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/V2SetEnvironmentVariableRequest"}}}},"responses":{"200":{"description":"","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/V2EnvironmentVariableResponse_Output"}}}},"400":{"description":"Not the root project","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"403":{"description":"Forbidden action","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"409":{"description":"The name belongs to a secret of the environment, or the environment holds the maximum number of entries","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}}},"security":[{"bearer":[]}],"summary":"Create or replace a variable in an environment","tags":["Environments"],"x-badges":[{"name":"Beta","position":"before"},{"name":"OAuth scope: environment:write","position":"after"}],"x-endpoint-owners":["control-plane"],"x-fga-permissions":[["environment_variables_write"]],"x-oauth-scope":"environment:write","x-scalar-stability":"experimental"},"delete":{"description":"This is an **experimental** endpoint. It is subject to change or removal in future versions. Use it with caution, as it may not remain supported or stable.\n\nThis endpoint is currently in its **Beta** stage.","operationId":"v2-delete-environment-variable","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"pattern":"^[a-z]+$","example":"abcdefghijklmnopqrst","type":"string"}},{"name":"environment","required":true,"in":"path","description":"Environment of the project. The default branch uses `production`, every other branch `development`.","schema":{"type":"string","enum":["production","development"]}},{"name":"name","required":true,"in":"path","description":"Name of the variable or secret. Variables and secrets share one namespace. Must not start with the SUPABASE_ prefix.","schema":{"maxLength":256,"pattern":"^(?!SUPABASE_)[A-Za-z_][A-Za-z0-9_]*$","example":"API_URL","type":"string"}}],"responses":{"204":{"description":""},"400":{"description":"Not the root project","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"403":{"description":"Forbidden action","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"404":{"description":"Variable not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}}},"security":[{"bearer":[]}],"summary":"Delete a variable from an environment","tags":["Environments"],"x-badges":[{"name":"Beta","position":"before"},{"name":"OAuth scope: environment:write","position":"after"}],"x-endpoint-owners":["control-plane"],"x-fga-permissions":[["environment_variables_write"]],"x-oauth-scope":"environment:write","x-scalar-stability":"experimental"}},"\/v2\/projects\/{ref}\/environments\/{environment}\/secrets":{"get":{"description":"Returns the names of the secrets. Secret values are never returned.\n\nThis endpoint is currently in its **Beta** stage.","operationId":"v2-list-environment-secrets","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"pattern":"^[a-z]+$","example":"abcdefghijklmnopqrst","type":"string"}},{"name":"environment","required":true,"in":"path","description":"Environment of the project. The default branch uses `production`, every other branch `development`.","schema":{"type":"string","enum":["production","development"]}}],"responses":{"200":{"description":"","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/V2ListEnvironmentSecretsResponse_Output"}}}},"400":{"description":"Not the root project","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"403":{"description":"Forbidden action","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}}},"security":[{"bearer":[]}],"summary":"List secrets of an environment","tags":["Environments"],"x-badges":[{"name":"Beta","position":"before"},{"name":"OAuth scope: secrets:read","position":"after"}],"x-endpoint-owners":["control-plane"],"x-fga-permissions":[["environment_secrets_read"]],"x-oauth-scope":"secrets:read","x-scalar-stability":"experimental"}},"\/v2\/projects\/{ref}\/environments\/{environment}\/secrets\/{name}":{"put":{"description":"Encrypts the value with the environment's data encryption key and stores it. The value cannot be read back.\n\nThis endpoint is currently in its **Beta** stage.","operationId":"v2-set-environment-secret","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"pattern":"^[a-z]+$","example":"abcdefghijklmnopqrst","type":"string"}},{"name":"environment","required":true,"in":"path","description":"Environment of the project. The default branch uses `production`, every other branch `development`.","schema":{"type":"string","enum":["production","development"]}},{"name":"name","required":true,"in":"path","description":"Name of the variable or secret. Variables and secrets share one namespace. Must not start with the SUPABASE_ prefix.","schema":{"maxLength":256,"pattern":"^(?!SUPABASE_)[A-Za-z_][A-Za-z0-9_]*$","example":"API_URL","type":"string"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/V2SetEnvironmentSecretRequest"}}}},"responses":{"200":{"description":"","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/V2EnvironmentSecretResponse_Output"}}}},"400":{"description":"Not the root project","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"403":{"description":"Forbidden action","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"409":{"description":"The name belongs to a variable of the environment, or the environment holds the maximum number of entries","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}}},"security":[{"bearer":[]}],"summary":"Create or replace a secret in an environment","tags":["Environments"],"x-badges":[{"name":"Beta","position":"before"},{"name":"OAuth scope: secrets:write","position":"after"}],"x-endpoint-owners":["control-plane"],"x-fga-permissions":[["environment_secrets_write"]],"x-oauth-scope":"secrets:write","x-scalar-stability":"experimental"},"delete":{"description":"This is an **experimental** endpoint. It is subject to change or removal in future versions. Use it with caution, as it may not remain supported or stable.\n\nThis endpoint is currently in its **Beta** stage.","operationId":"v2-delete-environment-secret","parameters":[{"name":"ref","required":true,"in":"path","description":"Project ref","schema":{"minLength":20,"maxLength":20,"pattern":"^[a-z]+$","example":"abcdefghijklmnopqrst","type":"string"}},{"name":"environment","required":true,"in":"path","description":"Environment of the project. The default branch uses `production`, every other branch `development`.","schema":{"type":"string","enum":["production","development"]}},{"name":"name","required":true,"in":"path","description":"Name of the variable or secret. Variables and secrets share one namespace. Must not start with the SUPABASE_ prefix.","schema":{"maxLength":256,"pattern":"^(?!SUPABASE_)[A-Za-z_][A-Za-z0-9_]*$","example":"API_URL","type":"string"}}],"responses":{"204":{"description":""},"400":{"description":"Not the root project","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"403":{"description":"Forbidden action","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"404":{"description":"Secret not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}}},"security":[{"bearer":[]}],"summary":"Delete a secret from an environment","tags":["Environments"],"x-badges":[{"name":"Beta","position":"before"},{"name":"OAuth scope: secrets:write","position":"after"}],"x-endpoint-owners":["control-plane"],"x-fga-permissions":[["environment_secrets_write"]],"x-oauth-scope":"secrets:write","x-scalar-stability":"experimental"}},"\/v2\/organizations\/{slug}\/roles":{"get":{"description":"Returns a list of org-level roles for the organization.","operationId":"v2-list-organization-roles","parameters":[{"name":"slug","required":true,"in":"path","description":"Organization slug","schema":{"pattern":"^[\\w-]+$","example":"tsrqponmlkjihgfedcba","type":"string"}}],"responses":{"200":{"description":"","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/V2ListRolesResponse_Output"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"403":{"description":"Forbidden action","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}}},"security":[{"bearer":[]}],"summary":"List roles of an organization","tags":["Organizations"],"x-badges":[{"name":"OAuth scope: organizations:read","position":"after"}],"x-endpoint-owners":["control-plane"],"x-fga-permissions":[["members_read"]],"x-oauth-scope":"organizations:read"}},"\/v2\/organizations\/{slug}\/members\/invitations":{"post":{"description":"Creates member invitations for an organization. Each invitation can have different role and project scope settings.","operationId":"v2-create-organization-invitations","parameters":[{"name":"slug","required":true,"in":"path","description":"Organization slug","schema":{"pattern":"^[\\w-]+$","example":"tsrqponmlkjihgfedcba","type":"string"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/V2CreateInvitationsRequest"}}}},"responses":{"201":{"description":"","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/V2CreateInvitationsResponse_Output"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"402":{"description":"This feature requires the Team, or Enterprise organization plan.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"403":{"description":"Forbidden action","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}}},"security":[{"bearer":[]}],"summary":"Creates organization invitations","tags":["Organizations Members Invitations"],"x-allowed-plans":["Team","Enterprise"],"x-badges":[{"name":"OAuth scope: organizations:write","position":"after"},{"name":"Only available on Team, Enterprise","position":"before"}],"x-endpoint-owners":["control-plane"],"x-fga-permissions":[["members_write"]],"x-oauth-scope":"organizations:write"},"delete":{"description":"Bulk delete member invitations for an organization by email address.","operationId":"v2-delete-organization-invitations","parameters":[{"name":"slug","required":true,"in":"path","description":"Organization slug","schema":{"pattern":"^[\\w-]+$","example":"tsrqponmlkjihgfedcba","type":"string"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/V2DeleteInvitationsRequest"}}}},"responses":{"200":{"description":"","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/V2DeleteInvitationsResponse_Output"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"402":{"description":"This feature requires the Team, or Enterprise organization plan.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"403":{"description":"Forbidden action","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}}},"security":[{"bearer":[]}],"summary":"Deletes organization invitations by email","tags":["Organizations Members Invitations"],"x-allowed-plans":["Team","Enterprise"],"x-badges":[{"name":"OAuth scope: organizations:write","position":"after"},{"name":"Only available on Team, Enterprise","position":"before"}],"x-endpoint-owners":["control-plane"],"x-fga-permissions":[["members_write"]],"x-oauth-scope":"organizations:write"}},"\/v2\/organizations\/{slug}\/members":{"get":{"description":"Returns a cursor-paginated list of organization members including their roles and project-scoped permissions.","operationId":"v2-list-organization-members","parameters":[{"name":"slug","required":true,"in":"path","description":"Organization slug","schema":{"pattern":"^[\\w-]+$","example":"tsrqponmlkjihgfedcba","type":"string"}},{"name":"page","required":false,"in":"query","schema":{"properties":{"before":{"description":"Cursor in cursor-based pagination to return up to `page[size]` records before (exclusive) the entry specified by this query param.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"after":{"description":"Cursor in cursor-based pagination to return up to `page[size]` records after (exclusive) the entry specified by this query param.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"size":{"description":"Up to how many records to return.\n\nMinimum: 1. Maximum: 100.","example":"10","default":"20","type":"string","pattern":"^-?\\d+$"}},"type":"object"},"style":"deepObject"},{"name":"filter","required":false,"in":"query","schema":{"properties":{"username":{"type":"string"},"primary_email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"type":"object"},"style":"deepObject"}],"responses":{"200":{"description":"","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/V2ListMembersResponse_Output"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"403":{"description":"Forbidden action","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}}},"security":[{"bearer":[]}],"summary":"List members of an organization","tags":["Organizations"],"x-badges":[{"name":"OAuth scope: organizations:read","position":"after"}],"x-endpoint-owners":["control-plane"],"x-fga-permissions":[["members_read"]],"x-oauth-scope":"organizations:read"}},"\/v2\/organizations\/{slug}\/members\/{user_id}\/roles":{"patch":{"description":"Assigns an org-wide role when projects is omitted, or creates a project-scoped assignment when projects is provided. Uses an org-level role template id from GET \/v2\/organizations\/{slug}\/roles. Stale role assignments are automatically cleaned up: if a role no longer has any projects, it is deleted; overlapping project assignments in other roles are automatically removed to avoid duplication.","operationId":"v2-assign-organization-member-role","parameters":[{"name":"slug","required":true,"in":"path","description":"Organization slug","schema":{"pattern":"^[\\w-]+$","example":"tsrqponmlkjihgfedcba","type":"string"}},{"name":"user_id","required":true,"in":"path","schema":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$","type":"string"}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/V2AssignOrganizationMemberRoleRequest"}}}},"responses":{"200":{"description":"","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/OrganizationMemberRoleResponse_Output"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"402":{"description":"This feature requires the Team, or Enterprise organization plan.","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"403":{"description":"Forbidden action","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"500":{"description":"Failed to assign organization member role","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}}},"security":[{"bearer":[]}],"summary":"Assign or change an organization member role","tags":["Organizations"],"x-allowed-plans":["Team","Enterprise"],"x-badges":[{"name":"OAuth scope: organizations:write","position":"after"},{"name":"Only available on Team, Enterprise","position":"before"}],"x-endpoint-owners":["control-plane"],"x-fga-permissions":[["organization_admin_write"]],"x-oauth-scope":"organizations:write"}},"\/v2\/organizations\/{slug}\/members\/{user_id}":{"delete":{"description":"Removes one or more organization members including their roles and project-scoped permissions.","operationId":"v2-remove-organization-members","parameters":[{"name":"slug","required":true,"in":"path","description":"Organization slug","schema":{"pattern":"^[\\w-]+$","example":"tsrqponmlkjihgfedcba","type":"string"}},{"name":"user_id","required":true,"in":"path","schema":{"format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$","type":"string"}}],"responses":{"204":{"description":""},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"403":{"description":"Forbidden action","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"404":{"description":"Organization member not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"500":{"description":"Failed to remove organization member","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}}},"security":[{"bearer":[]}],"summary":"Removes organization members","tags":["Organizations"],"x-badges":[{"name":"OAuth scope: organizations:write","position":"after"}],"x-endpoint-owners":["control-plane"],"x-fga-permissions":[["organization_admin_write"]],"x-oauth-scope":"organizations:write"}},"\/v2\/organizations\/{slug}\/projects":{"get":{"description":"Returns a cursor-paginated list of projects for the specified organization, including their databases.\n\nUse `page[after]` and `page[before]` to navigate pages and `page[size]` to control the number of projects returned per page.","operationId":"v2-list-organization-projects","parameters":[{"name":"slug","required":true,"in":"path","description":"Organization slug","schema":{"pattern":"^[\\w-]+$","example":"tsrqponmlkjihgfedcba","type":"string"}},{"name":"page","required":false,"in":"query","schema":{"properties":{"before":{"description":"Cursor in cursor-based pagination to return up to `page[size]` records before (exclusive) the entry specified by this query param.","type":"string","minLength":1},"after":{"description":"Cursor in cursor-based pagination to return up to `page[size]` records after (exclusive) the entry specified by this query param.","type":"string","minLength":1},"size":{"description":"Up to how many records to return.\n\nMinimum: 1. Maximum: 100.","example":"10","default":"20","type":"string","pattern":"^-?\\d+$"}},"type":"object"},"style":"deepObject"},{"name":"sort","required":false,"in":"query","description":"Sort order by creation time: `inserted_at` (oldest first) or `-inserted_at` (newest first). Defaults to `inserted_at`.","schema":{"example":"-inserted_at","type":"string","enum":["inserted_at","-inserted_at"]}},{"name":"search","required":false,"in":"query","description":"Case-insensitive substring match on the project name.","schema":{"minLength":1,"type":"string"}}],"responses":{"200":{"description":"","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/V2ListProjectsResponse_Output"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"403":{"description":"Forbidden action","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}}},"security":[{"bearer":[]}],"summary":"List projects of an organization","tags":["Organizations"],"x-badges":[{"name":"OAuth scope: projects:read","position":"after"}],"x-endpoint-owners":["control-plane"],"x-fga-permissions":[["organization_projects_read"]],"x-oauth-scope":"projects:read"}},"\/v2\/organizations\/{slug}\/integrations\/github\/connections":{"get":{"description":"Returns a cursor-paginated list of the GitHub connections of the organization's projects.\n\nUse `page[after]` and `page[before]` to navigate pages and `page[size]` to control the page size.\nPaging walks the organization projects, so a page holds at most `page[size]` connections and can hold fewer (or none) when some of its projects are not connected.\nFollow `links.next` until it is `null` rather than stopping on a short page.\n\nUse `filter[project_ref]` to narrow the list down to a single project.","operationId":"v2-list-organization-github-connections","parameters":[{"name":"slug","required":true,"in":"path","description":"Organization slug","schema":{"pattern":"^[\\w-]+$","example":"tsrqponmlkjihgfedcba","type":"string"}},{"name":"page","required":false,"in":"query","schema":{"properties":{"before":{"description":"Cursor in cursor-based pagination to return up to `page[size]` records before (exclusive) the entry specified by this query param.","type":"string","minLength":20,"maxLength":20,"pattern":"^[a-z]+$","example":"abcdefghijklmnopqrst"},"after":{"description":"Cursor in cursor-based pagination to return up to `page[size]` records after (exclusive) the entry specified by this query param.","type":"string","minLength":20,"maxLength":20,"pattern":"^[a-z]+$","example":"abcdefghijklmnopqrst"},"size":{"description":"Up to how many records to return.\n\nMinimum: 1. Maximum: 100.","example":"10","default":"20","type":"string","pattern":"^-?\\d+$"}},"type":"object"},"style":"deepObject"},{"name":"filter","required":false,"in":"query","schema":{"properties":{"project_ref":{"type":"string","minLength":20,"maxLength":20,"pattern":"^[a-z]+$","description":"Project ref","example":"abcdefghijklmnopqrst"}},"type":"object"},"style":"deepObject"}],"responses":{"200":{"description":"","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/V2ListGitHubConnectionsResponse_Output"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"403":{"description":"Forbidden action","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}}},"security":[{"bearer":[]}],"summary":"List GitHub connections of an organization","tags":["Organizations"],"x-badges":[{"name":"OAuth scope: projects:read","position":"after"}],"x-endpoint-owners":["control-plane","dev-workflows"],"x-fga-permissions":[["organization_projects_read"]],"x-oauth-scope":"projects:read"}},"\/v2\/organizations\/{slug}\/maintenance\/windows":{"get":{"description":"Returns the weekly maintenance window for each region, with the open occurrence and the next five.","operationId":"v2-list-organization-maintenance-windows","parameters":[{"name":"slug","required":true,"in":"path","description":"Organization slug","schema":{"pattern":"^[\\w-]+$","example":"tsrqponmlkjihgfedcba","type":"string"}}],"responses":{"200":{"description":"","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/V2ListMaintenanceWindowsResponse_Output"}}}},"401":{"description":"Unauthorized","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"403":{"description":"Forbidden action","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"404":{"description":"Organization not found","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}},"429":{"description":"Rate limit exceeded","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ErrorResponseBody"}}}}},"security":[{"bearer":[]}],"summary":"List maintenance windows of an organization","tags":["Organizations"],"x-badges":[{"name":"OAuth scope: organizations:read","position":"after"}],"x-endpoint-owners":["infra"],"x-fga-permissions":[["organization_admin_read"]],"x-internal":true,"x-oauth-scope":"organizations:read"}},"\/v2\/projects\/{ref}\/webhooks\/endpoints":{"get":{"operationId":"v2-projects-ref-webhooks-endpoints-get","parameters":[{"in":"path","name":"ref","schema":{"type":"string","minLength":20,"maxLength":20,"pattern":"^[a-z]+$","example":"abcdefghijklmnopqrst"},"required":true,"description":"Project ref"},{"in":"query","name":"page","schema":{"type":"object","properties":{"offset":{"description":"Offset for offset-based pagination.\n\nOffset should be dividable by `page[limit]` without a reminder (`offset % limit === 0`), otherwise it will cause weird behavior when used on a frontend.","default":"0","type":"string","pattern":"^\\d+$"},"limit":{"description":"Up to how many records to return.","default":"20","type":"string","pattern":"^\\d+$"}}},"style":"deepObject"}],"tags":["Project webhooks"],"responses":{"200":{"description":"Collection of endpoints","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","const":"endpoint","description":"Resource type."},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Identifier of an endpoint (UUID v7)."},"attributes":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Identifier of an endpoint (UUID v7)."},"url":{"type":"string","format":"uri","description":"Publicly available URL where to send the events, must use a domain and be resolvable to a non-reserved IP address.","example":"https:\/\/mydomain.com\/path\/to\/handler"},"enabled":{"type":"boolean","description":"Whether the endpoint is enabled or not - disabled endpoints won't emit any events."},"description":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"description":"Optional description for the endpoint."},"event_types":{"minItems":1,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["v1.project.paused","v1.project.created","v1.project.restored","v1.project.transferred","v1.project.removed","v1.project.restarted","v1.project.status.changed","v1.project.backup.started","v1.project.branch.created","v1.project.branch.updated","v1.project.branch.removed","v1.project.secrets.leaked","v1.organization.member.invitation.created","v1.organization.member.invitation.canceled","v1.organization.member.added","v1.organization.member.removed","v1.organization.member.role.assigned","v1.organization.member.role.removed","v1.organization.member.role.updated","v1.organization.billing.plan.upgraded","v1.organization.billing.plan.downgraded","v1.organization.secrets.leaked","*"],"description":"Webhook event type."}},"required":["type"]},"description":"List of subscribed events for which to receive the webhook event.","example":[{"type":"v1.project.paused"}]},"custom_headers":{"description":"Additional request headers to pass when performing HTTP request location defined by `url`. Both keys and values must be strings and a valid HTTP headers.","example":{"Authorization":"Bearer example_token"},"type":"object","propertyNames":{"type":"string","pattern":"^[a-zA-Z0-9-]+$"},"additionalProperties":{"type":"string"}},"created_by":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"ID of the user who created the endpoint."},"created_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","description":"Timestamp of endpoint's creation."}},"required":["id","url","enabled","description","event_types","created_by","created_at"]}},"required":["type","id","attributes"]}},"links":{"type":"object","properties":{"first":{"description":"URL path to the first page if available.","example":"\/v2\/organization\/slug\/webhooks\/endpoints?page[limit]=10&page[offset]=0","type":["string","null"]},"prev":{"description":"URL path to the previous page.","example":"\/v2\/organization\/slug\/webhooks\/endpoints?page[limit]=10&page[offset]=0","type":["string","null"]},"next":{"description":"URL path to the next page.","example":"\/v2\/organization\/slug\/webhooks\/endpoints?page[limit]=10&page[offset]=20","type":["string","null"]},"last":{"description":"URL path to the last page if available.","example":"\/v2\/organization\/slug\/webhooks\/endpoints?page[limit]=10&page[offset]=30","type":["string","null"]}},"required":["prev","next"]}},"required":["data","links"]}}}},"401":{"description":"GenericUnauthorized","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"unauthorized"},"message":{"type":"string","const":"Unauthorized"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"unauthorized","message":"Unauthorized"}}}}}}},"403":{"description":"Multiple error responses","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"oneOf":[{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"forbidden"},"message":{"type":"string","const":"Forbidden"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"],"title":"PermissionDenied"},{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"webhooks_access_disabled"},"message":{"type":"string","const":"Webhooks access is disabled for this organization or project"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"],"title":"AccessDisabled"}]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"PermissionDenied":{"value":{"error":{"code":"forbidden","message":"Forbidden"}}},"AccessDisabled":{"value":{"error":{"code":"webhooks_access_disabled","message":"Webhooks access is disabled for this organization or project"}}}}}}},"408":{"description":"GenericRequestTimeout","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"request_timeout"},"message":{"type":"string","const":"Request timed out"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"request_timeout","message":"Request timed out"}}}}}}},"429":{"description":"GenericTooManyRequests","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"rate_limit_exceeded"},"message":{"type":"string","const":"Rate limit exceeded"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"rate_limit_exceeded","message":"Rate limit exceeded"}}}}}}},"500":{"description":"GenericInternalServerError","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"internal_server_error"},"message":{"type":"string","const":"Internal Server Error"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"internal_server_error","message":"Internal Server Error"}}}}}}}},"summary":"List endpoints","description":"List all Webhook endpoints based on a project's ref or an organization's slug."},"post":{"operationId":"v2-projects-ref-webhooks-endpoints-post","parameters":[{"in":"path","name":"ref","schema":{"type":"string","minLength":20,"maxLength":20,"pattern":"^[a-z]+$","example":"abcdefghijklmnopqrst"},"required":true,"description":"Project ref"}],"tags":["Project webhooks"],"responses":{"201":{"description":"Created endpoint","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"type":{"type":"string","const":"endpoint","description":"Resource type."},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Identifier of an endpoint (UUID v7)."},"attributes":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Identifier of an endpoint (UUID v7)."},"url":{"type":"string","format":"uri","description":"Publicly available URL where to send the events, must use a domain and be resolvable to a non-reserved IP address.","example":"https:\/\/mydomain.com\/path\/to\/handler"},"enabled":{"type":"boolean","description":"Whether the endpoint is enabled or not - disabled endpoints won't emit any events."},"description":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"description":"Optional description for the endpoint."},"event_types":{"minItems":1,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["v1.project.paused","v1.project.created","v1.project.restored","v1.project.transferred","v1.project.removed","v1.project.restarted","v1.project.status.changed","v1.project.backup.started","v1.project.branch.created","v1.project.branch.updated","v1.project.branch.removed","v1.project.secrets.leaked","v1.organization.member.invitation.created","v1.organization.member.invitation.canceled","v1.organization.member.added","v1.organization.member.removed","v1.organization.member.role.assigned","v1.organization.member.role.removed","v1.organization.member.role.updated","v1.organization.billing.plan.upgraded","v1.organization.billing.plan.downgraded","v1.organization.secrets.leaked","*"],"description":"Webhook event type."}},"required":["type"]},"description":"List of subscribed events for which to receive the webhook event.","example":[{"type":"v1.project.paused"}]},"custom_headers":{"description":"Additional request headers to pass when performing HTTP request location defined by `url`. Both keys and values must be strings and a valid HTTP headers.","example":{"Authorization":"Bearer example_token"},"type":"object","propertyNames":{"type":"string","pattern":"^[a-zA-Z0-9-]+$"},"additionalProperties":{"type":"string"}},"created_by":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"ID of the user who created the endpoint."},"created_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","description":"Timestamp of endpoint's creation."}},"required":["id","url","enabled","description","event_types","created_by","created_at"]}},"required":["type","id","attributes"]}},"required":["data"]}}}},"401":{"description":"GenericUnauthorized","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"unauthorized"},"message":{"type":"string","const":"Unauthorized"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"unauthorized","message":"Unauthorized"}}}}}}},"403":{"description":"Multiple error responses","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"oneOf":[{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"forbidden"},"message":{"type":"string","const":"Forbidden"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"],"title":"PermissionDenied"},{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"webhooks_access_disabled"},"message":{"type":"string","const":"Webhooks access is disabled for this organization or project"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"],"title":"AccessDisabled"}]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"PermissionDenied":{"value":{"error":{"code":"forbidden","message":"Forbidden"}}},"AccessDisabled":{"value":{"error":{"code":"webhooks_access_disabled","message":"Webhooks access is disabled for this organization or project"}}}}}}},"408":{"description":"GenericRequestTimeout","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"request_timeout"},"message":{"type":"string","const":"Request timed out"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"request_timeout","message":"Request timed out"}}}}}}},"429":{"description":"GenericTooManyRequests","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"rate_limit_exceeded"},"message":{"type":"string","const":"Rate limit exceeded"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"rate_limit_exceeded","message":"Rate limit exceeded"}}}}}}},"500":{"description":"GenericInternalServerError","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"internal_server_error"},"message":{"type":"string","const":"Internal Server Error"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"internal_server_error","message":"Internal Server Error"}}}}}}}},"summary":"Create endpoint","description":"Create new endpoint configuration to subscribe to specific webhook events.","requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"type":{"type":"string","const":"endpoint","description":"Resource type."},"attributes":{"type":"object","properties":{"url":{"type":"string","format":"uri","description":"Publicly available URL where to send the events, must use a domain and be resolvable to a non-reserved IP address.","example":"https:\/\/mydomain.com\/path\/to\/handler"},"enabled":{"default":true,"type":"boolean","description":"Whether the endpoint is enabled or not - disabled endpoints won't emit any events."},"description":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"description":"Optional description for the endpoint."},"event_types":{"minItems":1,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["v1.project.paused","v1.project.created","v1.project.restored","v1.project.transferred","v1.project.removed","v1.project.restarted","v1.project.status.changed","v1.project.backup.started","v1.project.branch.created","v1.project.branch.updated","v1.project.branch.removed","v1.project.secrets.leaked","v1.organization.member.invitation.created","v1.organization.member.invitation.canceled","v1.organization.member.added","v1.organization.member.removed","v1.organization.member.role.assigned","v1.organization.member.role.removed","v1.organization.member.role.updated","v1.organization.billing.plan.upgraded","v1.organization.billing.plan.downgraded","v1.organization.secrets.leaked","*"],"description":"Webhook event type."}},"required":["type"]},"description":"List of subscribed events for which to receive the webhook event.","example":[{"type":"v1.project.paused"}]},"custom_headers":{"description":"Additional request headers to pass when performing HTTP request location defined by `url`. Both keys and values must be strings and a valid HTTP headers.","example":{"Authorization":"Bearer example_token"},"type":"object","propertyNames":{"type":"string","pattern":"^[a-zA-Z0-9-]+$"},"additionalProperties":{"type":"string"}},"signing_secret":{"type":"string","minLength":8,"maxLength":64,"description":"Secret key to use when signing. All events will be signed according to the [Standard Webhooks](https:\/\/www.standardwebhooks.com\/) specification."}},"required":["url","event_types","signing_secret"]}},"required":["type","attributes"]}},"required":["data"]}}}}},"delete":{"operationId":"v2-projects-ref-webhooks-endpoints-delete","parameters":[{"in":"path","name":"ref","schema":{"type":"string","minLength":20,"maxLength":20,"pattern":"^[a-z]+$","example":"abcdefghijklmnopqrst"},"required":true,"description":"Project ref"}],"tags":["Project webhooks"],"responses":{"200":{"description":"Deleted endpoints","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","const":"endpoint","description":"Resource type."},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Identifier of an endpoint (UUID v7)."},"attributes":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Identifier of an endpoint (UUID v7)."},"url":{"type":"string","format":"uri","description":"Publicly available URL where to send the events, must use a domain and be resolvable to a non-reserved IP address.","example":"https:\/\/mydomain.com\/path\/to\/handler"},"enabled":{"type":"boolean","description":"Whether the endpoint is enabled or not - disabled endpoints won't emit any events."},"description":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"description":"Optional description for the endpoint."},"event_types":{"minItems":1,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["v1.project.paused","v1.project.created","v1.project.restored","v1.project.transferred","v1.project.removed","v1.project.restarted","v1.project.status.changed","v1.project.backup.started","v1.project.branch.created","v1.project.branch.updated","v1.project.branch.removed","v1.project.secrets.leaked","v1.organization.member.invitation.created","v1.organization.member.invitation.canceled","v1.organization.member.added","v1.organization.member.removed","v1.organization.member.role.assigned","v1.organization.member.role.removed","v1.organization.member.role.updated","v1.organization.billing.plan.upgraded","v1.organization.billing.plan.downgraded","v1.organization.secrets.leaked","*"],"description":"Webhook event type."}},"required":["type"]},"description":"List of subscribed events for which to receive the webhook event.","example":[{"type":"v1.project.paused"}]},"custom_headers":{"description":"Additional request headers to pass when performing HTTP request location defined by `url`. Both keys and values must be strings and a valid HTTP headers.","example":{"Authorization":"Bearer example_token"},"type":"object","propertyNames":{"type":"string","pattern":"^[a-zA-Z0-9-]+$"},"additionalProperties":{"type":"string"}},"created_by":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"ID of the user who created the endpoint."},"created_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","description":"Timestamp of endpoint's creation."}},"required":["id","url","enabled","description","event_types","created_by","created_at"]}},"required":["type","id","attributes"]}}},"required":["data"]}}}},"401":{"description":"GenericUnauthorized","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"unauthorized"},"message":{"type":"string","const":"Unauthorized"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"unauthorized","message":"Unauthorized"}}}}}}},"403":{"description":"Multiple error responses","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"oneOf":[{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"forbidden"},"message":{"type":"string","const":"Forbidden"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"],"title":"PermissionDenied"},{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"webhooks_access_disabled"},"message":{"type":"string","const":"Webhooks access is disabled for this organization or project"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"],"title":"AccessDisabled"}]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"PermissionDenied":{"value":{"error":{"code":"forbidden","message":"Forbidden"}}},"AccessDisabled":{"value":{"error":{"code":"webhooks_access_disabled","message":"Webhooks access is disabled for this organization or project"}}}}}}},"408":{"description":"GenericRequestTimeout","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"request_timeout"},"message":{"type":"string","const":"Request timed out"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"request_timeout","message":"Request timed out"}}}}}}},"429":{"description":"GenericTooManyRequests","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"rate_limit_exceeded"},"message":{"type":"string","const":"Rate limit exceeded"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"rate_limit_exceeded","message":"Rate limit exceeded"}}}}}}},"500":{"description":"GenericInternalServerError","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"internal_server_error"},"message":{"type":"string","const":"Internal Server Error"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"internal_server_error","message":"Internal Server Error"}}}}}}}},"summary":"Delete all endpoints","description":"Delete all endpoints including all events and deliveries.\n\nAny in-flight webhooks will result in a no-op."}},"\/v2\/projects\/{ref}\/webhooks\/endpoints\/{id}":{"get":{"operationId":"v2-projects-ref-webhooks-endpoints-id-get","parameters":[{"in":"path","name":"ref","schema":{"type":"string","minLength":20,"maxLength":20,"pattern":"^[a-z]+$","example":"abcdefghijklmnopqrst"},"required":true,"description":"Project ref"},{"in":"path","name":"id","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"required":true,"description":"Identifier of an endpoint (UUID v7)."}],"tags":["Project webhooks"],"responses":{"200":{"description":"Endpoint details","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"type":{"type":"string","const":"endpoint","description":"Resource type."},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Identifier of an endpoint (UUID v7)."},"attributes":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Identifier of an endpoint (UUID v7)."},"url":{"type":"string","format":"uri","description":"Publicly available URL where to send the events, must use a domain and be resolvable to a non-reserved IP address.","example":"https:\/\/mydomain.com\/path\/to\/handler"},"enabled":{"type":"boolean","description":"Whether the endpoint is enabled or not - disabled endpoints won't emit any events."},"description":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"description":"Optional description for the endpoint."},"event_types":{"minItems":1,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["v1.project.paused","v1.project.created","v1.project.restored","v1.project.transferred","v1.project.removed","v1.project.restarted","v1.project.status.changed","v1.project.backup.started","v1.project.branch.created","v1.project.branch.updated","v1.project.branch.removed","v1.project.secrets.leaked","v1.organization.member.invitation.created","v1.organization.member.invitation.canceled","v1.organization.member.added","v1.organization.member.removed","v1.organization.member.role.assigned","v1.organization.member.role.removed","v1.organization.member.role.updated","v1.organization.billing.plan.upgraded","v1.organization.billing.plan.downgraded","v1.organization.secrets.leaked","*"],"description":"Webhook event type."}},"required":["type"]},"description":"List of subscribed events for which to receive the webhook event.","example":[{"type":"v1.project.paused"}]},"custom_headers":{"description":"Additional request headers to pass when performing HTTP request location defined by `url`. Both keys and values must be strings and a valid HTTP headers.","example":{"Authorization":"Bearer example_token"},"type":"object","propertyNames":{"type":"string","pattern":"^[a-zA-Z0-9-]+$"},"additionalProperties":{"type":"string"}},"created_by":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"ID of the user who created the endpoint."},"created_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","description":"Timestamp of endpoint's creation."}},"required":["id","url","enabled","description","event_types","created_by","created_at"]}},"required":["type","id","attributes"]}},"required":["data"]}}}},"401":{"description":"GenericUnauthorized","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"unauthorized"},"message":{"type":"string","const":"Unauthorized"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"unauthorized","message":"Unauthorized"}}}}}}},"403":{"description":"Multiple error responses","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"oneOf":[{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"forbidden"},"message":{"type":"string","const":"Forbidden"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"],"title":"PermissionDenied"},{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"webhooks_access_disabled"},"message":{"type":"string","const":"Webhooks access is disabled for this organization or project"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"],"title":"AccessDisabled"}]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"PermissionDenied":{"value":{"error":{"code":"forbidden","message":"Forbidden"}}},"AccessDisabled":{"value":{"error":{"code":"webhooks_access_disabled","message":"Webhooks access is disabled for this organization or project"}}}}}}},"404":{"description":"EndpointNotFound","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"endpoint_not_found"},"message":{"type":"string","const":"Webhook endpoint not found"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"endpoint_not_found","message":"Webhook endpoint not found"}}}}}}},"408":{"description":"GenericRequestTimeout","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"request_timeout"},"message":{"type":"string","const":"Request timed out"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"request_timeout","message":"Request timed out"}}}}}}},"429":{"description":"GenericTooManyRequests","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"rate_limit_exceeded"},"message":{"type":"string","const":"Rate limit exceeded"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"rate_limit_exceeded","message":"Rate limit exceeded"}}}}}}},"500":{"description":"GenericInternalServerError","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"internal_server_error"},"message":{"type":"string","const":"Internal Server Error"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"internal_server_error","message":"Internal Server Error"}}}}}}}},"summary":"Get endpoint","description":"Get details of a specific endpoint."},"patch":{"operationId":"v2-projects-ref-webhooks-endpoints-id-patch","parameters":[{"in":"path","name":"ref","schema":{"type":"string","minLength":20,"maxLength":20,"pattern":"^[a-z]+$","example":"abcdefghijklmnopqrst"},"required":true,"description":"Project ref"},{"in":"path","name":"id","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"required":true,"description":"Identifier of an endpoint (UUID v7)."}],"tags":["Project webhooks"],"responses":{"200":{"description":"Updated endpoint details","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"type":{"type":"string","const":"endpoint","description":"Resource type."},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Identifier of an endpoint (UUID v7)."},"attributes":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Identifier of an endpoint (UUID v7)."},"url":{"type":"string","format":"uri","description":"Publicly available URL where to send the events, must use a domain and be resolvable to a non-reserved IP address.","example":"https:\/\/mydomain.com\/path\/to\/handler"},"enabled":{"type":"boolean","description":"Whether the endpoint is enabled or not - disabled endpoints won't emit any events."},"description":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"description":"Optional description for the endpoint."},"event_types":{"minItems":1,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["v1.project.paused","v1.project.created","v1.project.restored","v1.project.transferred","v1.project.removed","v1.project.restarted","v1.project.status.changed","v1.project.backup.started","v1.project.branch.created","v1.project.branch.updated","v1.project.branch.removed","v1.project.secrets.leaked","v1.organization.member.invitation.created","v1.organization.member.invitation.canceled","v1.organization.member.added","v1.organization.member.removed","v1.organization.member.role.assigned","v1.organization.member.role.removed","v1.organization.member.role.updated","v1.organization.billing.plan.upgraded","v1.organization.billing.plan.downgraded","v1.organization.secrets.leaked","*"],"description":"Webhook event type."}},"required":["type"]},"description":"List of subscribed events for which to receive the webhook event.","example":[{"type":"v1.project.paused"}]},"custom_headers":{"description":"Additional request headers to pass when performing HTTP request location defined by `url`. Both keys and values must be strings and a valid HTTP headers.","example":{"Authorization":"Bearer example_token"},"type":"object","propertyNames":{"type":"string","pattern":"^[a-zA-Z0-9-]+$"},"additionalProperties":{"type":"string"}},"created_by":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"ID of the user who created the endpoint."},"created_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","description":"Timestamp of endpoint's creation."}},"required":["id","url","enabled","description","event_types","created_by","created_at"]}},"required":["type","id","attributes"]}},"required":["data"]}}}},"401":{"description":"GenericUnauthorized","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"unauthorized"},"message":{"type":"string","const":"Unauthorized"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"unauthorized","message":"Unauthorized"}}}}}}},"403":{"description":"Multiple error responses","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"oneOf":[{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"forbidden"},"message":{"type":"string","const":"Forbidden"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"],"title":"PermissionDenied"},{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"webhooks_access_disabled"},"message":{"type":"string","const":"Webhooks access is disabled for this organization or project"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"],"title":"AccessDisabled"}]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"PermissionDenied":{"value":{"error":{"code":"forbidden","message":"Forbidden"}}},"AccessDisabled":{"value":{"error":{"code":"webhooks_access_disabled","message":"Webhooks access is disabled for this organization or project"}}}}}}},"404":{"description":"EndpointNotFound","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"endpoint_not_found"},"message":{"type":"string","const":"Webhook endpoint not found"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"endpoint_not_found","message":"Webhook endpoint not found"}}}}}}},"408":{"description":"GenericRequestTimeout","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"request_timeout"},"message":{"type":"string","const":"Request timed out"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"request_timeout","message":"Request timed out"}}}}}}},"429":{"description":"GenericTooManyRequests","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"rate_limit_exceeded"},"message":{"type":"string","const":"Rate limit exceeded"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"rate_limit_exceeded","message":"Rate limit exceeded"}}}}}}},"500":{"description":"GenericInternalServerError","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"internal_server_error"},"message":{"type":"string","const":"Internal Server Error"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"internal_server_error","message":"Internal Server Error"}}}}}}}},"summary":"Update endpoint","description":"Update endpoint's configuration.","requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"type":{"type":"string","const":"endpoint","description":"Resource type."},"attributes":{"type":"object","properties":{"url":{"type":"string","format":"uri","description":"Publicly available URL where to send the events, must use a domain and be resolvable to a non-reserved IP address.","example":"https:\/\/mydomain.com\/path\/to\/handler"},"enabled":{"type":"boolean","description":"Whether the endpoint is enabled or not - disabled endpoints won't emit any events."},"description":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"description":"Optional description for the endpoint."},"event_types":{"minItems":1,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["v1.project.paused","v1.project.created","v1.project.restored","v1.project.transferred","v1.project.removed","v1.project.restarted","v1.project.status.changed","v1.project.backup.started","v1.project.branch.created","v1.project.branch.updated","v1.project.branch.removed","v1.project.secrets.leaked","v1.organization.member.invitation.created","v1.organization.member.invitation.canceled","v1.organization.member.added","v1.organization.member.removed","v1.organization.member.role.assigned","v1.organization.member.role.removed","v1.organization.member.role.updated","v1.organization.billing.plan.upgraded","v1.organization.billing.plan.downgraded","v1.organization.secrets.leaked","*"],"description":"Webhook event type."}},"required":["type"]},"description":"List of subscribed events for which to receive the webhook event.","example":[{"type":"v1.project.paused"}]},"custom_headers":{"description":"Additional request headers to pass when performing HTTP request location defined by `url`. Both keys and values must be strings and a valid HTTP headers.","example":{"Authorization":"Bearer example_token"},"type":"object","propertyNames":{"type":"string","pattern":"^[a-zA-Z0-9-]+$"},"additionalProperties":{"type":"string"}},"signing_secret":{"type":"string","minLength":8,"maxLength":64,"description":"Secret key to use when signing. All events will be signed according to the [Standard Webhooks](https:\/\/www.standardwebhooks.com\/) specification."}}}},"required":["type","attributes"]}},"required":["data"]}}}}},"delete":{"operationId":"v2-projects-ref-webhooks-endpoints-id-delete","parameters":[{"in":"path","name":"ref","schema":{"type":"string","minLength":20,"maxLength":20,"pattern":"^[a-z]+$","example":"abcdefghijklmnopqrst"},"required":true,"description":"Project ref"},{"in":"path","name":"id","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"required":true,"description":"Identifier of an endpoint (UUID v7)."}],"tags":["Project webhooks"],"responses":{"200":{"description":"Deleted endpoint details","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"type":{"type":"string","const":"endpoint","description":"Resource type."},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Identifier of an endpoint (UUID v7)."},"attributes":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Identifier of an endpoint (UUID v7)."},"url":{"type":"string","format":"uri","description":"Publicly available URL where to send the events, must use a domain and be resolvable to a non-reserved IP address.","example":"https:\/\/mydomain.com\/path\/to\/handler"},"enabled":{"type":"boolean","description":"Whether the endpoint is enabled or not - disabled endpoints won't emit any events."},"description":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"description":"Optional description for the endpoint."},"event_types":{"minItems":1,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["v1.project.paused","v1.project.created","v1.project.restored","v1.project.transferred","v1.project.removed","v1.project.restarted","v1.project.status.changed","v1.project.backup.started","v1.project.branch.created","v1.project.branch.updated","v1.project.branch.removed","v1.project.secrets.leaked","v1.organization.member.invitation.created","v1.organization.member.invitation.canceled","v1.organization.member.added","v1.organization.member.removed","v1.organization.member.role.assigned","v1.organization.member.role.removed","v1.organization.member.role.updated","v1.organization.billing.plan.upgraded","v1.organization.billing.plan.downgraded","v1.organization.secrets.leaked","*"],"description":"Webhook event type."}},"required":["type"]},"description":"List of subscribed events for which to receive the webhook event.","example":[{"type":"v1.project.paused"}]},"custom_headers":{"description":"Additional request headers to pass when performing HTTP request location defined by `url`. Both keys and values must be strings and a valid HTTP headers.","example":{"Authorization":"Bearer example_token"},"type":"object","propertyNames":{"type":"string","pattern":"^[a-zA-Z0-9-]+$"},"additionalProperties":{"type":"string"}},"created_by":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"ID of the user who created the endpoint."},"created_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","description":"Timestamp of endpoint's creation."}},"required":["id","url","enabled","description","event_types","created_by","created_at"]}},"required":["type","id","attributes"]}},"required":["data"]}}}},"401":{"description":"GenericUnauthorized","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"unauthorized"},"message":{"type":"string","const":"Unauthorized"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"unauthorized","message":"Unauthorized"}}}}}}},"403":{"description":"Multiple error responses","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"oneOf":[{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"forbidden"},"message":{"type":"string","const":"Forbidden"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"],"title":"PermissionDenied"},{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"webhooks_access_disabled"},"message":{"type":"string","const":"Webhooks access is disabled for this organization or project"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"],"title":"AccessDisabled"}]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"PermissionDenied":{"value":{"error":{"code":"forbidden","message":"Forbidden"}}},"AccessDisabled":{"value":{"error":{"code":"webhooks_access_disabled","message":"Webhooks access is disabled for this organization or project"}}}}}}},"404":{"description":"EndpointNotFound","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"endpoint_not_found"},"message":{"type":"string","const":"Webhook endpoint not found"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"endpoint_not_found","message":"Webhook endpoint not found"}}}}}}},"408":{"description":"GenericRequestTimeout","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"request_timeout"},"message":{"type":"string","const":"Request timed out"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"request_timeout","message":"Request timed out"}}}}}}},"429":{"description":"GenericTooManyRequests","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"rate_limit_exceeded"},"message":{"type":"string","const":"Rate limit exceeded"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"rate_limit_exceeded","message":"Rate limit exceeded"}}}}}}},"500":{"description":"GenericInternalServerError","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"internal_server_error"},"message":{"type":"string","const":"Internal Server Error"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"internal_server_error","message":"Internal Server Error"}}}}}}}},"summary":"Delete endpoint","description":"Delete the endpoint including all events and deliveries\n\nAny in-flight webhooks will result in a no-op."}},"\/v2\/projects\/{ref}\/webhooks\/endpoints\/{id}\/deliveries":{"get":{"operationId":"v2-projects-ref-webhooks-endpoints-id-deliveries-get","parameters":[{"in":"path","name":"ref","schema":{"type":"string","minLength":20,"maxLength":20,"pattern":"^[a-z]+$","example":"abcdefghijklmnopqrst"},"required":true,"description":"Project ref"},{"in":"path","name":"id","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"required":true,"description":"Identifier of an endpoint (UUID v7)."},{"in":"query","name":"page","schema":{"type":"object","properties":{"before":{"description":"Cursor in cursor-based pagination to return up to `page[size]` records before (exclusive) the entry specified by this query param.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"after":{"description":"Cursor in cursor-based pagination to return up to `page[size]` records after (exclusive) the entry specified by this query param.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"size":{"description":"Up to how many records to return.\n\nMinimum: 1. Maximum: 100.","example":"10","default":"20","type":"string","pattern":"^-?\\d+$"}}},"style":"deepObject"}],"tags":["Project webhooks"],"responses":{"200":{"description":"List of deliveries","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","const":"delivery","description":"Resource type."},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Identifier of a delivery (UUID v7)."},"attributes":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Identifier of a delivery (UUID v7)."},"event_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Identifier of the event, which triggered the delivery (UUID v7)."},"status":{"type":"string","enum":["pending","success","failure","skipped"],"description":"Status of the delivery attempt."},"response_code":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"HTTP status code of the response, `0` if unavailable."},"response_headers":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"},"description":"HTTP headers of the response, `{}` if unavailable."},"response_body":{"anyOf":[{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"},"description":"Parsed JSON representation of an HTTP body of the response, `{}` if unavailable."},{"type":"string","description":"String representation of an HTTP body of the response."}]},{"type":"null"}]},"error_code":{"type":["string","null"]},"error_message":{"type":["string","null"]},"attempt_timestamp":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","description":"Timestamp of the attempt."},"event":{"type":"object","properties":{"type":{"type":"string","enum":["v1.project.paused","v1.project.created","v1.project.restored","v1.project.transferred","v1.project.removed","v1.project.restarted","v1.project.status.changed","v1.project.backup.started","v1.project.branch.created","v1.project.branch.updated","v1.project.branch.removed","v1.project.secrets.leaked","v1.organization.member.invitation.created","v1.organization.member.invitation.canceled","v1.organization.member.added","v1.organization.member.removed","v1.organization.member.role.assigned","v1.organization.member.role.removed","v1.organization.member.role.updated","v1.organization.billing.plan.upgraded","v1.organization.billing.plan.downgraded","v1.organization.secrets.leaked"],"description":"Webhook event type."},"payload":{"type":"object","properties":{"organization_slug":{"type":"string","pattern":"^[\\w-]+$","description":"Organization slug","example":"tsrqponmlkjihgfedcba"},"project_ref":{"anyOf":[{"type":"string","minLength":20,"maxLength":20,"pattern":"^[a-z]+$","description":"Project ref","example":"abcdefghijklmnopqrst"},{"type":"null"}]}},"required":["organization_slug","project_ref"],"description":"Final data sent to the consumer."},"timestamp":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","description":"Timestamp of event publication."}},"required":["type","payload","timestamp"]}},"required":["id","event_id","status","response_code","response_headers","response_body","error_code","error_message","attempt_timestamp","event"]}},"required":["type","id","attributes"]}},"links":{"type":"object","properties":{"first":{"description":"URL path to the first page if available.","example":"\/v2\/organizations\/slug\/webhooks\/endpoints\/{id}\/deliveries?page[size]=10","type":["string","null"]},"prev":{"description":"URL path to the previous page.","example":"\/v2\/organizations\/slug\/webhooks\/endpoints\/{id}\/deliveries?page[size]=10&page[before]=019adf7d-4513-74c5-bb9a-f1bc0f7a95d7","type":["string","null"]},"next":{"description":"URL path to the next page.","example":"\/v2\/organizations\/slug\/webhooks\/endpoints\/{id}\/deliveries?page[size]=10&page[after]=019adf7d-4513-7062-b292-78b86cc470a4","type":["string","null"]},"last":{"description":"URL path to the last page if available.","example":"\/v2\/organizations\/slug\/webhooks\/endpoints\/{id}\/deliveries?page[size]=10&page[after]=019adf7d-4513-71ba-b264-21900edb4295","type":["string","null"]}},"required":["prev","next"]}},"required":["data","links"]}}}},"401":{"description":"GenericUnauthorized","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"unauthorized"},"message":{"type":"string","const":"Unauthorized"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"unauthorized","message":"Unauthorized"}}}}}}},"403":{"description":"Multiple error responses","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"oneOf":[{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"forbidden"},"message":{"type":"string","const":"Forbidden"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"],"title":"PermissionDenied"},{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"webhooks_access_disabled"},"message":{"type":"string","const":"Webhooks access is disabled for this organization or project"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"],"title":"AccessDisabled"}]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"PermissionDenied":{"value":{"error":{"code":"forbidden","message":"Forbidden"}}},"AccessDisabled":{"value":{"error":{"code":"webhooks_access_disabled","message":"Webhooks access is disabled for this organization or project"}}}}}}},"404":{"description":"EndpointNotFound","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"endpoint_not_found"},"message":{"type":"string","const":"Webhook endpoint not found"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"endpoint_not_found","message":"Webhook endpoint not found"}}}}}}},"408":{"description":"GenericRequestTimeout","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"request_timeout"},"message":{"type":"string","const":"Request timed out"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"request_timeout","message":"Request timed out"}}}}}}},"429":{"description":"GenericTooManyRequests","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"rate_limit_exceeded"},"message":{"type":"string","const":"Rate limit exceeded"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"rate_limit_exceeded","message":"Rate limit exceeded"}}}}}}},"500":{"description":"GenericInternalServerError","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"internal_server_error"},"message":{"type":"string","const":"Internal Server Error"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"internal_server_error","message":"Internal Server Error"}}}}}}}},"summary":"List deliveries","description":"List all deliveries for a specific endpoint in descending order (newest first).\n\nDeliveries which has expired are no longer available and will not be listed."}},"\/v2\/projects\/{ref}\/webhooks\/endpoints\/{id}\/test":{"post":{"operationId":"v2-projects-ref-webhooks-endpoints-id-test-post","parameters":[{"in":"path","name":"ref","schema":{"type":"string","minLength":20,"maxLength":20,"pattern":"^[a-z]+$","example":"abcdefghijklmnopqrst"},"required":true,"description":"Project ref"},{"in":"path","name":"id","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"required":true,"description":"Identifier of an endpoint (UUID v7)."}],"tags":["Project webhooks"],"responses":{"201":{"description":"Event published","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"type":{"type":"string","const":"ingress","description":"Resource type."},"id":{"type":"string"}},"required":["type","id"]}},"required":["data"]}}}},"400":{"description":"Multiple error responses","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"oneOf":[{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"endpoint_disabled"},"message":{"type":"string","const":"Webhook endpoint is disabled"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"],"title":"EndpointTestDisabled"},{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"endpoint_event_type_not_subscribed"},"message":{"type":"string","const":"Webhook endpoint is not subscribed to this event type"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"],"title":"EndpointTestWrongEventType"}]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"EndpointTestDisabled":{"value":{"error":{"code":"endpoint_disabled","description":"Endpoint is disabled, to send test event endpoint must first be enabled.","message":"Webhook endpoint is disabled"}}},"EndpointTestWrongEventType":{"value":{"error":{"code":"endpoint_event_type_not_subscribed","description":"Only event types that the endpoint is subscribed to can be specified.","message":"Webhook endpoint is not subscribed to this event type"}}}}}}},"401":{"description":"GenericUnauthorized","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"unauthorized"},"message":{"type":"string","const":"Unauthorized"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"unauthorized","message":"Unauthorized"}}}}}}},"403":{"description":"Multiple error responses","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"oneOf":[{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"forbidden"},"message":{"type":"string","const":"Forbidden"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"],"title":"PermissionDenied"},{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"webhooks_access_disabled"},"message":{"type":"string","const":"Webhooks access is disabled for this organization or project"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"],"title":"AccessDisabled"}]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"PermissionDenied":{"value":{"error":{"code":"forbidden","message":"Forbidden"}}},"AccessDisabled":{"value":{"error":{"code":"webhooks_access_disabled","message":"Webhooks access is disabled for this organization or project"}}}}}}},"404":{"description":"EndpointNotFound","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"endpoint_not_found"},"message":{"type":"string","const":"Webhook endpoint not found"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"endpoint_not_found","message":"Webhook endpoint not found"}}}}}}},"408":{"description":"GenericRequestTimeout","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"request_timeout"},"message":{"type":"string","const":"Request timed out"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"request_timeout","message":"Request timed out"}}}}}}},"429":{"description":"GenericTooManyRequests","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"rate_limit_exceeded"},"message":{"type":"string","const":"Rate limit exceeded"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"rate_limit_exceeded","message":"Rate limit exceeded"}}}}}}},"500":{"description":"GenericInternalServerError","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"internal_server_error"},"message":{"type":"string","const":"Internal Server Error"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"internal_server_error","message":"Internal Server Error"}}}}}}}},"summary":"Send test event","description":"Ingests and schedules a test webhook event to be published out this endpoints.\n\nWhich event type to use can be specified in the request body, otherwise\nit will use any matching type the endpoint is listening for.\n\nThe event will contain `is_test: true` in it's payload.\n\nThis endpoint is heavy rate-limited to allow for 10 request within 60 seconds.","requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"type":{"type":"string","const":"event","description":"Resource type."},"attributes":{"type":"object","properties":{"type":{"type":"string","enum":["v1.project.paused","v1.project.created","v1.project.restored","v1.project.transferred","v1.project.removed","v1.project.restarted","v1.project.status.changed","v1.project.backup.started","v1.project.branch.created","v1.project.branch.updated","v1.project.branch.removed","v1.project.secrets.leaked","v1.organization.member.invitation.created","v1.organization.member.invitation.canceled","v1.organization.member.added","v1.organization.member.removed","v1.organization.member.role.assigned","v1.organization.member.role.removed","v1.organization.member.role.updated","v1.organization.billing.plan.upgraded","v1.organization.billing.plan.downgraded","v1.organization.secrets.leaked"],"description":"Webhook event type."}},"required":["type"]}},"required":["type","attributes"]}}}}}}}},"\/v2\/projects\/{ref}\/webhooks\/deliveries\/{id}":{"get":{"operationId":"v2-projects-ref-webhooks-deliveries-id-get","parameters":[{"in":"path","name":"ref","schema":{"type":"string","minLength":20,"maxLength":20,"pattern":"^[a-z]+$","example":"abcdefghijklmnopqrst"},"required":true,"description":"Project ref"},{"in":"path","name":"id","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"required":true,"description":"Identifier of a delivery (UUID v7)."}],"tags":["Project webhooks"],"responses":{"200":{"description":"Delivery details","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"type":{"type":"string","const":"delivery","description":"Resource type."},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Identifier of a delivery (UUID v7)."},"attributes":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Identifier of a delivery (UUID v7)."},"event_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Identifier of the event, which triggered the delivery (UUID v7)."},"status":{"type":"string","enum":["pending","success","failure","skipped"],"description":"Status of the delivery attempt."},"response_code":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"HTTP status code of the response, `0` if unavailable."},"response_headers":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"},"description":"HTTP headers of the response, `{}` if unavailable."},"response_body":{"anyOf":[{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"},"description":"Parsed JSON representation of an HTTP body of the response, `{}` if unavailable."},{"type":"string","description":"String representation of an HTTP body of the response."}]},{"type":"null"}]},"error_code":{"type":["string","null"]},"error_message":{"type":["string","null"]},"attempt_timestamp":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","description":"Timestamp of the attempt."},"event":{"type":"object","properties":{"type":{"type":"string","enum":["v1.project.paused","v1.project.created","v1.project.restored","v1.project.transferred","v1.project.removed","v1.project.restarted","v1.project.status.changed","v1.project.backup.started","v1.project.branch.created","v1.project.branch.updated","v1.project.branch.removed","v1.project.secrets.leaked","v1.organization.member.invitation.created","v1.organization.member.invitation.canceled","v1.organization.member.added","v1.organization.member.removed","v1.organization.member.role.assigned","v1.organization.member.role.removed","v1.organization.member.role.updated","v1.organization.billing.plan.upgraded","v1.organization.billing.plan.downgraded","v1.organization.secrets.leaked"],"description":"Webhook event type."},"payload":{"type":"object","properties":{"organization_slug":{"type":"string","pattern":"^[\\w-]+$","description":"Organization slug","example":"tsrqponmlkjihgfedcba"},"project_ref":{"anyOf":[{"type":"string","minLength":20,"maxLength":20,"pattern":"^[a-z]+$","description":"Project ref","example":"abcdefghijklmnopqrst"},{"type":"null"}]}},"required":["organization_slug","project_ref"],"description":"Final data sent to the consumer."},"timestamp":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","description":"Timestamp of event publication."}},"required":["type","payload","timestamp"]}},"required":["id","event_id","status","response_code","response_headers","response_body","error_code","error_message","attempt_timestamp","event"]}},"required":["type","id","attributes"]}},"required":["data"]}}}},"401":{"description":"GenericUnauthorized","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"unauthorized"},"message":{"type":"string","const":"Unauthorized"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"unauthorized","message":"Unauthorized"}}}}}}},"403":{"description":"Multiple error responses","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"oneOf":[{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"forbidden"},"message":{"type":"string","const":"Forbidden"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"],"title":"PermissionDenied"},{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"webhooks_access_disabled"},"message":{"type":"string","const":"Webhooks access is disabled for this organization or project"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"],"title":"AccessDisabled"}]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"PermissionDenied":{"value":{"error":{"code":"forbidden","message":"Forbidden"}}},"AccessDisabled":{"value":{"error":{"code":"webhooks_access_disabled","message":"Webhooks access is disabled for this organization or project"}}}}}}},"404":{"description":"DeliveryNotFound","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"delivery_not_found"},"message":{"type":"string","const":"Webhook delivery not found"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"delivery_not_found","message":"Webhook delivery not found"}}}}}}},"408":{"description":"GenericRequestTimeout","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"request_timeout"},"message":{"type":"string","const":"Request timed out"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"request_timeout","message":"Request timed out"}}}}}}},"429":{"description":"GenericTooManyRequests","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"rate_limit_exceeded"},"message":{"type":"string","const":"Rate limit exceeded"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"rate_limit_exceeded","message":"Rate limit exceeded"}}}}}}},"500":{"description":"GenericInternalServerError","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"internal_server_error"},"message":{"type":"string","const":"Internal Server Error"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"internal_server_error","message":"Internal Server Error"}}}}}}}},"summary":"Get delivery","description":"Get details of a specific delivery attempt."}},"\/v2\/projects\/{ref}\/webhooks\/deliveries\/{id}\/retry":{"post":{"operationId":"v2-projects-ref-webhooks-deliveries-id-retry-post","parameters":[{"in":"path","name":"ref","schema":{"type":"string","minLength":20,"maxLength":20,"pattern":"^[a-z]+$","example":"abcdefghijklmnopqrst"},"required":true,"description":"Project ref"},{"in":"path","name":"id","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"required":true,"description":"Identifier of a delivery (UUID v7)."}],"tags":["Project webhooks"],"responses":{"201":{"description":"Delivery details","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"type":{"type":"string","const":"ingress","description":"Resource type."},"id":{"type":"string"}},"required":["type","id"]}},"required":["data"]}}}},"401":{"description":"GenericUnauthorized","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"unauthorized"},"message":{"type":"string","const":"Unauthorized"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"unauthorized","message":"Unauthorized"}}}}}}},"403":{"description":"Multiple error responses","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"oneOf":[{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"forbidden"},"message":{"type":"string","const":"Forbidden"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"],"title":"PermissionDenied"},{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"webhooks_access_disabled"},"message":{"type":"string","const":"Webhooks access is disabled for this organization or project"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"],"title":"AccessDisabled"}]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"PermissionDenied":{"value":{"error":{"code":"forbidden","message":"Forbidden"}}},"AccessDisabled":{"value":{"error":{"code":"webhooks_access_disabled","message":"Webhooks access is disabled for this organization or project"}}}}}}},"404":{"description":"DeliveryNotFound","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"delivery_not_found"},"message":{"type":"string","const":"Webhook delivery not found"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"delivery_not_found","message":"Webhook delivery not found"}}}}}}},"408":{"description":"GenericRequestTimeout","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"request_timeout"},"message":{"type":"string","const":"Request timed out"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"request_timeout","message":"Request timed out"}}}}}}},"429":{"description":"GenericTooManyRequests","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"rate_limit_exceeded"},"message":{"type":"string","const":"Rate limit exceeded"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"rate_limit_exceeded","message":"Rate limit exceeded"}}}}}}},"500":{"description":"GenericInternalServerError","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"internal_server_error"},"message":{"type":"string","const":"Internal Server Error"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"internal_server_error","message":"Internal Server Error"}}}}}}}},"summary":"Retry delivery","description":"Retry delivering the same event again.\n\nAutomatic retries are not applicable to manual retries - if the delivery fails, there won't be any automatic retries attempted.\n\nThis endpoint is heavy rate-limited to allow for 10 request within 60 seconds."}},"\/v2\/organizations\/{slug}\/webhooks\/endpoints":{"get":{"operationId":"v2-organizations-slug-webhooks-endpoints-get","parameters":[{"in":"path","name":"slug","schema":{"type":"string","pattern":"^[\\w-]+$","example":"tsrqponmlkjihgfedcba"},"required":true,"description":"Organization slug"},{"in":"query","name":"page","schema":{"type":"object","properties":{"offset":{"description":"Offset for offset-based pagination.\n\nOffset should be dividable by `page[limit]` without a reminder (`offset % limit === 0`), otherwise it will cause weird behavior when used on a frontend.","default":"0","type":"string","pattern":"^\\d+$"},"limit":{"description":"Up to how many records to return.","default":"20","type":"string","pattern":"^\\d+$"}}},"style":"deepObject"}],"tags":["Organization webhooks"],"responses":{"200":{"description":"Collection of endpoints","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","const":"endpoint","description":"Resource type."},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Identifier of an endpoint (UUID v7)."},"attributes":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Identifier of an endpoint (UUID v7)."},"url":{"type":"string","format":"uri","description":"Publicly available URL where to send the events, must use a domain and be resolvable to a non-reserved IP address.","example":"https:\/\/mydomain.com\/path\/to\/handler"},"enabled":{"type":"boolean","description":"Whether the endpoint is enabled or not - disabled endpoints won't emit any events."},"description":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"description":"Optional description for the endpoint."},"event_types":{"minItems":1,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["v1.project.paused","v1.project.created","v1.project.restored","v1.project.transferred","v1.project.removed","v1.project.restarted","v1.project.status.changed","v1.project.backup.started","v1.project.branch.created","v1.project.branch.updated","v1.project.branch.removed","v1.project.secrets.leaked","v1.organization.member.invitation.created","v1.organization.member.invitation.canceled","v1.organization.member.added","v1.organization.member.removed","v1.organization.member.role.assigned","v1.organization.member.role.removed","v1.organization.member.role.updated","v1.organization.billing.plan.upgraded","v1.organization.billing.plan.downgraded","v1.organization.secrets.leaked","*"],"description":"Webhook event type."}},"required":["type"]},"description":"List of subscribed events for which to receive the webhook event.","example":[{"type":"v1.project.paused"}]},"custom_headers":{"description":"Additional request headers to pass when performing HTTP request location defined by `url`. Both keys and values must be strings and a valid HTTP headers.","example":{"Authorization":"Bearer example_token"},"type":"object","propertyNames":{"type":"string","pattern":"^[a-zA-Z0-9-]+$"},"additionalProperties":{"type":"string"}},"created_by":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"ID of the user who created the endpoint."},"created_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","description":"Timestamp of endpoint's creation."}},"required":["id","url","enabled","description","event_types","created_by","created_at"]}},"required":["type","id","attributes"]}},"links":{"type":"object","properties":{"first":{"description":"URL path to the first page if available.","example":"\/v2\/organization\/slug\/webhooks\/endpoints?page[limit]=10&page[offset]=0","type":["string","null"]},"prev":{"description":"URL path to the previous page.","example":"\/v2\/organization\/slug\/webhooks\/endpoints?page[limit]=10&page[offset]=0","type":["string","null"]},"next":{"description":"URL path to the next page.","example":"\/v2\/organization\/slug\/webhooks\/endpoints?page[limit]=10&page[offset]=20","type":["string","null"]},"last":{"description":"URL path to the last page if available.","example":"\/v2\/organization\/slug\/webhooks\/endpoints?page[limit]=10&page[offset]=30","type":["string","null"]}},"required":["prev","next"]}},"required":["data","links"]}}}},"401":{"description":"GenericUnauthorized","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"unauthorized"},"message":{"type":"string","const":"Unauthorized"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"unauthorized","message":"Unauthorized"}}}}}}},"403":{"description":"Multiple error responses","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"oneOf":[{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"forbidden"},"message":{"type":"string","const":"Forbidden"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"],"title":"PermissionDenied"},{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"webhooks_access_disabled"},"message":{"type":"string","const":"Webhooks access is disabled for this organization or project"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"],"title":"AccessDisabled"}]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"PermissionDenied":{"value":{"error":{"code":"forbidden","message":"Forbidden"}}},"AccessDisabled":{"value":{"error":{"code":"webhooks_access_disabled","message":"Webhooks access is disabled for this organization or project"}}}}}}},"408":{"description":"GenericRequestTimeout","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"request_timeout"},"message":{"type":"string","const":"Request timed out"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"request_timeout","message":"Request timed out"}}}}}}},"429":{"description":"GenericTooManyRequests","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"rate_limit_exceeded"},"message":{"type":"string","const":"Rate limit exceeded"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"rate_limit_exceeded","message":"Rate limit exceeded"}}}}}}},"500":{"description":"GenericInternalServerError","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"internal_server_error"},"message":{"type":"string","const":"Internal Server Error"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"internal_server_error","message":"Internal Server Error"}}}}}}}},"summary":"List endpoints","description":"List all Webhook endpoints based on a project's ref or an organization's slug."},"post":{"operationId":"v2-organizations-slug-webhooks-endpoints-post","parameters":[{"in":"path","name":"slug","schema":{"type":"string","pattern":"^[\\w-]+$","example":"tsrqponmlkjihgfedcba"},"required":true,"description":"Organization slug"}],"tags":["Organization webhooks"],"responses":{"201":{"description":"Created endpoint","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"type":{"type":"string","const":"endpoint","description":"Resource type."},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Identifier of an endpoint (UUID v7)."},"attributes":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Identifier of an endpoint (UUID v7)."},"url":{"type":"string","format":"uri","description":"Publicly available URL where to send the events, must use a domain and be resolvable to a non-reserved IP address.","example":"https:\/\/mydomain.com\/path\/to\/handler"},"enabled":{"type":"boolean","description":"Whether the endpoint is enabled or not - disabled endpoints won't emit any events."},"description":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"description":"Optional description for the endpoint."},"event_types":{"minItems":1,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["v1.project.paused","v1.project.created","v1.project.restored","v1.project.transferred","v1.project.removed","v1.project.restarted","v1.project.status.changed","v1.project.backup.started","v1.project.branch.created","v1.project.branch.updated","v1.project.branch.removed","v1.project.secrets.leaked","v1.organization.member.invitation.created","v1.organization.member.invitation.canceled","v1.organization.member.added","v1.organization.member.removed","v1.organization.member.role.assigned","v1.organization.member.role.removed","v1.organization.member.role.updated","v1.organization.billing.plan.upgraded","v1.organization.billing.plan.downgraded","v1.organization.secrets.leaked","*"],"description":"Webhook event type."}},"required":["type"]},"description":"List of subscribed events for which to receive the webhook event.","example":[{"type":"v1.project.paused"}]},"custom_headers":{"description":"Additional request headers to pass when performing HTTP request location defined by `url`. Both keys and values must be strings and a valid HTTP headers.","example":{"Authorization":"Bearer example_token"},"type":"object","propertyNames":{"type":"string","pattern":"^[a-zA-Z0-9-]+$"},"additionalProperties":{"type":"string"}},"created_by":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"ID of the user who created the endpoint."},"created_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","description":"Timestamp of endpoint's creation."}},"required":["id","url","enabled","description","event_types","created_by","created_at"]}},"required":["type","id","attributes"]}},"required":["data"]}}}},"401":{"description":"GenericUnauthorized","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"unauthorized"},"message":{"type":"string","const":"Unauthorized"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"unauthorized","message":"Unauthorized"}}}}}}},"403":{"description":"Multiple error responses","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"oneOf":[{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"forbidden"},"message":{"type":"string","const":"Forbidden"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"],"title":"PermissionDenied"},{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"webhooks_access_disabled"},"message":{"type":"string","const":"Webhooks access is disabled for this organization or project"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"],"title":"AccessDisabled"}]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"PermissionDenied":{"value":{"error":{"code":"forbidden","message":"Forbidden"}}},"AccessDisabled":{"value":{"error":{"code":"webhooks_access_disabled","message":"Webhooks access is disabled for this organization or project"}}}}}}},"408":{"description":"GenericRequestTimeout","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"request_timeout"},"message":{"type":"string","const":"Request timed out"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"request_timeout","message":"Request timed out"}}}}}}},"429":{"description":"GenericTooManyRequests","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"rate_limit_exceeded"},"message":{"type":"string","const":"Rate limit exceeded"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"rate_limit_exceeded","message":"Rate limit exceeded"}}}}}}},"500":{"description":"GenericInternalServerError","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"internal_server_error"},"message":{"type":"string","const":"Internal Server Error"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"internal_server_error","message":"Internal Server Error"}}}}}}}},"summary":"Create endpoint","description":"Create new endpoint configuration to subscribe to specific webhook events.","requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"type":{"type":"string","const":"endpoint","description":"Resource type."},"attributes":{"type":"object","properties":{"url":{"type":"string","format":"uri","description":"Publicly available URL where to send the events, must use a domain and be resolvable to a non-reserved IP address.","example":"https:\/\/mydomain.com\/path\/to\/handler"},"enabled":{"default":true,"type":"boolean","description":"Whether the endpoint is enabled or not - disabled endpoints won't emit any events."},"description":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"description":"Optional description for the endpoint."},"event_types":{"minItems":1,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["v1.project.paused","v1.project.created","v1.project.restored","v1.project.transferred","v1.project.removed","v1.project.restarted","v1.project.status.changed","v1.project.backup.started","v1.project.branch.created","v1.project.branch.updated","v1.project.branch.removed","v1.project.secrets.leaked","v1.organization.member.invitation.created","v1.organization.member.invitation.canceled","v1.organization.member.added","v1.organization.member.removed","v1.organization.member.role.assigned","v1.organization.member.role.removed","v1.organization.member.role.updated","v1.organization.billing.plan.upgraded","v1.organization.billing.plan.downgraded","v1.organization.secrets.leaked","*"],"description":"Webhook event type."}},"required":["type"]},"description":"List of subscribed events for which to receive the webhook event.","example":[{"type":"v1.project.paused"}]},"custom_headers":{"description":"Additional request headers to pass when performing HTTP request location defined by `url`. Both keys and values must be strings and a valid HTTP headers.","example":{"Authorization":"Bearer example_token"},"type":"object","propertyNames":{"type":"string","pattern":"^[a-zA-Z0-9-]+$"},"additionalProperties":{"type":"string"}},"signing_secret":{"type":"string","minLength":8,"maxLength":64,"description":"Secret key to use when signing. All events will be signed according to the [Standard Webhooks](https:\/\/www.standardwebhooks.com\/) specification."}},"required":["url","event_types","signing_secret"]}},"required":["type","attributes"]}},"required":["data"]}}}}},"delete":{"operationId":"v2-organizations-slug-webhooks-endpoints-delete","parameters":[{"in":"path","name":"slug","schema":{"type":"string","pattern":"^[\\w-]+$","example":"tsrqponmlkjihgfedcba"},"required":true,"description":"Organization slug"}],"tags":["Organization webhooks"],"responses":{"200":{"description":"Deleted endpoints","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","const":"endpoint","description":"Resource type."},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Identifier of an endpoint (UUID v7)."},"attributes":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Identifier of an endpoint (UUID v7)."},"url":{"type":"string","format":"uri","description":"Publicly available URL where to send the events, must use a domain and be resolvable to a non-reserved IP address.","example":"https:\/\/mydomain.com\/path\/to\/handler"},"enabled":{"type":"boolean","description":"Whether the endpoint is enabled or not - disabled endpoints won't emit any events."},"description":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"description":"Optional description for the endpoint."},"event_types":{"minItems":1,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["v1.project.paused","v1.project.created","v1.project.restored","v1.project.transferred","v1.project.removed","v1.project.restarted","v1.project.status.changed","v1.project.backup.started","v1.project.branch.created","v1.project.branch.updated","v1.project.branch.removed","v1.project.secrets.leaked","v1.organization.member.invitation.created","v1.organization.member.invitation.canceled","v1.organization.member.added","v1.organization.member.removed","v1.organization.member.role.assigned","v1.organization.member.role.removed","v1.organization.member.role.updated","v1.organization.billing.plan.upgraded","v1.organization.billing.plan.downgraded","v1.organization.secrets.leaked","*"],"description":"Webhook event type."}},"required":["type"]},"description":"List of subscribed events for which to receive the webhook event.","example":[{"type":"v1.project.paused"}]},"custom_headers":{"description":"Additional request headers to pass when performing HTTP request location defined by `url`. Both keys and values must be strings and a valid HTTP headers.","example":{"Authorization":"Bearer example_token"},"type":"object","propertyNames":{"type":"string","pattern":"^[a-zA-Z0-9-]+$"},"additionalProperties":{"type":"string"}},"created_by":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"ID of the user who created the endpoint."},"created_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","description":"Timestamp of endpoint's creation."}},"required":["id","url","enabled","description","event_types","created_by","created_at"]}},"required":["type","id","attributes"]}}},"required":["data"]}}}},"401":{"description":"GenericUnauthorized","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"unauthorized"},"message":{"type":"string","const":"Unauthorized"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"unauthorized","message":"Unauthorized"}}}}}}},"403":{"description":"Multiple error responses","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"oneOf":[{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"forbidden"},"message":{"type":"string","const":"Forbidden"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"],"title":"PermissionDenied"},{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"webhooks_access_disabled"},"message":{"type":"string","const":"Webhooks access is disabled for this organization or project"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"],"title":"AccessDisabled"}]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"PermissionDenied":{"value":{"error":{"code":"forbidden","message":"Forbidden"}}},"AccessDisabled":{"value":{"error":{"code":"webhooks_access_disabled","message":"Webhooks access is disabled for this organization or project"}}}}}}},"408":{"description":"GenericRequestTimeout","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"request_timeout"},"message":{"type":"string","const":"Request timed out"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"request_timeout","message":"Request timed out"}}}}}}},"429":{"description":"GenericTooManyRequests","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"rate_limit_exceeded"},"message":{"type":"string","const":"Rate limit exceeded"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"rate_limit_exceeded","message":"Rate limit exceeded"}}}}}}},"500":{"description":"GenericInternalServerError","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"internal_server_error"},"message":{"type":"string","const":"Internal Server Error"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"internal_server_error","message":"Internal Server Error"}}}}}}}},"summary":"Delete all endpoints","description":"Delete all endpoints including all events and deliveries.\n\nAny in-flight webhooks will result in a no-op."}},"\/v2\/organizations\/{slug}\/webhooks\/endpoints\/{id}":{"get":{"operationId":"v2-organizations-slug-webhooks-endpoints-id-get","parameters":[{"in":"path","name":"slug","schema":{"type":"string","pattern":"^[\\w-]+$","example":"tsrqponmlkjihgfedcba"},"required":true,"description":"Organization slug"},{"in":"path","name":"id","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"required":true,"description":"Identifier of an endpoint (UUID v7)."}],"tags":["Organization webhooks"],"responses":{"200":{"description":"Endpoint details","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"type":{"type":"string","const":"endpoint","description":"Resource type."},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Identifier of an endpoint (UUID v7)."},"attributes":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Identifier of an endpoint (UUID v7)."},"url":{"type":"string","format":"uri","description":"Publicly available URL where to send the events, must use a domain and be resolvable to a non-reserved IP address.","example":"https:\/\/mydomain.com\/path\/to\/handler"},"enabled":{"type":"boolean","description":"Whether the endpoint is enabled or not - disabled endpoints won't emit any events."},"description":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"description":"Optional description for the endpoint."},"event_types":{"minItems":1,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["v1.project.paused","v1.project.created","v1.project.restored","v1.project.transferred","v1.project.removed","v1.project.restarted","v1.project.status.changed","v1.project.backup.started","v1.project.branch.created","v1.project.branch.updated","v1.project.branch.removed","v1.project.secrets.leaked","v1.organization.member.invitation.created","v1.organization.member.invitation.canceled","v1.organization.member.added","v1.organization.member.removed","v1.organization.member.role.assigned","v1.organization.member.role.removed","v1.organization.member.role.updated","v1.organization.billing.plan.upgraded","v1.organization.billing.plan.downgraded","v1.organization.secrets.leaked","*"],"description":"Webhook event type."}},"required":["type"]},"description":"List of subscribed events for which to receive the webhook event.","example":[{"type":"v1.project.paused"}]},"custom_headers":{"description":"Additional request headers to pass when performing HTTP request location defined by `url`. Both keys and values must be strings and a valid HTTP headers.","example":{"Authorization":"Bearer example_token"},"type":"object","propertyNames":{"type":"string","pattern":"^[a-zA-Z0-9-]+$"},"additionalProperties":{"type":"string"}},"created_by":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"ID of the user who created the endpoint."},"created_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","description":"Timestamp of endpoint's creation."}},"required":["id","url","enabled","description","event_types","created_by","created_at"]}},"required":["type","id","attributes"]}},"required":["data"]}}}},"401":{"description":"GenericUnauthorized","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"unauthorized"},"message":{"type":"string","const":"Unauthorized"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"unauthorized","message":"Unauthorized"}}}}}}},"403":{"description":"Multiple error responses","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"oneOf":[{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"forbidden"},"message":{"type":"string","const":"Forbidden"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"],"title":"PermissionDenied"},{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"webhooks_access_disabled"},"message":{"type":"string","const":"Webhooks access is disabled for this organization or project"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"],"title":"AccessDisabled"}]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"PermissionDenied":{"value":{"error":{"code":"forbidden","message":"Forbidden"}}},"AccessDisabled":{"value":{"error":{"code":"webhooks_access_disabled","message":"Webhooks access is disabled for this organization or project"}}}}}}},"404":{"description":"EndpointNotFound","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"endpoint_not_found"},"message":{"type":"string","const":"Webhook endpoint not found"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"endpoint_not_found","message":"Webhook endpoint not found"}}}}}}},"408":{"description":"GenericRequestTimeout","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"request_timeout"},"message":{"type":"string","const":"Request timed out"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"request_timeout","message":"Request timed out"}}}}}}},"429":{"description":"GenericTooManyRequests","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"rate_limit_exceeded"},"message":{"type":"string","const":"Rate limit exceeded"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"rate_limit_exceeded","message":"Rate limit exceeded"}}}}}}},"500":{"description":"GenericInternalServerError","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"internal_server_error"},"message":{"type":"string","const":"Internal Server Error"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"internal_server_error","message":"Internal Server Error"}}}}}}}},"summary":"Get endpoint","description":"Get details of a specific endpoint."},"patch":{"operationId":"v2-organizations-slug-webhooks-endpoints-id-patch","parameters":[{"in":"path","name":"slug","schema":{"type":"string","pattern":"^[\\w-]+$","example":"tsrqponmlkjihgfedcba"},"required":true,"description":"Organization slug"},{"in":"path","name":"id","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"required":true,"description":"Identifier of an endpoint (UUID v7)."}],"tags":["Organization webhooks"],"responses":{"200":{"description":"Updated endpoint details","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"type":{"type":"string","const":"endpoint","description":"Resource type."},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Identifier of an endpoint (UUID v7)."},"attributes":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Identifier of an endpoint (UUID v7)."},"url":{"type":"string","format":"uri","description":"Publicly available URL where to send the events, must use a domain and be resolvable to a non-reserved IP address.","example":"https:\/\/mydomain.com\/path\/to\/handler"},"enabled":{"type":"boolean","description":"Whether the endpoint is enabled or not - disabled endpoints won't emit any events."},"description":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"description":"Optional description for the endpoint."},"event_types":{"minItems":1,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["v1.project.paused","v1.project.created","v1.project.restored","v1.project.transferred","v1.project.removed","v1.project.restarted","v1.project.status.changed","v1.project.backup.started","v1.project.branch.created","v1.project.branch.updated","v1.project.branch.removed","v1.project.secrets.leaked","v1.organization.member.invitation.created","v1.organization.member.invitation.canceled","v1.organization.member.added","v1.organization.member.removed","v1.organization.member.role.assigned","v1.organization.member.role.removed","v1.organization.member.role.updated","v1.organization.billing.plan.upgraded","v1.organization.billing.plan.downgraded","v1.organization.secrets.leaked","*"],"description":"Webhook event type."}},"required":["type"]},"description":"List of subscribed events for which to receive the webhook event.","example":[{"type":"v1.project.paused"}]},"custom_headers":{"description":"Additional request headers to pass when performing HTTP request location defined by `url`. Both keys and values must be strings and a valid HTTP headers.","example":{"Authorization":"Bearer example_token"},"type":"object","propertyNames":{"type":"string","pattern":"^[a-zA-Z0-9-]+$"},"additionalProperties":{"type":"string"}},"created_by":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"ID of the user who created the endpoint."},"created_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","description":"Timestamp of endpoint's creation."}},"required":["id","url","enabled","description","event_types","created_by","created_at"]}},"required":["type","id","attributes"]}},"required":["data"]}}}},"401":{"description":"GenericUnauthorized","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"unauthorized"},"message":{"type":"string","const":"Unauthorized"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"unauthorized","message":"Unauthorized"}}}}}}},"403":{"description":"Multiple error responses","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"oneOf":[{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"forbidden"},"message":{"type":"string","const":"Forbidden"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"],"title":"PermissionDenied"},{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"webhooks_access_disabled"},"message":{"type":"string","const":"Webhooks access is disabled for this organization or project"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"],"title":"AccessDisabled"}]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"PermissionDenied":{"value":{"error":{"code":"forbidden","message":"Forbidden"}}},"AccessDisabled":{"value":{"error":{"code":"webhooks_access_disabled","message":"Webhooks access is disabled for this organization or project"}}}}}}},"404":{"description":"EndpointNotFound","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"endpoint_not_found"},"message":{"type":"string","const":"Webhook endpoint not found"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"endpoint_not_found","message":"Webhook endpoint not found"}}}}}}},"408":{"description":"GenericRequestTimeout","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"request_timeout"},"message":{"type":"string","const":"Request timed out"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"request_timeout","message":"Request timed out"}}}}}}},"429":{"description":"GenericTooManyRequests","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"rate_limit_exceeded"},"message":{"type":"string","const":"Rate limit exceeded"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"rate_limit_exceeded","message":"Rate limit exceeded"}}}}}}},"500":{"description":"GenericInternalServerError","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"internal_server_error"},"message":{"type":"string","const":"Internal Server Error"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"internal_server_error","message":"Internal Server Error"}}}}}}}},"summary":"Update endpoint","description":"Update endpoint's configuration.","requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"type":{"type":"string","const":"endpoint","description":"Resource type."},"attributes":{"type":"object","properties":{"url":{"type":"string","format":"uri","description":"Publicly available URL where to send the events, must use a domain and be resolvable to a non-reserved IP address.","example":"https:\/\/mydomain.com\/path\/to\/handler"},"enabled":{"type":"boolean","description":"Whether the endpoint is enabled or not - disabled endpoints won't emit any events."},"description":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"description":"Optional description for the endpoint."},"event_types":{"minItems":1,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["v1.project.paused","v1.project.created","v1.project.restored","v1.project.transferred","v1.project.removed","v1.project.restarted","v1.project.status.changed","v1.project.backup.started","v1.project.branch.created","v1.project.branch.updated","v1.project.branch.removed","v1.project.secrets.leaked","v1.organization.member.invitation.created","v1.organization.member.invitation.canceled","v1.organization.member.added","v1.organization.member.removed","v1.organization.member.role.assigned","v1.organization.member.role.removed","v1.organization.member.role.updated","v1.organization.billing.plan.upgraded","v1.organization.billing.plan.downgraded","v1.organization.secrets.leaked","*"],"description":"Webhook event type."}},"required":["type"]},"description":"List of subscribed events for which to receive the webhook event.","example":[{"type":"v1.project.paused"}]},"custom_headers":{"description":"Additional request headers to pass when performing HTTP request location defined by `url`. Both keys and values must be strings and a valid HTTP headers.","example":{"Authorization":"Bearer example_token"},"type":"object","propertyNames":{"type":"string","pattern":"^[a-zA-Z0-9-]+$"},"additionalProperties":{"type":"string"}},"signing_secret":{"type":"string","minLength":8,"maxLength":64,"description":"Secret key to use when signing. All events will be signed according to the [Standard Webhooks](https:\/\/www.standardwebhooks.com\/) specification."}}}},"required":["type","attributes"]}},"required":["data"]}}}}},"delete":{"operationId":"v2-organizations-slug-webhooks-endpoints-id-delete","parameters":[{"in":"path","name":"slug","schema":{"type":"string","pattern":"^[\\w-]+$","example":"tsrqponmlkjihgfedcba"},"required":true,"description":"Organization slug"},{"in":"path","name":"id","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"required":true,"description":"Identifier of an endpoint (UUID v7)."}],"tags":["Organization webhooks"],"responses":{"200":{"description":"Deleted endpoint details","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"type":{"type":"string","const":"endpoint","description":"Resource type."},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Identifier of an endpoint (UUID v7)."},"attributes":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Identifier of an endpoint (UUID v7)."},"url":{"type":"string","format":"uri","description":"Publicly available URL where to send the events, must use a domain and be resolvable to a non-reserved IP address.","example":"https:\/\/mydomain.com\/path\/to\/handler"},"enabled":{"type":"boolean","description":"Whether the endpoint is enabled or not - disabled endpoints won't emit any events."},"description":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"description":"Optional description for the endpoint."},"event_types":{"minItems":1,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["v1.project.paused","v1.project.created","v1.project.restored","v1.project.transferred","v1.project.removed","v1.project.restarted","v1.project.status.changed","v1.project.backup.started","v1.project.branch.created","v1.project.branch.updated","v1.project.branch.removed","v1.project.secrets.leaked","v1.organization.member.invitation.created","v1.organization.member.invitation.canceled","v1.organization.member.added","v1.organization.member.removed","v1.organization.member.role.assigned","v1.organization.member.role.removed","v1.organization.member.role.updated","v1.organization.billing.plan.upgraded","v1.organization.billing.plan.downgraded","v1.organization.secrets.leaked","*"],"description":"Webhook event type."}},"required":["type"]},"description":"List of subscribed events for which to receive the webhook event.","example":[{"type":"v1.project.paused"}]},"custom_headers":{"description":"Additional request headers to pass when performing HTTP request location defined by `url`. Both keys and values must be strings and a valid HTTP headers.","example":{"Authorization":"Bearer example_token"},"type":"object","propertyNames":{"type":"string","pattern":"^[a-zA-Z0-9-]+$"},"additionalProperties":{"type":"string"}},"created_by":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"ID of the user who created the endpoint."},"created_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","description":"Timestamp of endpoint's creation."}},"required":["id","url","enabled","description","event_types","created_by","created_at"]}},"required":["type","id","attributes"]}},"required":["data"]}}}},"401":{"description":"GenericUnauthorized","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"unauthorized"},"message":{"type":"string","const":"Unauthorized"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"unauthorized","message":"Unauthorized"}}}}}}},"403":{"description":"Multiple error responses","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"oneOf":[{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"forbidden"},"message":{"type":"string","const":"Forbidden"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"],"title":"PermissionDenied"},{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"webhooks_access_disabled"},"message":{"type":"string","const":"Webhooks access is disabled for this organization or project"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"],"title":"AccessDisabled"}]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"PermissionDenied":{"value":{"error":{"code":"forbidden","message":"Forbidden"}}},"AccessDisabled":{"value":{"error":{"code":"webhooks_access_disabled","message":"Webhooks access is disabled for this organization or project"}}}}}}},"404":{"description":"EndpointNotFound","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"endpoint_not_found"},"message":{"type":"string","const":"Webhook endpoint not found"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"endpoint_not_found","message":"Webhook endpoint not found"}}}}}}},"408":{"description":"GenericRequestTimeout","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"request_timeout"},"message":{"type":"string","const":"Request timed out"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"request_timeout","message":"Request timed out"}}}}}}},"429":{"description":"GenericTooManyRequests","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"rate_limit_exceeded"},"message":{"type":"string","const":"Rate limit exceeded"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"rate_limit_exceeded","message":"Rate limit exceeded"}}}}}}},"500":{"description":"GenericInternalServerError","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"internal_server_error"},"message":{"type":"string","const":"Internal Server Error"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"internal_server_error","message":"Internal Server Error"}}}}}}}},"summary":"Delete endpoint","description":"Delete the endpoint including all events and deliveries\n\nAny in-flight webhooks will result in a no-op."}},"\/v2\/organizations\/{slug}\/webhooks\/endpoints\/{id}\/deliveries":{"get":{"operationId":"v2-organizations-slug-webhooks-endpoints-id-deliveries-get","parameters":[{"in":"path","name":"slug","schema":{"type":"string","pattern":"^[\\w-]+$","example":"tsrqponmlkjihgfedcba"},"required":true,"description":"Organization slug"},{"in":"path","name":"id","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"required":true,"description":"Identifier of an endpoint (UUID v7)."},{"in":"query","name":"page","schema":{"type":"object","properties":{"before":{"description":"Cursor in cursor-based pagination to return up to `page[size]` records before (exclusive) the entry specified by this query param.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"after":{"description":"Cursor in cursor-based pagination to return up to `page[size]` records after (exclusive) the entry specified by this query param.","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"size":{"description":"Up to how many records to return.\n\nMinimum: 1. Maximum: 100.","example":"10","default":"20","type":"string","pattern":"^-?\\d+$"}}},"style":"deepObject"}],"tags":["Organization webhooks"],"responses":{"200":{"description":"List of deliveries","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","const":"delivery","description":"Resource type."},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Identifier of a delivery (UUID v7)."},"attributes":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Identifier of a delivery (UUID v7)."},"event_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Identifier of the event, which triggered the delivery (UUID v7)."},"status":{"type":"string","enum":["pending","success","failure","skipped"],"description":"Status of the delivery attempt."},"response_code":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"HTTP status code of the response, `0` if unavailable."},"response_headers":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"},"description":"HTTP headers of the response, `{}` if unavailable."},"response_body":{"anyOf":[{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"},"description":"Parsed JSON representation of an HTTP body of the response, `{}` if unavailable."},{"type":"string","description":"String representation of an HTTP body of the response."}]},{"type":"null"}]},"error_code":{"type":["string","null"]},"error_message":{"type":["string","null"]},"attempt_timestamp":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","description":"Timestamp of the attempt."},"event":{"type":"object","properties":{"type":{"type":"string","enum":["v1.project.paused","v1.project.created","v1.project.restored","v1.project.transferred","v1.project.removed","v1.project.restarted","v1.project.status.changed","v1.project.backup.started","v1.project.branch.created","v1.project.branch.updated","v1.project.branch.removed","v1.project.secrets.leaked","v1.organization.member.invitation.created","v1.organization.member.invitation.canceled","v1.organization.member.added","v1.organization.member.removed","v1.organization.member.role.assigned","v1.organization.member.role.removed","v1.organization.member.role.updated","v1.organization.billing.plan.upgraded","v1.organization.billing.plan.downgraded","v1.organization.secrets.leaked"],"description":"Webhook event type."},"payload":{"type":"object","properties":{"organization_slug":{"type":"string","pattern":"^[\\w-]+$","description":"Organization slug","example":"tsrqponmlkjihgfedcba"},"project_ref":{"anyOf":[{"type":"string","minLength":20,"maxLength":20,"pattern":"^[a-z]+$","description":"Project ref","example":"abcdefghijklmnopqrst"},{"type":"null"}]}},"required":["organization_slug","project_ref"],"description":"Final data sent to the consumer."},"timestamp":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","description":"Timestamp of event publication."}},"required":["type","payload","timestamp"]}},"required":["id","event_id","status","response_code","response_headers","response_body","error_code","error_message","attempt_timestamp","event"]}},"required":["type","id","attributes"]}},"links":{"type":"object","properties":{"first":{"description":"URL path to the first page if available.","example":"\/v2\/organizations\/slug\/webhooks\/endpoints\/{id}\/deliveries?page[size]=10","type":["string","null"]},"prev":{"description":"URL path to the previous page.","example":"\/v2\/organizations\/slug\/webhooks\/endpoints\/{id}\/deliveries?page[size]=10&page[before]=019adf7d-4513-74c5-bb9a-f1bc0f7a95d7","type":["string","null"]},"next":{"description":"URL path to the next page.","example":"\/v2\/organizations\/slug\/webhooks\/endpoints\/{id}\/deliveries?page[size]=10&page[after]=019adf7d-4513-7062-b292-78b86cc470a4","type":["string","null"]},"last":{"description":"URL path to the last page if available.","example":"\/v2\/organizations\/slug\/webhooks\/endpoints\/{id}\/deliveries?page[size]=10&page[after]=019adf7d-4513-71ba-b264-21900edb4295","type":["string","null"]}},"required":["prev","next"]}},"required":["data","links"]}}}},"401":{"description":"GenericUnauthorized","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"unauthorized"},"message":{"type":"string","const":"Unauthorized"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"unauthorized","message":"Unauthorized"}}}}}}},"403":{"description":"Multiple error responses","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"oneOf":[{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"forbidden"},"message":{"type":"string","const":"Forbidden"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"],"title":"PermissionDenied"},{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"webhooks_access_disabled"},"message":{"type":"string","const":"Webhooks access is disabled for this organization or project"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"],"title":"AccessDisabled"}]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"PermissionDenied":{"value":{"error":{"code":"forbidden","message":"Forbidden"}}},"AccessDisabled":{"value":{"error":{"code":"webhooks_access_disabled","message":"Webhooks access is disabled for this organization or project"}}}}}}},"404":{"description":"EndpointNotFound","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"endpoint_not_found"},"message":{"type":"string","const":"Webhook endpoint not found"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"endpoint_not_found","message":"Webhook endpoint not found"}}}}}}},"408":{"description":"GenericRequestTimeout","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"request_timeout"},"message":{"type":"string","const":"Request timed out"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"request_timeout","message":"Request timed out"}}}}}}},"429":{"description":"GenericTooManyRequests","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"rate_limit_exceeded"},"message":{"type":"string","const":"Rate limit exceeded"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"rate_limit_exceeded","message":"Rate limit exceeded"}}}}}}},"500":{"description":"GenericInternalServerError","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"internal_server_error"},"message":{"type":"string","const":"Internal Server Error"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"internal_server_error","message":"Internal Server Error"}}}}}}}},"summary":"List deliveries","description":"List all deliveries for a specific endpoint in descending order (newest first).\n\nDeliveries which has expired are no longer available and will not be listed."}},"\/v2\/organizations\/{slug}\/webhooks\/endpoints\/{id}\/test":{"post":{"operationId":"v2-organizations-slug-webhooks-endpoints-id-test-post","parameters":[{"in":"path","name":"slug","schema":{"type":"string","pattern":"^[\\w-]+$","example":"tsrqponmlkjihgfedcba"},"required":true,"description":"Organization slug"},{"in":"path","name":"id","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"required":true,"description":"Identifier of an endpoint (UUID v7)."}],"tags":["Organization webhooks"],"responses":{"201":{"description":"Event published","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"type":{"type":"string","const":"ingress","description":"Resource type."},"id":{"type":"string"}},"required":["type","id"]}},"required":["data"]}}}},"400":{"description":"Multiple error responses","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"oneOf":[{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"endpoint_disabled"},"message":{"type":"string","const":"Webhook endpoint is disabled"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"],"title":"EndpointTestDisabled"},{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"endpoint_event_type_not_subscribed"},"message":{"type":"string","const":"Webhook endpoint is not subscribed to this event type"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"],"title":"EndpointTestWrongEventType"}]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"EndpointTestDisabled":{"value":{"error":{"code":"endpoint_disabled","description":"Endpoint is disabled, to send test event endpoint must first be enabled.","message":"Webhook endpoint is disabled"}}},"EndpointTestWrongEventType":{"value":{"error":{"code":"endpoint_event_type_not_subscribed","description":"Only event types that the endpoint is subscribed to can be specified.","message":"Webhook endpoint is not subscribed to this event type"}}}}}}},"401":{"description":"GenericUnauthorized","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"unauthorized"},"message":{"type":"string","const":"Unauthorized"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"unauthorized","message":"Unauthorized"}}}}}}},"403":{"description":"Multiple error responses","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"oneOf":[{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"forbidden"},"message":{"type":"string","const":"Forbidden"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"],"title":"PermissionDenied"},{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"webhooks_access_disabled"},"message":{"type":"string","const":"Webhooks access is disabled for this organization or project"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"],"title":"AccessDisabled"}]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"PermissionDenied":{"value":{"error":{"code":"forbidden","message":"Forbidden"}}},"AccessDisabled":{"value":{"error":{"code":"webhooks_access_disabled","message":"Webhooks access is disabled for this organization or project"}}}}}}},"404":{"description":"EndpointNotFound","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"endpoint_not_found"},"message":{"type":"string","const":"Webhook endpoint not found"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"endpoint_not_found","message":"Webhook endpoint not found"}}}}}}},"408":{"description":"GenericRequestTimeout","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"request_timeout"},"message":{"type":"string","const":"Request timed out"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"request_timeout","message":"Request timed out"}}}}}}},"429":{"description":"GenericTooManyRequests","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"rate_limit_exceeded"},"message":{"type":"string","const":"Rate limit exceeded"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"rate_limit_exceeded","message":"Rate limit exceeded"}}}}}}},"500":{"description":"GenericInternalServerError","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"internal_server_error"},"message":{"type":"string","const":"Internal Server Error"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"internal_server_error","message":"Internal Server Error"}}}}}}}},"summary":"Send test event","description":"Ingests and schedules a test webhook event to be published out this endpoints.\n\nWhich event type to use can be specified in the request body, otherwise\nit will use any matching type the endpoint is listening for.\n\nThe event will contain `is_test: true` in it's payload.\n\nThis endpoint is heavy rate-limited to allow for 10 request within 60 seconds.","requestBody":{"required":true,"content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"type":{"type":"string","const":"event","description":"Resource type."},"attributes":{"type":"object","properties":{"type":{"type":"string","enum":["v1.project.paused","v1.project.created","v1.project.restored","v1.project.transferred","v1.project.removed","v1.project.restarted","v1.project.status.changed","v1.project.backup.started","v1.project.branch.created","v1.project.branch.updated","v1.project.branch.removed","v1.project.secrets.leaked","v1.organization.member.invitation.created","v1.organization.member.invitation.canceled","v1.organization.member.added","v1.organization.member.removed","v1.organization.member.role.assigned","v1.organization.member.role.removed","v1.organization.member.role.updated","v1.organization.billing.plan.upgraded","v1.organization.billing.plan.downgraded","v1.organization.secrets.leaked"],"description":"Webhook event type."}},"required":["type"]}},"required":["type","attributes"]}}}}}}}},"\/v2\/organizations\/{slug}\/webhooks\/deliveries\/{id}":{"get":{"operationId":"v2-organizations-slug-webhooks-deliveries-id-get","parameters":[{"in":"path","name":"slug","schema":{"type":"string","pattern":"^[\\w-]+$","example":"tsrqponmlkjihgfedcba"},"required":true,"description":"Organization slug"},{"in":"path","name":"id","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"required":true,"description":"Identifier of a delivery (UUID v7)."}],"tags":["Organization webhooks"],"responses":{"200":{"description":"Delivery details","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"type":{"type":"string","const":"delivery","description":"Resource type."},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Identifier of a delivery (UUID v7)."},"attributes":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Identifier of a delivery (UUID v7)."},"event_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Identifier of the event, which triggered the delivery (UUID v7)."},"status":{"type":"string","enum":["pending","success","failure","skipped"],"description":"Status of the delivery attempt."},"response_code":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"HTTP status code of the response, `0` if unavailable."},"response_headers":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"},"description":"HTTP headers of the response, `{}` if unavailable."},"response_body":{"anyOf":[{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"},"description":"Parsed JSON representation of an HTTP body of the response, `{}` if unavailable."},{"type":"string","description":"String representation of an HTTP body of the response."}]},{"type":"null"}]},"error_code":{"type":["string","null"]},"error_message":{"type":["string","null"]},"attempt_timestamp":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","description":"Timestamp of the attempt."},"event":{"type":"object","properties":{"type":{"type":"string","enum":["v1.project.paused","v1.project.created","v1.project.restored","v1.project.transferred","v1.project.removed","v1.project.restarted","v1.project.status.changed","v1.project.backup.started","v1.project.branch.created","v1.project.branch.updated","v1.project.branch.removed","v1.project.secrets.leaked","v1.organization.member.invitation.created","v1.organization.member.invitation.canceled","v1.organization.member.added","v1.organization.member.removed","v1.organization.member.role.assigned","v1.organization.member.role.removed","v1.organization.member.role.updated","v1.organization.billing.plan.upgraded","v1.organization.billing.plan.downgraded","v1.organization.secrets.leaked"],"description":"Webhook event type."},"payload":{"type":"object","properties":{"organization_slug":{"type":"string","pattern":"^[\\w-]+$","description":"Organization slug","example":"tsrqponmlkjihgfedcba"},"project_ref":{"anyOf":[{"type":"string","minLength":20,"maxLength":20,"pattern":"^[a-z]+$","description":"Project ref","example":"abcdefghijklmnopqrst"},{"type":"null"}]}},"required":["organization_slug","project_ref"],"description":"Final data sent to the consumer."},"timestamp":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","description":"Timestamp of event publication."}},"required":["type","payload","timestamp"]}},"required":["id","event_id","status","response_code","response_headers","response_body","error_code","error_message","attempt_timestamp","event"]}},"required":["type","id","attributes"]}},"required":["data"]}}}},"401":{"description":"GenericUnauthorized","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"unauthorized"},"message":{"type":"string","const":"Unauthorized"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"unauthorized","message":"Unauthorized"}}}}}}},"403":{"description":"Multiple error responses","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"oneOf":[{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"forbidden"},"message":{"type":"string","const":"Forbidden"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"],"title":"PermissionDenied"},{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"webhooks_access_disabled"},"message":{"type":"string","const":"Webhooks access is disabled for this organization or project"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"],"title":"AccessDisabled"}]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"PermissionDenied":{"value":{"error":{"code":"forbidden","message":"Forbidden"}}},"AccessDisabled":{"value":{"error":{"code":"webhooks_access_disabled","message":"Webhooks access is disabled for this organization or project"}}}}}}},"404":{"description":"DeliveryNotFound","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"delivery_not_found"},"message":{"type":"string","const":"Webhook delivery not found"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"delivery_not_found","message":"Webhook delivery not found"}}}}}}},"408":{"description":"GenericRequestTimeout","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"request_timeout"},"message":{"type":"string","const":"Request timed out"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"request_timeout","message":"Request timed out"}}}}}}},"429":{"description":"GenericTooManyRequests","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"rate_limit_exceeded"},"message":{"type":"string","const":"Rate limit exceeded"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"rate_limit_exceeded","message":"Rate limit exceeded"}}}}}}},"500":{"description":"GenericInternalServerError","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"internal_server_error"},"message":{"type":"string","const":"Internal Server Error"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"internal_server_error","message":"Internal Server Error"}}}}}}}},"summary":"Get delivery","description":"Get details of a specific delivery attempt."}},"\/v2\/organizations\/{slug}\/webhooks\/deliveries\/{id}\/retry":{"post":{"operationId":"v2-organizations-slug-webhooks-deliveries-id-retry-post","parameters":[{"in":"path","name":"slug","schema":{"type":"string","pattern":"^[\\w-]+$","example":"tsrqponmlkjihgfedcba"},"required":true,"description":"Organization slug"},{"in":"path","name":"id","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"required":true,"description":"Identifier of a delivery (UUID v7)."}],"tags":["Organization webhooks"],"responses":{"201":{"description":"Delivery details","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"type":{"type":"string","const":"ingress","description":"Resource type."},"id":{"type":"string"}},"required":["type","id"]}},"required":["data"]}}}},"401":{"description":"GenericUnauthorized","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"unauthorized"},"message":{"type":"string","const":"Unauthorized"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"unauthorized","message":"Unauthorized"}}}}}}},"403":{"description":"Multiple error responses","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"oneOf":[{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"forbidden"},"message":{"type":"string","const":"Forbidden"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"],"title":"PermissionDenied"},{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"webhooks_access_disabled"},"message":{"type":"string","const":"Webhooks access is disabled for this organization or project"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"],"title":"AccessDisabled"}]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"PermissionDenied":{"value":{"error":{"code":"forbidden","message":"Forbidden"}}},"AccessDisabled":{"value":{"error":{"code":"webhooks_access_disabled","message":"Webhooks access is disabled for this organization or project"}}}}}}},"404":{"description":"DeliveryNotFound","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"delivery_not_found"},"message":{"type":"string","const":"Webhook delivery not found"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"delivery_not_found","message":"Webhook delivery not found"}}}}}}},"408":{"description":"GenericRequestTimeout","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"request_timeout"},"message":{"type":"string","const":"Request timed out"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"request_timeout","message":"Request timed out"}}}}}}},"429":{"description":"GenericTooManyRequests","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"rate_limit_exceeded"},"message":{"type":"string","const":"Rate limit exceeded"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"rate_limit_exceeded","message":"Rate limit exceeded"}}}}}}},"500":{"description":"GenericInternalServerError","content":{"application\/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","const":"internal_server_error"},"message":{"type":"string","const":"Internal Server Error"},"description":{"type":"string"},"links":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"issues":{"type":"array","items":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"required":["code","message"]}},"required":["error"],"$defs":{"APIErrorObject":{"$ref":"#\/components\/schemas\/APIErrorObject"}}},"examples":{"Default example":{"value":{"error":{"code":"internal_server_error","message":"Internal Server Error"}}}}}}}},"summary":"Retry delivery","description":"Retry delivering the same event again.\n\nAutomatic retries are not applicable to manual retries - if the delivery fails, there won't be any automatic retries attempted.\n\nThis endpoint is heavy rate-limited to allow for 10 request within 60 seconds."}}},"info":{"title":"Supabase API (v2)","description":"Supabase API generated from the OpenAPI specification.<br>Visit [https:\/\/supabase.com\/docs](https:\/\/supabase.com\/docs) for a complete documentation.","version":"1.0.0","contact":{}},"tags":[],"servers":[],"components":{"securitySchemes":{"bearer":{"scheme":"bearer","bearerFormat":"JWT","type":"http"}},"schemas":{"V2WarehouseRestartResponse_Output":{"type":"object","properties":{"data":{"type":"object","properties":{"type":{"type":"string","description":"Resource type.","enum":["warehouse_replication_restart"]},"id":{"type":"string"},"attributes":{"type":"object","properties":{"pipeline_id":{"type":"string"},"action":{"type":"string","enum":["start","restart"]},"application_status":{"type":"string","description":"The runtime request was accepted. This does not establish resumed replication or completed initial copies.","enum":["accepted"]},"pipeline_status_before":{"type":"string"}},"required":["pipeline_id","action","application_status","pipeline_status_before"]}},"required":["type","id","attributes"]}},"required":["data"]},"APIErrorObject":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","enum":["bad_request","forbidden","internal_server_error","not_found","payment_required","rate_limit_exceeded","request_timeout","request_too_large","unauthorized","validation_failed","warehouse_selection_empty","warehouse_selection_conflict","warehouse_selection_changed","warehouse_lifecycle_conflict","warehouse_setup_invalid","warehouse_not_found","warehouse_metrics_unavailable","warehouse_setup_unavailable","agentic_credential_not_found","backup_unsupported","branch_admin_required","compute_build_context_too_large","compute_build_in_progress","compute_deploy_rate_limit_exceeded","compute_instance_limit_exceeded","compute_instance_not_found","compute_not_enabled","compute_request_rejected","compute_unavailable","environment_root_project_required","environment_secret_not_found","environment_variable_already_exists","environment_variable_limit_reached","environment_variable_not_found","notebook_cell_duplicate","notebook_cell_unknown","notebook_disabled","notebook_not_found","notebook_sort_invalid","organization_invitation_email_delivery_failed","organization_invitations_partially_failed","organization_inviter_email_missing","organization_role_name_invalid","organization_role_not_entitled","pagination_cursor_invalid","project_branch_resync_unsupported","project_not_found","project_privatelink_disabled","project_transfer_disabled","delivery_not_found","endpoint_disabled","endpoint_event_type_not_subscribed","endpoint_not_found","endpoint_url_unresolvable","webhooks_access_disabled"]},"message":{"type":"string"},"description":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","additionalProperties":{}},"issues":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"description":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","additionalProperties":{}}},"required":["code","message"]}}},"required":["code","message"],"ref":"APIErrorObject"},"ErrorResponseBody":{"type":"object","properties":{"error":{"$ref":"#\/components\/schemas\/APIErrorObject"}},"required":["error"]},"V2WarehouseReplicationRequest":{"type":"object","properties":{"data":{"type":"object","properties":{"type":{"type":"string","description":"Resource type.","enum":["warehouse_replication_change"]},"attributes":{"type":"object","properties":{"schema":{"type":"string","minLength":1,"description":"Literal source PostgreSQL schema. Omit table to select its current tables."},"table":{"description":"Literal source table name. Omit to select the schema.","type":"string","minLength":1}},"required":["schema"],"additionalProperties":false}},"required":["type","attributes"]}},"required":["data"]},"V2WarehouseReplicationResponse_Output":{"type":"object","properties":{"data":{"type":"object","properties":{"type":{"type":"string","description":"Resource type.","enum":["warehouse_replication_change"]},"id":{"type":"string"},"attributes":{"type":"object","properties":{"pipeline_id":{"type":"string"},"action":{"type":"string","enum":["add","remove"]},"changed":{"type":"boolean"},"application_status":{"type":"string","enum":["unchanged","restart_requested","configured"],"description":"Immediate orchestration result. Restart acceptance does not establish runtime application or copy completion."},"pipeline_status_before":{"type":"string"},"affected_tables":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","exclusiveMinimum":true,"maximum":4294967295,"minimum":0},"schema":{"type":"string","minLength":1},"name":{"type":"string","minLength":1}},"required":["id","schema","name"]}},"unchanged_tables":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","exclusiveMinimum":true,"maximum":4294967295,"minimum":0},"schema":{"type":"string","minLength":1},"name":{"type":"string","minLength":1}},"required":["id","schema","name"]}},"tables":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","exclusiveMinimum":true,"maximum":4294967295,"minimum":0},"schema":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"copy_name":{"type":"string"},"state":{"type":"string","enum":["syncing","live","error",null],"description":"Last observed table state; null when unavailable. Does not establish completion of this request.","nullable":true},"replication_state":{"type":"string","nullable":true},"lag_ms":{"type":"number","minimum":0,"nullable":true}},"required":["id","schema","name","copy_name","state","replication_state","lag_ms"]},"description":"Resulting configured selection, with best-effort replication observations."},"selected_table_count":{"type":"integer","minimum":0,"maximum":9007199254740991},"warehouse_enabled":{"type":"boolean","enum":[true]},"source_data_preserved":{"type":"boolean","enum":[true]},"warehouse_data_retained":{"type":"boolean","enum":[true]},"includes_future_tables":{"type":"boolean","enum":[false]}},"required":["pipeline_id","action","changed","application_status","pipeline_status_before","affected_tables","unchanged_tables","tables","selected_table_count","warehouse_enabled","source_data_preserved","warehouse_data_retained","includes_future_tables"]}},"required":["type","id","attributes"]}},"required":["data"]},"V2WarehouseResyncRequest":{"type":"object","properties":{"data":{"type":"object","properties":{"type":{"type":"string","description":"Resource type.","enum":["warehouse_replication_resync"]},"attributes":{"type":"object","properties":{"schema":{"type":"string","minLength":1,"description":"Literal source PostgreSQL schema of the table."},"table":{"type":"string","minLength":1,"description":"Literal name of the single source table to reset and recopy."}},"required":["schema","table"],"additionalProperties":false}},"required":["type","attributes"]}},"required":["data"]},"V2WarehouseResyncResponse_Output":{"type":"object","properties":{"data":{"type":"object","properties":{"type":{"type":"string","description":"Resource type.","enum":["warehouse_replication_resync"]},"id":{"type":"string"},"attributes":{"type":"object","properties":{"pipeline_id":{"type":"string","minLength":1,"description":"Pipeline ID","example":"03dg2o5teb2eucxr9ggh3uie6"},"tables":{"type":"array","items":{"type":"object","properties":{"table_id":{"type":"integer","minimum":0,"maximum":4294967295,"description":"Table id (Postgres OID)","example":16408},"new_state":{"oneOf":[{"type":"object","properties":{"name":{"type":"string","enum":["queued"]}},"required":["name"]},{"type":"object","properties":{"name":{"type":"string","enum":["copying_table"]}},"required":["name"]},{"type":"object","properties":{"name":{"type":"string","enum":["copied_table"]}},"required":["name"]},{"type":"object","properties":{"name":{"type":"string","enum":["following_wal"]}},"required":["name"]},{"type":"object","properties":{"name":{"type":"string","enum":["error"]},"reason":{"type":"string"},"solution":{"type":"string","nullable":true},"retry_policy":{"oneOf":[{"type":"object","properties":{"policy":{"type":"string","enum":["no_retry"]}},"required":["policy"]},{"type":"object","properties":{"policy":{"type":"string","enum":["manual_retry"]}},"required":["policy"]},{"type":"object","properties":{"policy":{"type":"string","enum":["timed_retry"]},"next_retry":{"type":"string","description":"Next retry time (RFC 3339 timestamp)","example":"2025-01-02T03:04:05Z"}},"required":["policy","next_retry"]}]}},"required":["name","reason","retry_policy"]}],"description":"Table replication state"}},"required":["table_id","new_state"]},"description":"Rolled back tables"},"source_table":{"type":"object","properties":{"id":{"type":"integer","exclusiveMinimum":true,"maximum":4294967295,"minimum":0},"schema":{"type":"string","minLength":1},"name":{"type":"string","minLength":1}},"required":["id","schema","name"]},"source_data_preserved":{"type":"boolean","enum":[true]},"application_status":{"type":"string","description":"ETL reset replication state. Destination rebuild and recopy may still be pending.","enum":["reset"]}},"required":["pipeline_id","tables","source_table","source_data_preserved","application_status"]}},"required":["type","id","attributes"]}},"required":["data"]},"V2WarehouseCapacityResponse_Output":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","description":"Resource type.","enum":["warehouse_metric"]},"id":{"type":"string","enum":["query_in_flight","worker_admission_limit","worker_admission_active","worker_admission_pending","worker_admission_occupied","admission_rejection_rate","assignment_wait_mean","assignment_wait_p95","activation_rate","activation_duration_mean","activation_duration_p95"]},"attributes":{"type":"object","properties":{"project_ref":{"type":"string"},"definition":{"type":"string"},"effective":{"type":"object","properties":{"start":{"type":"number"},"end":{"type":"number"},"step":{"type":"number"},"rate_window_seconds":{"type":"number"}},"required":["start","end","step","rate_window_seconds"]},"scrape_interval_seconds":{"type":"number"},"availability":{"type":"string","enum":["ok","partial","stale","no_data","insufficient_data","not_provisioned","disabled","unavailable"]},"last_sample_at":{"description":"Latest scraped sample timestamp in Unix seconds; not the query evaluation timestamp or proof of a successful recent health observation.","type":"number","nullable":true},"series":{"type":"array","items":{"type":"object","properties":{"labels":{"type":"object","additionalProperties":{"type":"string"}},"points":{"type":"array","items":{"type":"object","properties":{"timestamp":{"type":"number"},"value":{"type":"number","nullable":true}},"required":["timestamp","value"]}},"coverage":{"type":"object","properties":{"returned_points":{"type":"number"},"expected_points":{"type":"number"}},"required":["returned_points","expected_points"],"description":"Grid point coverage, not proof that every worker was scraped."}},"required":["labels","points","coverage"]}},"metric":{"type":"string","enum":["query_in_flight","worker_admission_limit","worker_admission_active","worker_admission_pending","worker_admission_occupied","admission_rejection_rate","assignment_wait_mean","assignment_wait_p95","activation_rate","activation_duration_mean","activation_duration_p95"]},"unit":{"type":"string","enum":["queries","grants","per_second","seconds"]},"aggregation":{"type":"string","enum":["sum","occupied","rate","mean","p95"]},"requested":{"type":"object","properties":{"metric":{"type":"string","enum":["query_in_flight","worker_admission_limit","worker_admission_active","worker_admission_pending","worker_admission_occupied","admission_rejection_rate","assignment_wait_mean","assignment_wait_p95","activation_rate","activation_duration_mean","activation_duration_p95"]},"start":{"type":"number"},"end":{"type":"number"},"step":{"type":"number"}},"required":["metric","start","end"]}},"required":["project_ref","definition","effective","scrape_interval_seconds","availability","last_sample_at","series","metric","unit","aggregation","requested"]}},"required":["type","id","attributes"]}}},"required":["data"]},"V2WarehouseIngestionStatsResponse_Output":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","description":"Resource type.","enum":["warehouse_metric"]},"id":{"type":"string","enum":["ingestion_events_received_rate","ingestion_events_processed_rate","ingestion_bytes_received_rate","ingestion_bytes_processed_rate","replication_wal_lag_bytes","replication_receive_wal_lag_bytes"]},"attributes":{"type":"object","properties":{"project_ref":{"type":"string"},"definition":{"type":"string"},"effective":{"type":"object","properties":{"start":{"type":"number"},"end":{"type":"number"},"step":{"type":"number"},"rate_window_seconds":{"type":"number"}},"required":["start","end","step","rate_window_seconds"]},"scrape_interval_seconds":{"type":"number"},"availability":{"type":"string","enum":["ok","partial","stale","no_data","insufficient_data","not_provisioned","disabled","unavailable"]},"last_sample_at":{"description":"Latest scraped sample timestamp in Unix seconds; not the query evaluation timestamp or proof of a successful recent health observation.","type":"number","nullable":true},"series":{"type":"array","items":{"type":"object","properties":{"labels":{"type":"object","additionalProperties":{"type":"string"}},"points":{"type":"array","items":{"type":"object","properties":{"timestamp":{"type":"number"},"value":{"type":"number","nullable":true}},"required":["timestamp","value"]}},"coverage":{"type":"object","properties":{"returned_points":{"type":"number"},"expected_points":{"type":"number"}},"required":["returned_points","expected_points"],"description":"Grid point coverage, not proof that every worker was scraped."}},"required":["labels","points","coverage"]}},"metric":{"type":"string","enum":["ingestion_events_received_rate","ingestion_events_processed_rate","ingestion_bytes_received_rate","ingestion_bytes_processed_rate","replication_wal_lag_bytes","replication_receive_wal_lag_bytes"]},"unit":{"type":"string","enum":["per_second","bytes_per_second","bytes"]},"aggregation":{"type":"string","enum":["rate","max"]},"requested":{"type":"object","properties":{"metric":{"type":"string","enum":["ingestion_events_received_rate","ingestion_events_processed_rate","ingestion_bytes_received_rate","ingestion_bytes_processed_rate","replication_wal_lag_bytes","replication_receive_wal_lag_bytes"]},"start":{"type":"number"},"end":{"type":"number"},"step":{"type":"number"}},"required":["metric","start","end"]}},"required":["project_ref","definition","effective","scrape_interval_seconds","availability","last_sample_at","series","metric","unit","aggregation","requested"]}},"required":["type","id","attributes"]}}},"required":["data"]},"V2WarehouseStorageStatsResponse_Output":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","description":"Resource type.","enum":["warehouse_metric"]},"id":{"type":"string","enum":["maintenance_request_rate","maintenance_pause_active","maintenance_pause_duration_mean","maintenance_run_rate","maintenance_results_available","maintenance_merge_adjacent_files_created_rate","maintenance_rewrite_data_files_created_rate","maintenance_expired_snapshots_rate","maintenance_cleaned_up_files_rate","inline_flush_rows_rate","inline_flush_rows_mean","inline_flush_duration_mean","table_active_data_files_mean","table_active_data_bytes_mean","table_active_data_file_avg_size_bytes_mean","table_small_file_ratio_mean","table_active_delete_files_mean","table_active_delete_bytes_mean","table_deleted_row_ratio_mean","table_inlined_data_bytes","catalog_active_data_files","catalog_snapshots","catalog_oldest_snapshot_age","catalog_deletion_backlog_files","catalog_deletion_backlog_bytes","catalog_oldest_deletion_age"]},"attributes":{"type":"object","properties":{"project_ref":{"type":"string"},"definition":{"type":"string"},"effective":{"type":"object","properties":{"start":{"type":"number"},"end":{"type":"number"},"step":{"type":"number"},"rate_window_seconds":{"type":"number"}},"required":["start","end","step","rate_window_seconds"]},"scrape_interval_seconds":{"type":"number"},"availability":{"type":"string","enum":["ok","partial","stale","no_data","insufficient_data","not_provisioned","disabled","unavailable"]},"last_sample_at":{"description":"Latest scraped sample timestamp in Unix seconds; not the query evaluation timestamp or proof of a successful recent health observation.","type":"number","nullable":true},"series":{"type":"array","items":{"type":"object","properties":{"labels":{"type":"object","additionalProperties":{"type":"string"}},"points":{"type":"array","items":{"type":"object","properties":{"timestamp":{"type":"number"},"value":{"type":"number","nullable":true}},"required":["timestamp","value"]}},"coverage":{"type":"object","properties":{"returned_points":{"type":"number"},"expected_points":{"type":"number"}},"required":["returned_points","expected_points"],"description":"Grid point coverage, not proof that every worker was scraped."}},"required":["labels","points","coverage"]}},"metric":{"type":"string","enum":["maintenance_request_rate","maintenance_pause_active","maintenance_pause_duration_mean","maintenance_run_rate","maintenance_results_available","maintenance_merge_adjacent_files_created_rate","maintenance_rewrite_data_files_created_rate","maintenance_expired_snapshots_rate","maintenance_cleaned_up_files_rate","inline_flush_rows_rate","inline_flush_rows_mean","inline_flush_duration_mean","table_active_data_files_mean","table_active_data_bytes_mean","table_active_data_file_avg_size_bytes_mean","table_small_file_ratio_mean","table_active_delete_files_mean","table_active_delete_bytes_mean","table_deleted_row_ratio_mean","table_inlined_data_bytes","catalog_active_data_files","catalog_snapshots","catalog_oldest_snapshot_age","catalog_deletion_backlog_files","catalog_deletion_backlog_bytes","catalog_oldest_deletion_age"]},"unit":{"type":"string","enum":["per_second","boolean","seconds","rows","files","bytes","ratio","snapshots"]},"aggregation":{"type":"string","enum":["rate","max","mean"]},"requested":{"type":"object","properties":{"metric":{"type":"string","enum":["maintenance_request_rate","maintenance_pause_active","maintenance_pause_duration_mean","maintenance_run_rate","maintenance_results_available","maintenance_merge_adjacent_files_created_rate","maintenance_rewrite_data_files_created_rate","maintenance_expired_snapshots_rate","maintenance_cleaned_up_files_rate","inline_flush_rows_rate","inline_flush_rows_mean","inline_flush_duration_mean","table_active_data_files_mean","table_active_data_bytes_mean","table_active_data_file_avg_size_bytes_mean","table_small_file_ratio_mean","table_active_delete_files_mean","table_active_delete_bytes_mean","table_deleted_row_ratio_mean","table_inlined_data_bytes","catalog_active_data_files","catalog_snapshots","catalog_oldest_snapshot_age","catalog_deletion_backlog_files","catalog_deletion_backlog_bytes","catalog_oldest_deletion_age"]},"start":{"type":"number"},"end":{"type":"number"},"step":{"type":"number"}},"required":["metric","start","end"]},"observation_freshness":{"description":"Present for sampled ETL health: successful source-observation freshness is unknown. last_sample_at reports scrape receipt only, not a successful catalog or table sample.","type":"string","enum":["unknown"]}},"required":["project_ref","definition","effective","scrape_interval_seconds","availability","last_sample_at","series","metric","unit","aggregation","requested"]}},"required":["type","id","attributes"]}}},"required":["data"]},"V2WarehouseQueryStatsResponse_Output":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","description":"Resource type.","enum":["warehouse_metric"]},"id":{"type":"string","enum":["query_rate","query_error_rate","query_timeout_rate","query_canceled_rate","query_duration_mean","query_duration_p50","query_duration_p95","query_duration_p99","duckdb_duration_mean","rpc_rate","rpc_duration_mean","rpc_duration_p95"]},"attributes":{"type":"object","properties":{"project_ref":{"type":"string"},"definition":{"type":"string"},"effective":{"type":"object","properties":{"start":{"type":"number"},"end":{"type":"number"},"step":{"type":"number"},"rate_window_seconds":{"type":"number"}},"required":["start","end","step","rate_window_seconds"]},"scrape_interval_seconds":{"type":"number"},"availability":{"type":"string","enum":["ok","partial","stale","no_data","insufficient_data","not_provisioned","disabled","unavailable"]},"last_sample_at":{"description":"Latest scraped sample timestamp in Unix seconds; not the query evaluation timestamp or proof of a successful recent health observation.","type":"number","nullable":true},"series":{"type":"array","items":{"type":"object","properties":{"labels":{"type":"object","additionalProperties":{"type":"string"}},"points":{"type":"array","items":{"type":"object","properties":{"timestamp":{"type":"number"},"value":{"type":"number","nullable":true}},"required":["timestamp","value"]}},"coverage":{"type":"object","properties":{"returned_points":{"type":"number"},"expected_points":{"type":"number"}},"required":["returned_points","expected_points"],"description":"Grid point coverage, not proof that every worker was scraped."}},"required":["labels","points","coverage"]}},"metric":{"type":"string","enum":["query_rate","query_error_rate","query_timeout_rate","query_canceled_rate","query_duration_mean","query_duration_p50","query_duration_p95","query_duration_p99","duckdb_duration_mean","rpc_rate","rpc_duration_mean","rpc_duration_p95"]},"unit":{"type":"string","enum":["per_second","seconds"]},"aggregation":{"type":"string","enum":["rate","mean","p50","p95","p99"]},"requested":{"type":"object","properties":{"metric":{"type":"string","enum":["query_rate","query_error_rate","query_timeout_rate","query_canceled_rate","query_duration_mean","query_duration_p50","query_duration_p95","query_duration_p99","duckdb_duration_mean","rpc_rate","rpc_duration_mean","rpc_duration_p95"]},"start":{"type":"number"},"end":{"type":"number"},"step":{"type":"number"}},"required":["metric","start","end"]}},"required":["project_ref","definition","effective","scrape_interval_seconds","availability","last_sample_at","series","metric","unit","aggregation","requested"]}},"required":["type","id","attributes"]}}},"required":["data"]},"V2WarehouseTeardownResponse_Output":{"type":"object","properties":{"data":{"type":"object","properties":{"type":{"type":"string","description":"Resource type.","enum":["warehouse_teardown"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"attributes":{"type":"object","properties":{"lifecycle_status":{"type":"string","enum":["disabling","disabled","deletion_failed"]},"delete_data":{"type":"boolean","description":"Whether this cleanup permanently deletes managed Warehouse data. Source Postgres tables are preserved in both modes."},"updated_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"cleanup_error":{"description":"Last cleanup failure, or null when none was recorded. Failed cleanup can leave partially removed resources; retry disable with the same data policy.","type":"string","nullable":true}},"required":["lifecycle_status","delete_data","updated_at","cleanup_error"]}},"required":["type","id","attributes"]}},"required":["data"]},"V2WarehouseEnableRequest":{"type":"object","properties":{"data":{"type":"object","properties":{"type":{"type":"string","description":"Resource type.","enum":["warehouse_setup"]},"attributes":{"type":"object","properties":{"warehouse_region":{"description":"Optional Warehouse compute region, independent of the source and catalog regions. Defaults to the existing assignment, or ap-southeast-1 in staging and eu-west-1 in production for a new assignment. DNS routing requires a registered cluster in that environment. Unsupported regions and changes to an existing assignment are rejected. Ignored when targets is empty.","example":"ap-southeast-1","type":"string","minLength":1},"destination_project_ref":{"description":"Supabase project to use for both the DuckLake PostgreSQL catalog and Supabase Storage. Defaults to this project on first setup and to the configured destination on later requests. The destination must be active and healthy, and another project requires SQL and Storage admin write permissions. An existing destination cannot be changed through setup. Ignored when targets is empty.","example":"zyxwvutsrqponmlkjihg","type":"string","minLength":20,"maxLength":20,"pattern":"^[a-z]+$"},"install_fdw":{"description":"Whether to configure and install the Warehouse FDW in the project database. Defaults to false. Ignored when targets is empty.","example":false,"type":"boolean"},"schema":{"type":"string","minLength":1,"description":"Source PostgreSQL schema. Without tables, selects its currently eligible tables only.","example":"public"},"tables":{"description":"Table names in schema. Omit to select the currently eligible tables in that schema.","x-ignore-array-items-must-be-objects":true,"minItems":1,"type":"array","items":{"type":"string","minLength":1}}},"required":["schema"],"additionalProperties":false}},"required":["type","attributes"]}},"required":["data"]},"V2WarehouseEnableAcceptedResponse_Output":{"type":"object","properties":{"data":{"type":"object","properties":{"type":{"type":"string","description":"Resource type.","enum":["warehouse_setup"]},"id":{"type":"string"},"attributes":{"type":"object","properties":{"tables":{"type":"array","items":{"type":"object","properties":{"schema":{"type":"string","minLength":1,"description":"Postgres schema name","example":"public"},"name":{"type":"string","minLength":1,"description":"Postgres table name","example":"orders"},"state":{"type":"string","enum":["syncing","live","error"],"description":"Warehouse copy sync state derived from replication status","example":"live"},"lag_ms":{"description":"Replication lag in milliseconds, when available","example":12000,"type":"integer","minimum":0,"maximum":9007199254740991},"last_synced_at":{"description":"Last sync timestamp, when available","example":"2026-06-23T17:48:00Z","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"copy_name":{"type":"string","description":"DuckLake table path with individually quoted identifiers, including the configured project namespace when present","example":"\"abcjuqabhgwjjutfvtpa\".\"public\".\"orders\""},"warehouse_size_bytes":{"description":"Warehouse table size in bytes, when available","example":197912092672,"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["schema","name","state","copy_name"]},"description":"Tables with Warehouse copies"},"pipeline_id":{"type":"string","minLength":1,"description":"Warehouse replication pipeline ID, or null when Warehouse disable has been requested","example":"03dg2o5teb2eucxr9ggh3uie6","nullable":true},"accepted":{"type":"boolean","enum":[true]},"selected_tables":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","exclusiveMinimum":true,"maximum":4294967295,"minimum":0},"schema":{"type":"string","minLength":1},"name":{"type":"string","minLength":1}},"required":["id","schema","name"]}},"selection_id":{"type":"string","pattern":"^[a-f0-9]{64}$","description":"Identity of the accepted selection. Pass to the current setup read to reject a changed selection while waiting."}},"required":["tables","pipeline_id","accepted","selected_tables","selection_id"]}},"required":["type","id","attributes"]}},"required":["data"]},"V2WarehouseSetupRequest":{"type":"object","properties":{"data":{"type":"object","properties":{"type":{"type":"string","description":"Resource type.","enum":["warehouse_setup"]},"attributes":{"type":"object","properties":{"warehouse_region":{"description":"Optional Warehouse compute region, independent of the source and catalog regions. Defaults to the existing assignment, or ap-southeast-1 in staging and eu-west-1 in production for a new assignment. DNS routing requires a registered cluster in that environment. Unsupported regions and changes to an existing assignment are rejected. Ignored when targets is empty.","example":"ap-southeast-1","type":"string","minLength":1},"destination_project_ref":{"description":"Supabase project to use for both the DuckLake PostgreSQL catalog and Supabase Storage. Defaults to this project on first setup and to the configured destination on later requests. The destination must be active and healthy, and another project requires SQL and Storage admin write permissions. An existing destination cannot be changed through setup. Ignored when targets is empty.","example":"zyxwvutsrqponmlkjihg","type":"string","minLength":20,"maxLength":20,"pattern":"^[a-z]+$"},"targets":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["schema"]},"schema":{"type":"string","minLength":1,"description":"Postgres schema whose currently eligible tables should be copied","example":"public"}},"required":["type","schema"]},{"type":"object","properties":{"type":{"type":"string","enum":["table"]},"schema":{"type":"string","minLength":1,"description":"Postgres schema name","example":"public"},"name":{"type":"string","minLength":1,"description":"Postgres table name","example":"orders"}},"required":["type","schema","name"]}]},"description":"Complete selection of schemas and individual tables to copy, replacing the previous selection. Schema targets expand to the eligible tables present when the request is processed. An empty array asynchronously disables Warehouse while retaining its data. Prefer DELETE to disable Warehouse; poll setup-status for completion."},"install_fdw":{"description":"Whether to configure and install the Warehouse FDW in the project database. Defaults to false. Ignored when targets is empty.","example":false,"type":"boolean"}},"required":["targets"],"additionalProperties":false}},"required":["type","attributes"]}},"required":["data"]},"V2WarehouseSetupAcceptedResponse_Output":{"type":"object","properties":{"data":{"type":"object","properties":{"type":{"type":"string","description":"Resource type.","enum":["warehouse_setup"]},"id":{"type":"string"},"attributes":{"type":"object","properties":{"tables":{"type":"array","items":{"type":"object","properties":{"schema":{"type":"string","minLength":1,"description":"Postgres schema name","example":"public"},"name":{"type":"string","minLength":1,"description":"Postgres table name","example":"orders"},"state":{"type":"string","enum":["syncing","live","error"],"description":"Warehouse copy sync state derived from replication status","example":"live"},"lag_ms":{"description":"Replication lag in milliseconds, when available","example":12000,"type":"integer","minimum":0,"maximum":9007199254740991},"last_synced_at":{"description":"Last sync timestamp, when available","example":"2026-06-23T17:48:00Z","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"copy_name":{"type":"string","description":"DuckLake table path with individually quoted identifiers, including the configured project namespace when present","example":"\"abcjuqabhgwjjutfvtpa\".\"public\".\"orders\""},"warehouse_size_bytes":{"description":"Warehouse table size in bytes, when available","example":197912092672,"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["schema","name","state","copy_name"]},"description":"Tables with Warehouse copies"},"pipeline_id":{"type":"string","minLength":1,"description":"Warehouse replication pipeline ID, or null when Warehouse disable has been requested","example":"03dg2o5teb2eucxr9ggh3uie6","nullable":true},"accepted":{"type":"boolean","enum":[true]},"selected_tables":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","exclusiveMinimum":true,"maximum":4294967295,"minimum":0},"schema":{"type":"string","minLength":1},"name":{"type":"string","minLength":1}},"required":["id","schema","name"]}}},"required":["tables","pipeline_id","accepted","selected_tables"]}},"required":["type","id","attributes"]}},"required":["data"]},"V2WarehouseSetupStatusResponse_Output":{"type":"object","properties":{"data":{"type":"object","properties":{"type":{"type":"string","description":"Resource type.","enum":["warehouse_setup"]},"id":{"type":"string"},"attributes":{"type":"object","properties":{"dns":{"description":"Warehouse DNS delivery status. Ready means the DNS API accepted the route; client DNS caches may still be updating.","type":"object","properties":{"hostname":{"type":"string"},"region":{"type":"string"},"status":{"type":"string","enum":["pending","ready","error","removed"]}},"required":["hostname","region","status"]},"delete_data":{"description":"Whether the current disable request deletes DuckLake data.","type":"boolean"},"error":{"description":"Warehouse cleanup failure, when present.","type":"string"},"setup_status":{"type":"string","enum":["not_started","setting_up","copying","complete","error","disabling","disabled","deletion_failed"],"description":"Overall Warehouse lifecycle status, using persisted state during teardown and replication state during setup","example":"copying"},"pipeline_id":{"description":"Warehouse replication pipeline ID when it exists","example":"03dg2o5teb2eucxr9ggh3uie6","type":"string","minLength":1},"steps":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","enum":["warehouse_pipeline","warehouse_copy","warehouse_fdw"],"description":"Observable Warehouse setup phase","example":"warehouse_copy"},"status":{"type":"string","enum":["waiting","running","completed","skipped","error"],"description":"Derived Warehouse setup step status","example":"running"},"message":{"description":"Best-effort progress or error message derived from Warehouse state","example":"Pending initial copy: public.orders:copying_table","type":"string"}},"required":["name","status"]},"description":"Warehouse setup phases in execution order"},"tables":{"type":"array","items":{"type":"object","properties":{"schema":{"type":"string","minLength":1,"description":"Postgres schema name","example":"public"},"name":{"type":"string","minLength":1,"description":"Postgres table name","example":"orders"},"state":{"type":"string","enum":["syncing","live","error"],"description":"Warehouse copy sync state derived from replication status","example":"live"},"lag_ms":{"description":"Replication lag in milliseconds, when available","example":12000,"type":"integer","minimum":0,"maximum":9007199254740991},"last_synced_at":{"description":"Last sync timestamp, when available","example":"2026-06-23T17:48:00Z","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"copy_name":{"type":"string","description":"DuckLake table path with individually quoted identifiers, including the configured project namespace when present","example":"\"abcjuqabhgwjjutfvtpa\".\"public\".\"orders\""},"warehouse_size_bytes":{"description":"Warehouse table size in bytes, when available","example":197912092672,"type":"integer","minimum":0,"maximum":9007199254740991},"id":{"type":"integer","exclusiveMinimum":true,"maximum":4294967295,"minimum":0},"replication_state":{"type":"string","nullable":true}},"required":["schema","name","state","copy_name","id","replication_state"]}},"fdw_status":{"type":"object","properties":{"extension_available":{"type":"boolean","description":"Whether fdw_warehouse is available to install on the project database instance","example":true},"extension_installed":{"type":"boolean","description":"Whether the fdw_warehouse extension exists in the project database","example":true},"wrapper_installed":{"type":"boolean","description":"Whether the Warehouse foreign data wrapper exists in the project database","example":true},"server_configured":{"type":"boolean","description":"Whether the Warehouse foreign server exists in the project database","example":true},"schema_created":{"type":"boolean","description":"Whether the local Warehouse schema exists in the project database","example":true},"foreign_schema_imported":{"type":"boolean","description":"Whether the Warehouse foreign schema import has exposed the Warehouse snapshots table","example":true}},"required":["extension_available","extension_installed","wrapper_installed","server_configured","schema_created","foreign_schema_imported"],"description":"Project database FDW setup markers; null during or after teardown, when setup inspection is inapplicable.","nullable":true},"status":{"type":"string","enum":["running","succeeded","failed"],"description":"Current enablement readiness. Success requires initial copy, a running pipeline and ready routing; this is not a historical operation result or a query connectivity check."},"status_error":{"description":"Reason current enablement readiness failed. Separate from Studio setup or cleanup errors.","type":"string"},"replication_state":{"type":"string"}},"required":["setup_status","steps","tables","fdw_status","status","replication_state"]}},"required":["type","id","attributes"]}},"required":["data"]},"V2WarehouseContextResponse_Output":{"type":"object","properties":{"data":{"type":"object","properties":{"type":{"type":"string","description":"Resource type.","enum":["warehouse_context"]},"id":{"type":"string","minLength":20,"maxLength":20,"pattern":"^[a-z]+$","description":"Project ref","example":"abcdefghijklmnopqrst"},"attributes":{"type":"object","properties":{"project_ref":{"type":"string","minLength":20,"maxLength":20,"pattern":"^[a-z]+$","description":"Project ref","example":"abcdefghijklmnopqrst"},"observed_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"enabled":{"description":"Whether Warehouse is enabled, independently of selected table count. Null means provisioning could not be determined.","type":"boolean","nullable":true},"configured_readiness":{"type":"string","enum":["ready","not_ready","unavailable"],"description":"Readiness inferred from configuration and replication observations; no query is executed."},"query_connectivity":{"type":"string","enum":["not_checked"]},"status":{"type":"string","enum":["not_provisioned","disabled","disabling","starting","ready","stopped","stopping","degraded","unavailable"],"description":"Warehouse setup and replication status. Ready means the Warehouse connection is configured and tables are replicating ongoing changes. It does not guarantee that a query will succeed."},"lifecycle":{"type":"object","properties":{"status":{"type":"string","enum":["disabling","disabled","deletion_failed"]},"updated_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"delete_data":{"type":"boolean"}},"required":["status","updated_at","delete_data"],"nullable":true},"compute":{"type":"object","properties":{"status":{"type":"string","enum":["available","unavailable","not_provisioned"]},"region":{"type":"string","nullable":true},"routing_status":{"type":"string","enum":["pending","ready","error","removed",null],"nullable":true},"observed_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","description":"Time the API retrieved this information. This timestamp does not indicate when data was measured or last synchronized.","nullable":true},"unavailable_reason":{"type":"string","enum":["assignment_unavailable","observation_unavailable","identity_mismatch","cleanup_in_progress","cleanup_failed",null],"nullable":true}},"required":["status","region","routing_status","observed_at","unavailable_reason"],"description":"Configured Warehouse compute and region, which may differ from the source database region. Live availability and capacity are not reported."},"pipeline":{"type":"object","properties":{"id":{"type":"string","minLength":1},"diagnostic":{"type":"object","properties":{"code":{"type":"string","enum":["out_of_memory","process_exited","crash_loop","image_unavailable","configuration_error","startup_failed","runtime_failed"]},"message":{"type":"string"}},"required":["code","message"],"description":"Safe classification of the current runtime failure. Includes static customer guidance, without exit codes, provider messages or worker logs; does not establish its underlying cause. Unrecognized or malformed diagnostics are returned as `null`.","nullable":true},"status":{"type":"string","enum":["stopped","starting","started","stopping","unknown","failed","unavailable"]},"observed_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","description":"Time the API retrieved this information. This timestamp does not indicate when data was measured or last synchronized.","nullable":true},"unavailable_reason":{"type":"string","enum":["assignment_unavailable","observation_unavailable","identity_mismatch","cleanup_in_progress","cleanup_failed",null],"nullable":true}},"required":["id","diagnostic","status","observed_at","unavailable_reason"],"nullable":true},"replication":{"type":"object","properties":{"status":{"type":"string","enum":["available","unavailable","not_provisioned","not_started","stopped"]},"observed_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","description":"Time the API retrieved this information. This timestamp does not indicate when data was measured or last synchronized.","nullable":true},"apply_lag":{"type":"object","properties":{"active":{"type":"boolean"},"wal_status":{"type":"string","enum":["reserved","extended","unreserved","lost","unknown",null],"nullable":true},"write_lag_ms":{"type":"number","minimum":0,"nullable":true},"flush_lag_ms":{"type":"number","minimum":0,"nullable":true},"flush_lag_bytes":{"type":"integer","minimum":0,"maximum":9007199254740991,"nullable":true},"feedback_age_ms":{"type":"number","minimum":0,"nullable":true}},"required":["active","wal_status","write_lag_ms","flush_lag_ms","flush_lag_bytes","feedback_age_ms"],"description":"Slot health can remain visible during runtime recovery. Lag measurements and feedback age are unavailable unless the pipeline is started.","nullable":true},"unavailable_reason":{"type":"string","enum":["assignment_unavailable","observation_unavailable","identity_mismatch","cleanup_in_progress","cleanup_failed",null],"nullable":true}},"required":["status","observed_at","apply_lag","unavailable_reason"]},"tables":{"type":"object","properties":{"status":{"type":"string","enum":["available","unavailable","not_provisioned"]},"observed_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","description":"Time the API retrieved this information. This timestamp does not indicate when data was measured or last synchronized.","nullable":true},"unavailable_reason":{"type":"string","enum":["assignment_unavailable","observation_unavailable","identity_mismatch","cleanup_in_progress","cleanup_failed",null],"nullable":true},"progress":{"type":"object","properties":{"observation":{"type":"string","enum":["current","last_known","unavailable"]},"selected":{"type":"integer","minimum":0,"maximum":9007199254740991},"queued":{"type":"integer","minimum":0,"maximum":9007199254740991},"copying_table":{"type":"integer","minimum":0,"maximum":9007199254740991},"copied_table":{"type":"integer","minimum":0,"maximum":9007199254740991},"following_wal":{"type":"integer","minimum":0,"maximum":9007199254740991},"error":{"type":"integer","minimum":0,"maximum":9007199254740991},"unknown":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["observation","selected","queued","copying_table","copied_table","following_wal","error","unknown"],"description":"Observed states of the selected tables, not completion or percentage of a specific mutation. Last-known states may predate a restart or resync. Null when the selection is unavailable.","nullable":true},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","exclusiveMinimum":true,"maximum":9007199254740991,"minimum":0},"schema":{"type":"string"},"name":{"type":"string"},"replication_state":{"type":"string","enum":["queued","copying_table","copied_table","following_wal","error",null],"nullable":true},"state_observation":{"type":"string","enum":["current","last_known","unavailable"]},"error":{"type":"object","properties":{"reason":{"type":"string"},"solution":{"type":"string","nullable":true},"retry_policy":{"oneOf":[{"type":"object","properties":{"policy":{"type":"string","enum":["no_retry"]}},"required":["policy"]},{"type":"object","properties":{"policy":{"type":"string","enum":["manual_retry"]}},"required":["policy"]},{"type":"object","properties":{"policy":{"type":"string","enum":["timed_retry"]},"next_retry":{"type":"string"}},"required":["policy","next_retry"]}]}},"required":["reason","solution","retry_policy"],"nullable":true},"sync_lag":{"type":"object","properties":{"active":{"type":"boolean"},"wal_status":{"type":"string","enum":["reserved","extended","unreserved","lost","unknown",null],"nullable":true},"write_lag_ms":{"type":"number","minimum":0,"nullable":true},"flush_lag_ms":{"type":"number","minimum":0,"nullable":true},"flush_lag_bytes":{"type":"integer","minimum":0,"maximum":9007199254740991,"nullable":true},"feedback_age_ms":{"type":"number","minimum":0,"nullable":true}},"required":["active","wal_status","write_lag_ms","flush_lag_ms","flush_lag_bytes","feedback_age_ms"],"description":"Postgres replication feedback. Null means Postgres reported no value; lag times also become null shortly after a caught-up slot sees no new WAL, while flush_lag_bytes, the WAL not yet confirmed flushed, reads 0. Feedback age measures time since the last response and does not establish how current query results are.","nullable":true}},"required":["id","schema","name","replication_state","state_observation","error","sync_lag"]}}},"required":["status","observed_at","unavailable_reason","progress","items"]},"capabilities":{"type":"object","properties":{"context":{"type":"boolean"},"workload_metrics":{"type":"boolean","description":"Query statistics and capacity inspection are supported by the Management API. Metric availability is reported separately."},"query_explain":{"type":"boolean","description":"Whether the Management API supports a query-explain operation. SQL EXPLAIN through the Warehouse connection is independent of this flag."},"table_layout_read":{"type":"boolean"},"table_layout_update":{"type":"boolean"},"replication_add":{"type":"boolean"},"replication_remove":{"type":"boolean"},"table_resync":{"type":"boolean"},"replication_restart":{"type":"boolean"}},"required":["context","workload_metrics","query_explain","table_layout_read","table_layout_update","replication_add","replication_remove","table_resync","replication_restart"],"description":"Complete operations supported by this API, not caller authorization. Each operation still requires its feature, entitlement and project permission checks."}},"required":["project_ref","observed_at","enabled","configured_readiness","query_connectivity","status","lifecycle","compute","pipeline","replication","tables","capabilities"]}},"required":["type","id","attributes"]}},"required":["data"]},"V2WarehouseConnectionResponse_Output":{"type":"object","properties":{"data":{"type":"object","properties":{"type":{"type":"string","description":"Resource type.","enum":["warehouse_connection"]},"id":{"type":"string","minLength":20,"maxLength":20,"pattern":"^[a-z]+$","description":"Project ref","example":"abcdefghijklmnopqrst"},"attributes":{"type":"object","properties":{"project_ref":{"type":"string","minLength":20,"maxLength":20,"pattern":"^[a-z]+$","description":"Project ref","example":"abcdefghijklmnopqrst"},"observed_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","description":"Time the API retrieved this information. This timestamp does not indicate when connectivity was last verified."},"status":{"type":"string","enum":["available","pending","not_configured","disabling","disabled","unavailable"],"description":"Configured availability of the Warehouse endpoint, derived from routing and lifecycle state. It is not a connectivity probe: a ready route does not prove a query will succeed."},"unavailable_reason":{"type":"string","enum":["assignment_unavailable","routing_failed","observation_unavailable","cleanup_failed",null],"description":"Why the endpoint is unavailable. Null unless status is unavailable.","nullable":true},"protocol":{"type":"string","enum":["arrow_flight_sql"]},"endpoint":{"description":"Arrow Flight SQL URI, grpc+tls:\/\/<host>:443. Null unless status is available or pending.","type":"string","nullable":true},"host":{"description":"Public hostname of the Flight SQL endpoint. Null unless status is available or pending.","type":"string","nullable":true},"port":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Public TLS port of the Flight SQL endpoint. Null unless status is available or pending.","nullable":true},"tls_required":{"type":"boolean","enum":[true]},"region":{"description":"Assigned Warehouse compute region, which may differ from the source database region. Null when the project has no project-specific route.","type":"string","nullable":true},"routing_status":{"type":"string","enum":["pending","ready","error","removed",null],"description":"DNS delivery status of the project route. Null when the project uses the shared legacy route.","nullable":true},"authentication":{"type":"object","properties":{"method":{"type":"string","enum":["database_username_password"]},"credential_source":{"type":"string","enum":["source_project_database"]},"default_username":{"type":"string","enum":["postgres"]},"password_guidance":{"type":"string"},"required_membership":{"type":"string","enum":["supabase_warehouse_reader"]},"membership_guidance":{"type":"string"}},"required":["method","credential_source","default_username","password_guidance","required_membership","membership_guidance"],"description":"How to authenticate. No credentials are returned; the password is never exposed by this API."},"access_mode":{"type":"string","enum":["read_only"]},"query_connectivity":{"type":"string","enum":["not_checked"]}},"required":["project_ref","observed_at","status","unavailable_reason","protocol","endpoint","host","port","tls_required","region","routing_status","authentication","access_mode","query_connectivity"]}},"required":["type","id","attributes"]}},"required":["data"]},"V2WarehouseTablesResponse_Output":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","description":"Resource type.","enum":["warehouse_table"]},"id":{"type":"string","maxLength":10,"pattern":"^[1-9]\\d*$","description":"Source PostgreSQL table OID, as returned by the Warehouse tables list.","example":"16385"},"attributes":{"type":"object","properties":{"schema":{"type":"string","description":"Source PostgreSQL schema of the table."},"name":{"type":"string","description":"Source PostgreSQL table name."},"warehouse_name":{"type":"string","description":"Quoted, fully qualified name of the replicated table in the Warehouse."},"status":{"type":"string","enum":["syncing","live","error","stopped","unknown"],"description":"Replication status. error means the table failed to replicate; stopped means the pipeline is stopped, stopping or failed, so the table receives no changes; live means the table follows changes; syncing means it is queued, copying or catching up; unknown means the pipeline status or the table state was not observed, for example before replication starts."},"replication_state":{"type":"string","enum":["queued","copying_table","copied_table","following_wal","error",null],"description":"Last replication state the pipeline recorded for the table, also while the pipeline is stopped. Null when none was observed.","nullable":true},"observed_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","description":"Time the API retrieved the replication state of the table. It does not indicate when data was last synchronized.","nullable":true},"replication_feedback":{"type":"object","properties":{"active":{"type":"boolean"},"wal_status":{"type":"string","enum":["reserved","extended","unreserved","lost","unknown",null],"nullable":true},"write_lag_ms":{"type":"number","minimum":0,"nullable":true},"flush_lag_ms":{"type":"number","minimum":0,"nullable":true},"flush_lag_bytes":{"type":"integer","minimum":0,"maximum":9007199254740991,"nullable":true},"feedback_age_ms":{"type":"number","minimum":0,"nullable":true},"source":{"type":"string","enum":["table_sync","pipeline_apply"],"description":"Replication slot that reported the feedback: the table's own sync slot until it follows changes, or the pipeline apply slot once it does."}},"required":["active","wal_status","write_lag_ms","flush_lag_ms","flush_lag_bytes","feedback_age_ms","source"],"description":"Postgres feedback from the replication slot named in source. Null when no feedback is available, including while the pipeline is stopped. Feedback age measures time since the slot last responded and does not establish how current query results are.","nullable":true},"lag_ms":{"type":"number","minimum":0,"description":"Flush lag in milliseconds that Postgres reports for the slot in replication_feedback. Null when there is no feedback or Postgres reports no recent measurement, which includes a caught-up slot without new WAL; replication_feedback.flush_lag_bytes reads 0 in that case.","nullable":true}},"required":["schema","name","warehouse_name","status","replication_state","observed_at","replication_feedback","lag_ms"]}},"required":["type","id","attributes"]}}},"required":["data"]},"V2WarehouseTableResponse_Output":{"type":"object","properties":{"data":{"type":"object","properties":{"type":{"type":"string","description":"Resource type.","enum":["warehouse_table"]},"id":{"type":"string","maxLength":10,"pattern":"^[1-9]\\d*$","description":"Source PostgreSQL table OID, as returned by the Warehouse tables list.","example":"16385"},"attributes":{"type":"object","properties":{"schema":{"type":"string","description":"Source PostgreSQL schema of the table."},"name":{"type":"string","description":"Source PostgreSQL table name."},"warehouse_name":{"type":"string","description":"Quoted, fully qualified name of the replicated table in the Warehouse."},"status":{"type":"string","enum":["syncing","live","error","stopped","unknown"],"description":"Replication status. error means the table failed to replicate; stopped means the pipeline is stopped, stopping or failed, so the table receives no changes; live means the table follows changes; syncing means it is queued, copying or catching up; unknown means the pipeline status or the table state was not observed, for example before replication starts."},"replication_state":{"type":"string","enum":["queued","copying_table","copied_table","following_wal","error",null],"description":"Last replication state the pipeline recorded for the table, also while the pipeline is stopped. Null when none was observed.","nullable":true},"observed_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","description":"Time the API retrieved the replication state of the table. It does not indicate when data was last synchronized.","nullable":true},"replication_feedback":{"type":"object","properties":{"active":{"type":"boolean"},"wal_status":{"type":"string","enum":["reserved","extended","unreserved","lost","unknown",null],"nullable":true},"write_lag_ms":{"type":"number","minimum":0,"nullable":true},"flush_lag_ms":{"type":"number","minimum":0,"nullable":true},"flush_lag_bytes":{"type":"integer","minimum":0,"maximum":9007199254740991,"nullable":true},"feedback_age_ms":{"type":"number","minimum":0,"nullable":true},"source":{"type":"string","enum":["table_sync","pipeline_apply"],"description":"Replication slot that reported the feedback: the table's own sync slot until it follows changes, or the pipeline apply slot once it does."}},"required":["active","wal_status","write_lag_ms","flush_lag_ms","flush_lag_bytes","feedback_age_ms","source"],"description":"Postgres feedback from the replication slot named in source. Null when no feedback is available, including while the pipeline is stopped. Feedback age measures time since the slot last responded and does not establish how current query results are.","nullable":true},"lag_ms":{"type":"number","minimum":0,"description":"Flush lag in milliseconds that Postgres reports for the slot in replication_feedback. Null when there is no feedback or Postgres reports no recent measurement, which includes a caught-up slot without new WAL; replication_feedback.flush_lag_bytes reads 0 in that case.","nullable":true}},"required":["schema","name","warehouse_name","status","replication_state","observed_at","replication_feedback","lag_ms"]}},"required":["type","id","attributes"]}},"required":["data"]},"V2WarehouseTableLayoutResponse_Output":{"type":"object","properties":{"data":{"type":"object","properties":{"type":{"type":"string","description":"Resource type.","enum":["warehouse_table_layout"]},"id":{"type":"string","maxLength":10,"pattern":"^[1-9]\\d*$","description":"Source PostgreSQL table OID, as returned by the Warehouse tables list.","example":"16385"},"attributes":{"type":"object","properties":{"pipeline_id":{"type":"string","description":"Warehouse replication pipeline identity."},"schema":{"type":"string","description":"Source PostgreSQL schema of the table."},"name":{"type":"string","description":"Source PostgreSQL table name."},"application_status":{"type":"string","description":"Backend orchestration state. Runtime acceptance does not establish that the desired layout has been observed in the catalog."},"reset_table":{"type":"boolean","description":"Whether this update reset source replication state. False for unchanged layouts and reads; reads do not retain reset history. True does not establish completion of recopy."},"desired":{"type":"object","properties":{"sort_by":{"anyOf":[{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["none"]}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","enum":["primary_key"]}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","enum":["columns"]},"columns":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"Source column name."},"direction":{"type":"string","enum":["asc","desc"]},"nulls":{"type":"string","enum":["first","last",null],"description":"Null placement. Null uses DuckLake's default placement.","nullable":true}},"required":["name","direction","nulls"]}}},"required":["kind","columns"]}]},{"type":"object","nullable":true,"enum":[null]}],"description":"Configured sort order. none explicitly clears sorting, primary_key sorts by the source primary-key columns in key order, and columns lists them. Null leaves sorting unmanaged."},"partition_by":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string","description":"Source column name."},"transform":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["identity"]}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","enum":["year"]}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","enum":["month"]}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","enum":["day"]}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","enum":["hour"]}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","enum":["bucket"]},"count":{"type":"integer","exclusiveMinimum":true,"maximum":2147483647,"description":"Number of hash buckets.","minimum":0}},"required":["kind","count"]}]}},"required":["column","transform"]},"description":"Configured partition keys in order. An empty list explicitly clears partitioning; null leaves it unmanaged.","nullable":true}},"required":["sort_by","partition_by"],"description":"Saved layout rules. The replicator applies them on start and hourly, so they can differ from the observed layout."},"observation_status":{"type":"string","enum":["observed","table_missing","unavailable","not_requested"],"description":"observed when the DuckLake catalog was read, table_missing when the catalog has no table for it yet, unavailable when the catalog could not be read, and not_requested when an update returned without reading the catalog."},"observed":{"type":"object","properties":{"sort_by":{"type":"array","items":{"type":"object","properties":{"expression":{"type":"string"},"direction":{"type":"string"},"nulls":{"type":"string"}},"required":["expression","direction","nulls"]},"description":"Active sort expressions in key order, as the catalog reports them."},"partition_by":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string"},"transform":{"type":"string"}},"required":["column","transform"]},"description":"Active partition keys in key order, with transforms as the catalog reports them, for example bucket(16)."},"observed_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","description":"Time the catalog metadata was read."}},"required":["sort_by","partition_by","observed_at"],"description":"Layout recorded in the DuckLake catalog, null unless observation_status is observed. Catalog metadata governs files written after it changes and does not establish that existing files are sorted or partitioned.","nullable":true}},"required":["pipeline_id","schema","name","application_status","reset_table","desired","observation_status","observed"]}},"required":["type","id","attributes"]}},"required":["data"]},"V2WarehouseTableLayoutUpdateRequest":{"type":"object","properties":{"data":{"type":"object","properties":{"type":{"type":"string","description":"Resource type.","enum":["warehouse_table_layout"]},"attributes":{"anyOf":[{"type":"object","properties":{"reset_table":{"description":"Defaults to false, preserving historical files and replication progress. When the layout changes, true resets the table and copies it again. This requires initial sync to be enabled. Reads are disrupted during the copy. An unchanged layout never resets the table.","type":"boolean"},"sort_by":{"description":"Omit to preserve the saved sorting. Null makes sorting unmanaged. The none selector explicitly clears sorting. Otherwise, supply the complete sort selector. Example: `{\"kind\":\"columns\",\"columns\":[{\"name\":\"tenant_id\",\"direction\":\"asc\"},{\"name\":\"event_at\",\"direction\":\"desc\",\"nulls\":\"last\"}]}`. Sort by the primary key with `{\"kind\":\"primary_key\"}` or clear sorting with `{\"kind\":\"none\"}`.","anyOf":[{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["none"]}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["primary_key"]}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["columns"]},"columns":{"minItems":1,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"description":"Source column name."},"direction":{"type":"string","enum":["asc","desc"]},"nulls":{"type":"string","enum":["first","last",null],"description":"Null placement. Null uses DuckLake's default placement.","nullable":true}},"required":["name","direction"],"additionalProperties":false}}},"required":["kind","columns"],"additionalProperties":false}]},{"type":"object","nullable":true,"enum":[null]}]},"partition_by":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string","minLength":1,"description":"Source column name."},"transform":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["identity"]}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["year"]}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["month"]}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["day"]}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["hour"]}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["bucket"]},"count":{"type":"integer","exclusiveMinimum":true,"maximum":2147483647,"description":"Number of hash buckets.","minimum":0}},"required":["kind","count"],"additionalProperties":false}]}},"required":["column","transform"],"additionalProperties":false},"description":"Omit to preserve the saved partitioning. Null makes partitioning unmanaged. An empty list explicitly clears partitioning. Otherwise, supply all ordered partition keys. Day example: `[{\"column\":\"event_at\",\"transform\":{\"kind\":\"day\"}}]`. Bucket example: `[{\"column\":\"tenant_id\",\"transform\":{\"kind\":\"bucket\",\"count\":8}}]`. Use `[]` to clear or `null` to stop managing partitioning.","nullable":true}},"required":["sort_by"],"additionalProperties":false},{"type":"object","properties":{"reset_table":{"description":"Defaults to false, preserving historical files and replication progress. When the layout changes, true resets the table and copies it again. This requires initial sync to be enabled. Reads are disrupted during the copy. An unchanged layout never resets the table.","type":"boolean"},"sort_by":{"description":"Omit to preserve the saved sorting. Null makes sorting unmanaged. The none selector explicitly clears sorting. Otherwise, supply the complete sort selector. Example: `{\"kind\":\"columns\",\"columns\":[{\"name\":\"tenant_id\",\"direction\":\"asc\"},{\"name\":\"event_at\",\"direction\":\"desc\",\"nulls\":\"last\"}]}`. Sort by the primary key with `{\"kind\":\"primary_key\"}` or clear sorting with `{\"kind\":\"none\"}`.","anyOf":[{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["none"]}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["primary_key"]}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["columns"]},"columns":{"minItems":1,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"description":"Source column name."},"direction":{"type":"string","enum":["asc","desc"]},"nulls":{"type":"string","enum":["first","last",null],"description":"Null placement. Null uses DuckLake's default placement.","nullable":true}},"required":["name","direction"],"additionalProperties":false}}},"required":["kind","columns"],"additionalProperties":false}]},{"type":"object","nullable":true,"enum":[null]}]},"partition_by":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string","minLength":1,"description":"Source column name."},"transform":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["identity"]}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["year"]}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["month"]}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["day"]}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["hour"]}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","enum":["bucket"]},"count":{"type":"integer","exclusiveMinimum":true,"maximum":2147483647,"description":"Number of hash buckets.","minimum":0}},"required":["kind","count"],"additionalProperties":false}]}},"required":["column","transform"],"additionalProperties":false},"description":"Omit to preserve the saved partitioning. Null makes partitioning unmanaged. An empty list explicitly clears partitioning. Otherwise, supply all ordered partition keys. Day example: `[{\"column\":\"event_at\",\"transform\":{\"kind\":\"day\"}}]`. Bucket example: `[{\"column\":\"tenant_id\",\"transform\":{\"kind\":\"bucket\",\"count\":8}}]`. Use `[]` to clear or `null` to stop managing partitioning.","nullable":true}},"required":["partition_by"],"additionalProperties":false}]}},"required":["type","attributes"]}},"required":["data"]},"ListLogDrainsResponse_Output":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","description":"Resource type.","enum":["log_drain"]},"id":{"type":"string"},"attributes":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"config":{"anyOf":[{"type":"object","properties":{"url":{"type":"string"},"http":{"type":"string","enum":["http1","http2"]},"gzip":{"type":"boolean"},"headers":{"type":"object","additionalProperties":{"type":"string"}}},"title":"webhook"},{"type":"object","properties":{"api_key":{"type":"string"},"region":{"type":"string"}},"title":"datadog"},{"type":"object","properties":{"url":{"type":"string"},"username":{"type":"string","nullable":true},"password":{"type":"string","nullable":true},"headers":{"type":"object","additionalProperties":{"type":"string"}}},"title":"loki"},{"type":"object","properties":{"dsn":{"type":"string"}},"title":"sentry"},{"type":"object","properties":{"domain":{"type":"string"},"api_token":{"type":"string"},"dataset_name":{"type":"string"}},"title":"axiom"},{"type":"object","properties":{"host":{"type":"string"},"port":{"type":"integer","minimum":0,"maximum":65535},"tls":{"default":false,"type":"boolean"},"structured_data":{"type":"string"},"cipher_key":{"type":"string"},"ca_cert":{"type":"string"},"client_cert":{"type":"string"},"client_key":{"type":"string"}},"title":"syslog"},{"type":"object","properties":{"s3_bucket":{"type":"string"},"storage_region":{"type":"string"},"access_key_id":{"type":"string"},"secret_access_key":{"type":"string"},"batch_timeout":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"title":"s3"},{"type":"object","properties":{"region":{"type":"string"},"username":{"type":"string"},"password":{"type":"string"}},"title":"last9"},{"type":"object","properties":{"endpoint":{"type":"string"},"protocol":{"default":"http\/protobuf","type":"string"},"gzip":{"default":true,"type":"boolean"},"headers":{"default":{},"type":"object","additionalProperties":{"type":"string"}}},"title":"otlp"}]},"backend_type":{"type":"string","enum":["postgres","bigquery","clickhouse","webhook","datadog","loki","sentry","s3","axiom","last9","otlp","syslog"]}},"required":["name","config","backend_type"]}},"required":["type","id","attributes"]}}},"required":["data"]},"CreateLogDrainRequestOpenApi":{"type":"object","properties":{"data":{"type":"object","properties":{"type":{"type":"string","description":"Resource type.","enum":["log_drain"]},"attributes":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"config":{"anyOf":[{"type":"object","properties":{"url":{"type":"string"},"http":{"type":"string","enum":["http1","http2"]},"gzip":{"type":"boolean"},"headers":{"type":"object","additionalProperties":{"type":"string"}}},"additionalProperties":false,"title":"webhook"},{"type":"object","properties":{"api_key":{"type":"string"},"region":{"type":"string"}},"additionalProperties":false,"title":"datadog"},{"type":"object","properties":{"url":{"type":"string"},"username":{"type":"string","nullable":true},"password":{"type":"string","nullable":true},"headers":{"type":"object","additionalProperties":{"type":"string"}}},"additionalProperties":false,"title":"loki"},{"type":"object","properties":{"dsn":{"type":"string"}},"additionalProperties":false,"title":"sentry"},{"type":"object","properties":{"domain":{"type":"string"},"api_token":{"type":"string"},"dataset_name":{"type":"string"}},"additionalProperties":false,"title":"axiom"},{"type":"object","properties":{"host":{"type":"string"},"port":{"type":"integer","minimum":0,"maximum":65535},"tls":{"default":false,"type":"boolean"},"structured_data":{"type":"string"},"cipher_key":{"type":"string"},"ca_cert":{"type":"string"},"client_cert":{"type":"string"},"client_key":{"type":"string"}},"additionalProperties":false,"title":"syslog"},{"type":"object","properties":{"s3_bucket":{"type":"string"},"storage_region":{"type":"string"},"access_key_id":{"type":"string"},"secret_access_key":{"type":"string"},"batch_timeout":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"additionalProperties":false,"title":"s3"},{"type":"object","properties":{"region":{"type":"string"},"username":{"type":"string"},"password":{"type":"string"}},"additionalProperties":false,"title":"last9"},{"type":"object","properties":{"endpoint":{"type":"string"},"protocol":{"default":"http\/protobuf","type":"string"},"gzip":{"default":true,"type":"boolean"},"headers":{"default":{},"type":"object","additionalProperties":{"type":"string"}}},"additionalProperties":false,"title":"otlp"}]},"backend_type":{"type":"string","enum":["postgres","bigquery","clickhouse","webhook","datadog","loki","sentry","s3","axiom","last9","otlp","syslog"]}},"required":["name","config","backend_type"],"additionalProperties":{}}},"required":["type","attributes"]}},"required":["data"]},"LogDrainResponse_Output":{"type":"object","properties":{"data":{"type":"object","properties":{"type":{"type":"string","description":"Resource type.","enum":["log_drain"]},"id":{"type":"string"},"attributes":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"config":{"anyOf":[{"type":"object","properties":{"url":{"type":"string"},"http":{"type":"string","enum":["http1","http2"]},"gzip":{"type":"boolean"},"headers":{"type":"object","additionalProperties":{"type":"string"}}},"title":"webhook"},{"type":"object","properties":{"api_key":{"type":"string"},"region":{"type":"string"}},"title":"datadog"},{"type":"object","properties":{"url":{"type":"string"},"username":{"type":"string","nullable":true},"password":{"type":"string","nullable":true},"headers":{"type":"object","additionalProperties":{"type":"string"}}},"title":"loki"},{"type":"object","properties":{"dsn":{"type":"string"}},"title":"sentry"},{"type":"object","properties":{"domain":{"type":"string"},"api_token":{"type":"string"},"dataset_name":{"type":"string"}},"title":"axiom"},{"type":"object","properties":{"host":{"type":"string"},"port":{"type":"integer","minimum":0,"maximum":65535},"tls":{"default":false,"type":"boolean"},"structured_data":{"type":"string"},"cipher_key":{"type":"string"},"ca_cert":{"type":"string"},"client_cert":{"type":"string"},"client_key":{"type":"string"}},"title":"syslog"},{"type":"object","properties":{"s3_bucket":{"type":"string"},"storage_region":{"type":"string"},"access_key_id":{"type":"string"},"secret_access_key":{"type":"string"},"batch_timeout":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"title":"s3"},{"type":"object","properties":{"region":{"type":"string"},"username":{"type":"string"},"password":{"type":"string"}},"title":"last9"},{"type":"object","properties":{"endpoint":{"type":"string"},"protocol":{"default":"http\/protobuf","type":"string"},"gzip":{"default":true,"type":"boolean"},"headers":{"default":{},"type":"object","additionalProperties":{"type":"string"}}},"title":"otlp"}]},"backend_type":{"type":"string","enum":["postgres","bigquery","clickhouse","webhook","datadog","loki","sentry","s3","axiom","last9","otlp","syslog"]}},"required":["name","config","backend_type"]}},"required":["type","id","attributes"]}},"required":["data"]},"UpdateLogDrainRequestOpenApi":{"type":"object","properties":{"data":{"type":"object","properties":{"type":{"type":"string","description":"Resource type.","enum":["log_drain"]},"attributes":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"config":{"anyOf":[{"type":"object","properties":{"url":{"type":"string"},"http":{"type":"string","enum":["http1","http2"]},"gzip":{"type":"boolean"},"headers":{"type":"object","additionalProperties":{"type":"string"}}},"additionalProperties":false,"title":"webhook"},{"type":"object","properties":{"api_key":{"type":"string"},"region":{"type":"string"}},"additionalProperties":false,"title":"datadog"},{"type":"object","properties":{"url":{"type":"string"},"username":{"type":"string","nullable":true},"password":{"type":"string","nullable":true},"headers":{"type":"object","additionalProperties":{"type":"string"}}},"additionalProperties":false,"title":"loki"},{"type":"object","properties":{"dsn":{"type":"string"}},"additionalProperties":false,"title":"sentry"},{"type":"object","properties":{"domain":{"type":"string"},"api_token":{"type":"string"},"dataset_name":{"type":"string"}},"additionalProperties":false,"title":"axiom"},{"type":"object","properties":{"host":{"type":"string"},"port":{"type":"integer","minimum":0,"maximum":65535},"tls":{"default":false,"type":"boolean"},"structured_data":{"type":"string"},"cipher_key":{"type":"string"},"ca_cert":{"type":"string"},"client_cert":{"type":"string"},"client_key":{"type":"string"}},"additionalProperties":false,"title":"syslog"},{"type":"object","properties":{"s3_bucket":{"type":"string"},"storage_region":{"type":"string"},"access_key_id":{"type":"string"},"secret_access_key":{"type":"string"},"batch_timeout":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"additionalProperties":false,"title":"s3"},{"type":"object","properties":{"region":{"type":"string"},"username":{"type":"string"},"password":{"type":"string"}},"additionalProperties":false,"title":"last9"},{"type":"object","properties":{"endpoint":{"type":"string"},"protocol":{"default":"http\/protobuf","type":"string"},"gzip":{"default":true,"type":"boolean"},"headers":{"default":{},"type":"object","additionalProperties":{"type":"string"}}},"additionalProperties":false,"title":"otlp"}]},"backend_type":{"type":"string","enum":["postgres","bigquery","clickhouse","webhook","datadog","loki","sentry","s3","axiom","last9","otlp","syslog"]}},"required":["backend_type"],"additionalProperties":{}}},"required":["type","attributes"]}},"required":["data"]},"V2RunProjectAdvisorsBody":{"type":"object","properties":{"data":{"type":"object","properties":{"type":{"type":"string","description":"Resource type.","enum":["project_advisors"]},"attributes":{"type":"object","properties":{"lints":{"minItems":1,"maxItems":15,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","enum":["unindexed_foreign_keys","auth_users_exposed","auth_rls_initplan","no_primary_key","unused_index","multiple_permissive_policies","policy_exists_rls_disabled","rls_enabled_no_policy","duplicate_index","security_definer_view","function_search_path_mutable","rls_disabled_in_public","extension_in_public","rls_references_user_metadata","materialized_view_in_api","foreign_table_in_api","unsupported_reg_types","auth_otp_long_expiry","auth_otp_short_length","ssl_not_enforced","log_connections_not_enabled","network_restrictions_not_set","password_requirements_min_length","pitr_not_enabled","auth_leaked_password_protection","auth_insufficient_mfa_options","auth_password_policy_missing","leaked_service_key","no_backup_admin","vulnerable_postgres_version","db_not_reachable","db_connection_failing","db_connection_limit_reached","instance_telemetry_lost","instance_db_down","instance_alert_firing","log_data_api_error_rate_high","log_auth_error_rate_high","log_storage_error_rate_high","log_edge_function_error_rate_high","realtime_authorization_timeouts","realtime_postgres_changes_spike","realtime_concurrent_users_near_limit"]}},"required":["name"],"additionalProperties":false}}},"required":["lints"],"additionalProperties":false}},"required":["type","attributes"],"additionalProperties":{}}},"required":["data"]},"V2ProjectAdvisorsResponse_Output":{"type":"object","properties":{"data":{"type":"object","properties":{"type":{"type":"string","description":"Resource type.","enum":["project_advisors"]},"attributes":{"type":"object","properties":{"lints":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","enum":["unindexed_foreign_keys","auth_users_exposed","auth_rls_initplan","no_primary_key","unused_index","multiple_permissive_policies","policy_exists_rls_disabled","rls_enabled_no_policy","duplicate_index","security_definer_view","function_search_path_mutable","rls_disabled_in_public","extension_in_public","rls_references_user_metadata","materialized_view_in_api","foreign_table_in_api","unsupported_reg_types","auth_otp_long_expiry","auth_otp_short_length","ssl_not_enforced","log_connections_not_enabled","network_restrictions_not_set","password_requirements_min_length","pitr_not_enabled","auth_leaked_password_protection","auth_insufficient_mfa_options","auth_password_policy_missing","leaked_service_key","no_backup_admin","vulnerable_postgres_version","db_not_reachable","db_connection_failing","db_connection_limit_reached","instance_telemetry_lost","instance_db_down","instance_alert_firing","log_data_api_error_rate_high","log_auth_error_rate_high","log_storage_error_rate_high","log_edge_function_error_rate_high","realtime_authorization_timeouts","realtime_postgres_changes_spike","realtime_concurrent_users_near_limit","project_not_active","advisor_check_unavailable"]},"title":{"type":"string"},"level":{"type":"string","enum":["ERROR","WARN","INFO"]},"facing":{"type":"string","enum":["EXTERNAL"]},"categories":{"type":"array","items":{"type":"string","enum":["PERFORMANCE","SECURITY","HEALTH"]},"x-ignore-array-items-must-be-objects":true},"description":{"type":"string"},"detail":{"type":"string"},"remediation":{"type":"string"},"metadata":{"type":"object","properties":{"schema":{"type":"string"},"name":{"type":"string"},"entity":{"type":"string"},"type":{"type":"string","enum":["table","view","materialized view","foreign table","auth","function","extension","compliance","health"]},"fkey_name":{"type":"string"},"fkey_columns":{"x-ignore-array-items-must-be-objects":true,"type":"array","items":{"type":"number"}}}},"cache_key":{"type":"string"},"observed_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["name","title","level","facing","categories","description","detail","remediation","cache_key"]}}},"required":["lints"]}},"required":["type","attributes"]}},"required":["data"]},"DownloadBackupBody":{"type":"object","properties":{"data":{"type":"object","properties":{"type":{"type":"string","description":"Resource type.","enum":["project_backup_file_url"]},"id":{"type":"number"}},"required":["type","id"]}},"required":["data"]},"DownloadBackupResponse_Output":{"type":"object","properties":{"data":{"type":"object","properties":{"type":{"type":"string","description":"Resource type.","enum":["project_backup_file_url"]},"id":{"type":"number"},"attributes":{"type":"object","properties":{"file_url":{"type":"string"}},"required":["file_url"]}},"required":["type","id","attributes"]}},"required":["data"]},"DownloadableBackupsResponse_Output":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","description":"Resource type.","enum":["project_downloadable_backup"]},"id":{"type":"number"},"attributes":{"type":"object","properties":{"is_physical_backup":{"type":"boolean"},"inserted_at":{"type":"string"},"project_ref":{"type":"string"},"status":{"type":"string","enum":["COMPLETED","FAILED","PENDING","REMOVED","ARCHIVED","CANCELLED"]}},"required":["is_physical_backup","inserted_at","project_ref","status"]}},"required":["type","id","attributes"]}}},"required":["data"]},"V2CreateBranchRequest":{"type":"object","properties":{"data":{"type":"object","properties":{"type":{"type":"string","description":"Resource type.","enum":["branch"]},"attributes":{"type":"object","properties":{"name":{"type":"string","minLength":1,"description":"Name of the branch.","example":"preview-login-page"},"git_branch":{"description":"Git branch to track. Must exist on the connected GitHub repository when the project has one.","example":"feature\/login-page","type":"string","minLength":1},"region":{"description":"Region to create the branch in. Omit to inherit the region of the project it branches from.","type":"string"},"persistent":{"description":"Whether the branch is kept when its git branch is deleted or its PR is merged.","type":"boolean"},"with_data":{"description":"Whether to seed the branch from the project's latest physical backup.","type":"boolean"},"desired_instance_size":{"description":"Desired instance size. Omit this field to always default to the smallest possible size.","type":"string","enum":["nano","micro","small","medium","large","xlarge","2xlarge","4xlarge","8xlarge","12xlarge","16xlarge","24xlarge","24xlarge_optimized_memory","24xlarge_optimized_cpu","24xlarge_high_memory","48xlarge","48xlarge_optimized_memory","48xlarge_optimized_cpu","48xlarge_high_memory"]},"desired_disk_size_gb":{"description":"Desired disk size in GB. Omit this field to default to the smallest disk size available on the plan.","type":"integer","minimum":8,"maximum":61440},"notify_url":{"description":"HTTP endpoint to receive branch status updates.","example":"https:\/\/example.com\/webhooks\/branches","type":"string","format":"uri"}},"required":["name"]}},"required":["type","attributes"]}},"required":["data"]},"V2BranchResponse_Output":{"type":"object","properties":{"data":{"type":"object","properties":{"type":{"type":"string","description":"Resource type.","enum":["branch"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"ID of the branch."},"attributes":{"type":"object","properties":{"name":{"type":"string","description":"Name of the branch."},"project_ref":{"type":"string","description":"Ref of the project backing this branch."},"parent_project_ref":{"type":"string","description":"Ref of the project it branches from."},"is_default":{"type":"boolean","description":"Whether this is the default branch of the project."},"persistent":{"type":"boolean","description":"Whether the branch is kept when its git branch is deleted or its PR is merged."},"with_data":{"type":"boolean","description":"Whether the branch is seeded from the project's data."},"git_branch":{"description":"Git branch being tracked.","type":"string"},"notify_url":{"description":"HTTP endpoint receiving branch status updates.","type":"string","format":"uri"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp."},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp."}},"required":["name","project_ref","parent_project_ref","is_default","persistent","with_data","created_at","updated_at"]}},"required":["type","id","attributes"]}},"required":["data"]},"V2ProjectConfigResponse_Output":{"type":"object","properties":{"data":{"type":"object","properties":{"type":{"type":"string","description":"Resource type.","enum":["project_config"]},"id":{"type":"string","description":"Project ref."},"attributes":{"type":"object","properties":{"database":{"type":"object","properties":{"major_version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The major Postgres version the database runs. `17` covers both Postgres 17 and Oriole on 17, since Oriole is a storage engine rather than a version."},"ssl_enforced":{"type":"boolean","description":"Whether the database rejects plaintext connections"},"network_restrictions":{"type":"object","properties":{"entitlement":{"type":"string","enum":["disallowed","allowed"]},"status":{"type":"string","enum":["stored","applied"],"description":"Whether the allowlist below is applied to the project or only stored."},"allowed_cidrs":{"type":"array","items":{"type":"object","properties":{"address":{"type":"string"},"type":{"type":"string","enum":["v4","v6"]}},"required":["address","type"]}},"pending_allowed_cidrs":{"description":"Present when a change that was never applied is waiting for review. `allowed_cidrs` is the list the project enforces. Apply or reject the change with `POST \/v1\/projects\/{ref}\/network-restrictions\/review`; submitting a new config also replaces it.","type":"array","items":{"type":"object","properties":{"address":{"type":"string"},"type":{"type":"string","enum":["v4","v6"]}},"required":["address","type"]}},"pending_requested_at":{"description":"When the change in `pending_allowed_cidrs` was requested.","type":"string"},"updated_at":{"type":"string"},"applied_at":{"type":"string"}},"required":["entitlement","status","allowed_cidrs"]},"postgres_settings":{"type":"object","properties":{"effective_cache_size":{"type":"string"},"logical_decoding_work_mem":{"type":"string"},"autovacuum_max_workers":{"type":"integer","minimum":1,"maximum":262143},"autovacuum_work_mem":{"type":"string"},"log_autovacuum_min_duration":{"type":"string","description":"Default unit: ms","pattern":"^(-?[0-9]+(?:\\.[0-9]+)?)(us|ms|s|min|h|d)?$"},"log_checkpoints":{"type":"boolean"},"log_connections":{"type":"boolean"},"log_disconnections":{"type":"boolean"},"log_duration":{"type":"boolean"},"log_lock_waits":{"type":"boolean"},"log_recovery_conflict_waits":{"type":"boolean"},"log_replication_commands":{"type":"boolean"},"log_startup_progress_interval":{"type":"string","description":"Default unit: ms","pattern":"^(-?[0-9]+(?:\\.[0-9]+)?)(us|ms|s|min|h|d)?$"},"log_temp_files":{"type":"string"},"maintenance_work_mem":{"type":"string"},"track_activity_query_size":{"type":"string"},"max_connections":{"type":"integer","minimum":1,"maximum":262143},"max_locks_per_transaction":{"type":"integer","minimum":10,"maximum":2147483640},"max_logical_replication_workers":{"type":"integer","minimum":0,"maximum":262143},"max_parallel_maintenance_workers":{"type":"integer","minimum":0,"maximum":1024},"max_parallel_workers":{"type":"integer","minimum":0,"maximum":1024},"max_parallel_workers_per_gather":{"type":"integer","minimum":0,"maximum":1024},"max_replication_slots":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"max_slot_wal_keep_size":{"type":"string"},"max_standby_archive_delay":{"type":"string"},"max_standby_streaming_delay":{"type":"string"},"max_sync_workers_per_subscription":{"type":"integer","minimum":0,"maximum":262143},"max_wal_size":{"type":"string"},"max_wal_senders":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"max_worker_processes":{"type":"integer","minimum":0,"maximum":262143},"session_replication_role":{"type":"string","enum":["origin","replica","local"]},"shared_buffers":{"type":"string"},"statement_timeout":{"type":"string","description":"Default unit: ms","pattern":"^(-?[0-9]+(?:\\.[0-9]+)?)(us|ms|s|min|h|d)?$"},"track_commit_timestamp":{"type":"boolean"},"wal_keep_size":{"type":"string"},"wal_sender_timeout":{"type":"string","description":"Default unit: ms","pattern":"^(-?[0-9]+(?:\\.[0-9]+)?)(us|ms|s|min|h|d)?$"},"work_mem":{"type":"string"},"checkpoint_timeout":{"type":"string","description":"Default unit: s","pattern":"^(-?[0-9]+(?:\\.[0-9]+)?)(us|ms|s|min|h|d)?$"},"hot_standby_feedback":{"type":"boolean"},"cron_log_statement":{"type":"boolean"},"pg_net_batch_size":{"type":"integer","minimum":0,"maximum":32767},"pg_stat_statements_max":{"type":"integer","minimum":100,"maximum":45000}},"description":"Postgres parameter overrides. Empty when the project runs entirely on defaults."}},"required":["major_version","ssl_enforced","network_restrictions","postgres_settings"]},"pooler":{"type":"object","properties":{"pool_mode":{"type":"string","enum":["transaction","session","statement"]},"ignore_startup_parameters":{"type":"string"},"server_idle_timeout":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"server_lifetime":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"query_wait_timeout":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"reserve_pool_size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"default_pool_size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Defaults to the pooler's size for the project's compute when not overridden."},"max_client_conn":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Defaults to the pooler's size for the project's compute when not overridden."}},"required":["pool_mode","ignore_startup_parameters","server_idle_timeout","server_lifetime","query_wait_timeout","reserve_pool_size","default_pool_size","max_client_conn"]},"auth":{"type":"object","additionalProperties":{},"description":"Effective Auth config, keyed by lowercased GoTrue setting name and resolved through the `gotrue_config` view, so a setting the project has never overridden is reported at its platform default. Secrets are returned as an HMAC of their value, never in plaintext."},"api":{"type":"object","properties":{"db_schema":{"type":"string","description":"Schemas exposed through the Data API"},"db_extra_search_path":{"type":"string"},"max_rows":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"db_pool_acquisition_timeout":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"db_pool_max_lifetime":{"type":"integer","minimum":0,"maximum":3600},"db_pool_max_idletime":{"type":"integer","minimum":0,"maximum":60},"db_pool":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"If `null`, no pool size is written to the project's PostgREST config and PostgREST's own default applies. The platform does not pick a value here.","nullable":true}},"required":["db_schema","db_extra_search_path","max_rows","db_pool_acquisition_timeout","db_pool_max_lifetime","db_pool_max_idletime","db_pool"]},"realtime":{"type":"object","properties":{"private_only":{"type":"boolean"},"max_concurrent_users":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"max_events_per_second":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"max_bytes_per_second":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"max_channels_per_client":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"max_joins_per_second":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"max_presence_events_per_second":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"max_payload_size_in_kb":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"presence_enabled":{"type":"boolean"},"suspend":{"type":"boolean"},"connection_pool":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Defaults to Realtime's pool size for the project's compute when not overridden."},"postgres_changes_pool":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"If `null`, no override is stored and Realtime applies its own default.","nullable":true}},"required":["private_only","max_concurrent_users","max_events_per_second","max_bytes_per_second","max_channels_per_client","max_joins_per_second","max_presence_events_per_second","max_payload_size_in_kb","presence_enabled","suspend","connection_pool","postgres_changes_pool"]},"storage":{"type":"object","properties":{"file_size_limit":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"format":"int64"},"features":{"type":"object","properties":{"image_transformation":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"]},"s3_protocol":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"]},"purge_cache":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"]},"iceberg_catalog":{"type":"object","properties":{"enabled":{"type":"boolean"},"max_namespaces":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"max_tables":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"max_catalogs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["enabled","max_namespaces","max_tables","max_catalogs"]},"vector_buckets":{"type":"object","properties":{"enabled":{"type":"boolean"},"max_buckets":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"max_indexes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["enabled","max_buckets","max_indexes"]}},"required":["image_transformation","s3_protocol","purge_cache","iceberg_catalog","vector_buckets"]},"capabilities":{"type":"object","properties":{"list_v2":{"type":"boolean"},"iceberg_catalog":{"type":"boolean"},"object_versioning":{"type":"boolean"}},"required":["list_v2","iceberg_catalog","object_versioning"]},"upstream_target":{"type":"string","enum":["main","canary"]},"migration_version":{"type":"string","nullable":true}},"required":["file_size_limit","features","capabilities","upstream_target","migration_version"],"description":"Read from the storage service's admin API rather than the middleware DB, so unlike the rest of this resource it reflects the tenant's live config."}},"required":["database","pooler","auth","api","realtime","storage"]}},"required":["type","id","attributes"]}},"required":["data"]},"V2ListNotebooksResponse_Output":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","description":"Resource type.","enum":["notebook"]},"id":{"type":"string"},"attributes":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string","nullable":true},"favorite":{"type":"boolean"},"inserted_at":{"type":"string"},"updated_at":{"type":"string"},"owner":{"type":"object","properties":{"id":{"type":"number"},"username":{"type":"string"}},"required":["id","username"],"description":"User who created the notebook.","nullable":true},"updated_by":{"type":"object","properties":{"id":{"type":"number"},"username":{"type":"string"}},"required":["id","username"],"description":"User who last wrote to the notebook.","nullable":true},"url":{"type":"string","format":"uri","description":"Dashboard link for this notebook."}},"required":["name","description","favorite","inserted_at","updated_at","owner","updated_by","url"]}},"required":["type","id","attributes"]}},"links":{"type":"object","properties":{"first":{"description":"URL path to the first page if available.","example":"\/v2\/projects\/{ref}\/notebooks?page[size]=10","type":"string","nullable":true},"prev":{"description":"URL path to the previous page.","example":"\/v2\/projects\/{ref}\/notebooks?page[size]=10&page[before]=019adf7d-4513-74c5-bb9a-f1bc0f7a95d7","type":"string","nullable":true},"next":{"description":"URL path to the next page.","example":"\/v2\/projects\/{ref}\/notebooks?page[size]=10&page[after]=019adf7d-4513-7062-b292-78b86cc470a4","type":"string","nullable":true},"last":{"description":"URL path to the last page if available.","example":"\/v2\/projects\/{ref}\/notebooks?page[size]=10&page[after]=019adf7d-4513-71ba-b264-21900edb4295","type":"string","nullable":true}},"required":["prev","next"]}},"required":["data","links"]},"V2NotebookResponse_Output":{"type":"object","properties":{"data":{"type":"object","properties":{"type":{"type":"string","description":"Resource type.","enum":["notebook"]},"id":{"type":"string"},"attributes":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string","nullable":true},"favorite":{"type":"boolean"},"inserted_at":{"type":"string"},"updated_at":{"type":"string"},"owner":{"type":"object","properties":{"id":{"type":"number"},"username":{"type":"string"}},"required":["id","username"],"description":"User who created the notebook.","nullable":true},"updated_by":{"type":"object","properties":{"id":{"type":"number"},"username":{"type":"string"}},"required":["id","username"],"description":"User who last wrote to the notebook.","nullable":true},"url":{"type":"string","format":"uri","description":"Dashboard link for this notebook."},"content":{"type":"object","properties":{"schema_version":{"type":"number"},"cells":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["markdown"]},"text":{"type":"string"}},"required":["id","type","text"]},{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["database"]},"sql":{"type":"string","description":"SQL run against the project database."},"row_limit":{"default":100,"type":"integer","exclusiveMinimum":true,"maximum":9007199254740991,"minimum":0},"database_identifier":{"description":"Read replica to run against. Omit to use the primary database.","type":"string"},"title":{"type":"string"},"view":{"type":"string","enum":["table","chart"]},"chart":{"description":"Chart configuration, retained even while `view` is `table`.","type":"object","properties":{"type":{"type":"string","enum":["bar","line"]},"x_column":{"type":"string","description":"Result column used for the x axis."},"y_series":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string","description":"Result column plotted as a series."}},"required":["column"]}},"scale":{"type":"string","enum":["linear","log"]},"cumulative":{"type":"boolean"},"show_labels":{"type":"boolean"}},"required":["type","x_column","y_series","scale","cumulative","show_labels"]}},"required":["id","type","sql","row_limit"]},{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["log"]},"sql":{"type":"string","description":"SQL run against the project logs."},"time_range":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["absolute"]},"start":{"type":"string","description":"ISO 8601 start of the range."},"end":{"type":"string","description":"ISO 8601 end of the range."}},"required":["type","start","end"]},{"type":"object","properties":{"type":{"type":"string","enum":["relative"]},"unit":{"type":"string","enum":["minute","hour","day","week","month","year"]},"amount":{"type":"integer","exclusiveMinimum":true,"maximum":9007199254740991,"minimum":0}},"required":["type","unit","amount"]}]},"title":{"type":"string"},"view":{"type":"string","enum":["table","chart"]},"chart":{"description":"Chart configuration, retained even while `view` is `table`.","type":"object","properties":{"type":{"type":"string","enum":["bar","line"]},"x_column":{"type":"string","description":"Result column used for the x axis."},"y_series":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string","description":"Result column plotted as a series."}},"required":["column"]}},"scale":{"type":"string","enum":["linear","log"]},"cumulative":{"type":"boolean"},"show_labels":{"type":"boolean"}},"required":["type","x_column","y_series","scale","cumulative","show_labels"]}},"required":["id","type","sql","time_range"]}]}}},"required":["schema_version","cells"]}},"required":["name","description","favorite","inserted_at","updated_at","owner","updated_by","url","content"]}},"required":["type","id","attributes"]}},"required":["data"]},"V2CreateNotebookRequest":{"type":"object","properties":{"data":{"type":"object","properties":{"type":{"type":"string","description":"Resource type.","enum":["notebook"]},"attributes":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255},"description":{"type":"string","maxLength":10000},"favorite":{"type":"boolean"},"content":{"type":"object","properties":{"cells":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["markdown"]},"text":{"type":"string"}},"required":["type","text"],"additionalProperties":{}},{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["database"]},"sql":{"type":"string","description":"SQL run against the project database."},"row_limit":{"default":100,"type":"integer","exclusiveMinimum":true,"maximum":9007199254740991,"minimum":0},"database_identifier":{"description":"Read replica to run against. Omit to use the primary database.","type":"string"},"title":{"type":"string"},"view":{"type":"string","enum":["table","chart"]},"chart":{"description":"Chart configuration, retained even while `view` is `table`.","type":"object","properties":{"type":{"type":"string","enum":["bar","line"]},"x_column":{"type":"string","description":"Result column used for the x axis."},"y_series":{"maxItems":3,"type":"array","items":{"type":"object","properties":{"column":{"type":"string","description":"Result column plotted as a series."}},"required":["column"],"additionalProperties":{}}},"scale":{"type":"string","enum":["linear","log"]},"cumulative":{"type":"boolean"},"show_labels":{"type":"boolean"}},"required":["type","x_column","y_series","scale","cumulative","show_labels"],"additionalProperties":{}}},"required":["type","sql"],"additionalProperties":{}},{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["log"]},"sql":{"type":"string","description":"SQL run against the project logs."},"time_range":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["absolute"]},"start":{"type":"string","description":"ISO 8601 start of the range."},"end":{"type":"string","description":"ISO 8601 end of the range."}},"required":["type","start","end"],"additionalProperties":{}},{"type":"object","properties":{"type":{"type":"string","enum":["relative"]},"unit":{"type":"string","enum":["minute","hour","day","week","month","year"]},"amount":{"type":"integer","exclusiveMinimum":true,"maximum":9007199254740991,"minimum":0}},"required":["type","unit","amount"],"additionalProperties":{}}]},"title":{"type":"string"},"view":{"type":"string","enum":["table","chart"]},"chart":{"description":"Chart configuration, retained even while `view` is `table`.","type":"object","properties":{"type":{"type":"string","enum":["bar","line"]},"x_column":{"type":"string","description":"Result column used for the x axis."},"y_series":{"maxItems":3,"type":"array","items":{"type":"object","properties":{"column":{"type":"string","description":"Result column plotted as a series."}},"required":["column"],"additionalProperties":{}}},"scale":{"type":"string","enum":["linear","log"]},"cumulative":{"type":"boolean"},"show_labels":{"type":"boolean"}},"required":["type","x_column","y_series","scale","cumulative","show_labels"],"additionalProperties":{}}},"required":["type","sql","time_range"],"additionalProperties":{}}]}}},"required":["cells"]}},"required":["name","content"]}},"required":["type","attributes"]}},"required":["data"]},"V2UpdateNotebookRequest":{"type":"object","properties":{"data":{"type":"object","properties":{"type":{"type":"string","description":"Resource type.","enum":["notebook"]},"attributes":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255},"description":{"type":"string","maxLength":10000},"favorite":{"type":"boolean"},"content":{"description":"Replaces the notebook body. A cell keeps its identity by echoing back its `id`; a cell sent without an `id` is added as a new one.","type":"object","properties":{"cells":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["markdown"]},"text":{"type":"string"}},"required":["type","text"],"additionalProperties":{}},{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["database"]},"sql":{"type":"string","description":"SQL run against the project database."},"row_limit":{"default":100,"type":"integer","exclusiveMinimum":true,"maximum":9007199254740991,"minimum":0},"database_identifier":{"description":"Read replica to run against. Omit to use the primary database.","type":"string"},"title":{"type":"string"},"view":{"type":"string","enum":["table","chart"]},"chart":{"description":"Chart configuration, retained even while `view` is `table`.","type":"object","properties":{"type":{"type":"string","enum":["bar","line"]},"x_column":{"type":"string","description":"Result column used for the x axis."},"y_series":{"maxItems":3,"type":"array","items":{"type":"object","properties":{"column":{"type":"string","description":"Result column plotted as a series."}},"required":["column"],"additionalProperties":{}}},"scale":{"type":"string","enum":["linear","log"]},"cumulative":{"type":"boolean"},"show_labels":{"type":"boolean"}},"required":["type","x_column","y_series","scale","cumulative","show_labels"],"additionalProperties":{}}},"required":["type","sql"],"additionalProperties":{}},{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["log"]},"sql":{"type":"string","description":"SQL run against the project logs."},"time_range":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["absolute"]},"start":{"type":"string","description":"ISO 8601 start of the range."},"end":{"type":"string","description":"ISO 8601 end of the range."}},"required":["type","start","end"],"additionalProperties":{}},{"type":"object","properties":{"type":{"type":"string","enum":["relative"]},"unit":{"type":"string","enum":["minute","hour","day","week","month","year"]},"amount":{"type":"integer","exclusiveMinimum":true,"maximum":9007199254740991,"minimum":0}},"required":["type","unit","amount"],"additionalProperties":{}}]},"title":{"type":"string"},"view":{"type":"string","enum":["table","chart"]},"chart":{"description":"Chart configuration, retained even while `view` is `table`.","type":"object","properties":{"type":{"type":"string","enum":["bar","line"]},"x_column":{"type":"string","description":"Result column used for the x axis."},"y_series":{"maxItems":3,"type":"array","items":{"type":"object","properties":{"column":{"type":"string","description":"Result column plotted as a series."}},"required":["column"],"additionalProperties":{}}},"scale":{"type":"string","enum":["linear","log"]},"cumulative":{"type":"boolean"},"show_labels":{"type":"boolean"}},"required":["type","x_column","y_series","scale","cumulative","show_labels"],"additionalProperties":{}}},"required":["type","sql","time_range"],"additionalProperties":{}}]}}},"required":["cells"]}}}},"required":["type","attributes"]}},"required":["data"]},"V2TransferProjectBody":{"type":"object","properties":{"data":{"type":"object","properties":{"type":{"type":"string","description":"Resource type.","enum":["project_transfer_input"]},"attributes":{"type":"object","properties":{"target_organization_slug":{"type":"string"}},"required":["target_organization_slug"]}},"required":["type","attributes"]}},"required":["data"]},"V2PreviewProjectTransferResponse_Output":{"type":"object","properties":{"data":{"type":"object","properties":{"type":{"type":"string","description":"Resource type.","enum":["project_transfer_result"]},"attributes":{"type":"object","properties":{"valid":{"type":"boolean"},"warnings":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"message":{"type":"string"}},"required":["key","message"]}},"errors":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"message":{"type":"string"}},"required":["key","message"]}},"info":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"message":{"type":"string"}},"required":["key","message"]}}},"required":["valid","warnings","errors","info"]}},"required":["type","attributes"]}},"required":["data"]},"V2ListPrivateLinkAssociationsResponse_Output":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","description":"Resource type.","enum":["private_link_association"]},"id":{"type":"string"},"attributes":{"type":"object","properties":{"aws_account_id":{"type":"string","minLength":12,"maxLength":12,"pattern":"^\\d{12}$","description":"The AWS account ID this PrivateLink share is associated with."},"account_name":{"description":"Human-readable name for the AWS account.","type":"string"},"status":{"type":"string","enum":["CREATING","READY","ASSOCIATION_REQUEST_EXPIRED","ASSOCIATION_ACCEPTED","CREATION_FAILED","DELETING"],"description":"\n  - `CREATING`: The PrivateLink resources and the Association are in the process of being created. The PrivateLink Share cannot be accepted yet.\n  - `READY`: The PrivateLink resources have been created and the PrivateLink Share can be accepted for the duration of 12h after sharing. See `shared_at`.\n  - `ASSOCIATION_REQUEST_EXPIRED`: The PrivateLink Share has not been accepted within the 12h time limit. This association can now be deleted.\n  - `ASSOCIATION_ACCEPTED`: The PrivateLink Share was successfully accepted.\n  - `CREATION_FAILED`: The PrivateLink resources failed to create. This likely means something went wrong on Supabase's and and support should be contacted.\n  - `DELETING`: The PrivateLink resources and the Association are in the process of being deleted. The PrivateLink Share cannot be accepted yet.\n"},"shared_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"The time and date at which the AWS Resource Share Association was requested from Supabase. `null` means that the association was not yet requested while the PrivateLink Association is pending.","nullable":true},"database_type":{"type":"string","enum":["PRIMARY","READ_REPLICA"],"description":"Whether this PrivateLink share targets the primary database or a read replica."},"database_identifier":{"type":"string","description":"Identifier of the database this PrivateLink share targets - the project ref for the primary, or the read replica identifier."},"custom_dns_name":{"type":"string","description":"The custom DNS name configured on the AWS VPC Lattice resource configuration."},"resource_access_manager_resource_config_id":{"description":"ID of the AWS VPC Lattice resource configuration backing this PrivateLink share.","type":"string"},"resource_access_manager_resource_config_arn":{"description":"ARN of the AWS VPC Lattice resource configuration backing this PrivateLink share.","type":"string"},"resource_access_manager_share_arn":{"description":"ARN of the AWS Resource Access Manager resource share for this association.","type":"string"}},"required":["aws_account_id","status","shared_at","database_type","database_identifier","custom_dns_name"]}},"required":["type","id","attributes"]}}},"required":["data"]},"V2CreatePrivateLinkAssociationRequest":{"type":"object","properties":{"data":{"type":"object","properties":{"type":{"type":"string","description":"Resource type.","enum":["private_link_association"]},"attributes":{"type":"object","properties":{"aws_account_id":{"type":"string","minLength":12,"maxLength":12,"pattern":"^\\d{12}$","description":"The AWS account ID to add to the project PrivateLink share."},"account_name":{"description":"Optional human-readable name for the AWS account.","type":"string","maxLength":128},"database_identifier":{"description":"Identifier of the read replica this PrivateLink share should target. Omit to target the primary database.","type":"string"}},"required":["aws_account_id"]}},"required":["type","attributes"]}},"required":["data"]},"V2PrivateLinkAssociationResponse_Output":{"type":"object","properties":{"data":{"type":"object","properties":{"type":{"type":"string","description":"Resource type.","enum":["private_link_association"]},"id":{"type":"string"},"attributes":{"type":"object","properties":{"aws_account_id":{"type":"string","minLength":12,"maxLength":12,"pattern":"^\\d{12}$","description":"The AWS account ID this PrivateLink share is associated with."},"account_name":{"description":"Human-readable name for the AWS account.","type":"string"},"status":{"type":"string","enum":["CREATING","READY","ASSOCIATION_REQUEST_EXPIRED","ASSOCIATION_ACCEPTED","CREATION_FAILED","DELETING"],"description":"\n  - `CREATING`: The PrivateLink resources and the Association are in the process of being created. The PrivateLink Share cannot be accepted yet.\n  - `READY`: The PrivateLink resources have been created and the PrivateLink Share can be accepted for the duration of 12h after sharing. See `shared_at`.\n  - `ASSOCIATION_REQUEST_EXPIRED`: The PrivateLink Share has not been accepted within the 12h time limit. This association can now be deleted.\n  - `ASSOCIATION_ACCEPTED`: The PrivateLink Share was successfully accepted.\n  - `CREATION_FAILED`: The PrivateLink resources failed to create. This likely means something went wrong on Supabase's and and support should be contacted.\n  - `DELETING`: The PrivateLink resources and the Association are in the process of being deleted. The PrivateLink Share cannot be accepted yet.\n"},"shared_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"The time and date at which the AWS Resource Share Association was requested from Supabase. `null` means that the association was not yet requested while the PrivateLink Association is pending.","nullable":true},"database_type":{"type":"string","enum":["PRIMARY","READ_REPLICA"],"description":"Whether this PrivateLink share targets the primary database or a read replica."},"database_identifier":{"type":"string","description":"Identifier of the database this PrivateLink share targets - the project ref for the primary, or the read replica identifier."},"custom_dns_name":{"type":"string","description":"The custom DNS name configured on the AWS VPC Lattice resource configuration."},"resource_access_manager_resource_config_id":{"description":"ID of the AWS VPC Lattice resource configuration backing this PrivateLink share.","type":"string"},"resource_access_manager_resource_config_arn":{"description":"ARN of the AWS VPC Lattice resource configuration backing this PrivateLink share.","type":"string"},"resource_access_manager_share_arn":{"description":"ARN of the AWS Resource Access Manager resource share for this association.","type":"string"}},"required":["aws_account_id","status","shared_at","database_type","database_identifier","custom_dns_name"]}},"required":["type","id","attributes"]}},"required":["data"]},"V2ListComputeInstancesResponse_Output":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","description":"Resource type.","enum":["project_compute_instance"]},"id":{"type":"string","description":"Compute instance name.","example":"hello-world"},"attributes":{"type":"object","properties":{"spec":{"type":"object","properties":{"runtime":{"type":"string"},"size":{"type":"string"},"exposure":{"type":"string"},"instances":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"secrets_scope":{"anyOf":[{"type":"string","enum":["all","supabase","none"]},{"type":"array","items":{"type":"object","properties":{"secret_name":{"type":"string"}},"required":["secret_name"]}}],"nullable":true}},"required":["size","exposure","instances"]},"build_state":{"type":"string","enum":["building","active","failed"]},"secret_generation":{"type":"string"},"state_reason":{"type":"string"},"image_version":{"type":"string"},"deleting":{"type":"boolean"},"instances":{"type":"object","properties":{"declared":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"live":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"ready":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"stale":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["declared","live","ready","stale"]},"instances_error":{"type":"string"}},"required":["spec","build_state","secret_generation"]}},"required":["type","id","attributes"]}}},"required":["data"]},"V2ComputeInstanceResponse_Output":{"type":"object","properties":{"data":{"type":"object","properties":{"type":{"type":"string","description":"Resource type.","enum":["project_compute_instance"]},"id":{"type":"string","description":"Compute instance name.","example":"hello-world"},"attributes":{"type":"object","properties":{"spec":{"type":"object","properties":{"runtime":{"type":"string"},"size":{"type":"string"},"exposure":{"type":"string"},"instances":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"secrets_scope":{"anyOf":[{"type":"string","enum":["all","supabase","none"]},{"type":"array","items":{"type":"object","properties":{"secret_name":{"type":"string"}},"required":["secret_name"]}}],"nullable":true}},"required":["size","exposure","instances"]},"build_state":{"type":"string","enum":["building","active","failed"]},"secret_generation":{"type":"string"},"state_reason":{"type":"string"},"image_version":{"type":"string"},"deleting":{"type":"boolean"},"instances":{"type":"object","properties":{"declared":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"live":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"ready":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"stale":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["declared","live","ready","stale"]},"instances_error":{"type":"string"}},"required":["spec","build_state","secret_generation"]}},"required":["type","id","attributes"]}},"required":["data"]},"V2ComputeInstanceUploadResponse_Output":{"type":"object","properties":{"data":{"type":"object","properties":{"type":{"type":"string","description":"Resource type.","enum":["project_compute_instance_upload"]},"id":{"type":"string","description":"Upload id to pass to the deploy endpoint as `context_upload_id`.","example":"cafe0000000000000000000000000000"},"attributes":{"type":"object","properties":{"url":{"type":"string","description":"Presigned destination for the `.tar.gz` build context."},"method":{"type":"string","example":"PUT"},"expires_at":{"type":"string","description":"When the slot stops accepting the upload."}},"required":["url","method","expires_at"]}},"required":["type","id","attributes"]}},"required":["data"]},"V2DeployComputeInstanceRequest":{"type":"object","properties":{"data":{"type":"object","properties":{"type":{"type":"string","description":"Resource type.","enum":["project_compute_instance"]},"attributes":{"type":"object","properties":{"spec":{"type":"object","properties":{"runtime":{"example":"node","type":"string"},"size":{"type":"string","example":"2gb-1vcpu"},"exposure":{"type":"string","example":"public"},"instances":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":1},"secrets_scope":{"anyOf":[{"type":"string","enum":["all","supabase","none"]},{"type":"array","items":{"type":"object","properties":{"secret_name":{"type":"string"}},"required":["secret_name"]},"examples":[{"secret_name":"STRIPE_KEY"},{"secret_name":"AGENT_SECRET"}]}],"nullable":true}},"required":["size","exposure","instances"]},"context_upload_id":{"description":"Id of a build context staged through the uploads endpoint. Required unless `runtime` is set.","type":"string"}},"required":["spec"]}},"required":["type","attributes"]}},"required":["data"]},"CloneableBackupsResponse_Output":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","description":"Resource type.","enum":["project_cloneable_backup"]},"id":{"type":"number"},"attributes":{"type":"object","properties":{"is_physical_backup":{"type":"boolean"},"inserted_at":{"type":"string"},"project_ref":{"type":"string"},"status":{"type":"string","enum":["COMPLETED","FAILED","PENDING","REMOVED","ARCHIVED","CANCELLED"]}},"required":["is_physical_backup","inserted_at","project_ref","status"]}},"required":["type","id","attributes"]}}},"required":["data"]},"CloneStatusResponse_Output":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","description":"Resource type.","enum":["project_clone_status"]},"attributes":{"type":"object","properties":{"inserted_at":{"type":"string","nullable":true},"updated_at":{"type":"string","nullable":true},"target_project":{"type":"object","properties":{"ref":{"type":"string"},"name":{"type":"string"}},"required":["ref","name"],"description":"The destination cloned project"},"status":{"type":"string","enum":["COMPLETED","IN_PROGRESS","FAILED","REMOVED"],"description":"The cloning status"}},"required":["inserted_at","updated_at","target_project","status"]}},"required":["type","attributes"]}}},"required":["data"]},"V2ListEnvironmentVariablesResponse_Output":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","description":"Resource type.","enum":["environment_variable"]},"id":{"type":"string","description":"Name of the variable or secret."},"attributes":{"type":"object","properties":{"value":{"type":"string","minLength":1,"maxLength":24576,"description":"Value of the variable."},"created_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updated_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["value","created_at","updated_at"]}},"required":["type","id","attributes"]}}},"required":["data"]},"V2SetEnvironmentVariableRequest":{"type":"object","properties":{"data":{"type":"object","properties":{"type":{"type":"string","description":"Resource type.","enum":["environment_variable"]},"attributes":{"type":"object","properties":{"value":{"type":"string","minLength":1,"maxLength":24576,"pattern":"^[^\\r\\n]*$","description":"Value of the variable. Must be a single line. Escape line breaks yourself, for example as `\\n`."}},"required":["value"]}},"required":["type","attributes"]}},"required":["data"]},"V2EnvironmentVariableResponse_Output":{"type":"object","properties":{"data":{"type":"object","properties":{"type":{"type":"string","description":"Resource type.","enum":["environment_variable"]},"id":{"type":"string","description":"Name of the variable or secret."},"attributes":{"type":"object","properties":{"value":{"type":"string","minLength":1,"maxLength":24576,"description":"Value of the variable."},"created_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updated_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["value","created_at","updated_at"]}},"required":["type","id","attributes"]}},"required":["data"]},"V2ListEnvironmentSecretsResponse_Output":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","description":"Resource type.","enum":["environment_secret"]},"id":{"type":"string","description":"Name of the variable or secret."},"attributes":{"type":"object","properties":{"created_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updated_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["created_at","updated_at"]}},"required":["type","id","attributes"]}}},"required":["data"]},"V2SetEnvironmentSecretRequest":{"type":"object","properties":{"data":{"type":"object","properties":{"type":{"type":"string","description":"Resource type.","enum":["environment_secret"]},"attributes":{"type":"object","properties":{"value":{"type":"string","minLength":1,"maxLength":24576,"pattern":"^[^\\r\\n]*$","description":"Value of the secret. It is encrypted at rest and never returned by the API. Must be a single line. Escape line breaks yourself, for example as `\\n`."}},"required":["value"]}},"required":["type","attributes"]}},"required":["data"]},"V2EnvironmentSecretResponse_Output":{"type":"object","properties":{"data":{"type":"object","properties":{"type":{"type":"string","description":"Resource type.","enum":["environment_secret"]},"id":{"type":"string","description":"Name of the variable or secret."},"attributes":{"type":"object","properties":{"created_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updated_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["created_at","updated_at"]}},"required":["type","id","attributes"]}},"required":["data"]},"V2ListRolesResponse_Output":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","description":"Resource type.","enum":["organization_role"]},"attributes":{"type":"object","properties":{"name":{"type":"string","description":"Role name.","example":"developer"}},"required":["name"]}},"required":["type","attributes"]}}},"required":["data"]},"V2CreateInvitationsRequest":{"type":"object","properties":{"data":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","description":"Resource type.","enum":["organization_invitation"]},"attributes":{"type":"object","properties":{"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","description":"Email address of the invitation receipient.","example":"hello@example.com"},"role":{"type":"string","enum":["owner","administrator","developer","read-only","no-access"],"description":"Role name to assign. Must be on an Enterprise plan to use the read-only or no-access roles. no-access grants no project visibility until project-scoped roles are assigned separately.","example":"developer"},"projects":{"description":"The projects to limit a user to. If omitted, user will have org-wide access with the provided role.","examples":[{"ref":"abcjuqabhgwjjutfvtpa"}],"minItems":1,"type":"array","items":{"type":"object","properties":{"ref":{"type":"string","description":"Project ref","example":"abcjuqabhgwjjutfvtpa"}},"required":["ref"]}},"require_sso":{"type":"boolean"}},"required":["email","role"]}},"required":["type","attributes"]}}},"required":["data"]},"V2CreateInvitationsResponse_Output":{"type":"object","properties":{"error":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","enum":["bad_request","forbidden","internal_server_error","not_found","payment_required","rate_limit_exceeded","request_timeout","request_too_large","unauthorized","validation_failed","warehouse_selection_empty","warehouse_selection_conflict","warehouse_selection_changed","warehouse_lifecycle_conflict","warehouse_setup_invalid","warehouse_not_found","warehouse_metrics_unavailable","warehouse_setup_unavailable","agentic_credential_not_found","backup_unsupported","branch_admin_required","compute_build_context_too_large","compute_build_in_progress","compute_deploy_rate_limit_exceeded","compute_instance_limit_exceeded","compute_instance_not_found","compute_not_enabled","compute_request_rejected","compute_unavailable","environment_root_project_required","environment_secret_not_found","environment_variable_already_exists","environment_variable_limit_reached","environment_variable_not_found","notebook_cell_duplicate","notebook_cell_unknown","notebook_disabled","notebook_not_found","notebook_sort_invalid","organization_invitation_email_delivery_failed","organization_invitations_partially_failed","organization_inviter_email_missing","organization_role_name_invalid","organization_role_not_entitled","pagination_cursor_invalid","project_branch_resync_unsupported","project_not_found","project_privatelink_disabled","project_transfer_disabled","delivery_not_found","endpoint_disabled","endpoint_event_type_not_subscribed","endpoint_not_found","endpoint_url_unresolvable","webhooks_access_disabled"]},"message":{"type":"string"},"description":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","additionalProperties":{}},"issues":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"description":{"type":"string"},"links":{"type":"object","additionalProperties":{"type":"object","properties":{"href":{"type":"string"},"rel":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"describedby":{"type":"string"},"meta":{"type":"object","additionalProperties":{}}},"required":["href"]}},"meta":{"type":"object","properties":{"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","description":"Email address of the invitation receipient.","example":"hello@example.com"}},"required":["email"]}},"required":["code","message","meta"]}}},"required":["code","message"]},"data":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","description":"Resource type.","enum":["organization_invitation"]},"attributes":{"type":"object","properties":{"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","description":"Email address of the invitation receipient.","example":"hello@example.com"}},"required":["email"]}},"required":["type","attributes"]}}},"required":["data"]},"V2DeleteInvitationsRequest":{"type":"object","properties":{"data":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","description":"Resource type.","enum":["organization_invitation"]},"attributes":{"type":"object","properties":{"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","description":"Email address of the invitation receipient.","example":"hello@example.com"}},"required":["email"]}},"required":["type","attributes"]}}},"required":["data"]},"V2DeleteInvitationsResponse_Output":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","description":"Resource type.","enum":["organization_invitation"]},"attributes":{"type":"object","properties":{"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","description":"Email address of the invitation receipient.","example":"hello@example.com"}},"required":["email"]}},"required":["type","attributes"]}}},"required":["data"]},"V2ListMembersResponse_Output":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","description":"Resource type.","enum":["organization_member"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"},"attributes":{"type":"object","properties":{"username":{"description":"Member's username","type":"string","nullable":true},"primary_email":{"description":"Member's primary email","type":"string","nullable":true},"mfa_enabled":{"type":"boolean","description":"Whether Multi-Factor Authentication is enabled for this member"},"is_sso_user":{"type":"boolean","description":"Whether this member is a Single Sign-On user"},"avatar_url":{"description":"Member's avatar URL","type":"string","nullable":true},"roles":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"Role name. For project-scoped roles this is the base role name.","example":"developer"},"scope":{"type":"string","enum":["organization","project"],"description":"Whether this role applies org-wide or is scoped to specific projects for the user."},"projects":{"type":"array","items":{"type":"object","properties":{"ref":{"type":"string"},"name":{"type":"string"}},"required":["ref","name"]},"description":"Project refs this role is scoped to. Empty array for org-level roles."}},"required":["name","scope","projects"]},"description":"Roles assigned to this member. Includes both org-level and project-scoped roles."}},"required":["username","primary_email","mfa_enabled","is_sso_user","avatar_url","roles"]}},"required":["type","id","attributes"]}},"links":{"type":"object","properties":{"first":{"description":"URL path to the first page if available.","example":"\/v2\/organizations\/my-org\/members?page[size]=10","type":"string","nullable":true},"prev":{"description":"URL path to the previous page.","example":"\/v2\/organizations\/my-org\/members?page[size]=10&page[before]=019adf7d-4513-74c5-bb9a-f1bc0f7a95d7","type":"string","nullable":true},"next":{"description":"URL path to the next page.","example":"\/v2\/organizations\/my-org\/members?page[size]=10&page[after]=019adf7d-4513-7062-b292-78b86cc470a4","type":"string","nullable":true},"last":{"description":"URL path to the last page if available.","example":"\/v2\/organizations\/my-org\/members?page[size]=10&page[after]=019adf7d-4513-71ba-b264-21900edb4295","type":"string","nullable":true}},"required":["prev","next"]}},"required":["data","links"]},"V2AssignOrganizationMemberRoleRequest":{"type":"object","properties":{"data":{"type":"object","properties":{"type":{"type":"string","description":"Resource type.","enum":["organization_member_role"]},"attributes":{"type":"object","properties":{"role":{"type":"string","enum":["owner","administrator","developer","read-only","no-access"],"description":"Role name to assign. Must be one of: owner, administrator, developer, read-only. Must be on a Team or Enterprise plan to use the read-only role.","example":"developer"},"projects":{"description":"The projects to assign a project-scoped role for. If omitted, assigns an org-wide role.","minItems":1,"type":"array","items":{"type":"object","properties":{"ref":{"type":"string","description":"Project ref","example":"abcjuqabhgwjjutfvtpa"}},"required":["ref"]}}},"required":["role"]}},"required":["type","attributes"]}},"required":["data"]},"OrganizationMemberRoleResponse_Output":{"type":"object","properties":{"data":{"type":"object","properties":{"type":{"type":"string","description":"Resource type.","enum":["organization_member_role"]},"attributes":{"type":"object","properties":{"name":{"type":"string","description":"Role name. For project-scoped assignments this is the base role name.","example":"developer"},"scope":{"type":"string","enum":["organization","project"],"description":"Whether this role applies org-wide or is scoped to specific projects for the user."},"projects":{"type":"array","items":{"type":"object","properties":{"ref":{"type":"string"},"name":{"type":"string"}},"required":["ref","name"]},"description":"Project refs this role is scoped to. Empty array for org-level roles."}},"required":["name","scope","projects"]}},"required":["type","attributes"]}},"required":["data"]},"V2ListProjectsResponse_Output":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","description":"Resource type.","enum":["project"]},"id":{"type":"string","minLength":20,"maxLength":20,"pattern":"^[a-z]+$","description":"Project ref","example":"abcdefghijklmnopqrst"},"attributes":{"type":"object","properties":{"name":{"type":"string","description":"Project name"},"status":{"type":"string","enum":["INACTIVE","ACTIVE_HEALTHY","ACTIVE_UNHEALTHY","COMING_UP","UNKNOWN","GOING_DOWN","INIT_FAILED","REMOVED","RESTORING","UPGRADING","PAUSING","RESTORE_FAILED","RESTARTING","PAUSE_FAILED","RESIZING","PROMOTING","RIGHTSIZING"],"description":"Project status"},"cloud_provider":{"type":"string","description":"Cloud provider hosting the project"},"region":{"type":"string","description":"Region the project is hosted in"},"inserted_at":{"type":"string","description":"When the project was created"},"databases":{"type":"array","items":{"type":"object","properties":{"cloud_provider":{"type":"string"},"identifier":{"type":"string"},"region":{"type":"string","nullable":true},"status":{"type":"string","enum":["ACTIVE_HEALTHY","ACTIVE_UNHEALTHY","COMING_UP","GOING_DOWN","INIT_FAILED","REMOVED","RESTORING","UNKNOWN","INIT_READ_REPLICA","INIT_READ_REPLICA_FAILED","RESTARTING","RESIZING"]},"type":{"type":"string","enum":["PRIMARY","READ_REPLICA"]},"infra_compute_size":{"type":"string","enum":["pico","nano","micro","small","medium","large","xlarge","2xlarge","4xlarge","8xlarge","12xlarge","16xlarge","24xlarge","24xlarge_optimized_memory","24xlarge_optimized_cpu","24xlarge_high_memory","48xlarge","48xlarge_optimized_memory","48xlarge_optimized_cpu","48xlarge_high_memory"]},"disk_volume_size_gb":{"type":"number"},"disk_type":{"type":"string","enum":["gp3","io2"]},"disk_throughput_mbps":{"type":"number"},"disk_last_modified_at":{"type":"string"}},"required":["cloud_provider","identifier","region","status","type"]},"description":"The project's databases including compute and disk attributes."}},"required":["name","status","cloud_provider","region","inserted_at","databases"]}},"required":["type","id","attributes"]}},"links":{"type":"object","properties":{"first":{"description":"URL path to the first page if available.","example":"\/v2\/organizations\/my-org\/projects?page[size]=10","type":"string","nullable":true},"prev":{"description":"URL path to the previous page.","example":"\/v2\/organizations\/my-org\/projects?page[size]=10&page[before]=019adf7d-4513-74c5-bb9a-f1bc0f7a95d7","type":"string","nullable":true},"next":{"description":"URL path to the next page.","example":"\/v2\/organizations\/my-org\/projects?page[size]=10&page[after]=019adf7d-4513-7062-b292-78b86cc470a4","type":"string","nullable":true},"last":{"description":"URL path to the last page if available.","example":"\/v2\/organizations\/my-org\/projects?page[size]=10&page[after]=019adf7d-4513-71ba-b264-21900edb4295","type":"string","nullable":true}},"required":["prev","next"]}},"required":["data","links"]},"V2ListGitHubConnectionsResponse_Output":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","description":"Resource type.","enum":["github_connection"]},"id":{"type":"string","description":"Connection id.","example":"7"},"attributes":{"type":"object","properties":{"inserted_at":{"type":"string","description":"When the connection was created"},"updated_at":{"type":"string","description":"When the connection was last updated"},"installation_id":{"type":"number","description":"GitHub App installation id"},"workdir":{"type":"string","description":"Directory within the repository the project lives in"},"supabase_changes_only":{"type":"boolean","description":"Whether branches are only created for changes under `supabase\/`"},"branch_limit":{"type":"number","description":"Maximum number of preview branches"},"new_branch_per_pr":{"type":"boolean","description":"Whether a preview branch is created for every pull request"},"project":{"type":"object","properties":{"id":{"type":"number"},"ref":{"type":"string","minLength":20,"maxLength":20,"pattern":"^[a-z]+$","description":"Project ref","example":"abcdefghijklmnopqrst"},"name":{"type":"string"}},"required":["id","ref","name"],"description":"The connected Supabase project"},"repository":{"type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"}},"required":["id","name"],"description":"The connected GitHub repository"},"user":{"type":"object","properties":{"id":{"type":"number"},"username":{"type":"string"},"primary_email":{"type":"string","nullable":true}},"required":["id","username","primary_email"],"description":"The user who created the connection, if still known","nullable":true}},"required":["inserted_at","updated_at","installation_id","workdir","supabase_changes_only","branch_limit","new_branch_per_pr","project","repository","user"]}},"required":["type","id","attributes"]}},"links":{"type":"object","properties":{"first":{"description":"URL path to the first page if available.","example":"\/v2\/organizations\/my-org\/integrations\/github\/connections?page[size]=10","type":"string","nullable":true},"prev":{"description":"URL path to the previous page.","example":"\/v2\/organizations\/my-org\/integrations\/github\/connections?page[size]=10&page[before]=019adf7d-4513-74c5-bb9a-f1bc0f7a95d7","type":"string","nullable":true},"next":{"description":"URL path to the next page.","example":"\/v2\/organizations\/my-org\/integrations\/github\/connections?page[size]=10&page[after]=019adf7d-4513-7062-b292-78b86cc470a4","type":"string","nullable":true},"last":{"description":"URL path to the last page if available.","example":"\/v2\/organizations\/my-org\/integrations\/github\/connections?page[size]=10&page[after]=019adf7d-4513-71ba-b264-21900edb4295","type":"string","nullable":true}},"required":["prev","next"]}},"required":["data","links"]},"V2ListMaintenanceWindowsResponse_Output":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","description":"Resource type.","enum":["maintenance_window"]},"id":{"type":"string","description":"AWS region.","example":"us-east-1"},"attributes":{"type":"object","properties":{"window":{"type":"object","properties":{"day":{"type":"string","enum":["mon","tue","wed","thu","fri","sat","sun"],"description":"UTC day the window starts."},"start_utc":{"type":"string","description":"UTC start time.","example":"06:00"},"duration_minutes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"example":120}},"required":["day","start_utc","duration_minutes"]},"current_window":{"type":"object","properties":{"start_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","description":"Start of the occurrence, inclusive."},"end_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","description":"End of the occurrence, exclusive."}},"required":["start_at","end_at"],"description":"The open occurrence, or null when the window is closed.","nullable":true},"next_windows":{"type":"array","items":{"type":"object","properties":{"start_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","description":"Start of the occurrence, inclusive."},"end_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","description":"End of the occurrence, exclusive."}},"required":["start_at","end_at"]},"description":"The next five occurrences that start after now, in order."}},"required":["window","current_window","next_windows"]}},"required":["type","id","attributes"]}}},"required":["data"]}}}}