SUPPORT.TWILIO.COM END OF LIFE NOTICE: This site, support.twilio.com, is scheduled to go End of Life on February 27, 2024. All Twilio Support content has been migrated to help.twilio.com, where you can continue to find helpful Support articles, API docs, and Twilio blog content, and escalate your issues to our Support team. We encourage you to update your bookmarks and begin using the new site today for all your Twilio Support needs.

How do I register an OAuth client for an AI agent?

Objective

This article shows you how to create an OAuth client so an AI agent can request authorization to act on your users' behalf, and how to safely capture the client secret you are issued.

 

Product

Identity for AI Agents

 

Environment

Twilio Console

 

Procedure

  1. In the Twilio Console, select Identity & security in the left sidebar.
  2. Select Identity for AI Agents, then Clients.
  3. Select Create a new client.
  4. In the Create new window, fill in:
  5. Name, a name for the client.
  6. Application type, First Party for trusted applications your organization owns, which will not require end-user consent, or Third Party for external applications, which will.
  7. Authentication type, Confidential for applications that can securely store a secret, where Proof Key for Code Exchange (PKCE) is optional, or Public for applications that cannot, such as native mobile or desktop apps, where PKCE is required.
  8. Allowed scopes, the OAuth scopes this client is permitted to request, chosen from your custom scopes.
  9. Select Create.
  10. For a confidential client, a window shows your Client secret. Copy it and store it somewhere safe, then tick the confirmation that you have saved it and continue.
  11. The client's details page opens, showing its Client ID and configuration.

 

Additional Information

The client secret is shown once and can never be retrieved again. If you lose it, open the client and select Edit to create a replacement.

Newly created clients have no redirect URLs. If the client uses a redirect-based grant type, its details page shows Add a Redirect URL until you add one, open Edit to add it.

Define the scopes you need on the Custom Scopes page before creating a client, so they are available to select here.

The clients table may take a few seconds to reflect a new client.

 

This content was generated by AI and reviewed, edited, and verified by a human.

Have more questions? Submit a request
Powered by Zendesk