import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
supabase_management_api: {
type: "app",
app: "supabase_management_api",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.supabase.com/v1/organizations `,
headers: {
Authorization: `Bearer ${this.supabase_management_api.$auth.oauth_access_token}`,
"Accept": `application/json`,
},
})
},
})
Emit new event when a database backup is completed for a project. See the documentation
Creates a new Supabase project within a specified organization. See the documentation
Generates TypeScript types based on the current database schema for a specified Supabase project. See the documentation
Supabase Management API uses OAuth authentication. When you connect your Supabase Management API account, Pipedream will open a popup window where you can sign into Supabase Management API and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Supabase Management API API.
Pipedream requests the following authorization scopes when you connect your account:
GET
https://api.supabase.com/v1/oauth/authorize
?
client_id={{oauth.client_id}}
&
redirect_uri={{oauth.redirect_uri}}
&
state={{oauth.state}}
&
response_type=code
&
scope={{oauth.space_separated_scopes}}
POST
https://api.supabase.com/v1/oauth/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
redirect_uri={{oauth.redirect_uri}}
&
grant_type=authorization_code
&
code={{oauth.code}}
POST
https://api.supabase.com/v1/oauth/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
grant_type=refresh_token
&
refresh_token={{oauth.refresh_token}}