Webflow is the leading visual development platform for building powerful websites without writing code.
Go to siteimport { axios } from "@pipedream/platform"
export default defineComponent({
props: {
webflow_v2: {
type: "app",
app: "webflow_v2",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.webflow.com/v2/token/authorized_by`,
headers: {
Authorization: `Bearer ${this.webflow_v2.$auth.oauth_access_token}`,
},
})
},
})
Webflow (v2) uses OAuth authentication. When you connect your Webflow (v2) account, Pipedream will open a popup window where you can sign into Webflow (v2) and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Webflow (v2) API.
Pipedream requests the following authorization scopes when you connect your account:
authorized_user:read
sites:read
sites:write
forms:read
forms:write
ecommerce:read
ecommerce:write
assets:read
assets:write
cms:read
cms:write
pages:read
pages:write
GET
https://webflow.com/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.webflow.com/oauth/access_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}}