Skip to content

Retrieve an AI agent

Request

Beta
OAuth 2.0 scope:
  • okta.aiAgents.read
Admin roles:
  • SUPER_ADMIN

Retrieves a registered AI agent by its unique identifier

Path
agentIdstringrequired

ID of the AI agent in Okta

Example:wlpcFogtKCrK9aYq3fgV
Query
expandstring

Specifies additional metadata to include in the _embedded response object. sources includes the _embedded.sources object with associated sources.

Example:expand=sources
curl -i -X GET \
  'https://subdomain.okta.com/workload-principals/api/v1/ai-agents/wlpcFogtKCrK9aYq3fgV?expand=sources'

Responses

OK

Bodyapplication/json
createdstring, (date-time)read-only

Timestamp when the AI agent was created

idstringread-only

Unique ID for the AI agent in Okta

lastUpdatedstring, (date-time)read-only

Timestamp when the AI agent was updated

profileobject(AIAgentProfile)

AI agent profile

sourcestring(AIAgentSource)read-only

How the AI agent was added to Okta. The following are the current values:

  • MANUAL: The AI agent was created manually
  • IMPORTED: The AI agent was imported from an AI agent provider
  • DISCOVERED: The AI agent was discovered automatically Custom values beyond the listed enum are also accepted.
Enum:"MANUAL""IMPORTED""DISCOVERED"
Example:"MANUAL"
statusstring

When an AI agent is created, it's in the STAGED status. After credentials and owners are associated with the agent, you can set it to the ACTIVE status.

Enum:"ACTIVE""INACTIVE""STAGED"
oauthClientobject(WorkloadPrincipalOAuthClient)

The workload principal's OAuth client identity.

signOnProviderobject(WorkloadPrincipalSignOnProvider)

The sign-on provider bound to the workload principal.

_embeddedobject(AIAgentEmbedded)

Additional data embedded on an AI agent through the expand query parameter. Each property is only present when the corresponding expand value was requested and the underlying data exists for the AI agent.

appIdstringdeprecated

The ID of the connected app for the AI agent. Deprecated. Use the Delegation Links API instead.

externalIdstringread-onlydeprecated

Unique external ID for an AI agent

platformstringdeprecated

The hosting platform of the AI agent. The following are example supported platforms:

  • AWS_BEDROCK_AGENTS
  • AWS_BEDROCK_AGENTCORE
  • SALESFORCE_AGENTFORCE
  • GEMINI_ENTERPRISE_AGENT_PLATFORM
  • MICROSOFT_COPILOT_STUDIO
  • MICROSOFT_FOUNDRY
  • SERVICENOW
  • DATAROBOT_AGENT_WORKFORCE_PLATFORM
  • CLAUDE_MANAGED_AGENTS
  • WORKDAY_ASOR
  • LANGSMITH_AGENTS
  • DATABRICKS_GENIE_AGENTS
  • DATABRICKS_AGENT_BRICKS
  • TINES_AGENTS
  • CURSOR_CLOUD_AGENTS
  • SNOWFLAKE_CORTEX_AGENTS
  • UIPATH_AGENTS
  • N8N_WORKFLOW_AGENTS
Response
{ "id": "wlpx8kR27j0U7HGDM1h4", "externalId": "7TTZGRL8PV", "created": "2022-04-04T15:56:05.000Z", "lastUpdated": "2022-05-05T18:15:44.000Z", "status": "ACTIVE", "appId": "0oab1234EXAMPLEID5d6", "platform": "OKTA", "source": "MANUAL", "profile": { "name": "Orchestrator Agent", "description": "Orchestrator Agent" }, "_links": { "self": { … }, "providers": [ … ] } }