Join thousands of companies that rely on Envoy to efficiently manage hybrid workplaces, so everyone inside can connect, collaborate, and thrive.
Go to siteimport { axios } from "@pipedream/platform"
export default defineComponent({
props: {
envoy: {
type: "app",
app: "envoy",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.envoy.com/v1/employees/`,
headers: {
Authorization: `Bearer ${this.envoy.$auth.oauth_access_token}`,
},
})
},
})
Emit new event for each visitor who signed in or out. See the docs.
Emit new event for each invitations to a person or a group of people to visit a location. See the docs.
Envoy uses OAuth authentication. When you connect your Envoy account, Pipedream will open a popup window where you can sign into Envoy and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Envoy API.
Pipedream requests the following authorization scopes when you connect your account:
locations.read
companies.read
employees.read
token.refresh
invites.read
entries.read
invites.write
GET
https://app.envoy.com/a/auth/v0/authorize
?
client_id={{oauth.client_id}}
&
redirect_uri={{oauth.redirect_uri}}
&
state={{oauth.state}}
&
response_type=code
&
scope={{oauth.comma_separated_scopes}}
POST
https://app.envoy.com/a/auth/v0/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://app.envoy.com/a/auth/v0/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}}