Twist

Clear & Organized Team Communication

Go to site

Twist API Integrations

Build and run workflows using the Twist API. Use 1000s of open source triggers and actions across 800+ apps. Or write custom code to integrate any app or API in seconds.

import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    twist: {
      type: "app",
      app: "twist",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://api.twist.com/api/v3/users/get_session_user`,
      headers: {
        Authorization: `Bearer ${this.twist.$auth.oauth_access_token}`,
      },
    })
  },
})

Authentication

Twist uses OAuth authentication. When you connect your Twist account, Pipedream will open a popup window where you can sign into Twist and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Twist API.

Pipedream requests the following authorization scopes when you connect your account:

user:writeuser:readworkspaces:writeworkspaces:readchannels:removechannels:writechannels:readthreads:removethreads:writethreads:readcomments:removecomments:writecomments:readgroups:removegroups:writegroups:readmessages:removemessages:writemessages:readreactions:removereactions:writereactions:readsearch:readattachments:writeattachments:readnotifications:writenotifications:read
OAuth Request Configurations:
  1. authorization
    GEThttps://twist.com/oauth/authorize?client_id={{oauth.client_id}}&state={{oauth.state}}&scope={{oauth.comma_separated_scopes}}
  2. accessToken
    POSThttps://twist.com/oauth/access_tokencontent-type: application/x-www-form-urlencodedaccept: application/json
    client_id={{oauth.client_id}}&client_secret={{oauth.client_secret}}&redirect_uri={{oauth.redirect_uri}}&grant_type=authorization_code&code={{oauth.code}}