Duo integration setup
If you’re new to integrations in Rewst, read through our introductory integration documentation here.
What does the Duo integration do?
Our Duo integration enables the automation of multi-factor authentication tasks. Use the Duo API within Rewst workflows to perform actions such as managing users, phones, and bypass codes.
Set up the Duo integration
Set up steps in Duo
There are three different APIs provided by Duo, as well as a key to initiate an individual user directory sync. You'll be setting up each of these APIs and pulling information from each to put into Rewst to achieve the integration.
Duo Admin API
This API allows administrators to manage their Duo accounts programmatically. With the Duo Admin API, administrators can create, update, and delete user accounts, manage two-factor authentication settings, and generate reports on user activity, among other tasks.
Duo Accounts API
The Accounts API lets customers programmatically create, delete, and manage individual Duo customer accounts. New Duo accounts created using the Accounts API are subaccounts of the account where the Accounts API application exists, creating a parent and child account relationship. A Duo account can have multiple child accounts, but a child account may only have one parent and no child accounts of its own.
Duo Auth API
This API allows developers to add two-factor authentication to their applications using Duo's authentication service. With the Duo Auth API, developers can authenticate users using Duo's two-factor authentication, retrieve information about users and their devices, and perform administrative tasks related to authentication, among other tasks.
Set up the Duo API accounts
For all of the following, make sure to copy the designated information into a secure location. Once you migrate away from the page where it is displayed, you won't be able to view that information again.
Create the Duo Admin API by following the instructions here.
You'll need the integration key, secret key, and API hostname.
Create the Duo Accounts API by following the instructions here.
You'll need the integration key, secret key, and API hostname.
Create the Duo Auth API by following the instructions here.
You'll need the integration key, secret key, and API hostname.
Obtain the Admin API directory key
Now, retrieve the Admin API directory key for directory synchronization. This key is vital for mapping users accurately within Duo's directory sync configurations.
Log in to the Duo Admin Panel.
Navigate to Users > External Directories.
Click on your configured directory from the Directory Syncs list.
Scroll down to the Admin API directory key field.
Copy the key value and store it someplace secure. You'll need it for further set up steps in Rewst.
Important notes about the directory key:
This key must be manually retrieved from the Duo Admin Panel, as it cannot be fetched programmatically via the API.
The
duo_admin_api_directory_keyis necessary only for configurations that employ directory sync. Its usage is specific to ensuring precise user-directory mapping for each organization.

Set up steps in Rewst
Navigate to Configuration > Integrations in the left side menu of your Rewst platform.
Search for
Duoin the integrations page.
Click on the integration tile to launch the configuration setup page.
Under Parameters, enter the information you copied from Duo into its relevant field. Note that all fields are required:
Auth Host: The Duo API server hostname
Auth Integration Key: The Duo API integration key
Auth Secret Key: The Duo secret key
Account Host: The Duo accounts server hostname
Accounts API Integration Key: The Duo accounts API integration key
Accounts API Secret Key: The Duo accounts secret key
Admin Host: The Duo API server hostname
Admin Integration Key: The Duo admin API integration key
Admin Secret Key: The Duo admin secret key

Click Save Configuration.
Rewst will do a quick validation of your input. Once completed, you'll see a new section beneath the configuration form for organization mapping. Complete your mapping as desired.
Apply the Admin API Directory Key for each organization in the
duo_admin_api_directory_keyfield under the organization mapping menu.

Got an idea for a new Integration? Rewst is constantly adding new integrations to our integrations page. Submit your idea or upvote existing ideas here in our Canny feedback collector.
Actions and endpoints
Accounts API
List Accounts
Lists all accounts
Accounts API
Create Account
Creates a new account
Accounts API
Delete Account
Deletes an account
Accounts API
Accounts API Action
Generic action for making requests against the Accounts API
Admin API - Bypass Code
List Bypass Codes
Lists all bypass codes
Admin API - Bypass Code
Get Bypass Code
Gets a specific bypass code by ID
Admin API - Bypass Code
Delete Bypass Code
Deletes a bypass code
Admin API - Bypass Code
List Bypass Code(s) By User
Lists bypass codes for a specific user
Admin API - Bypass Code
Create Bypass Code for User
Creates bypass codes for a user
Admin API - Bypass Code
Retrieve Bypass Codes for User
Retrieves bypass codes for a user
Admin API - General
Auth API Action
Generic action for making requests against the Auth API
Admin API - General
Admin API Action
Generic action for making requests against the Admin API
Admin API - Phones
List Phones
Lists all phones
Admin API - Phones
Get Phone
Gets a specific phone by ID
Admin API - Phones
Delete Phone by ID
Deletes a phone by ID
Admin API - Phones
Send Activation URL
Sends activation URL to a phone
Admin API - Phones
Send Activation By SMS
Sends activation link via SMS
Admin API - Phones
Send Installation By SMS
Sends installation link via SMS
Admin API - Phones
Send Passcode By SMS
Sends passcode via SMS
Admin API - Phones
Get User's Phones
Gets all phones associated with a user
Admin API - Phones
Assign Phone to User
Assigns a phone to a user
Admin API - Phones
Un-assign Phone from User
Removes phone assignment from a user
Admin API - Phones
Create Phone
Creates a new phone
Admin API - Settings
Retrieve Settings
Retrieves Duo settings
Admin API - Settings
Update Settings
Updates Duo settings
Admin API - Users
List Users
Lists all users
Admin API - Users
Get User by Username
Gets a user by username
Admin API - Users
Create User
Creates a new user
Admin API - Users
Get User
Gets a user by ID
Admin API - Users
Update User
Updates user information
Admin API - Users
Delete User
Deletes a user
Admin API - Users
Enroll User
Enrolls a user for Duo authentication
Admin API - Users
Synchronize Users
Synchronize Users from Azure AD
Auth API
Check Auth API Credentials
Carryout check against Duo API host with provided credentials.
Auth API
Ping Auth API
Carryout liveness check against Duo API host.
Auth API
Send Duo Authentication
Carry out an duo auth - i.e. Push notification.
Last updated
Was this helpful?
