Skip to main content
Cloud has the newest features. Some may not be in a release yet; the newest release is Identity & Access Management 7.3.0.

Agent Management API

Download OpenAPI (YAML)Version 1.0.0

Base URL: https://api.asgardeo.io/t/<ORGANIZATION_NAME>/scim2

The AI Agent Management API (version 1.0.0).

Download the OpenAPI definition (YAML)

Security schemes​

OAuth2: oauth2

authorizationCode flow, token URL https://api.asgardeo.io/t/{organization-name}/oauth2/token, authorization URL https://api.asgardeo.io/t/{organization-name}/oauth2/authorize

5 scopes
ScopeDescription
internal_agent_mgt_createCreate agents
internal_agent_mgt_listList agents
internal_agent_mgt_viewView agent details
internal_agent_mgt_updateUpdate agents
internal_agent_mgt_deleteDelete agents

BasicAuth: HTTP basic

Agents Endpoint​

Retrieve a list of agents​

GET /Agents

This API returns agents according to the specified pagination and attribute parameters.
Scope(Permission) required: internal_agent_mgt_list

Parameters

NameInTypeRequiredDescription
startIndexqueryinteger (int32)

The 1-based index of the first query result.

Default: 1

countqueryinteger (int32)

Specifies the desired maximum number of query results per page.

Default: 100

attributesqueryarray of string

A multi-valued list of strings indicating the names of resource attributes to include in the response.

excludedAttributesqueryarray of string

A multi-valued list of strings indicating the names of resource attributes to exclude in the response.

Responses

CodeDescriptionSchema
200

Successful response with a list of AI agents.

AgentListResponseObject
400

Bad Request

ErrorInvalidInput
401

Unauthorized

ErrorUnauthorized
403

Forbidden

ErrorForbidden
500

Internal Server Error

ErrorInternalServerError

Create a new AI agent​

POST /Agents

This API creates an AI agent and returns the agent details along with the agent's unique ID and initial password. Scope(Permission) required: internal_agent_mgt_create

Request body (required): application/scim+json

Agent object that needs to be created.

Schema: AgentCreateObject

4 properties
NameTypeRequiredDescription
urn:scim:wso2:agent:schemaobjectYes
urn:scim:wso2:agent:schema.Descriptionstring

A description for the agent.

urn:scim:wso2:agent:schema.DisplayNamestringYes

A human-readable name for the agent.

urn:scim:wso2:agent:schema.OwnerstringYes

The ID of the owner of this agent.

Responses

CodeDescriptionSchema
201

Agent created successfully.

AgentResponseObject
400

Bad Request

ErrorInvalidInput
401

Unauthorized

ErrorUnauthorized
403

Forbidden

ErrorForbidden
404

Not Found

ErrorNotFound
500

Internal Server Error

ErrorInternalServerError

Retrieve an agent by ID​

GET /Agents/{agentId}

This API returns the agent details for the specified agent ID. Scope(Permission) required: internal_agent_mgt_view

Parameters

NameInTypeRequiredDescription
agentIdpathstringYes

ID of the agent to retrieve.

attributesqueryarray of string

A multi-valued list of strings indicating the names of resource attributes to include in the response.

excludedAttributesqueryarray of string

A multi-valued list of strings indicating the names of resource attributes to exclude in the response.

Responses

CodeDescriptionSchema
200

Successful response with agent details.

AgentResponseObject
400

Bad Request

ErrorInvalidInput
401

Unauthorized

ErrorUnauthorized
403

Forbidden

ErrorForbidden
404

Not Found

ErrorNotFound
500

Internal Server Error

ErrorInternalServerError

Update an existing agent by ID (replace)​

PUT /Agents/{agentId}

This API replaces the existing agent details with the provided agent object. Scope(Permission) required: internal_agent_mgt_update

Parameters

NameInTypeRequiredDescription
agentIdpathstringYes

ID of the agent to update.

Request body (required): application/scim+json

Agent object that needs to be updated.

Schema: AgentUpdateObject

6 properties
NameTypeRequiredDescription
idstring

A unique identifier for the SCIM resource.

userNamestring

Unique identifier for the agent.

urn:scim:wso2:agent:schemaobject
urn:scim:wso2:agent:schema.Descriptionstring

A description for the agent.

urn:scim:wso2:agent:schema.DisplayNamestring

A human-readable name for the agent.

urn:scim:wso2:agent:schema.Ownerstring

The ID of the owner of this agent.

Responses

CodeDescriptionSchema
200

Agent updated successfully.

AgentResponseObject
400

Bad Request

ErrorInvalidInput
401

Unauthorized

ErrorUnauthorized
403

Forbidden

ErrorForbidden
404

Not Found

ErrorNotFound
500

Internal Server Error

ErrorInternalServerError

Delete an agent by ID​

DEL /Agents/{agentId}

This API deletes the specified agent. Scope(Permission) required: internal_agent_mgt_delete

Parameters

NameInTypeRequiredDescription
agentIdpathstringYes

ID of the agent to delete.

Responses

CodeDescriptionSchema
204

Agent deleted successfully.

400

Bad Request

ErrorInvalidInput
401

Unauthorized

ErrorUnauthorized
403

Forbidden

ErrorForbidden
404

Not Found

ErrorNotFound
500

Internal Server Error

ErrorInternalServerError

Partially update an agent by ID​

PATCH /Agents/{agentId}

This API applies partial modifications to the specified agent using SCIM PATCH operations. Common use cases include:

  • Updating agent description
  • Deactivating an agent
  • Updating agent secret/password Scope(Permission) required: internal_agent_mgt_update

Parameters

NameInTypeRequiredDescription
agentIdpathstringYes

ID of the agent to partially update.

Request body (required): application/scim+json

Patch operations to apply to the agent.

Schema: PatchOperation

2 properties
NameTypeRequiredDescription
schemasarray of stringYes
Operationsarray of objectYes

Responses

CodeDescriptionSchema
200

Agent updated successfully.

AgentResponseObject
400

Bad Request

ErrorInvalidInput
401

Unauthorized

ErrorUnauthorized
403

Forbidden

ErrorForbidden
404

Not Found

ErrorNotFound
500

Internal Server Error

ErrorInternalServerError

Schemas​

AgentCreateObject​

Type: object

SCIM agent resource for creation.

4 properties
NameTypeRequiredDescription
urn:scim:wso2:agent:schemaobjectYes
urn:scim:wso2:agent:schema.Descriptionstring

A description for the agent.

urn:scim:wso2:agent:schema.DisplayNamestringYes

A human-readable name for the agent.

urn:scim:wso2:agent:schema.OwnerstringYes

The ID of the owner of this agent.

AgentUpdateObject​

Type: object

SCIM agent resource for update.

6 properties
NameTypeRequiredDescription
idstring

A unique identifier for the SCIM resource.

userNamestring

Unique identifier for the agent.

urn:scim:wso2:agent:schemaobject
urn:scim:wso2:agent:schema.Descriptionstring

A description for the agent.

urn:scim:wso2:agent:schema.DisplayNamestring

A human-readable name for the agent.

urn:scim:wso2:agent:schema.Ownerstring

The ID of the owner of this agent.

AgentResponseObject​

Type: object

SCIM agent resource.

16 properties
NameTypeRequiredDescription
schemasarray of string

A complex attribute that contains one or more URIs that indicate the namespaces of the SCIM schemas that define the attributes present in the resource.

idstring

A unique identifier for the SCIM resource as defined by the service provider.

metaobject

A complex attribute containing resource metadata.

meta.resourceTypestring

The name of the resource type.

meta.createdstring (date-time)

The date and time at which the resource was added to the service provider.

meta.lastModifiedstring (date-time)

The date and time at which the resource was last modified in the service provider.

meta.locationstring

The URI of the resource being returned.

userNamestring

Unique identifier for the agent.

passwordstring

The agent's clear text password (only returned on creation).

rolesarray of Role

A list of roles for the agent.

urn:scim:wso2:schemaobject
urn:scim:wso2:schema.lastPasswordUpdateTimestring

The epoch timestamp when the password was last updated.

urn:scim:wso2:agent:schemaobject
urn:scim:wso2:agent:schema.Descriptionstring

A description for the agent.

urn:scim:wso2:agent:schema.DisplayNamestring

A human-readable name for the agent.

urn:scim:wso2:agent:schema.Ownerstring

The ID of the owner of this agent.

AgentListResponseObject​

Type: object

A list of SCIM agents.

5 properties
NameTypeRequiredDescription
totalResultsinteger (int32)

The total number of results returned by the list operation.

startIndexinteger (int32)

The 1-based index of the first result in the current page.

itemsPerPageinteger (int32)

The number of results in the current page.

schemasarray of string

A complex attribute that contains one or more URIs that indicate the namespaces of the SCIM schemas that define the attributes present in the resource.

Resourcesarray of AgentResponseObject

Role​

Type: object

A complex attribute that specifies the agent's roles.

6 properties
NameTypeRequiredDescription
valuestring

The identifier of the role.

$refstring

The URI of the role.

displaystring

A human-readable name for the role.

audienceValuestring

The audience value of the role.

audienceTypestring

The audience type of the role.

audienceDisplaystring

A human-readable display name for the role's audience.

PatchOperation​

Type: object

A single SCIM patch operation.

2 properties
NameTypeRequiredDescription
schemasarray of stringYes
Operationsarray of objectYes

ErrorInvalidInput​

Type: object

4 properties
NameTypeRequiredDescription
schemasarray of string
scimTypestring

A SCIM detail error keyword.

detailstring

A more specific error message.

statusstring

The HTTP status code.

ErrorUnauthorized​

Type: object

3 properties
NameTypeRequiredDescription
schemasarray of string
detailstring

A more specific error message.

statusstring

The HTTP status code.

ErrorForbidden​

Type: object

3 properties
NameTypeRequiredDescription
schemasarray of string
detailstring

A more specific error message.

statusstring

The HTTP status code.

ErrorNotFound​

Type: object

3 properties
NameTypeRequiredDescription
schemasarray of string
detailstring

A more specific error message.

statusstring

The HTTP status code.

ErrorConflict​

Type: object

3 properties
NameTypeRequiredDescription
schemasarray of string
detailstring

A more specific error message.

statusstring

The HTTP status code.

ErrorInternalServerError​

Type: object

3 properties
NameTypeRequiredDescription
schemasarray of string
detailstring

A more specific error message.

statusstring

The HTTP status code.

Was this page helpful?