The AI Agent Connections API provides connection management between agents and resources. See Secure an AI agent.
Lists all connections for the agent
| after | string The cursor to use for pagination. It is an opaque string that specifies your current location in the list and is obtained from the |
| limit | integer [ 1 .. 200 ] Default: 20 A limit on the number of objects to return |
A list of connections for the agent
Forbidden
Not Found
Too Many Requests
{- "data": [
- {
- "connectionType": "IDENTITY_ASSERTION_CUSTOM_AS",
- "id": "mcn4d5e6f7g8h9i0j1k2",
- "orn": "orn:okta:idp:00o1n8sbwArJ7OQRw406:connections:mcn4d5e6f7g8h9i0j1k2",
- "status": "ACTIVE",
- "resourceIndicator": "orn:okta:idp:00o5rb5mt2H3d1TJd0h7:authorization_servers:aus5rb5mt2H3d1TJd0h7",
- "authorizationServer": {
- "orn": "orn:okta:idp:00o5rb5mt2H3d1TJd0h7:authorization_servers:aus5rb5mt2H3d1TJd0h7",
- "name": "Custom Auth Server",
- "_links": {
- "web": {
- "type": "text/html"
}
}
}, - "scopeCondition": "INCLUDE_ONLY",
- "scopes": [
- "crm.read",
- "crm.write"
], - "_links": {
}
}, - {
- "connectionType": "STS_VAULT_SECRET",
- "id": "mcn2b3c4d5e6f7g8h9i0",
- "orn": "orn:okta:idp:00o1n8sbwArJ7OQRw406:connections:mcn2b3c4d5e6f7g8h9i0",
- "status": "ACTIVE",
- "resourceIndicator": "orn:okta:pam:00o1n8sbwArJ7OQRw406:secrets:d2642f68-df50-4ba8-a898-6c0f82f89d8a",
- "secret": {
- "orn": "orn:okta:pam:00o1n8sbwArJ7OQRw406:secrets:d2642f68-df50-4ba8-a898-6c0f82f89d8a",
- "name": "AWS Access Key Secret",
- "path": "/prod/aws-keys",
- "description": "Production AWS API credentials",
- "_links": {
}
}, - "_links": {
}
}, - {
- "connectionType": "STS_SERVICE_ACCOUNT",
- "id": "mcn3c4d5e6f7g8h9i0j1",
- "orn": "orn:okta:idp:00o1n8sbwArJ7OQRw406:connections:mcn3c4d5e6f7g8h9i0j1",
- "status": "INACTIVE",
- "resourceIndicator": "orn:okta:pam:00o1n8sbwArJ7OQRw406:apps:slack:0oa5rb5mt2H3d1TJd0h7:service_accounts:4923897d-c665-488a-9480-a415b4080861",
- "app": {
- "orn": "orn:okta:idp:00o1n8sbwArJ7OQRw406:apps:slack:0oa5rb5mt2H3d1TJd0h7",
- "name": "Slack Enterprise",
- "_links": {
- "self": {
}, - "web": {
- "type": "text/html"
}
}
}, - "serviceAccount": {
- "orn": "orn:okta:pam:00o1n8sbwArJ7OQRw406:apps:slack:0oa5rb5mt2H3d1TJd0h7:service_accounts:4923897d-c665-488a-9480-a415b4080861",
- "name": "Slack Notification Bot",
- "_links": {
}
}, - "_links": {
}
}
], - "_links": {
}
}Creates a managed connection for the agent
| connectionType required | string Type of connection authentication method | ||
required | object Reference to a custom authorization server and its configuration | ||
| |||
| scopeCondition required | string (ScopeCondition) Determines how Okta evaluates requested scopes for the connection. | ||
| scopes required | Array of strings (ConnectionScopes) non-empty Array of scopes. Required for all | ||
| resourceIndicator | string <uri> Resource indicator used when requesting tokens. Defaults to the authorization server's ORN if not specified. | ||
A successful connection created response
Bad Request
Forbidden
Not Found
Too Many Requests
{- "connectionType": "IDENTITY_ASSERTION_CUSTOM_AS",
- "authorizationServer": {
- "orn": "orn:okta:idp:00o5rb5mt2H3d1TJd0h7:authorization_servers:aus5rb5mt2H3d1TJd0h7"
}, - "scopeCondition": "EXCLUDE",
- "scopes": [
- "crm.admin.delete",
- "crm.admin.write"
]
}{- "connectionType": "IDENTITY_ASSERTION_CUSTOM_AS",
- "id": "mcn5e6f7g8h9i0j1k2l3",
- "orn": "orn:okta:idp:00o1n8sbwArJ7OQRw406:connections:mcn5e6f7g8h9i0j1k2l3",
- "status": "INACTIVE",
- "authorizationServer": {
- "orn": "orn:okta:idp:00o1n8sbwArJ7OQRw406:authorization_servers:aus5t60iloOHN9pBi0h7",
- "name": "Custom CRM Authorization Server",
- "_links": {
- "web": {
- "type": "text/html"
}
}
}, - "scopeCondition": "INCLUDE_ONLY",
- "scopes": [
- "crm.contacts.read",
- "crm.accounts.write"
], - "_links": {
}
}Retrieves a connection for the agent
Successful get a connection response
Bad Request
Forbidden
Not Found
Too Many Requests
When a managed connection enables a workload principal to obtain an ID-JAG for a custom authorization server
{- "connectionType": "IDENTITY_ASSERTION_CUSTOM_AS",
- "id": "mcn6f7g8h9i0j1k2l3m4",
- "orn": "orn:okta:idp:00o1n8sbwArJ7OQRw406:connections:mcn6f7g8h9i0j1k2l3m4",
- "status": "ACTIVE",
- "resourceIndicator": "orn:okta:idp:00o1n8sbwArJ7OQRw406:apps:crm:0oa1gjh63g214q0Hq0g4",
- "authorizationServer": {
- "orn": "orn:okta:idp:00o5rb5mt2H3d1TJd0h7:authorization_servers:aus5rb5mt2H3d1TJd0h7",
- "name": "Custom Authorization Server for CRM API",
- "_links": {
- "web": {
- "type": "text/html"
}
}
}, - "scopeCondition": "INCLUDE_ONLY",
- "scopes": [
- "crm.read",
- "crm.write"
], - "_links": {
}
}Updates a managed connection for the agent
A successful connection update response
Bad Request
Forbidden
Not Found
Too Many Requests
Update scopeCondition and scopes for an Identity Assertion connection. Only valid for IDENTITY_ASSERTION_APP_INSTANCE and IDENTITY_ASSERTION_CUSTOM_AS types.
{- "scopeCondition": "INCLUDE_ONLY",
- "scopes": [
- "crm.contacts.read",
- "crm.accounts.write",
- "crm.reports.read"
]
}{- "connectionType": "IDENTITY_ASSERTION_CUSTOM_AS",
- "id": "mcn1a2b3c4d5e6f7g8h9",
- "orn": "orn:okta:idp:00o1n8sbwArJ7OQRw406:connections:mcn1a2b3c4d5e6f7g8h9",
- "status": "ACTIVE",
- "authorizationServer": {
- "orn": "orn:okta:idp:00o1n8sbwArJ7OQRw406:authorization_servers:aus1gjh63g214q0Hq0g4",
- "name": "CRM Authorization Server",
- "_links": {
- "web": {
- "type": "text/html"
}
}
}, - "scopeCondition": "INCLUDE_ONLY",
- "scopes": [
- "crm.contacts.read",
- "crm.accounts.write",
- "crm.reports.read"
], - "_links": {
}
}Deletes a managed connection for the agent
Connection deleted
Forbidden
Not Found
Too Many Requests
{- "errorCode": "E0000006",
- "errorSummary": "You do not have permission to perform the requested action",
- "errorLink": "E0000006",
- "errorId": "sampleNUSD_8fdkFd8fs8SDBK",
- "errorCauses": [ ]
}Activates a managed connection for the agent
A successful connection activate response
Bad Request
Forbidden
Not Found
Too Many Requests
{- "connectionType": "IDENTITY_ASSERTION_CUSTOM_AS",
- "id": "mcnbcde12f3g4h5i6j7k",
- "orn": "orn:okta:idp:00o1n8sbwArJ7OQRw406:connections:mcnbcde12f3g4h5i6j7k",
- "status": "ACTIVE",
- "authorizationServer": {
- "orn": "orn:okta:idp:00o1n8sbwArJ7OQRw406:authorization_servers:aus1gjh63g214q0Hq0g4",
- "name": "Custom CRM Authorization Server",
- "_links": {
- "web": {
- "type": "text/html"
}
}
}, - "scopeCondition": "ALL_SCOPES",
- "scopes": [
- "*"
], - "_links": {
}
}Deactivates a managed connection for the agent
A successful managed connection deactivate response
Bad Request
Forbidden
Not Found
Too Many Requests
{- "connectionType": "STS_VAULT_SECRET",
- "id": "mcn0j1k2l3m4n5o6p7q8",
- "orn": "orn:okta:idp:00o1n8sbwArJ7OQRw406:connections:mcn0j1k2l3m4n5o6p7q8",
- "status": "INACTIVE",
- "secret": {
- "orn": "orn:okta:pam:00o1n8sbwArJ7OQRw406:secrets:d2642f68-df50-4ba8-a898-6c0f82f89d8a",
- "name": "Database Root Password",
- "path": "/secrets/database/root-password",
- "description": "Root password for production database server",
- "_links": {
}
}, - "_links": {
}
}