monday.com is a powerful project management system — a complete Work OS designed to help your team complete projects efficiently, collaborate effectively, and grow online.
Go to siteimport { axios } from "@pipedream/platform"
export default defineComponent({
props: {
monday_oauth: {
type: "app",
app: "monday_oauth",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.monday.com/v2`,
headers: {
Authorization: `Bearer ${this.monday_oauth.$auth.oauth_access_token}`,
},
params: {
query: `query {
me {
id
email
}
}`,
},
})
},
})
monday.com (OAuth) uses OAuth authentication. When you connect your monday.com (OAuth) account, Pipedream will open a popup window where you can sign into monday.com (OAuth) and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any monday.com (OAuth) API.
Pipedream requests the following authorization scopes when you connect your account:
GET
https://auth.monday.com/oauth2/authorize
?
client_id={{oauth.client_id}}
&
redirect_uri={{oauth.redirect_uri}}
&
state={{oauth.state}}
POST
https://auth.monday.com/oauth2/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}}
&
code={{oauth.code}}