{"components":{"parameters":{"ApiVersion":{"description":"The API version to use. Defaults to 1 when omitted.","in":"query","name":"api_version","schema":{"default":"1","enum":["1"],"type":"string"}}},"responses":{"BadRequest":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Invalid ID, query parameters, or request body."},"Forbidden":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Access denied"},"InternalServerError":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An unexpected server error occurred."},"NotFound":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"},"Unauthorized":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Unauthorized","headers":{"WWW-Authenticate":{"schema":{"enum":["Bearer"],"type":"string"}}}}},"schemas":{"Actor":{"example":{"kind":"ApiKey","name":"my-api-key"},"properties":{"kind":{"enum":["ApiKey","System","User"],"type":"string"},"name":{"description":"The API key name, user's email address, or \"system\". A display value that may change.","type":"string"}},"required":["kind","name"],"type":"object"},"Backup":{"properties":{"actor":{"$ref":"#/components/schemas/Actor"},"backup_id":{"description":"Catalog ID of the backup. Null until a manual request receives an ID.","type":["string","null"]},"finished_at":{"description":"Time the backup finished, when known.","format":"date-time","type":["string","null"]},"requested_at":{"description":"Time the manual backup was requested or the scheduled backup started, when known.","format":"date-time","type":["string","null"]},"status":{"enum":["Completed","Incomplete","Failed","Unknown"],"type":"string"}},"required":["backup_id","status","actor","requested_at","finished_at"],"type":"object"},"BackupSchedule":{"additionalProperties":false,"description":"The cluster backup schedule in UTC.","properties":{"frequency":{"default":"Daily","enum":["Daily","Weekly"],"type":"string"},"scheduled_day":{"description":"Required for weekly backups, from 0 (Sunday) to 6 (Saturday). Omit or set to null for daily backups.","maximum":6,"minimum":0,"type":["integer","null"]},"scheduled_time":{"default":"00:00","description":"The backup time in HH:MM format.","pattern":"^([01][0-9]|2[0-3]):[0-5][0-9]$","type":"string"}},"type":"object"},"Cluster":{"properties":{"backup_retention_days":{"description":"The configured backup retention period in days.","type":"integer"},"backup_schedule":{"$ref":"#/components/schemas/BackupSchedule","required":["frequency","scheduled_time","scheduled_day"]},"created_at":{"description":"When the cluster was created.","example":"2026-11-10T15:28:55.554Z","format":"date-time","type":"string"},"id":{"description":"The cluster's ID.","type":"string"},"instance_type":{"example":"PDB-2","type":"string"},"instances":{"description":"The number of database instances, including the primary.","minimum":1,"type":"integer"},"name":{"type":"string"},"paradedb_version":{"description":"The ParadeDB release version, or source commit for a custom source image.","example":"0.26.1","type":"string"},"postgres_version":{"description":"The PostgreSQL version.","example":"18.6","type":"string"},"region":{"example":"us-west-2","type":"string"},"storage_iops":{"description":"The provisioned storage IOPS per instance.","type":"integer"},"storage_size_gb":{"description":"The configured data storage per instance in GiB, rounded up. Excludes WAL storage.","type":"integer"},"storage_throughput_mbps":{"description":"The provisioned storage throughput per instance in MiB/s.","type":"integer"},"support_mode_enabled":{"description":"Whether the customer has approved ParadeDB support access to the cluster.","type":"boolean"}},"required":["id","name","region","instance_type","instances","storage_size_gb","storage_iops","storage_throughput_mbps","backup_retention_days","backup_schedule","postgres_version","paradedb_version","support_mode_enabled","created_at"],"type":"object"},"ClusterChange":{"properties":{"actor":{"$ref":"#/components/schemas/Actor"},"changes":{"description":"Configuration changes requested by this operation. Check status to determine whether the operation succeeded.","example":[{"detail":"18.6 → 18.7","kind":"PostgresVersion"},{"detail":"0.26.6 → 0.26.7","kind":"ParadeDBVersion"},{"detail":"max_connections: 100 → 200, work_mem: 16MB → 32MB","kind":"PostgresParameters"}],"items":{"properties":{"detail":{"description":"A human-readable description of the change. The wording and format of this field is subject to change.","type":"string"},"kind":{"description":"The kind of change. New enum values may be added; clients must tolerate unknown values.","enum":["ClusterCreated","Instances","InstanceType","StorageSize","WalStorageSize","StorageIops","StorageThroughput","PostgresVersion","ParadeDBVersion","ImageVersion","PlatformVersion","PublicAccessEnabled","PostgresParameters","AllowedCidrs","AllowedPrivateLinkEndpoints","OutboundPrivateLinkEndpoints","Restore","BackupRetention","BackupSchedule"],"type":"string"}},"required":["kind","detail"],"type":"object"},"type":"array"},"finished_at":{"description":"When the change succeeded or failed. Null while the change is pending.","example":"2026-11-18T15:29:10.123Z","format":"date-time","type":["string","null"]},"id":{"description":"The change's ID.","type":"string"},"started_at":{"description":"When the change started.","example":"2026-11-18T15:28:55.554Z","format":"date-time","type":"string"},"status":{"description":"Whether the change is still being applied, succeeded, or failed.","enum":["Pending","Succeeded","Failed"],"type":"string"}},"required":["id","status","actor","started_at","finished_at","changes"],"type":"object"},"Error":{"properties":{"error":{"type":"string"},"field_errors":{"description":"Field validation errors, with at most one entry per field. Omitted when there are none.","items":{"properties":{"error":{"type":"string"},"field":{"type":"string"}},"required":["field","error"],"type":"object"},"type":"array"}},"required":["error"],"type":"object"}},"securitySchemes":{"apiKey":{"description":"An active organization API key, prefixed with pdb_key_.","scheme":"bearer","type":"http"}}},"info":{"description":"All JSON timestamps use RFC 3339 in UTC with exactly three fractional digits (millisecond precision).\n\n## API versioning\n\nPin requests to version 1 with `?api_version=1`. Requests without the parameter\ncurrently use version 1. Unsupported versions return HTTP 400.\n","title":"ParadeDB Cloud API","version":"0.1.0"},"openapi":"3.1.0","paths":{"/openapi.json":{"get":{"operationId":"getOpenApiJson","responses":{"200":{"content":{"application/json":{"schema":{"type":"object"}}},"description":"The OpenAPI specification for the ParadeDB Cloud API."},"400":{"$ref":"#/components/responses/BadRequest"}},"security":[],"summary":"Retrieve the OpenAPI specification as JSON"},"parameters":[{"$ref":"#/components/parameters/ApiVersion"}]},"/openapi.yaml":{"get":{"operationId":"getOpenApi","responses":{"200":{"content":{"application/yaml":{"schema":{"type":"object"}}},"description":"The OpenAPI specification for the ParadeDB Cloud API."},"400":{"$ref":"#/components/responses/BadRequest"}},"security":[],"summary":"Retrieve the OpenAPI specification"},"parameters":[{"$ref":"#/components/parameters/ApiVersion"}]},"/organizations/{org_id}":{"get":{"operationId":"getOrganization","parameters":[{"description":"The organization's ID.","in":"path","name":"org_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"id":{"description":"The organization's ID.","type":"string"},"name":{"type":"string"}},"required":["id","name"],"type":"object"}}},"description":"The organization."},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/InternalServerError"}},"security":[{"apiKey":[]}],"summary":"Retrieve an organization"},"parameters":[{"$ref":"#/components/parameters/ApiVersion"}]},"/organizations/{org_id}/clusters":{"get":{"description":"Fetch all clusters in the organization, ordered newest first.","operationId":"listClusters","parameters":[{"description":"The organization's ID.","in":"path","name":"org_id","required":true,"schema":{"type":"string"}},{"description":"The maximum number of clusters to return.","in":"query","name":"limit","schema":{"default":100,"maximum":1000,"minimum":1,"type":"integer"}},{"description":"The opaque next_cursor value from a previous response.","in":"query","name":"cursor","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Cluster"},"type":"array"},"next_cursor":{"description":"Pass this as cursor to fetch the next page. Null when there are no more results.","type":["string","null"]}},"required":["data","next_cursor"],"type":"object"}}},"description":"A page of clusters."},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"500":{"$ref":"#/components/responses/InternalServerError"}},"security":[{"apiKey":[]}],"summary":"List clusters"},"parameters":[{"$ref":"#/components/parameters/ApiVersion"}],"post":{"description":"Creates a ParadeDB cluster and starts deployment. Use the returned `id` and `change_id`\nto wait for the cluster to become available with `GET /organizations/{org_id}/clusters/{cluster_id}/changes/{change_id}`.\n","operationId":"createCluster","parameters":[{"description":"The organization's ID.","in":"path","name":"org_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"instance_type":{"description":"The instance type to use for the cluster as described by the instance-types endpoint.","example":"PDB-2","type":"string"},"instances":{"description":"The number of database instances, including the primary.","maximum":3,"minimum":1,"type":"integer"},"name":{"description":"A unique name within the organization.","example":"my-cluster","maxLength":25,"minLength":2,"pattern":"^[a-z][a-z0-9-]*[a-z0-9]$","type":"string"},"password":{"description":"The password for the paradedb database user.","minLength":16,"type":"string","writeOnly":true},"public_access_enabled":{"description":"Whether to enable access to the DB over the internet.","type":"boolean"},"region":{"description":"The region to deploy the cluster in, as described by the regions endpoint.","example":"us-west-2","type":"string"},"storage_size_gb":{"description":"Data storage per instance in GB.","example":10,"maximum":8192,"minimum":1,"type":"integer"}},"required":["name","password","region","instance_type","storage_size_gb","instances","public_access_enabled"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"change_id":{"description":"The creation change's ID.","type":"string"},"id":{"description":"The new cluster's ID.","type":"string"}},"required":["id","change_id"],"type":"object"}}},"description":"The cluster was created."},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A cluster with this name already exists in the organization."},"500":{"$ref":"#/components/responses/InternalServerError"}},"security":[{"apiKey":[]}],"summary":"Create a cluster"}},"/organizations/{org_id}/clusters/{cluster_id}":{"delete":{"description":"Deletes a cluster","operationId":"deleteCluster","parameters":[{"description":"The organization's ID.","in":"path","name":"org_id","required":true,"schema":{"type":"string"}},{"description":"The cluster's ID.","in":"path","name":"cluster_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The cluster has been deleted."},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/InternalServerError"}},"security":[{"apiKey":[]}],"summary":"Delete a cluster"},"get":{"description":"Fetch a cluster's configuration","operationId":"getCluster","parameters":[{"description":"The organization's ID.","in":"path","name":"org_id","required":true,"schema":{"type":"string"}},{"description":"The cluster's ID.","in":"path","name":"cluster_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Cluster"}}},"description":"The cluster."},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/InternalServerError"}},"security":[{"apiKey":[]}],"summary":"Retrieve a cluster"},"parameters":[{"$ref":"#/components/parameters/ApiVersion"}]},"/organizations/{org_id}/clusters/{cluster_id}/backups":{"get":{"description":"Lists cluster backups, newest first.","operationId":"listClusterBackups","parameters":[{"description":"The organization's ID.","in":"path","name":"org_id","required":true,"schema":{"type":"string"}},{"description":"The cluster's ID.","in":"path","name":"cluster_id","required":true,"schema":{"type":"string"}},{"description":"The maximum number of backups to return.","in":"query","name":"limit","schema":{"default":100,"maximum":1000,"minimum":1,"type":"integer"}},{"description":"The opaque next_cursor value from a previous response.","in":"query","name":"cursor","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Backup"},"type":"array"},"next_cursor":{"description":"Pass this as cursor to fetch the next page. Null when there are no more results.","type":["string","null"]}},"required":["data","next_cursor"],"type":"object"}}},"description":"A page of cluster backups."},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/InternalServerError"}},"security":[{"apiKey":[]}],"summary":"List cluster backups"},"post":{"description":"Creates a manual backup for the cluster. Use the backup list to follow its status.","operationId":"createClusterBackup","parameters":[{"description":"The organization's ID.","in":"path","name":"org_id","required":true,"schema":{"type":"string"}},{"description":"The cluster's ID.","in":"path","name":"cluster_id","required":true,"schema":{"type":"string"}}],"responses":{"202":{"description":"Backup creation has started. The response body is empty."},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A manual backup is already in progress, or the cluster has a pending or failed configuration change."},"500":{"$ref":"#/components/responses/InternalServerError"}},"security":[{"apiKey":[]}],"summary":"Create a manual backup"}},"/organizations/{org_id}/clusters/{cluster_id}/changes":{"get":{"description":"Fetch changes for a cluster, including its creation, ordered newest first.","operationId":"listClusterChanges","parameters":[{"description":"The organization's ID.","in":"path","name":"org_id","required":true,"schema":{"type":"string"}},{"description":"The cluster's ID.","in":"path","name":"cluster_id","required":true,"schema":{"type":"string"}},{"description":"The maximum number of changes to return.","in":"query","name":"limit","schema":{"default":100,"maximum":1000,"minimum":1,"type":"integer"}},{"description":"The opaque next_cursor value from a previous response.","in":"query","name":"cursor","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/ClusterChange"},"type":"array"},"next_cursor":{"description":"Pass this as cursor to fetch the next page. Null when there are no more results.","type":["string","null"]}},"required":["data","next_cursor"],"type":"object"}}},"description":"A page of cluster changes."},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/InternalServerError"}},"security":[{"apiKey":[]}],"summary":"List cluster changes"},"parameters":[{"$ref":"#/components/parameters/ApiVersion"}],"post":{"description":"Applies one category of change to the cluster at a time.","operationId":"createClusterChange","parameters":[{"description":"The organization's ID.","in":"path","name":"org_id","required":true,"schema":{"type":"string"}},{"description":"The cluster's ID.","in":"path","name":"cluster_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"examples":{"addInboundPrivateLink":{"summary":"Allow an inbound PrivateLink endpoint","value":{"allowed_private_link_endpoints":{"add":["vpce-0123456789abcdef0"]}}},"addOutboundPrivateLink":{"summary":"Add outbound PrivateLink connections","value":{"outbound_private_links":{"add":[{"service_name":"com.amazonaws.vpce.us-east-1.vpce-svc-0123456789abcdef0"}]}}},"backupSettings":{"summary":"Change backup retention and schedule","value":{"backup_retention_days":14,"backup_schedule":{"frequency":"Weekly","scheduled_day":1,"scheduled_time":"03:30"}}},"compute":{"summary":"Change instance count and type","value":{"instance_type":"PDB-4","instances":2}},"postgresParameters":{"summary":"Set and reset PostgreSQL parameters","value":{"postgres_parameters":{"max_connections":"200","wal_receiver_timeout":null,"work_mem":"32MB"}}},"publicNetworking":{"summary":"Change public access and allowed CIDRs","value":{"allowed_cidrs":["203.0.113.0/24"],"public_access_enabled":true}},"removeInboundPrivateLink":{"summary":"Revoke access for an inbound PrivateLink endpoint","value":{"allowed_private_link_endpoints":{"remove":["vpce-0123456789abcdef0"]}}},"removeOutboundPrivateLink":{"summary":"Remove outbound PrivateLink connections","value":{"outbound_private_links":{"remove":["a1234567890z"]}}},"storage":{"summary":"Change storage size and performance","value":{"storage_iops":12000,"storage_size_gb":100,"storage_throughput_mbps":1000}},"upgrade":{"summary":"Upgrade ParadeDB","value":{"paradedb_version":"Latest"}}},"schema":{"additionalProperties":false,"anyOf":[{"required":["instances"]},{"required":["instance_type"]},{"required":["postgres_parameters"]},{"required":["paradedb_version"]},{"required":["storage_size_gb"]},{"required":["storage_iops"]},{"required":["storage_throughput_mbps"]},{"required":["backup_retention_days"]},{"required":["backup_schedule"]},{"required":["public_access_enabled"]},{"required":["allowed_cidrs"]},{"required":["allowed_private_link_endpoints"]},{"required":["outbound_private_links"]}],"properties":{"allowed_cidrs":{"description":"Replaces the public IPv4 CIDR allowlist. An empty array clears it.","example":["203.0.113.0/24"],"items":{"type":"string"},"type":"array"},"allowed_private_link_endpoints":{"additionalProperties":false,"description":"Add or remove the listed inbound VPC endpoint IDs. Endpoints being added must connect to the cluster's PrivateLink service.","maxProperties":1,"minProperties":1,"properties":{"add":{"items":{"pattern":"^vpce-[0-9a-f]{1,32}$","type":"string"},"minItems":1,"type":"array"},"remove":{"items":{"pattern":"^vpce-[0-9a-f]{1,32}$","type":"string"},"minItems":1,"type":"array"}},"type":"object"},"backup_retention_days":{"description":"Backup retention in days. Weekly backups require at least 7 days.","maximum":30,"minimum":1,"type":"integer"},"backup_schedule":{"$ref":"#/components/schemas/BackupSchedule","description":"Replaces the backup schedule. Times are in UTC."},"instance_type":{"description":"The instance type to use, as described by the instance-types endpoint.","example":"PDB-4","type":"string"},"instances":{"description":"The number of database instances, including the primary.","maximum":3,"minimum":1,"type":"integer"},"outbound_private_links":{"additionalProperties":false,"description":"Adds or removes outbound PrivateLink connections.","properties":{"add":{"default":[],"description":"Submitting a service again retries incomplete or failed endpoint setup.","items":{"additionalProperties":false,"properties":{"service_name":{"description":"An endpoint service name in the cluster's AWS region.","type":"string"}},"required":["service_name"],"type":"object"},"type":"array"},"remove":{"default":[],"description":"The public IDs of the outbound private links to remove. Submit an ID again to retry incomplete removal.","items":{"type":"string"},"type":"array"}},"type":"object"},"paradedb_version":{"description":"Upgrade to the latest available ParadeDB version.","enum":["Latest"],"type":"string"},"postgres_parameters":{"description":"A map of Postgres parameter values to be applied to the cluster. Values must be strings, or null to reset a parameter to its default.","minProperties":1,"type":"object"},"public_access_enabled":{"description":"Whether public access is enabled. Omitted settings keep their current values.","type":"boolean"},"storage_iops":{"description":"Storage IOPS per instance, limited by volume size.","maximum":80000,"minimum":3000,"type":"integer"},"storage_size_gb":{"description":"Storage per instance in GB. Can only be increased.","minimum":1,"type":"integer"},"storage_throughput_mbps":{"description":"Storage throughput per instance in MiB/s, limited by provisioned IOPS.","maximum":2000,"minimum":125,"type":"integer"}},"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"properties":{"id":{"description":"The new change's ID.","type":"string"}},"required":["id"],"type":"object"}}},"description":"The change was created and queued for application."},"204":{"description":"Outbound PrivateLink setup or removal was retried without creating a new cluster change."},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The cluster is being created, has a pending change, or has a failed change that requires support."},"500":{"$ref":"#/components/responses/InternalServerError"}},"security":[{"apiKey":[]}],"summary":"Change cluster configuration"}},"/organizations/{org_id}/clusters/{cluster_id}/changes/{change_id}":{"get":{"operationId":"getClusterChange","parameters":[{"description":"The organization's ID.","in":"path","name":"org_id","required":true,"schema":{"type":"string"}},{"description":"The cluster's ID.","in":"path","name":"cluster_id","required":true,"schema":{"type":"string"}},{"description":"The change's ID.","in":"path","name":"change_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClusterChange"}}},"description":"The cluster change."},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/InternalServerError"}},"security":[{"apiKey":[]}],"summary":"Retrieve a cluster change"},"parameters":[{"$ref":"#/components/parameters/ApiVersion"}]},"/organizations/{org_id}/clusters/{cluster_id}/indexes":{"get":{"description":"Fetch the latest observed ParadeDB indexes, ordered by database, schema, table, and index name.","operationId":"listClusterIndexes","parameters":[{"description":"The organization's ID.","in":"path","name":"org_id","required":true,"schema":{"type":"string"}},{"description":"The cluster's ID.","in":"path","name":"cluster_id","required":true,"schema":{"type":"string"}},{"description":"The maximum number of indexes to return.","in":"query","name":"limit","schema":{"default":100,"maximum":1000,"minimum":1,"type":"integer"}},{"description":"The opaque next_cursor value from a previous response.","in":"query","name":"cursor","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"properties":{"database":{"type":"string"},"is_valid":{"description":"Whether PostgreSQL considers the index usable for queries. A concurrent index build can temporarily report false.","type":"boolean"},"name":{"type":"string"},"schema":{"type":"string"},"table":{"type":"string"}},"required":["database","schema","table","name","is_valid"],"type":"object"},"type":"array"},"next_cursor":{"description":"Pass this as cursor for the next page. Null on the last page.","type":["string","null"]}},"required":["data","next_cursor"],"type":"object"}}},"description":"A page of indexes. The page is empty if the cluster has not reported any indexes yet."},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/InternalServerError"}},"security":[{"apiKey":[]}],"summary":"List ParadeDB indexes"},"parameters":[{"$ref":"#/components/parameters/ApiVersion"}]},"/organizations/{org_id}/clusters/{cluster_id}/networking":{"get":{"description":"Fetch the cluster's connection hostnames, access settings, and PrivateLink connections.","operationId":"getClusterNetworking","parameters":[{"description":"The organization's ID.","in":"path","name":"org_id","required":true,"schema":{"type":"string"}},{"description":"The cluster's ID.","in":"path","name":"cluster_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"allowed_cidrs":{"items":{"type":"string"},"type":"array"},"allowed_private_link_endpoints":{"description":"Registered inbound AWS VPC endpoint IDs.","items":{"type":"string"},"type":"array"},"hostnames":{"additionalProperties":{"format":"hostname","type":"string"},"description":"Direct and pooled read/write hostnames. Clusters with replicas also have read-only hostnames.","propertyNames":{"enum":["rw","pooler-rw","ro","pooler-ro"]},"required":["rw","pooler-rw"],"type":"object"},"inbound_private_link_service_name":{"type":"string"},"outbound_availability_zone_ids":{"items":{"type":"string"},"type":"array"},"outbound_private_links":{"description":"Outbound connections, including connections being removed.","items":{"properties":{"id":{"description":"The public ID accepted by outbound_private_links.remove.","type":"string"},"port":{"type":"integer"},"service_name":{"type":"string"},"status":{"description":"The last recorded endpoint status.","enum":["Requested","Pending","PendingAcceptance","Available","PollingStopped","Rejected","Deleting","Deleted","Failed","Expired","Unknown"],"type":"string"},"vpc_endpoint_id":{"description":"The AWS VPC endpoint ID once assigned.","type":["string","null"]}},"required":["id","service_name","port","vpc_endpoint_id","status"],"type":"object"},"type":"array"},"public_access_enabled":{"type":"boolean"},"region":{"type":"string"}},"required":["region","hostnames","public_access_enabled","allowed_cidrs","inbound_private_link_service_name","allowed_private_link_endpoints","outbound_availability_zone_ids","outbound_private_links"],"type":"object"}}},"description":"The cluster's current networking details."},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/InternalServerError"}},"security":[{"apiKey":[]}],"summary":"Retrieve cluster networking"},"parameters":[{"$ref":"#/components/parameters/ApiVersion"}]},"/organizations/{org_id}/clusters/{cluster_id}/postgres-parameters":{"get":{"description":"Fetch the cluster's configurable PostgreSQL parameters in a dictionary keyed by parameter name.","operationId":"getClusterPostgresParameters","parameters":[{"description":"The organization's ID.","in":"path","name":"org_id","required":true,"schema":{"type":"string"}},{"description":"The cluster's ID.","in":"path","name":"cluster_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":{"properties":{"changed_at":{"description":"When the current value was explicitly set. Null for parameters using their default, including after a reset.","format":"date-time","type":["string","null"]},"changed_by":{"description":"Who set the current parameter value. Null when no actor is recorded.","oneOf":[{"$ref":"#/components/schemas/Actor"},{"type":"null"}]},"default_value":{"description":"The value used when the override is reset for this instance type, including its unit where applicable.","type":"string"},"description":{"type":"string"},"requires_restart":{"description":"Whether changing this parameter requires a PostgreSQL restart.","type":"boolean"},"value":{"description":"The configured value, including its unit where applicable.","type":"string"}},"required":["description","value","default_value","changed_by","changed_at","requires_restart"],"type":"object"},"example":{"work_mem":{"changed_at":"2026-11-18T15:28:55.554Z","changed_by":{"kind":"ApiKey","name":"my-api-key"},"default_value":"16MB","description":"Memory per sort or hash operation, before spilling to disk.","requires_restart":false,"value":"32MB"}},"type":"object"}}},"description":"Parameter details keyed by PostgreSQL parameter name."},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/InternalServerError"}},"security":[{"apiKey":[]}],"summary":"Retrieve PostgreSQL parameters"},"parameters":[{"$ref":"#/components/parameters/ApiVersion"}]},"/organizations/{org_id}/clusters/{cluster_id}/reset-password":{"post":{"operationId":"resetClusterPassword","parameters":[{"description":"The organization's ID.","in":"path","name":"org_id","required":true,"schema":{"type":"string"}},{"description":"The cluster's ID.","in":"path","name":"cluster_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"password":{"description":"The new password. It must contain no null characters.","minLength":16,"type":"string","writeOnly":true}},"required":["password"],"type":"object"}}},"required":true},"responses":{"200":{"description":"The password reset was submitted. The new password may take a few minutes to become active."},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/InternalServerError"}},"security":[{"apiKey":[]}],"summary":"Reset the password for the paradedb database user"}},"/organizations/{org_id}/clusters/{cluster_id}/restore":{"post":{"description":"Replaces the cluster's current data with the selected backup. The cluster is offline during the restore. Use the returned change ID to follow its progress.","operationId":"restoreCluster","parameters":[{"description":"The organization's ID.","in":"path","name":"org_id","required":true,"schema":{"type":"string"}},{"description":"The cluster's ID.","in":"path","name":"cluster_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"backup_id":{"description":"ID of a completed backup from this cluster's backup list. The PostgreSQL major version must match the cluster.","minLength":1,"type":"string"}},"required":["backup_id"],"type":"object"}}},"required":true},"responses":{"202":{"content":{"application/json":{"schema":{"properties":{"change_id":{"description":"The restore change's public ID.","type":"string"}},"required":["change_id"],"type":"object"}}},"description":"Restore accepted. Retrieve the cluster change to check its status."},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The cluster or backup could not be found."},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A pending or failed cluster change prevents the restore, or more than one backup matches the supplied ID."},"500":{"$ref":"#/components/responses/InternalServerError"}},"security":[{"apiKey":[]}],"summary":"Restore a cluster from a backup"}},"/organizations/{org_id}/clusters/{cluster_id}/support-mode":{"post":{"operationId":"setClusterSupportMode","parameters":[{"description":"The organization's ID.","in":"path","name":"org_id","required":true,"schema":{"type":"string"}},{"description":"The cluster's ID.","in":"path","name":"cluster_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"enabled":{"description":"Enable support mode to allow troubleshooting access for ParadeDB engineers.","type":"boolean"}},"required":["enabled"],"type":"object"}}},"required":true},"responses":{"200":{"description":"The support mode setting was saved."},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/InternalServerError"}},"security":[{"apiKey":[]}],"summary":"Set approval for ParadeDB support access"}},"/organizations/{org_id}/instance-types":{"get":{"description":"Instance types are returned from smallest to largest (PDB-TEST, PDB-2, PDB-4, PDB-8, PDB-16). PDB-TEST is available only outside production.","operationId":"listInstanceTypes","parameters":[{"description":"The organization's ID.","in":"path","name":"org_id","required":true,"schema":{"type":"string"}},{"description":"The maximum number of instance types to return.","in":"query","name":"limit","schema":{"default":100,"maximum":1000,"minimum":1,"type":"integer"}},{"description":"The opaque next_cursor value from a previous response.","in":"query","name":"cursor","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"properties":{"cpu":{"description":"The advertised number of vCPUs per instance, before system and database service reserves.","example":2,"type":"integer"},"memory_gb":{"description":"The advertised RAM per instance in GB, matching the console, before system and database service reserves.","example":16,"type":"integer"},"name":{"example":"PDB-2","type":"string"}},"required":["name","cpu","memory_gb"],"type":"object"},"type":"array"},"next_cursor":{"description":"Pass this as cursor to fetch the next page. Null when there are no more results.","type":["string","null"]}},"required":["data","next_cursor"],"type":"object"}}},"description":"A page of available instance types."},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"500":{"$ref":"#/components/responses/InternalServerError"}},"security":[{"apiKey":[]}],"summary":"List instance types available to an organization"},"parameters":[{"$ref":"#/components/parameters/ApiVersion"}]},"/organizations/{org_id}/members":{"get":{"description":"Returns active members and outstanding invitations, ordered newest first.","operationId":"listOrganizationMembers","parameters":[{"description":"The organization's ID.","in":"path","name":"org_id","required":true,"schema":{"type":"string"}},{"description":"The maximum number of members to return.","in":"query","name":"limit","schema":{"default":100,"maximum":1000,"minimum":1,"type":"integer"}},{"description":"The opaque next_cursor value from a previous response.","in":"query","name":"cursor","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"properties":{"created_at":{"description":"When the member was added or invited to the organization.","example":"2026-11-10T15:28:55.554Z","format":"date-time","type":"string"},"email":{"type":"string"},"id":{"description":"The member's ID.","type":"string"},"status":{"enum":["Active","Invited"],"type":"string"}},"required":["id","email","status","created_at"],"type":"object"},"type":"array"},"next_cursor":{"description":"Pass this as cursor to fetch the next page. Null when there are no more results.","type":["string","null"]}},"required":["data","next_cursor"],"type":"object"}}},"description":"A page of organization members."},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"500":{"$ref":"#/components/responses/InternalServerError"}},"security":[{"apiKey":[]}],"summary":"List organization members"},"parameters":[{"$ref":"#/components/parameters/ApiVersion"}],"post":{"description":"Invites a member by email. The recipient must accept the invitation to access the organization.","operationId":"inviteOrganizationMember","parameters":[{"description":"The organization's ID.","in":"path","name":"org_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"email":{"description":"The email address to invite.","example":"alice@example.com","type":"string"}},"required":["email"],"type":"object"}}},"required":true},"responses":{"200":{"description":"The invitation request was accepted."},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/InternalServerError"}},"security":[{"apiKey":[]}],"summary":"Invite a member to an organization"}},"/organizations/{org_id}/members/{member_id}":{"delete":{"description":"Removes a member or cancels an outstanding invitation.","operationId":"removeOrganizationMember","parameters":[{"description":"The organization's ID.","in":"path","name":"org_id","required":true,"schema":{"type":"string"}},{"description":"The member's ID.","in":"path","name":"member_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The member was removed."},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/InternalServerError"}},"security":[{"apiKey":[]}],"summary":"Remove an organization member"},"parameters":[{"$ref":"#/components/parameters/ApiVersion"}]},"/organizations/{org_id}/regions":{"get":{"description":"Regions are returned in alphabetical order by name.","operationId":"listRegions","parameters":[{"description":"The organization's ID.","in":"path","name":"org_id","required":true,"schema":{"type":"string"}},{"description":"The maximum number of regions to return.","in":"query","name":"limit","schema":{"default":100,"maximum":1000,"minimum":1,"type":"integer"}},{"description":"The opaque next_cursor value from a previous response.","in":"query","name":"cursor","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"data":{"items":{"properties":{"name":{"example":"us-west-2","type":"string"}},"required":["name"],"type":"object"},"type":"array"},"next_cursor":{"description":"Pass this as cursor to fetch the next page. Null when there are no more results.","type":["string","null"]}},"required":["data","next_cursor"],"type":"object"}}},"description":"A page of available regions."},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"500":{"$ref":"#/components/responses/InternalServerError"}},"security":[{"apiKey":[]}],"summary":"List regions available to an organization"},"parameters":[{"$ref":"#/components/parameters/ApiVersion"}]},"/whoami":{"get":{"operationId":"whoami","responses":{"200":{"content":{"application/json":{"schema":{"properties":{"name":{"description":"The API key's name.","type":"string"},"organization_id":{"description":"The public ID to use as org_id in organization requests.","type":"string"}},"required":["name","organization_id"],"type":"object"}}},"description":"The API key's name and organization."},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"500":{"$ref":"#/components/responses/InternalServerError"}},"security":[{"apiKey":[]}],"summary":"Identify the authenticated API key"},"parameters":[{"$ref":"#/components/parameters/ApiVersion"}]}},"servers":[{"url":"https://api.paradedb.com"}]}