Skip to content
Duo Security logo

Connectors / IT · HTTP Connector

Duo Security integration and API

Create an integration and create bypass codes in Duo Security. Connect Duo Security to the rest of your IT stack with Tray.ai.

What can you do with Duo Security on Tray.ai?

Duo Security, part of Cisco, adds multi-factor authentication and device checks to logins, with an admin console for managing users, phones and protected applications. Tray.ai connects to Duo Security through the HTTP Connector, so your workflows can call the Duo Security API alongside the rest of your stack.

  • Create a user in Duo when a new hire is added to your HR system.
  • Delete a user in Duo when an employee's offboarding ticket closes in your IT service desk.
  • Create bypass codes when the help desk verifies a user who has lost their phone.
  • Associate a group when an employee changes department in your HR system.
Connects through
HTTP Connector
Authentication
Basic authentication
Base URL
https://api-XXXXXXXX.duosecurity.com

Set it up

Connect Duo Security to Tray.ai

Each step uses Duo Security's own API details, from its documentation.

Save Duo Security's username and password

Save the credentials Duo Security gives you as a Tray.ai authentication. The HTTP Client sends them as basic auth. They stay out of the workflow and out of the logs.

Point the HTTP Client at the API

Add an HTTP Client step and use https://api-XXXXXXXX.duosecurity.com as the base URL. Or paste a cURL example from Duo Security's API docs, and Tray.ai fills in the method, URL, and headers.

Start with “List users”

It's one of 18 documented actions, under Users. The response comes back as data the next step can map into your other apps.

Hand it to an AI agent

Wrap “Create a user” and “Retrieve a user” in workflows, and Tray.ai's Agent Gateway for MCP publishes them as governed tools Claude and other AI agents can call.

Workflows to build with Duo Security

Connect Duo Security with Okta, Workday REST and ServiceNow

Each one uses actions and events from Duo Security's own API documentation.

Enroll new Okta users in Duo Security

When

A user is activated in Okta

Then

  1. Create a user
  2. Enroll a user

With Okta

Remove Duo Security users when an employee leaves

When

An employee is terminated in Workday REST

Then

  1. Retrieve a user
  2. Delete a user

With Workday REST

Issue Duo bypass codes from approved ServiceNow requests

When

A lost device request is approved in ServiceNow

Then

  1. Create bypass codes
  2. Send the codes to the requester through ServiceNow

With ServiceNow

Apps you can build on Duo Security data

Internal tools your team can build with an AI assistant, each one using Duo Security calls from its API documentation.

MFA enrollment tracker

Lists users with their phones so IT can find who has not enrolled and send enrollment.

Protected app inventory

Lists integrations so security teams can see which applications are protected.

Duo Security MCP server for AI agents

Build an MCP server on Duo Security in Agent Gateway and choose which actions your agents can call. Every call runs with access control and an audit trail. How Agent Gateway works

  • List users
  • List integrations
  • List a user's phones
  • List a user's groups
  • Create bypass codes
  • Create a user
  • Retrieve a user
  • Modify a user

What the Duo Security API covers

5 resources and 18 documented actions, each one a call the HTTP Connector can make from a Tray.ai workflow. Connecting it takes a few clicks: here's how. New to APIs? Read what an API integration is.

Users

  • List users
  • Create a user
  • Retrieve a user
  • Modify a user
  • Delete a user
  • Enroll a user

Integrations

  • List integrations
  • Create an integration
  • Modify an integration
  • Delete an integration

User phones

  • List a user's phones
  • Associate a phone
  • Disassociate a phone

User groups

  • List a user's groups
  • Associate a group
  • Disassociate a group

Bypass codes

  • Create bypass codes
  • Retrieve bypass codes

Checked against Duo Security's own documentation on 2026-10-22

duo.com/docs/adminapi

Frequently asked questions

What can a Tray.ai workflow do in Duo Security?

The Duo Security API documents 18 actions across 5 resources (Users, Integrations, User phones, User groups, Bypass codes). For example: List users; List integrations; List a user's phones. A workflow can make any documented call through the HTTP Connector.

How does Tray.ai authenticate with Duo Security?

The Duo Security API uses basic authentication. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.

See Duo Security working against your stack.

We'll walk through a tailored demo with your systems plugged in.

Great, a couple more details

This helps us connect you with the right person. Optional, and you can skip it.