Skip to content

List all AI agent connections

Request

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

Lists all connections for the AI agent

Path
agentIdstringrequired

ID of the agent

Example:wlpkhjm0jnDp8RrUu0g4
Query
afterstring

The cursor to use for pagination. It is an opaque string that specifies your current location in the list and is obtained from the Link response header. See Pagination and Link header.

limitinteger, [ 1 .. 200 ]

A limit on the number of objects to return

Default:20
filterstring, (scim-filter), <= 1024 characters

Optional filter expression to narrow resource connections for the AI agent.

The expression supports the eq operator and the and composition with the following attributes:

  • connectionType
  • status
  • resourceIndicator
  • authorizationServer.orn
  • resource.orn

Only the and composition is supported in this release (no or or other operators).

When omitted, all resource connections for the AI agent are returned.

Note: This operation requires URL encoding. See Special characters.

Examples:
Filter by IDENTITY_ASSERTION_CUSTOM_AS connection type
filter=connectionType eq "IDENTITY_ASSERTION_CUSTOM_AS"
Filter by STS_VAULT_SECRET connection type
filter=connectionType eq "STS_VAULT_SECRET"
Filter by STS_SERVICE_ACCOUNT connection type
filter=connectionType eq "STS_SERVICE_ACCOUNT"
Find a connection to a specific A2A server by resourceIndicator
filter=resourceIndicator eq "https://a2a.example.com"
Narrow to active A2A identity-assertion connections
filter=connectionType eq "IDENTITY_ASSERTION_A2A_SERVER" and status eq "ACTIVE"
Connections protected by a specific authorization server
filter=authorizationServer.orn eq "orn:okta:idp:00o1n8sbwArJ7OQRw406:authorization_servers:aus5rb5mt2H3d1TJd0h7"
Filter by STS_ACCESS_TOKEN connection type
filter=connectionType eq "STS_ACCESS_TOKEN"
Filter by IDENTITY_ASSERTION_A2A_SERVER connection type
filter=connectionType eq "IDENTITY_ASSERTION_A2A_SERVER"
Same lookup by A2A server ORN
filter=resource.orn eq "orn:okta:directory:00o1n8sbwArJ7OQRw406:resource-servers:a2a:wlpkhjm0jnDp8RrUu0g4"
Filter by IDENTITY_ASSERTION_MCP_SERVER connection type
filter=connectionType eq "IDENTITY_ASSERTION_MCP_SERVER"
Same lookup by MCP server ORN
filter=resource.orn eq "orn:okta:directory:00o1n8sbwArJ7OQRw406:resource-servers:mcp:mcp2c8xwvBn4h2Ry50g7"
curl -i -X GET \
  'https://subdomain.okta.com/workload-principals/api/v1/ai-agents/wlpkhjm0jnDp8RrUu0g4/connections?after=string&limit=20&filter=connectionType%20eq%20%22IDENTITY_ASSERTION_CUSTOM_AS%22'

Responses

A list of connections for the AI agent

Headers
X-Rate-Limit-Limitinteger, >= 1required

The rate-limit ceiling for the current request

Example:60
X-Rate-Limit-Remaininginteger, >= 0required

The number of requests left for the current rate-limit window

Example:60
X-Rate-Limit-Resetinteger, >= 0required

The time when the rate limit resets, specified in UTC epoch time (in seconds)

Example:1609459200
Bodyapplication/json
dataArray of objects(ResourceConnection)required

All connections the AI agent has established

Response
{ "data": [ { … }, { … }, { … } ], "_links": { "self": { … } } }