Configure Langsmith for AI agent imports
To import agents from LangSmith Deployments, you need to perform the following authentication and configuration steps in both the LangSmith and Okta tenants.
Before you begin
- You must be an Organization Admin in LangSmith.
- You must be a super admin or an AI agent admin in Okta.
Generate a LangSmith API key
Okta uses an API key to authenticate with the Langsmith endpoints.
- Sign in to your LangSmith account.
- Go to Settings.
- Select the .
- Click on +API Key and provide a Description for the API key
(for example,
okta-ai-agent-import). - In the Key Type, select the Service Key.
- Select the appropriate scope. If you selected Specific Workspaces, add the required workspaces from which the agents are to be imported.
- Set Expiration date according to your org's security policies.Note:
When the API key expires, agent imports fail until you generate a new key and update the configuration in Okta.
- Click Create API Key.
- Copy the API key and store it in a secure location.
You can't view the key again after you close the dialog.
Add the required URL hosts to the app instance
The URLs are required to access the appropriate hosts to call the APIs.
- In the Admin Console, go to .
- Select the LangSmith instance.
- Go to the General tab.
- Click Edit in the App Setting section.
-
In LangSmithUrl, enter the base URL of your Langsmith instance without the
httpsprotocol, for example,api.smith.langchain.com.For a list of regional host names, see the LangSmith User Management documentation.
- Click Save.
For a list of regional control plane host names, see the LangSmith Control Plane API reference.