The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
cleanup
Copple381f7db645e1
diff --git a/spec/api_v0_openapi.json b/spec/api_v0_openapi.jsonindex 979c50bbf92..d6b8acea48a 100644--- a/spec/api_v0_openapi.json+++ b/spec/api_v0_openapi.json@@ -1,4371 +1,6 @@{"openapi": "3.0.0","paths": {- "/platform/login": {- "get": {- "operationId": "LoginController_redirectToDashboardHomepage",- "summary": "Redirects to dashboard homepage",- "parameters": [],- "responses": { "200": { "description": "" } }- }- },- "/platform/notifications": {- "get": {- "operationId": "NotificationsController_getNotifications",- "summary": "Get notifications",- "parameters": [],- "responses": {- "200": {- "description": "",- "content": {- "application/json": {- "schema": {- "type": "array",- "items": { "$ref": "#/components/schemas/Notification" }- }- }- }- },- "500": { "description": "Failed to retrieve notifications" }- },- "security": [{ "bearer": [] }]- },- "patch": {- "operationId": "NotificationsController_updateNotifications",- "summary": "Update notifications",- "parameters": [],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/UpdateNotificationsBody"- }- }- }- },- "responses": {- "200": {- "description": "",- "content": {- "application/json": {- "schema": {- "type": "array",- "items": { "$ref": "#/components/schemas/Notification" }- }- }- }- },- "500": { "description": "Failed to update notifications" }- },- "security": [{ "bearer": [] }]- }- },- "/platform/feedback/send": {- "post": {- "operationId": "SendFeedbackController_sendFeedback",- "summary": "Send feedback",- "parameters": [],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": { "$ref": "#/components/schemas/SendFeedbackBody" }- }- }- },- "responses": {- "201": { "description": "" },- "500": { "description": "Failed to send feedback" }- },- "security": [{ "bearer": [] }]- }- },- "/platform/users/{gotrue_id}/roles/{role_id}": {- "post": {- "operationId": "SubjectRoleController_assignRoleToSubject",- "summary": "Assigns the given role to the given subject",- "parameters": [- {- "name": "gotrue_id",- "required": true,- "in": "path",- "schema": { "type": "string" }- },- {- "name": "role_id",- "required": true,- "in": "path",- "schema": { "type": "string" }- }- ],- "responses": {- "201": {- "description": "",- "content": {- "application/json": {- "schema": { "$ref": "#/components/schemas/SubjectRoleParams" }- }- }- },- "500": {- "description": "Failed to assign the given role to the given subject"- }- },- "security": [{ "bearer": [] }]- },- "delete": {- "operationId": "SubjectRoleController_unassignRoleFromSubject",- "summary": "Unassigns the given role from the given subject",- "parameters": [- {- "name": "gotrue_id",- "required": true,- "in": "path",- "schema": { "type": "string" }- },- {- "name": "role_id",- "required": true,- "in": "path",- "schema": { "type": "string" }- }- ],- "responses": {- "200": {- "description": "",- "content": {- "application/json": {- "schema": { "$ref": "#/components/schemas/SubjectRoleParams" }- }- }- },- "500": {- "description": "Failed to unassign the given role from the given subject"- }- },- "security": [{ "bearer": [] }]- }- },- "/platform/auth/{ref}/config": {- "get": {- "operationId": "GoTrueConfigController_getGoTrueConfig",- "summary": "Gets GoTrue config",- "parameters": [- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- }- ],- "responses": {- "200": {- "description": "",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/GetGoTrueConfigResponse"- }- }- }- },- "500": { "description": "Failed to retrieve GoTrue config" }- },- "security": [{ "bearer": [] }]- },- "patch": {- "operationId": "GoTrueConfigController_updateGoTrueConfig",- "summary": "Updates GoTrue config",- "parameters": [- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- }- ],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/UpdateGoTrueConfigBody"- }- }- }- },- "responses": {- "200": {- "description": "",- "content": {- "application/json": {- "schema": { "$ref": "#/components/schemas/GoTrueConfig" }- }- }- },- "500": { "description": "Failed to update GoTrue config" }- },- "security": [{ "bearer": [] }]- }- },- "/platform/auth/{ref}/invite": {- "post": {- "operationId": "InviteController_sendInvite",- "summary": "Sends an invite to the given email",- "parameters": [- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- }- ],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": { "$ref": "#/components/schemas/UserBody" }- }- }- },- "responses": {- "201": {- "description": "",- "content": {- "application/json": { "schema": { "type": "object" } }- }- },- "403": { "description": "" },- "500": {- "description": "Failed to send an invite to the given email"- }- },- "security": [{ "bearer": [] }]- }- },- "/platform/auth/{ref}/magiclink": {- "post": {- "operationId": "MagicLinkController_sendMagicLink",- "summary": "Sends a magic link to the given email",- "parameters": [- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- }- ],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": { "$ref": "#/components/schemas/UserBody" }- }- }- },- "responses": {- "201": {- "description": "",- "content": {- "application/json": { "schema": { "type": "object" } }- }- },- "403": { "description": "" },- "500": {- "description": "Failed to send a magic link to the given email"- }- },- "security": [{ "bearer": [] }]- }- },- "/platform/auth/{ref}/otp": {- "post": {- "operationId": "OtpController_sendOtp",- "summary": "Sends an OTP to the given phone number",- "parameters": [- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- }- ],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": { "$ref": "#/components/schemas/UserBody" }- }- }- },- "responses": {- "201": {- "description": "",- "content": {- "application/json": { "schema": { "type": "object" } }- }- },- "403": { "description": "" },- "500": {- "description": "Failed to send an OTP to the given phone number"- }- },- "security": [{ "bearer": [] }]- }- },- "/platform/auth/{ref}/recover": {- "post": {- "operationId": "RecoverController_sendRecover",- "summary": "Sends a recovery email to the given email",- "parameters": [- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- }- ],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": { "$ref": "#/components/schemas/UserBody" }- }- }- },- "responses": {- "201": {- "description": "",- "content": {- "application/json": { "schema": { "type": "object" } }- }- },- "403": { "description": "" },- "500": {- "description": "Failed to send a recovery email to the given email"- }- },- "security": [{ "bearer": [] }]- }- },- "/platform/auth/{ref}/templates/{template}": {- "get": {- "operationId": "TemplateController_getTemplate",- "summary": "Gets GoTrue template",- "parameters": [- {- "name": "ref",- "required": true,- "in": "path",- "schema": { "type": "string" }- },- {- "name": "template",- "required": true,- "in": "path",- "schema": {- "enum": [- "confirmation",- "email-change",- "invite",- "magic-link",- "recovery"- ],- "type": "string"- }- }- ],- "responses": {- "200": {- "description": "",- "content": {- "application/json": { "schema": { "type": "string" } }- }- },- "500": { "description": "Failed to retrieve GoTrue template" }- }- }- },- "/platform/auth/{ref}/users": {- "get": {- "operationId": "UsersController_getUsers",- "summary": "Gets users",- "parameters": [- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- },- {- "name": "keywords",- "required": true,- "in": "query",- "schema": { "type": "string" }- },- {- "name": "limit",- "required": true,- "in": "query",- "schema": { "type": "string" }- },- {- "name": "offset",- "required": true,- "in": "query",- "schema": { "type": "string" }- }- ],- "responses": {- "200": { "description": "" },- "403": { "description": "" },- "500": { "description": "Failed to retrieve users" }- },- "security": [{ "bearer": [] }]- },- "delete": {- "operationId": "UsersController_deleteUser",- "summary": "Delete user with given ID",- "parameters": [- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- }- ],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": { "$ref": "#/components/schemas/UserBody" }- }- }- },- "responses": {- "200": {- "description": "",- "content": {- "application/json": { "schema": { "type": "object" } }- }- },- "403": { "description": "" },- "500": { "description": "Failed to delete user" }- },- "security": [{ "bearer": [] }]- }- },- "/platform/database/{ref}/backups": {- "get": {- "operationId": "BackupsController_getBackups",- "summary": "Gets project backups",- "parameters": [- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- }- ],- "responses": {- "200": {- "description": "",- "content": {- "application/json": {- "schema": { "$ref": "#/components/schemas/BackupsResponse" }- }- }- },- "500": { "description": "Failed to get project backups" }- },- "security": [{ "bearer": [] }]- }- },- "/platform/database/{ref}/backups/download": {- "post": {- "operationId": "BackupsController_downloadBackup",- "summary": "Download project backup",- "parameters": [- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- }- ],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": { "$ref": "#/components/schemas/DownloadBackupBody" }- }- }- },- "responses": {- "201": {- "description": "",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/DownloadBackupResponse"- }- }- }- },- "500": { "description": "Failed to download project backup" }- },- "security": [{ "bearer": [] }]- }- },- "/platform/database/{ref}/backups/restore": {- "post": {- "operationId": "BackupsController_restoreBackup",- "summary": "Restore project backup",- "parameters": [- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- }- ],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": { "$ref": "#/components/schemas/RestoreBackupBody" }- }- }- },- "responses": {- "201": {- "description": "",- "content": {- "application/json": { "schema": { "type": "object" } }- }- },- "500": { "description": "Failed to restore project backup" }- },- "security": [{ "bearer": [] }]- }- },- "/platform/database/{ref}/backups/pitr": {- "post": {- "operationId": "BackupsController_restorePointInTimeBackup",- "summary": "Restore project to a previous point in time",- "parameters": [- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- }- ],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/PointInTimeRestoreBody"- }- }- }- },- "responses": {- "201": {- "description": "",- "content": {- "application/json": { "schema": { "type": "object" } }- }- },- "500": {- "description": "Failed to restore project to a previous point in time"- }- },- "security": [{ "bearer": [] }]- }- },- "/platform/database/{ref}/hook-logs": {- "get": {- "operationId": "HooksController_getHookLogs",- "summary": "Gets hook logs with the given ID",- "parameters": [- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- },- {- "name": "id",- "required": true,- "in": "query",- "schema": { "type": "number" }- },- {- "name": "limit",- "required": false,- "in": "query",- "schema": { "type": "string" }- },- {- "name": "offset",- "required": false,- "in": "query",- "schema": { "type": "string" }- },- {- "name": "x-connection-encrypted",- "required": true,- "in": "header",- "schema": { "type": "string" }- }- ],- "responses": {- "200": {- "description": "",- "content": {- "application/json": { "schema": { "type": "object" } }- }- },- "403": { "description": "" },- "500": { "description": "Failed to get hook logs with the given ID" }- },- "security": [{ "bearer": [] }]- }- },- "/platform/database/{ref}/hook-enable": {- "post": {- "operationId": "HooksController_enableHooks",- "summary": "Enables hooks on the project",- "parameters": [- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- },- {- "name": "x-connection-encrypted",- "required": true,- "in": "header",- "schema": { "type": "string" }- }- ],- "responses": {- "201": {- "description": "",- "content": {- "application/json": { "schema": { "type": "object" } }- }- },- "403": { "description": "" },- "500": { "description": "Failed to enable hooks on the project" }- },- "security": [{ "bearer": [] }]- }- },- "/platform/organizations": {- "get": {- "operationId": "OrganizationsController_getOrganizations",- "summary": "Gets user's organizations",- "parameters": [],- "responses": {- "200": {- "description": "",- "content": {- "application/json": {- "schema": {- "type": "array",- "items": { "$ref": "#/components/schemas/Organization" }- }- }- }- },- "500": { "description": "Failed to retrieve user's organizations" }- },- "security": [{ "bearer": [] }]- },- "post": {- "operationId": "OrganizationsController_createOrganization",- "summary": "Creates organization",- "parameters": [],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/CreateOrganizationBody"- }- }- }- },- "responses": {- "201": {- "description": "",- "content": {- "application/json": {- "schema": { "$ref": "#/components/schemas/Organization" }- }- }- },- "500": { "description": "Failed to create organization" }- },- "security": [{ "bearer": [] }]- }- },- "/platform/organizations/{slug}": {- "patch": {- "operationId": "OrganizationSlugController_updateOrganization",- "summary": "Updates organization",- "parameters": [- {- "name": "slug",- "required": true,- "in": "path",- "description": "Organization slug",- "schema": { "type": "string" }- }- ],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/UpdateOrganizationBody"- }- }- }- },- "responses": {- "200": {- "description": "",- "content": {- "application/json": {- "schema": { "$ref": "#/components/schemas/Organization" }- }- }- },- "500": { "description": "Failed to update organization" }- },- "security": [{ "bearer": [] }]- },- "delete": {- "operationId": "OrganizationSlugController_deleteOrganization",- "summary": "Deletes organization",- "parameters": [- {- "name": "slug",- "required": true,- "in": "path",- "description": "Organization slug",- "schema": { "type": "string" }- }- ],- "responses": {- "200": {- "description": "",- "content": {- "application/json": {- "schema": { "$ref": "#/components/schemas/RemovedOrganization" }- }- }- },- "403": { "description": "" },- "500": { "description": "Failed to delete organization" }- },- "security": [{ "bearer": [] }]- }- },- "/platform/organizations/{slug}/customer": {- "get": {- "operationId": "CustomerController_getCustomer",- "summary": "Gets the Stripe customer",- "parameters": [- {- "name": "slug",- "required": true,- "in": "path",- "description": "Organization slug",- "schema": { "type": "string" }- }- ],- "responses": {- "200": { "description": "" },- "500": { "description": "Failed to retrieve the Stripe customer" }- },- "security": [{ "bearer": [] }]- },- "patch": {- "operationId": "CustomerController_updateCustomer",- "summary": "Updates the Stripe customer",- "parameters": [- {- "name": "slug",- "required": true,- "in": "path",- "description": "Organization slug",- "schema": { "type": "string" }- }- ],- "responses": {- "200": {- "description": "",- "content": {- "application/json": { "schema": { "type": "object" } }- }- },- "403": { "description": "" },- "500": { "description": "Failed to update the Stripe customer" }- },- "security": [{ "bearer": [] }]- }- },- "/platform/organizations/{slug}/members": {- "get": {- "operationId": "MembersController_getOrganizationMembers",- "summary": "Gets organization's members",- "parameters": [- {- "name": "slug",- "required": true,- "in": "path",- "description": "Organization slug",- "schema": { "type": "string" }- }- ],- "responses": {- "200": {- "description": "",- "content": {- "application/json": {- "schema": {- "type": "array",- "items": { "$ref": "#/components/schemas/Member" }- }- }- }- },- "500": { "description": "Failed to retrieve organization's members" }- },- "security": [{ "bearer": [] }]- }- },- "/platform/organizations/{slug}/members/add": {- "post": {- "operationId": "MembersController_addMember",- "summary": "Adds an organization member",- "parameters": [- {- "name": "slug",- "required": true,- "in": "path",- "description": "Organization slug",- "schema": { "type": "string" }- }- ],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": { "$ref": "#/components/schemas/AddMemberBody" }- }- }- },- "responses": {- "201": {- "description": "",- "content": {- "application/json": { "schema": { "type": "object" } }- }- },- "500": { "description": "Failed to add an organization member" }- },- "security": [{ "bearer": [] }]- }- },- "/platform/organizations/{slug}/members/leave": {- "post": {- "operationId": "MembersController_leaveOrganization",- "summary": "Leaves the given organization",- "parameters": [- {- "name": "slug",- "required": true,- "in": "path",- "description": "Organization slug",- "schema": { "type": "string" }- }- ],- "responses": {- "201": {- "description": "",- "content": {- "application/json": { "schema": { "type": "object" } }- }- },- "500": { "description": "Failed to leave organization" }- },- "security": [{ "bearer": [] }]- }- },- "/platform/organizations/{slug}/members/remove": {- "delete": {- "operationId": "MembersController_removeMember",- "summary": "Leaves the given organization",- "parameters": [- {- "name": "slug",- "required": true,- "in": "path",- "description": "Organization slug",- "schema": { "type": "string" }- }- ],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": { "$ref": "#/components/schemas/RemoveMemberBody" }- }- }- },- "responses": {- "200": {- "description": "",- "content": {- "application/json": { "schema": { "type": "object" } }- }- },- "500": { "description": "Failed to leave organization" }- },- "security": [{ "bearer": [] }]- }- },- "/platform/organizations/{slug}/roles": {- "get": {- "operationId": "RolesController_addMember",- "summary": "Gets the given organization's roles",- "parameters": [- {- "name": "slug",- "required": true,- "in": "path",- "description": "Organization slug",- "schema": { "type": "string" }- }- ],- "responses": {- "200": {- "description": "",- "content": {- "application/json": { "schema": { "type": "object" } }- }- },- "500": {- "description": "Failed to retrieve the organization's roles"- }- },- "security": [{ "bearer": [] }]- }- },- "/platform/organizations/{slug}/tax-ids": {- "get": {- "operationId": "TaxIdsController_getTaxIds",- "summary": "Gets the given organization's tax IDs",- "parameters": [- {- "name": "slug",- "required": true,- "in": "path",- "description": "Organization slug",- "schema": { "type": "string" }- }- ],- "responses": {- "200": {- "description": "",- "content": {- "application/json": { "schema": { "type": "object" } }- }- },- "403": { "description": "" },- "500": {- "description": "Failed to retrieve the organization's tax IDs"- }- },- "security": [{ "bearer": [] }]- },- "post": {- "operationId": "TaxIdsController_createTaxId",- "summary": "Creates a tax ID for the given organization",- "parameters": [- {- "name": "slug",- "required": true,- "in": "path",- "description": "Organization slug",- "schema": { "type": "string" }- }- ],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": { "$ref": "#/components/schemas/CreateTaxIdBody" }- }- }- },- "responses": {- "201": {- "description": "",- "content": {- "application/json": { "schema": { "type": "object" } }- }- },- "403": { "description": "" },- "500": { "description": "Failed to create the tax ID" }- },- "security": [{ "bearer": [] }]- },- "delete": {- "operationId": "TaxIdsController_deleteTaxId",- "summary": "Delete the tax ID with the given ID",- "parameters": [- {- "name": "slug",- "required": true,- "in": "path",- "description": "Organization slug",- "schema": { "type": "string" }- }- ],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": { "$ref": "#/components/schemas/DeleteTaxIdBody" }- }- }- },- "responses": {- "200": {- "description": "",- "content": {- "application/json": { "schema": { "type": "object" } }- }- },- "403": { "description": "" },- "500": { "description": "Failed to delete the tax ID" }- },- "security": [{ "bearer": [] }]- }- },- "/platform/organizations/{slug}/transfer": {- "post": {- "operationId": "TransferController_transferOrganization",- "summary": "Transfers the organization to the given member",- "parameters": [],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/TransferOrganizationBody"- }- }- }- },- "responses": {- "201": { "description": "" },- "500": { "description": "Failed to update owner" }- },- "security": [{ "bearer": [] }]- }- },- "/platform/organizations/{slug}/members/invite": {- "get": {- "operationId": "InviteController_getInvitedUsers",- "summary": "Gets invited users",- "parameters": [- {- "name": "slug",- "required": true,- "in": "path",- "description": "Organization slug",- "schema": { "type": "string" }- }- ],- "responses": {- "200": { "description": "" },- "500": { "description": "Failed to get invited users" }- },- "security": [{ "bearer": [] }]- },- "delete": {- "operationId": "InviteController_deleteInvitedUser",- "summary": "Delete invited user",- "parameters": [- {- "name": "slug",- "required": true,- "in": "path",- "description": "Organization slug",- "schema": { "type": "string" }- },- {- "name": "invited_id",- "required": true,- "in": "query",- "schema": { "type": "number" }- }- ],- "responses": {- "200": { "description": "" },- "500": { "description": "Failed to delete invited user" }- },- "security": [{ "bearer": [] }]- },- "post": {- "operationId": "InviteController_inviteUser",- "summary": "Invites user",- "parameters": [- {- "name": "slug",- "required": true,- "in": "path",- "description": "Organization slug",- "schema": { "type": "string" }- }- ],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": { "$ref": "#/components/schemas/InviteUserBody" }- }- }- },- "responses": {- "201": { "description": "" },- "500": { "description": "Failed to invite user" }- },- "security": [{ "bearer": [] }]- }- },- "/platform/organizations/{slug}/members/join": {- "get": {- "operationId": "JoinController_getInvite",- "summary": "Gets invite",- "parameters": [- {- "name": "slug",- "required": true,- "in": "path",- "description": "Organization slug",- "schema": { "type": "string" }- },- {- "name": "token",- "required": true,- "in": "query",- "schema": { "type": "string" }- }- ],- "responses": {- "200": { "description": "" },- "500": { "description": "Failed to get invite" }- },- "security": [{ "bearer": [] }]- },- "post": {- "operationId": "JoinController_joinOrganization",- "summary": "Joins organization",- "parameters": [- {- "name": "slug",- "required": true,- "in": "path",- "description": "Organization slug",- "schema": { "type": "string" }- },- {- "name": "token",- "required": true,- "in": "query",- "schema": { "type": "string" }- }- ],- "responses": {- "201": { "description": "" },- "500": { "description": "Failed to join organization" }- },- "security": [{ "bearer": [] }]- }- },- "/platform/organizations/{slug}/payments": {- "get": {- "operationId": "PaymentsController_getPaymentMethods",- "summary": "Gets Stripe payment methods for the given organization",- "parameters": [- {- "name": "slug",- "required": true,- "in": "path",- "description": "Organization slug",- "schema": { "type": "string" }- }- ],- "responses": {- "200": {- "description": "",- "content": {- "application/json": { "schema": { "type": "object" } }- }- },- "403": { "description": "" },- "500": { "description": "Failed to get Stripe payment methods" }- },- "security": [{ "bearer": [] }]- },- "delete": {- "operationId": "PaymentsController_detachPaymentMethod",- "summary": "Detach Stripe payment method with the given card ID",- "parameters": [],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/DetachPaymentMethodBody"- }- }- }- },- "responses": {- "200": {- "description": "",- "content": {- "application/json": { "schema": { "type": "object" } }- }- },- "403": { "description": "" },- "500": { "description": "Failed to detach Stripe payment method" }- },- "security": [{ "bearer": [] }]- }- },- "/platform/organizations/{slug}/payments/setup-intent": {- "post": {- "operationId": "SetupIntentController_setUpPaymentMethod",- "summary": "Sets up a payment method",- "parameters": [- {- "name": "slug",- "required": true,- "in": "path",- "description": "Organization slug",- "schema": { "type": "string" }- }- ],- "responses": {- "201": {- "description": "",- "content": {- "application/json": { "schema": { "type": "object" } }- }- },- "403": { "description": "" },- "500": { "description": "Failed to set up a payment method" }- },- "security": [{ "bearer": [] }]- }- },- "/platform/pg-meta/{ref}/columns": {- "get": {- "operationId": "ColumnsController_getColumns",- "summary": "Gets project pg.columns",- "parameters": [- {- "name": "x-connection-encrypted",- "required": true,- "in": "header",- "schema": { "type": "string" }- },- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- }- ],- "responses": {- "200": { "description": "" },- "500": { "description": "Failed to get pg.columns" }- },- "security": [{ "bearer": [] }]- },- "post": {- "operationId": "ColumnsController_createColumn",- "summary": "Creates project pg.column",- "parameters": [- {- "name": "x-connection-encrypted",- "required": true,- "in": "header",- "schema": { "type": "string" }- },- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- }- ],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": { "$ref": "#/components/schemas/CreateColumnBody" }- }- }- },- "responses": {- "201": { "description": "" },- "500": { "description": "Failed to create pg.column" }- },- "security": [{ "bearer": [] }]- },- "patch": {- "operationId": "ColumnsController_updateColumn",- "summary": "Updates project pg.column with the given ID",- "parameters": [- {- "name": "x-connection-encrypted",- "required": true,- "in": "header",- "schema": { "type": "string" }- },- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- },- {- "name": "id",- "required": true,- "in": "query",- "description": "Column ID",- "schema": { "pattern": {}, "type": "string" }- }- ],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": { "$ref": "#/components/schemas/UpdateColumnBody" }- }- }- },- "responses": {- "200": { "description": "" },- "500": {- "description": "Failed to update pg.column with the given ID"- }- },- "security": [{ "bearer": [] }]- },- "delete": {- "operationId": "ColumnsController_deleteColumn",- "summary": "Deletes project pg.column with the given ID",- "parameters": [- {- "name": "x-connection-encrypted",- "required": true,- "in": "header",- "schema": { "type": "string" }- },- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- },- {- "name": "id",- "required": true,- "in": "query",- "description": "Column ID",- "schema": { "pattern": {}, "type": "string" }- }- ],- "responses": {- "200": { "description": "" },- "500": {- "description": "Failed to delete pg.column with the given ID"- }- },- "security": [{ "bearer": [] }]- }- },- "/platform/pg-meta/{ref}/extensions": {- "get": {- "operationId": "ExtensionsController_getExtensions",- "summary": "Gets project pg.extensions",- "parameters": [- {- "name": "x-connection-encrypted",- "required": true,- "in": "header",- "schema": { "type": "string" }- },- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- }- ],- "responses": {- "200": { "description": "" },- "500": { "description": "Failed to get pg.extensions" }- },- "security": [{ "bearer": [] }]- },- "post": {- "operationId": "ExtensionsController_createExtension",- "summary": "Creates project pg.extension",- "parameters": [- {- "name": "x-connection-encrypted",- "required": true,- "in": "header",- "schema": { "type": "string" }- },- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- }- ],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": { "$ref": "#/components/schemas/CreateExtensionBody" }- }- }- },- "responses": {- "201": { "description": "" },- "500": { "description": "Failed to create pg.extension" }- },- "security": [{ "bearer": [] }]- },- "delete": {- "operationId": "ExtensionsController_deleteExtension",- "summary": "Deletes project pg.extension with the given ID",- "parameters": [- {- "name": "x-connection-encrypted",- "required": true,- "in": "header",- "schema": { "type": "string" }- },- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- },- {- "name": "id",- "required": true,- "in": "query",- "description": "Extension ID",- "schema": { "type": "string" }- }- ],- "responses": {- "200": { "description": "" },- "500": {- "description": "Failed to delete pg.extension with the given ID"- }- },- "security": [{ "bearer": [] }]- }- },- "/platform/pg-meta/{ref}/functions": {- "get": {- "operationId": "FunctionsController_getFunctions",- "summary": "Gets project pg.functions",- "parameters": [- {- "name": "x-connection-encrypted",- "required": true,- "in": "header",- "schema": { "type": "string" }- },- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- }- ],- "responses": {- "200": { "description": "" },- "500": { "description": "Failed to get pg.functions" }- },- "security": [{ "bearer": [] }]- },- "post": {- "operationId": "FunctionsController_createFunction",- "summary": "Creates project pg.function",- "parameters": [- {- "name": "x-connection-encrypted",- "required": true,- "in": "header",- "schema": { "type": "string" }- },- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- }- ],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": { "$ref": "#/components/schemas/CreateFunctionBody" }- }- }- },- "responses": {- "201": { "description": "" },- "500": { "description": "Failed to create pg.function" }- },- "security": [{ "bearer": [] }]- },- "patch": {- "operationId": "FunctionsController_updateFunction",- "summary": "Updates project pg.function with the given ID",- "parameters": [- {- "name": "x-connection-encrypted",- "required": true,- "in": "header",- "schema": { "type": "string" }- },- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- },- {- "name": "id",- "required": true,- "in": "query",- "description": "Function ID",- "schema": { "type": "number" }- }- ],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": { "$ref": "#/components/schemas/UpdateFunctionBody" }- }- }- },- "responses": {- "200": { "description": "" },- "500": {- "description": "Failed to update pg.function with the given ID"- }- },- "security": [{ "bearer": [] }]- },- "delete": {- "operationId": "FunctionsController_deleteFunction",- "summary": "Deletes project pg.function with the given ID",- "parameters": [- {- "name": "x-connection-encrypted",- "required": true,- "in": "header",- "schema": { "type": "string" }- },- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- },- {- "name": "id",- "required": true,- "in": "query",- "description": "Function ID",- "schema": { "type": "number" }- }- ],- "responses": {- "200": { "description": "" },- "500": {- "description": "Failed to delete pg.function with the given ID"- }- },- "security": [{ "bearer": [] }]- }- },- "/platform/pg-meta/{ref}/policies": {- "get": {- "operationId": "PoliciesController_getPolicies",- "summary": "Gets project pg.policies",- "parameters": [- {- "name": "x-connection-encrypted",- "required": true,- "in": "header",- "schema": { "type": "string" }- },- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- }- ],- "responses": {- "200": { "description": "" },- "500": { "description": "Failed to get pg.policies" }- },- "security": [{ "bearer": [] }]- },- "post": {- "operationId": "PoliciesController_createPolicy",- "summary": "Creates project pg.policy",- "parameters": [- {- "name": "x-connection-encrypted",- "required": true,- "in": "header",- "schema": { "type": "string" }- },- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- }- ],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": { "$ref": "#/components/schemas/CreatePolicyBody" }- }- }- },- "responses": {- "201": { "description": "" },- "500": { "description": "Failed to create pg.policy" }- },- "security": [{ "bearer": [] }]- },- "patch": {- "operationId": "PoliciesController_updatePolicy",- "summary": "Updates project pg.policy with the given ID",- "parameters": [- {- "name": "x-connection-encrypted",- "required": true,- "in": "header",- "schema": { "type": "string" }- },- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- },- {- "name": "id",- "required": true,- "in": "query",- "description": "Policy ID",- "schema": { "type": "number" }- }- ],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": { "$ref": "#/components/schemas/UpdatePolicyBody" }- }- }- },- "responses": {- "200": { "description": "" },- "500": {- "description": "Failed to update pg.policy with the given ID"- }- },- "security": [{ "bearer": [] }]- },- "delete": {- "operationId": "PoliciesController_deletePolicy",- "summary": "Deletes project pg.policy with the given ID",- "parameters": [- {- "name": "x-connection-encrypted",- "required": true,- "in": "header",- "schema": { "type": "string" }- },- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- },- {- "name": "id",- "required": true,- "in": "query",- "description": "Policy ID",- "schema": { "type": "number" }- }- ],- "responses": {- "200": { "description": "" },- "500": {- "description": "Failed to delete pg.policy with the given ID"- }- },- "security": [{ "bearer": [] }]- }- },- "/platform/pg-meta/{ref}/publications": {- "get": {- "operationId": "PublicationsController_getPublications",- "summary": "Gets project pg.publications",- "parameters": [- {- "name": "x-connection-encrypted",- "required": true,- "in": "header",- "schema": { "type": "string" }- },- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- }- ],- "responses": {- "200": { "description": "" },- "500": { "description": "Failed to get pg.publications" }- },- "security": [{ "bearer": [] }]- },- "post": {- "operationId": "PublicationsController_createPublication",- "summary": "Creates project pg.publication",- "parameters": [- {- "name": "x-connection-encrypted",- "required": true,- "in": "header",- "schema": { "type": "string" }- },- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- }- ],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": { "$ref": "#/components/schemas/CreatePublicationBody" }- }- }- },- "responses": {- "201": { "description": "" },- "500": { "description": "Failed to create pg.publication" }- },- "security": [{ "bearer": [] }]- },- "patch": {- "operationId": "PublicationsController_updatePublication",- "summary": "Updates project pg.publication with the given ID",- "parameters": [- {- "name": "x-connection-encrypted",- "required": true,- "in": "header",- "schema": { "type": "string" }- },- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- },- {- "name": "id",- "required": true,- "in": "query",- "description": "Publication ID",- "schema": { "type": "number" }- }- ],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": { "$ref": "#/components/schemas/UpdatePublicationBody" }- }- }- },- "responses": {- "200": { "description": "" },- "500": {- "description": "Failed to update pg.publication with the given ID"- }- },- "security": [{ "bearer": [] }]- },- "delete": {- "operationId": "PublicationsController_deletePublication",- "summary": "Deletes project pg.publication with the given ID",- "parameters": [- {- "name": "x-connection-encrypted",- "required": true,- "in": "header",- "schema": { "type": "string" }- },- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- },- {- "name": "id",- "required": true,- "in": "query",- "description": "Publication ID",- "schema": { "type": "number" }- }- ],- "responses": {- "200": { "description": "" },- "500": {- "description": "Failed to delete pg.publication with the given ID"- }- },- "security": [{ "bearer": [] }]- }- },- "/platform/pg-meta/{ref}/query": {- "post": {- "operationId": "QueryController_runQuery",- "summary": "Run sql query",- "parameters": [- {- "name": "x-connection-encrypted",- "required": true,- "in": "header",- "schema": { "type": "string" }- },- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- }- ],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": { "$ref": "#/components/schemas/RunQueryBody" }- }- }- },- "responses": {- "201": {- "description": "",- "content": {- "application/json": { "schema": { "type": "object" } }- }- },- "403": { "description": "" },- "500": { "description": "Failed to run sql query" }- },- "security": [{ "bearer": [] }]- }- },- "/platform/pg-meta/{ref}/query/format": {- "post": {- "operationId": "QueryController_formatQuery",- "summary": "Format sql query",- "parameters": [- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- }- ],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": { "$ref": "#/components/schemas/FormatQueryBody" }- }- }- },- "responses": {- "201": {- "description": "",- "content": {- "application/json": { "schema": { "type": "string" } }- }- },- "500": { "description": "Failed to format sql query" }- },- "security": [{ "bearer": [] }]- }- },- "/platform/pg-meta/{ref}/query/validate": {- "post": {- "operationId": "QueryController_validateQuery",- "summary": "Validate sql query",- "parameters": [- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- }- ],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": { "$ref": "#/components/schemas/ValidateQueryBody" }- }- }- },- "responses": {- "201": { "description": "" },- "500": { "description": "Failed to validate sql query" }- },- "security": [{ "bearer": [] }]- }- },- "/platform/pg-meta/{ref}/roles": {- "get": {- "operationId": "RolesController_getRoles",- "summary": "Gets project pg.roles",- "parameters": [- {- "name": "x-connection-encrypted",- "required": true,- "in": "header",- "schema": { "type": "string" }- },- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- }- ],- "responses": {- "200": { "description": "" },- "500": { "description": "Failed to get pg.roles" }- },- "security": [{ "bearer": [] }]- }- },- "/platform/pg-meta/{ref}/search/tables": {- "post": {- "operationId": "SearchController_searchTables",- "summary": "Searches project pg.tables. Return maximum 50 results.",- "parameters": [- {- "name": "x-connection-encrypted",- "required": true,- "in": "header",- "schema": { "type": "string" }- },- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- }- ],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": { "$ref": "#/components/schemas/SearchTableBody" }- }- }- },- "responses": {- "201": {- "description": "",- "content": {- "application/json": {- "schema": { "type": "array", "items": { "type": "object" } }- }- }- },- "500": { "description": "Failed to search pg.tables" }- },- "security": [{ "bearer": [] }]- }- },- "/platform/pg-meta/{ref}/search/columns": {- "post": {- "operationId": "SearchController_searchColumns",- "summary": "Searches project pg.columns. Return maximum 50 results.",- "parameters": [- {- "name": "x-connection-encrypted",- "required": true,- "in": "header",- "schema": { "type": "string" }- },- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- }- ],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": { "$ref": "#/components/schemas/SearchColumnBody" }- }- }- },- "responses": {- "201": {- "description": "",- "content": {- "application/json": {- "schema": { "type": "array", "items": { "type": "object" } }- }- }- },- "500": { "description": "Failed to search pg.columns" }- },- "security": [{ "bearer": [] }]- }- },- "/platform/pg-meta/{ref}/schemas": {- "get": {- "operationId": "SchemasController_getSchemas",- "summary": "Gets project pg.schemas",- "parameters": [- {- "name": "x-connection-encrypted",- "required": true,- "in": "header",- "schema": { "type": "string" }- },- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- }- ],- "responses": {- "200": { "description": "" },- "500": { "description": "Failed to get pg.schemas" }- },- "security": [{ "bearer": [] }]- },- "post": {- "operationId": "SchemasController_createSchema",- "summary": "Creates project pg.schema",- "parameters": [- {- "name": "x-connection-encrypted",- "required": true,- "in": "header",- "schema": { "type": "string" }- },- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- }- ],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": { "$ref": "#/components/schemas/CreateSchemaBody" }- }- }- },- "responses": {- "201": { "description": "" },- "500": { "description": "Failed to create pg.schema" }- },- "security": [{ "bearer": [] }]- },- "patch": {- "operationId": "SchemasController_updateSchema",- "summary": "Updates project pg.schema with the given ID",- "parameters": [- {- "name": "x-connection-encrypted",- "required": true,- "in": "header",- "schema": { "type": "string" }- },- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- },- {- "name": "id",- "required": true,- "in": "query",- "description": "Schema ID",- "schema": { "type": "number" }- }- ],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": { "$ref": "#/components/schemas/UpdateSchemaBody" }- }- }- },- "responses": {- "200": { "description": "" },- "500": {- "description": "Failed to update pg.schema with the given ID"- }- },- "security": [{ "bearer": [] }]- },- "delete": {- "operationId": "SchemasController_deleteSchema",- "summary": "Deletes project pg.schema with the given ID",- "parameters": [- {- "name": "x-connection-encrypted",- "required": true,- "in": "header",- "schema": { "type": "string" }- },- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- },- {- "name": "id",- "required": true,- "in": "query",- "description": "Schema ID",- "schema": { "type": "number" }- }- ],- "responses": {- "200": { "description": "" },- "500": {- "description": "Failed to delete pg.schema with the given ID"- }- },- "security": [{ "bearer": [] }]- }- },- "/platform/pg-meta/{ref}/tables": {- "get": {- "operationId": "TablesController_getTables",- "summary": "Gets project pg.tables or pg.table with the given ID",- "parameters": [- {- "name": "x-connection-encrypted",- "required": true,- "in": "header",- "schema": { "type": "string" }- },- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- },- {- "name": "id",- "required": false,- "in": "query",- "description": "Table ID",- "schema": { "type": "number" }- }- ],- "responses": {- "200": { "description": "" },- "500": {- "description": "Failed to get pg.tables or pg.table with the given ID"- }- },- "security": [{ "bearer": [] }]- },- "post": {- "operationId": "TablesController_createTable",- "summary": "Creates project pg.table",- "parameters": [- {- "name": "x-connection-encrypted",- "required": true,- "in": "header",- "schema": { "type": "string" }- },- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- }- ],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": { "$ref": "#/components/schemas/CreateTableBody" }- }- }- },- "responses": {- "201": { "description": "" },- "500": { "description": "Failed to create pg.table" }- },- "security": [{ "bearer": [] }]- },- "patch": {- "operationId": "TablesController_updateTable",- "summary": "Updates project pg.table with the given ID",- "parameters": [- {- "name": "x-connection-encrypted",- "required": true,- "in": "header",- "schema": { "type": "string" }- },- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- },- {- "name": "id",- "required": true,- "in": "query",- "description": "Table ID",- "schema": { "type": "number" }- }- ],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": { "$ref": "#/components/schemas/UpdateTableBody" }- }- }- },- "responses": {- "200": { "description": "" },- "500": {- "description": "Failed to update pg.table with the given ID"- }- },- "security": [{ "bearer": [] }]- },- "delete": {- "operationId": "TablesController_deleteTable",- "summary": "Deletes project pg.table with the given ID",- "parameters": [- {- "name": "x-connection-encrypted",- "required": true,- "in": "header",- "schema": { "type": "string" }- },- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- },- {- "name": "id",- "required": true,- "in": "query",- "description": "Table ID",- "schema": { "type": "number" }- }- ],- "responses": {- "200": { "description": "" },- "500": {- "description": "Failed to delete pg.table with the given ID"- }- },- "security": [{ "bearer": [] }]- }- },- "/platform/pg-meta/{ref}/triggers": {- "get": {- "operationId": "TriggersController_getTriggers",- "summary": "Gets project pg.triggers",- "parameters": [- {- "name": "x-connection-encrypted",- "required": true,- "in": "header",- "schema": { "type": "string" }- },- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- }- ],- "responses": {- "200": { "description": "" },- "500": { "description": "Failed to get pg.triggers" }- },- "security": [{ "bearer": [] }]- },- "post": {- "operationId": "TriggersController_createTrigger",- "summary": "Creates project pg.trigger",- "parameters": [- {- "name": "x-connection-encrypted",- "required": true,- "in": "header",- "schema": { "type": "string" }- },- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- }- ],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": { "$ref": "#/components/schemas/CreateTriggerBody" }- }- }- },- "responses": {- "201": { "description": "" },- "500": { "description": "Failed to create pg.trigger" }- },- "security": [{ "bearer": [] }]- },- "patch": {- "operationId": "TriggersController_updateTrigger",- "summary": "Updates project pg.trigger with the given ID",- "parameters": [- {- "name": "x-connection-encrypted",- "required": true,- "in": "header",- "schema": { "type": "string" }- },- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- },- {- "name": "id",- "required": true,- "in": "query",- "description": "Trigger ID",- "schema": { "type": "number" }- }- ],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": { "$ref": "#/components/schemas/UpdateTriggerBody" }- }- }- },- "responses": {- "200": { "description": "" },- "500": {- "description": "Failed to update pg.trigger with the given ID"- }- },- "security": [{ "bearer": [] }]- },- "delete": {- "operationId": "TriggersController_deleteTrigger",- "summary": "Deletes project pg.trigger with the given ID",- "parameters": [- {- "name": "x-connection-encrypted",- "required": true,- "in": "header",- "schema": { "type": "string" }- },- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- },- {- "name": "id",- "required": true,- "in": "query",- "description": "Trigger ID",- "schema": { "type": "number" }- }- ],- "responses": {- "200": { "description": "" },- "500": {- "description": "Failed to delete pg.trigger with the given ID"- }- },- "security": [{ "bearer": [] }]- }- },- "/platform/pg-meta/{ref}/types": {- "get": {- "operationId": "TypesController_getTypes",- "summary": "Gets project pg.types",- "parameters": [- {- "name": "x-connection-encrypted",- "required": true,- "in": "header",- "schema": { "type": "string" }- },- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- }- ],- "responses": {- "200": { "description": "" },- "500": { "description": "Failed to get pg.types" }- },- "security": [{ "bearer": [] }]- }- },- "/platform/profile/access-tokens": {- "get": {- "operationId": "AccessTokensController_getAccessTokens",- "summary": "Gets the user's access tokens",- "parameters": [],- "responses": {- "200": {- "description": "",- "content": {- "application/json": {- "schema": {- "type": "array",- "items": { "$ref": "#/components/schemas/AccessToken" }- }- }- }- },- "500": { "description": "Failed to get user's access tokens" }- },- "security": [{ "bearer": [] }]- },- "post": {- "operationId": "AccessTokensController_createAccessToken",- "summary": "Creates a new access token",- "parameters": [],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": { "$ref": "#/components/schemas/CreateAccessTokenBody" }- }- }- },- "responses": {- "201": {- "description": "",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/CreateAccessTokenResponse"- }- }- }- },- "500": { "description": "Failed to create access token" }- },- "security": [{ "bearer": [] }]- }- },- "/platform/profile/access-tokens/{id}": {- "get": {- "operationId": "AccessTokensController_getAccessToken",- "summary": "Gets the access token with the given ID",- "parameters": [- {- "name": "id",- "required": true,- "in": "path",- "description": "Access token ID",- "schema": { "type": "number" }- }- ],- "responses": {- "200": {- "description": "",- "content": {- "application/json": {- "schema": { "$ref": "#/components/schemas/AccessToken" }- }- }- },- "500": { "description": "Failed to get access token" }- },- "security": [{ "bearer": [] }]- },- "delete": {- "operationId": "AccessTokensController_deleteAccessToken",- "summary": "Deletes the access token with the given ID",- "parameters": [- {- "name": "id",- "required": true,- "in": "path",- "description": "Access token ID",- "schema": { "type": "number" }- }- ],- "responses": {- "200": {- "description": "",- "content": {- "application/json": {- "schema": { "$ref": "#/components/schemas/AccessToken" }- }- }- },- "500": { "description": "Failed to delete access token" }- },- "security": [{ "bearer": [] }]- }- },- "/platform/profile/search": {- "post": {- "operationId": "SearchProfileController_searchProfile",- "summary": "Search profiles by username, email with the given keywords",- "parameters": [],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": { "$ref": "#/components/schemas/SearchProfileBody" }- }- }- },- "responses": {- "201": {- "description": "",- "content": {- "application/json": {- "schema": {- "type": "array",- "items": { "$ref": "#/components/schemas/Profile" }- }- }- }- },- "500": {- "description": "Failed to search profiles with the given keywords"- }- },- "security": [{ "bearer": [] }]- }- },- "/platform/profile/subscriptions": {- "get": {- "operationId": "SubscriptionsController_getSubscriptionsStatistics",- "summary": "Gets the user's subscription statistics",- "parameters": [],- "responses": {- "200": {- "description": "",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/SubscriptionStatisticsResponse"- }- }- }- },- "500": {- "description": "Failed to retrieve user's subscription statistics"- }- },- "security": [{ "bearer": [] }]- }- },- "/platform/profile/password-check": {- "post": {- "operationId": "PasswordCheckController_checkPassword",- "summary": "Check password strength",- "parameters": [],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": { "$ref": "#/components/schemas/PasswordCheckBody" }- }- }- },- "responses": {- "201": {- "description": "",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/PasswordCheckResponse"- }- }- }- },- "500": { "description": "Failed to check password strength" }- },- "security": [{ "bearer": [] }]- }- },- "/platform/profile/permissions": {- "get": {- "operationId": "PermissionsController_getPermissions",- "summary": "Gets all the user's permissions",- "parameters": [],- "responses": {- "200": {- "description": "",- "content": {- "application/json": {- "schema": {- "type": "array",- "items": { "$ref": "#/components/schemas/Permission" }- }- }- }- },- "500": { "description": "Failed to retrieve permissions" }- },- "security": [{ "bearer": [] }]- }- },- "/platform/profile": {- "get": {- "operationId": "ProfileController_getProfile",- "summary": "Gets the user's profile",- "parameters": [- {- "name": "returning",- "required": true,- "in": "query",- "schema": { "enum": ["minimal"], "type": "string" }- }- ],- "responses": {- "200": {- "description": "",- "content": {- "application/json": {- "schema": { "$ref": "#/components/schemas/ProfileResponse" }- }- }- },- "500": { "description": "Failed to retrieve user's profile" }- },- "security": [{ "bearer": [] }]- }- },- "/platform/profile/update": {- "post": {- "operationId": "ProfileController_updateProfile",- "summary": "Update user's profile",- "parameters": [],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": { "$ref": "#/components/schemas/UpdateProfileBody" }- }- }- },- "responses": {- "201": {- "description": "",- "content": {- "application/json": {- "schema": { "$ref": "#/components/schemas/ProfileResponse" }- }- }- },- "500": { "description": "Failed to update user's profile" }- },- "security": [{ "bearer": [] }]- }- },- "/platform/projects": {- "get": {- "operationId": "ProjectsController_getProjects",- "summary": "Gets all projects that belong to the authenticated user",- "description": "Only returns the minimal project info",- "parameters": [],- "responses": {- "200": {- "description": "",- "content": {- "application/json": { "schema": { "type": "object" } }- }- }- },- "security": [{ "bearer": [] }]- },- "post": {- "operationId": "ProjectsController_createProject",- "summary": "Creates a project",- "parameters": [],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": { "$ref": "#/components/schemas/CreateProjectBody" }- }- }- },- "responses": { "201": { "description": "" } },- "security": [{ "bearer": [] }]- }- },- "/platform/projects/{ref}/daily-stats": {- "get": {- "operationId": "DailyStatsController_getDailyStats",- "summary": "Gets daily project stats",- "parameters": [- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- },- {- "name": "attribute",- "required": true,- "in": "query",- "schema": { "type": "string" }- },- {- "name": "interval",- "required": true,- "in": "query",- "schema": { "type": "string" }- },- {- "name": "endDate",- "required": true,- "in": "query",- "schema": { "type": "string" }- },- {- "name": "startDate",- "required": true,- "in": "query",- "schema": { "type": "string" }- }- ],- "responses": {- "200": {- "description": "",- "content": {- "application/json": { "schema": { "type": "object" } }- }- },- "500": { "description": "Failed to get daily project stats" }- },- "security": [{ "bearer": [] }]- }- },- "/platform/projects/{ref}/db-password": {- "patch": {- "operationId": "DbPasswordController_updatePassword",- "summary": "Updates the database password",- "parameters": [- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- }- ],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": { "$ref": "#/components/schemas/UpdatePasswordBody" }- }- }- },- "responses": {- "200": { "description": "" },- "403": { "description": "" },- "500": { "description": "Failed to update database password" }- },- "security": [{ "bearer": [] }]- }- },- "/platform/projects/{ref}/infra-monitoring": {- "get": {- "operationId": "InfraMonitoringController_getUsageMetrics",- "summary": "Gets project's usage metrics",- "parameters": [- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- },- {- "name": "attribute",- "required": true,- "in": "query",- "schema": {- "enum": ["cpu_usage", "disk_io_budget", "ram_usage"],- "type": "string"- }- },- {- "name": "startDate",- "required": true,- "in": "query",- "schema": { "type": "string" }- },- {- "name": "endDate",- "required": true,- "in": "query",- "schema": { "type": "string" }- },- {- "name": "interval",- "required": false,- "in": "query",- "schema": {- "enum": ["1m", "5m", "10m", "30m", "1h", "1d"],- "type": "string"- }- }- ],- "responses": {- "200": {- "description": "",- "content": {- "application/json": { "schema": { "type": "object" } }- }- },- "500": { "description": "Failed to get project's usage metrics" }- },- "security": [{ "bearer": [] }]- }- },- "/platform/projects/{ref}/invoices": {- "head": {- "operationId": "InvoicesController_getInvoiceCount",- "summary": "Gets project's invoice count",- "parameters": [- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- }- ],- "responses": {- "200": { "description": "" },- "500": { "description": "Failed to get project's invoice count" }- },- "security": [{ "bearer": [] }]- },- "get": {- "operationId": "InvoicesController_getInvoices",- "summary": "Gets project's invoices",- "parameters": [- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- },- {- "name": "limit",- "required": false,- "in": "query",- "schema": { "type": "string" }- },- {- "name": "offset",- "required": false,- "in": "query",- "schema": { "type": "string" }- }- ],- "responses": {- "200": {- "description": "",- "content": {- "application/json": {- "schema": { "type": "array", "items": { "type": "object" } }- }- }- },- "500": { "description": "Failed to get project's invoices" }- },- "security": [{ "bearer": [] }]- }- },- "/platform/projects/{ref}/pause": {- "post": {- "operationId": "PauseController_pauseProject",- "summary": "Pauses the project",- "parameters": [- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- }- ],- "responses": {- "201": {- "description": "",- "content": {- "application/json": { "schema": { "type": "object" } }- }- },- "500": { "description": "Failed to pause the project" }- },- "security": [{ "bearer": [] }]- }- },- "/platform/projects/{ref}/pooling": {- "get": {- "operationId": "PoolingController_getPoolingConfig",- "summary": "Gets project's pooling config",- "parameters": [- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- }- ],- "responses": {- "200": {- "description": "",- "content": {- "application/json": {- "schema": { "$ref": "#/components/schemas/PoolingConfig" }- }- }- },- "500": {- "description": "Failed to retrieve project's pooling config"- }- },- "security": [{ "bearer": [] }]- },- "patch": {- "operationId": "PoolingController_updatePoolingConfig",- "summary": "Updates project's pooling config",- "parameters": [- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- }- ],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/UpdatePoolingConfigBody"- }- }- }- },- "responses": {- "200": {- "description": "",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/UpdatePoolingConfigResponse"- }- }- }- },- "500": { "description": "Failed to update project's pooling config" }- },- "security": [{ "bearer": [] }]- }- },- "/platform/projects/{ref}/restart": {- "post": {- "operationId": "RestartController_restartServices",- "summary": "Restarts project",- "parameters": [- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- }- ],- "responses": {- "201": { "description": "" },- "403": { "description": "" },- "500": { "description": "Failed to restart project" }- },- "security": [{ "bearer": [] }]- }- },- "/platform/projects/{ref}": {- "get": {- "operationId": "ProjectsRefController_getProjects",- "summary": "Gets all projects that belong to the authenticated user",- "parameters": [- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- }- ],- "responses": {- "200": {- "description": "",- "content": {- "application/json": { "schema": { "type": "object" } }- }- }- },- "security": [{ "bearer": [] }]- },- "delete": {- "operationId": "ProjectsRefController_deleteProject",- "summary": "Deletes the given project",- "parameters": [- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- }- ],- "responses": {- "200": { "description": "" },- "403": { "description": "" }- },- "security": [{ "bearer": [] }]- },- "patch": {- "operationId": "ProjectsRefController_updateProject",- "summary": "Updates the given project",- "parameters": [- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- }- ],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": { "$ref": "#/components/schemas/UpdateProjectBody" }- }- }- },- "responses": {- "200": { "description": "" },- "500": { "description": "Failed to update project" }- },- "security": [{ "bearer": [] }]- }- },- "/platform/projects/{ref}/restore": {- "post": {- "operationId": "RestoreController_restartServices",- "summary": "Restores the project",- "parameters": [- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- }- ],- "responses": {- "201": {- "description": "",- "content": {- "application/json": {- "schema": { "$ref": "#/components/schemas/Project" }- }- }- },- "500": { "description": "Failed to restore project" }- },- "security": [{ "bearer": [] }]- }- },- "/platform/projects/{ref}/restart-services": {- "post": {- "operationId": "RestartServicesController_restartServices",- "summary": "Restarts given services",- "parameters": [- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- }- ],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": { "$ref": "#/components/schemas/RestartServicesBody" }- }- }- },- "responses": {- "201": {- "description": "",- "content": {- "application/json": { "schema": { "type": "object" } }- }- },- "500": { "description": "Failed to restart given services" }- },- "security": [{ "bearer": [] }]- }- },- "/platform/projects/{ref}/status": {- "get": {- "operationId": "StatusController_getStatus",- "summary": "Gets project's status",- "parameters": [- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- }- ],- "responses": {- "200": { "description": "" },- "500": { "description": "Failed to get project's status" }- },- "security": [{ "bearer": [] }]- }- },- "/platform/projects/{ref}/update": {- "post": {- "operationId": "UpdateController_updateProject",- "summary": "Updates the project",- "description": "Replaced by PATCH /platform/projects/:ref",- "deprecated": true,- "parameters": [- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- }- ],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": { "$ref": "#/components/schemas/UpdateProjectBody" }- }- }- },- "responses": {- "201": { "description": "" },- "500": { "description": "Failed to update project" }- },- "security": [{ "bearer": [] }]- }- },- "/platform/projects/{ref}/usage": {- "get": {- "operationId": "UsageController_getUsage",- "summary": "Gets project's usage",- "parameters": [- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- },- {- "name": "x-connection-encrypted",- "required": true,- "in": "header",- "schema": { "type": "string" }- }- ],- "responses": {- "200": {- "description": "",- "content": {- "application/json": { "schema": { "type": "object" } }- }- },- "403": { "description": "" },- "500": { "description": "Failed to retrieve project's usage" }- },- "security": [{ "bearer": [] }]- }- },- "/platform/projects/{ref}/usage-status": {- "get": {- "operationId": "UsageStatusController_getUsageStatusConfig",- "summary": "Gets project's usage status",- "parameters": [- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- }- ],- "responses": {- "200": {- "description": "",- "content": {- "application/json": {- "schema": { "$ref": "#/components/schemas/UsageStatusResponse" }- }- }- },- "500": { "description": "Failed to retrieve project's usage status" }- },- "security": [{ "bearer": [] }]- }- },- "/platform/projects/{ref}/subscription/enterprise": {- "post": {- "operationId": "EnterpriseController_sendEnterpriseRequest",- "summary": "Send enterprise request",- "parameters": [- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- }- ],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/SendEnterpriseRequestBody"- }- }- }- },- "responses": {- "201": { "description": "" },- "500": { "description": "Failed to send enterprise request" }- },- "security": [{ "bearer": [] }]- }- },- "/platform/projects/{ref}/subscription/preview": {- "post": {- "operationId": "PreviewController_previewSubscription",- "summary": "Preview subscription",- "parameters": [- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- }- ],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/PreviewSubscriptionBody"- }- }- }- },- "responses": {- "201": { "description": "" },- "403": { "description": "" },- "500": { "description": "Failed to preview subscription" }- },- "security": [{ "bearer": [] }]- }- },- "/platform/projects/{ref}/subscription": {- "get": {- "operationId": "SubscriptionController_getSubscription",- "summary": "Gets subscription",- "parameters": [- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- }- ],- "responses": {- "200": { "description": "" },- "500": { "description": "Failed to retrieve subscription" }- },- "security": [{ "bearer": [] }]- },- "patch": {- "operationId": "SubscriptionController_updateSubscription",- "summary": "Updates subscription",- "parameters": [- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- }- ],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/UpdateSubscriptionBody"- }- }- }- },- "responses": {- "200": { "description": "" },- "403": { "description": "" },- "500": { "description": "Failed to update subscription" }- },- "security": [{ "bearer": [] }]- }- },- "/platform/projects/{ref}/config": {- "get": {- "operationId": "ConfigController_getConfig",- "summary": "Gets project's config",- "description": "Replaced by /config/postgrest, /config/storage, /config/secrets",- "deprecated": true,- "parameters": [- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- },- {- "name": "app",- "required": true,- "in": "query",- "schema": { "enum": ["postgrest", "storage"], "type": "string" }- }- ],- "responses": {- "200": {- "description": "",- "content": {- "application/json": { "schema": { "type": "object" } }- }- },- "500": { "description": "Failed to retrieve project's config" }- },- "security": [{ "bearer": [] }]- },- "patch": {- "operationId": "ConfigController_updateConfig",- "summary": "Updates project's config",- "description": "Replaced by /config/postgrest, /config/storage, /config/secrets",- "deprecated": true,- "parameters": [- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- },- {- "name": "app",- "required": true,- "in": "query",- "schema": {- "enum": ["postgrest", "secrets", "storage"],- "type": "string"- }- }- ],- "responses": {- "200": {- "description": "",- "content": {- "application/json": { "schema": { "type": "object" } }- }- },- "500": { "description": "Failed to update project's config" }- },- "security": [{ "bearer": [] }]- }- },- "/platform/projects/{ref}/config/postgrest": {- "get": {- "operationId": "PostgrestConfigController_getConfig",- "summary": "Gets project's postgrest config",- "parameters": [- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- }- ],- "responses": {- "200": {- "description": "",- "content": {- "application/json": { "schema": { "type": "object" } }- }- },- "500": {- "description": "Failed to retrieve project's postgrest config"- }- },- "security": [{ "bearer": [] }]- },- "patch": {- "operationId": "PostgrestConfigController_updateConfig",- "summary": "Updates project's postgrest config",- "parameters": [- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- }- ],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/UpdatePostgrestConfigBody"- }- }- }- },- "responses": {- "200": { "description": "" },- "500": {- "description": "Failed to update project's postgrest config"- }- },- "security": [{ "bearer": [] }]- }- },- "/platform/projects/{ref}/config/secrets": {- "patch": {- "operationId": "SecretsConfigController_updateConfig",- "summary": "Updates project's secrets config",- "parameters": [- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- }- ],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/UpdateSecretsConfigBody"- }- }- }- },- "responses": {- "200": { "description": "" },- "500": { "description": "Failed to update project's secrets config" }- },- "security": [{ "bearer": [] }]- }- },- "/platform/projects/{ref}/config/storage": {- "get": {- "operationId": "StorageConfigController_getConfig",- "summary": "Gets project's storage config",- "parameters": [- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- }- ],- "responses": {- "200": { "description": "" },- "403": { "description": "" },- "500": {- "description": "Failed to retrieve project's storage config"- }- },- "security": [{ "bearer": [] }]- },- "patch": {- "operationId": "StorageConfigController_updateConfig",- "summary": "Updates project's storage config",- "parameters": [- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- }- ],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/UpdateStorageConfigBody"- }- }- }- },- "responses": {- "200": { "description": "" },- "403": { "description": "" },- "500": { "description": "Failed to update project's storage config" }- },- "security": [{ "bearer": [] }]- }- },- "/platform/props/org/{slug}": {- "get": {- "operationId": "OrganizationSlugController_getOrganizationMembers",- "summary": "Gets organization's members",- "description": "Replaced by GET /platform/organization/:slug/members",- "deprecated": true,- "parameters": [- {- "name": "slug",- "required": true,- "in": "path",- "description": "Organization slug",- "schema": { "type": "string" }- }- ],- "responses": {- "200": {- "description": "",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/OrganizationMembersResponse"- }- }- }- },- "500": { "description": "Failed to retrieve organization's members" }- },- "security": [{ "bearer": [] }]- }- },- "/platform/props/pooling/{ref}/config": {- "get": {- "operationId": "PoolingRefConfigController_getProjectPoolingConfig",- "summary": "Gets project's pooling config",- "description": "Replaced by GET /platform/projects/:ref/pooling",- "deprecated": true,- "parameters": [- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- }- ],- "responses": {- "200": {- "description": "",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/PoolingRefConfigResponse"- }- }- }- },- "500": {- "description": "Failed to retrieve project's pooling config"- }- },- "security": [{ "bearer": [] }]- },- "patch": {- "operationId": "PoolingRefConfigController_updateProjectPoolingConfig",- "summary": "Updates project's pooling config",- "description": "Replaced by PATCH /platform/projects/:ref/pooling",- "deprecated": true,- "parameters": [- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- }- ],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/UpdatePoolingRefConfigBody"- }- }- }- },- "responses": {- "200": {- "description": "",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/UpdatePoolingRefConfigResponse"- }- }- }- },- "500": { "description": "Failed to update project's pooling config" }- },- "security": [{ "bearer": [] }]- }- },- "/platform/props/project/{ref}/api": {- "get": {- "operationId": "ApiController_getProjectApi",- "summary": "Gets project's api info",- "parameters": [- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- }- ],- "responses": {- "200": {- "description": "",- "content": {- "application/json": {- "schema": { "$ref": "#/components/schemas/ApiResponse" }- }- }- },- "500": { "description": "Failed to retrieve project's api info" }- },- "security": [{ "bearer": [] }]- }- },- "/platform/props/project/{ref}/jwt-secret-update-status": {- "get": {- "operationId": "JwtSecretUpdateStatusController_getJwtSecretUpdateStatus",- "summary": "Gets the last JWT secret update status",- "parameters": [- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- }- ],- "responses": {- "200": {- "description": "",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/JwtSecretUpdateStatus"- }- }- }- },- "500": {- "description": "Failed to retrieve JWT secret update status"- }- },- "security": [{ "bearer": [] }]- }- },- "/platform/props/project/{ref}/settings": {- "get": {- "operationId": "SettingsController_getProjectApi",- "summary": "Gets project's settings",- "parameters": [- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- }- ],- "responses": {- "200": {- "description": "",- "content": {- "application/json": {- "schema": { "$ref": "#/components/schemas/SettingsResponse" }- }- }- },- "500": { "description": "Failed to retrieve project's settings" }- },- "security": [{ "bearer": [] }]- }- },- "/platform/stripe/customer": {- "post": {- "operationId": "CustomerController_getCustomer",- "summary": "Gets the Stripe customer",- "parameters": [],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": { "$ref": "#/components/schemas/GetCustomerBody" }- }- }- },- "responses": {- "201": { "description": "" },- "403": { "description": "" },- "500": { "description": "Failed to retrieve the Stripe customer" }- },- "security": [{ "bearer": [] }]- }- },- "/platform/stripe/invoices": {- "head": {- "operationId": "InvoicesController_countInvoices",- "summary": "Gets the total count of Stripe invoices for the given customer",- "parameters": [- {- "name": "customer",- "required": true,- "in": "query",- "schema": { "type": "string" }- }- ],- "responses": {- "200": { "description": "" },- "500": {- "description": "Failed to retrieve the total count of Stripe invoice"- }- },- "security": [{ "bearer": [] }]- },- "get": {- "operationId": "InvoicesController_getInvoices",- "summary": "Gets the Stripe invoices for the given customer",- "parameters": [- {- "name": "customer",- "required": true,- "in": "query",- "schema": { "type": "string" }- }- ],- "responses": {- "200": { "description": "" },- "500": { "description": "Failed to retrieve Stripe invoices" }- },- "security": [{ "bearer": [] }]- }- },- "/platform/stripe/invoices/{id}": {- "get": {- "operationId": "InvoicesController_getInvoice",- "summary": "Gets the Stripe invoice with the given invoice ID",- "parameters": [- {- "name": "id",- "required": true,- "in": "path",- "schema": { "type": "string" }- }- ],- "responses": {- "200": {- "description": "",- "content": {- "application/json": { "schema": { "type": "object" } }- }- },- "403": { "description": "" },- "500": { "description": "Failed to retrieve Stripe invoice" }- },- "security": [{ "bearer": [] }]- }- },- "/platform/stripe/portal": {- "post": {- "operationId": "PortalController_createCustomerPortalSession",- "summary": "Creates a session of the customer portal",- "parameters": [],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/CreateCustomerPortalSessionBody"- }- }- }- },- "responses": {- "201": { "description": "" },- "500": {- "description": "Failed to create a session of the customer portal"- }- },- "security": [{ "bearer": [] }]- }- },- "/platform/stripe/products": {- "get": {- "operationId": "ProductsController_createCustomerPortalSession",- "summary": "Gets Stripe products",- "parameters": [],- "responses": {- "200": { "description": "" },- "500": { "description": "Failed to get Stripe products" }- },- "security": [{ "bearer": [] }]- }- },- "/platform/telemetry/event": {- "post": {- "operationId": "TelemetryEventController_sendServerEvent",- "summary": "Sends analytics server event",- "parameters": [],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": { "$ref": "#/components/schemas/TelemetryEventBody" }- }- }- },- "responses": {- "201": { "description": "" },- "500": { "description": "Failed to send analytics server event" }- },- "security": [{ "bearer": [] }]- }- },- "/platform/telemetry/identify": {- "post": {- "operationId": "TelemetryIdentifyController_identify",- "summary": "Send analytics identify event",- "parameters": [],- "responses": {- "201": { "description": "" },- "500": { "description": "Failed to send analytics identify event" }- },- "security": [{ "bearer": [] }]- }- },- "/platform/telemetry/page": {- "post": {- "operationId": "TelemetryPageController_sendServerPage",- "summary": "Send server page event",- "parameters": [],- "responses": {- "201": { "description": "" },- "500": { "description": "Failed to send server page event" }- }- }- },- "/platform/vercel/token": {- "get": {- "operationId": "VercelAccessTokenController_getAccessToken",- "summary": "Gets the Vercel access token for the given code",- "parameters": [- {- "name": "code",- "required": true,- "in": "query",- "schema": { "type": "string" }- }- ],- "responses": {- "200": { "description": "" },- "500": { "description": "Failed to get Vercel access token" }- },- "security": [{ "bearer": [] }]- }- },- "/platform/vercel/projects": {- "get": {- "operationId": "VercelProjectsController_getVercelProjects",- "summary": "Gets the project with the given ID if provided, otherwise gets the list of projects",- "parameters": [- {- "name": "vercel_authorization",- "required": true,- "in": "header",- "schema": { "type": "string" }- },- {- "name": "id",- "required": true,- "in": "query",- "schema": { "type": "string" }- },- {- "name": "teamId",- "required": true,- "in": "query",- "schema": { "type": "string" }- }- ],- "responses": {- "200": {- "description": "",- "content": {- "application/json": { "schema": { "type": "object" } }- }- },- "500": { "description": "Failed to get project(s)" }- },- "security": [{ "bearer": [] }]- }- },- "/platform/vercel/projects/envs": {- "get": {- "operationId": "VercelEnvironmentVariablesController_getEnvironmentVariables",- "summary": "Gets the environment variables for the given project ID on behalf of the given team ID",- "parameters": [- {- "name": "vercel_authorization",- "required": true,- "in": "header",- "schema": { "type": "string" }- },- {- "name": "projectId",- "required": true,- "in": "query",- "schema": { "type": "string" }- },- {- "name": "teamId",- "required": false,- "in": "query",- "schema": { "type": "string" }- }- ],- "responses": {- "200": {- "description": "",- "content": {- "application/json": {- "schema": { "type": "array", "items": { "type": "object" } }- }- }- },- "500": { "description": "Failed to get Vercel environment variables" }- },- "security": [{ "bearer": [] }]- },- "post": {- "operationId": "VercelEnvironmentVariablesController_createEnvironmentVariable",- "summary": "Creates the environment variable for the given project ID on behalf of the given team ID",- "parameters": [- {- "name": "vercel_authorization",- "required": true,- "in": "header",- "schema": { "type": "string" }- },- {- "name": "projectId",- "required": true,- "in": "query",- "schema": { "type": "string" }- },- {- "name": "teamId",- "required": false,- "in": "query",- "schema": { "type": "string" }- }- ],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/CreateVercelEnvironmentVariableBody"- }- }- }- },- "responses": {- "201": {- "description": "",- "content": {- "application/json": { "schema": { "type": "object" } }- }- },- "500": { "description": "Failed to get the environment variables" }- },- "security": [{ "bearer": [] }]- }- },- "/system/github-secret-alert": {- "post": {- "operationId": "GithubSecretAlertController_resetJwt",- "summary": "Reset JWT if leaked keys found by GitHub secret scanning",- "parameters": [- {- "name": "github-public-key-identifier",- "required": true,- "in": "header",- "schema": { "type": "string" }- },- {- "name": "github-public-key-signature",- "required": true,- "in": "header",- "schema": { "type": "string" }- }- ],- "requestBody": {- "required": true,- "content": { "application/json": { "schema": { "type": "string" } } }- },- "responses": {- "200": { "description": "" },- "500": { "description": "Failed to reset JWT" }- }- }- },- "/system/projects/{ref}/secrets/refresh": {- "post": {- "operationId": "SecretsRefreshController_refreshSecrets",- "summary": "Refreshes secrets",- "parameters": [- {- "name": "ref",- "required": true,- "in": "path",- "description": "Project ref",- "schema": { "minLength": 20, "maxLength": 20, "type": "string" }- }- ],- "responses": {- "201": { "description": "" },- "500": { "description": "Failed to refresh secrets" }- },- "security": [{ "apiKeyHeader": [], "apiKeyParam": [] }]- }- },- "/system/auth/{ref}/templates/{template}": {- "get": {- "operationId": "TemplateController_getTemplate",- "summary": "Gets GoTrue template",- "parameters": [- {- "name": "ref",- "required": true,- "in": "path",- "schema": { "type": "string" }- },- {- "name": "template",- "required": true,- "in": "path",- "schema": {- "enum": [- "confirmation",- "email-change",- "invite",- "magic-link",- "recovery"- ],- "type": "string"- }- }- ],- "responses": {- "200": {- "description": "",- "content": {- "application/json": { "schema": { "type": "string" } }- }- },- "500": { "description": "Failed to retrieve GoTrue template" }- },- "security": [{ "apiKeyHeader": [], "apiKeyParam": [] }]- }- },- "/system/stripe/subscriptions": {- "post": {- "operationId": "StripeSubscriptionsController_createSubscription",- "summary": "Creates Stripe subscription",- "parameters": [],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/CreateSubscriptionBody"- }- }- }- },- "responses": {- "201": { "description": "" },- "500": { "description": "Failed to create Stripe subscription" }- },- "security": [{ "apiKeyHeader": [], "apiKeyParam": [] }]- }- },- "/system/stripe/subscriptions/{projectId}": {- "delete": {- "operationId": "StripeSubscriptionsController_cancelSubscription",- "summary": "Cancels Stripe subscription",- "parameters": [- {- "name": "projectId",- "required": true,- "in": "path",- "schema": { "type": "number" }- }- ],- "responses": {- "200": { "description": "" },- "500": { "description": "Failed to cancel Stripe subscription" }- },- "security": [{ "apiKeyHeader": [], "apiKeyParam": [] }]- }- },- "/system/stripe/sync": {- "post": {- "operationId": "StripeSyncController_syncStripe",- "summary": "Sync Supabase organization with Stripe customer",- "parameters": [],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": { "$ref": "#/components/schemas/StripeSyncBody" }- }- }- },- "responses": {- "201": { "description": "" },- "500": {- "description": "Failed to sync Supabase organization with Stripe customer"- }- },- "security": [{ "apiKeyHeader": [], "apiKeyParam": [] }]- }- },- "/system/stripe/webhooks": {- "post": {- "operationId": "StripeWebhooksController_processEvent",- "summary": "Processes Stripe event",- "parameters": [- {- "name": "stripe-signature",- "required": true,- "in": "header",- "schema": { "type": "string" }- }- ],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": { "$ref": "#/components/schemas/Buffer" }- }- }- },- "responses": {- "200": { "description": "" },- "500": { "description": "Failed to process Stripe event" }- }- }- },"/v1/organizations": {"get": {"operationId": "OrganizationsController_getOrganizations",@@ -5399,15 +1034,7 @@"s3_bucket": { "type": "string" },"inserted_at": { "type": "string" }},- "required": [- "id",- "data",- "project_id",- "status",- "s3_path",- "s3_bucket",- "inserted_at"- ]+ "required": ["id", "data", "project_id", "status", "s3_path", "s3_bucket", "inserted_at"]},"BackupsResponse": {"type": "object",@@ -5434,14 +1061,7 @@}}},- "required": [- "tierId",- "tierKey",- "region",- "walg_enabled",- "backups",- "physicalBackupData"- ]+ "required": ["tierId", "tierKey", "region", "walg_enabled", "backups", "physicalBackupData"]},"DownloadBackupBody": {"type": "object",@@ -5454,15 +1074,7 @@"s3_path": { "type": "string" },"status": { "type": "string" }},- "required": [- "id",- "data",- "inserted_at",- "project_id",- "s3_bucket",- "s3_path",- "status"- ]+ "required": ["id", "data", "inserted_at", "project_id", "s3_bucket", "s3_path", "status"]},"DownloadBackupResponse": {"type": "object",@@ -5480,15 +1092,7 @@"s3_path": { "type": "string" },"status": { "type": "string" }},- "required": [- "id",- "data",- "inserted_at",- "project_id",- "s3_bucket",- "s3_path",- "status"- ]+ "required": ["id", "data", "inserted_at", "project_id", "s3_bucket", "s3_path", "status"]},"PointInTimeRestoreBody": {"type": "object",@@ -5504,13 +1108,7 @@"billing_email": { "type": "string" },"stripe_customer_id": { "type": "string" }},- "required": [- "id",- "slug",- "name",- "billing_email",- "stripe_customer_id"- ]+ "required": ["id", "slug", "name", "billing_email", "stripe_customer_id"]},"CreateOrganizationBody": {"type": "object",@@ -5535,14 +1133,7 @@"stripe_customer_id": { "type": "string" },"status": { "type": "string", "enum": ["ACTIVE", "REMOVED"] }},- "required": [- "id",- "slug",- "name",- "billing_email",- "stripe_customer_id",- "status"- ]+ "required": ["id", "slug", "name", "billing_email", "stripe_customer_id", "status"]},"Member": {"type": "object",