Skip to content
Duo Security logo

Connectors / IT · HTTP Connector

Automate Duo Security with Tray.ai

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.

Step 1

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.

Step 2

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.

Step 3

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.

Step 4

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.

Give your AI agents Duo Security tools

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.

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.