Skip to content

Add an authorization server to an A2A server

Request

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

Adds an Okta custom authorization server to an A2A server. Provide the orn of an existing Okta custom authorization server in your org. Okta validates that the authorization server exists and resolves its metadata automatically.

Path
a2aServerIdstringrequired

ID of an A2A server

Example:wlpx9jQ16k9V8IFEL0g3
Bodyapplication/jsonrequired
ornstringrequired

The ORN of an existing Okta custom authorization server

Example:"orn:okta:idp:00o5rb5mt2H3d1TJd0h7:authorization_servers:aus5rb5mt2H3d1TJd0h7"
typestringrequired
ValueDescription
OKTA

An Okta custom authorization server resolved from the org

Example:"OKTA"
curl -i -X POST \
  https://subdomain.okta.com/resource-servers/api/v1/a2a-servers/wlpx9jQ16k9V8IFEL0g3/authorization-servers \
  -H 'Content-Type: application/json' \
  -d '{
    "type": "OKTA",
    "orn": "orn:okta:idp:00o5rb5mt2H3d1TJd0h7:authorization_servers:aus5rb5mt2H3d1TJd0h7"
  }'

Responses

Accepted

Headers
Locationstring, (uri)required

URL to poll for operation status. See Resource Server Operations API.

Example:"https://{yourOktaDomain}/resource-servers/api/v1/operations/op-1a2b3c4d"
Response
No content