Agent Management API
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
| Scope | Description |
|---|---|
internal_agent_mgt_create | Create agents |
internal_agent_mgt_list | List agents |
internal_agent_mgt_view | View agent details |
internal_agent_mgt_update | Update agents |
internal_agent_mgt_delete | Delete 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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
startIndex | query | integer (int32) | The 1-based index of the first query result. Default: | |
count | query | integer (int32) | Specifies the desired maximum number of query results per page. Default: | |
attributes | query | array of string | A multi-valued list of strings indicating the names of resource attributes to include in the response. | |
excludedAttributes | query | array of string | A multi-valued list of strings indicating the names of resource attributes to exclude in the response. |
Responses
| Code | Description | Schema |
|---|---|---|
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
| Name | Type | Required | Description |
|---|---|---|---|
urn:scim:wso2:agent:schema | object | Yes | |
urn:scim:wso2:agent:schema.Description | string | A description for the agent. | |
urn:scim:wso2:agent:schema.DisplayName | string | Yes | A human-readable name for the agent. |
urn:scim:wso2:agent:schema.Owner | string | Yes | The ID of the owner of this agent. |
Responses
| Code | Description | Schema |
|---|---|---|
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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
agentId | path | string | Yes | ID of the agent to retrieve. |
attributes | query | array of string | A multi-valued list of strings indicating the names of resource attributes to include in the response. | |
excludedAttributes | query | array of string | A multi-valued list of strings indicating the names of resource attributes to exclude in the response. |
Responses
| Code | Description | Schema |
|---|---|---|
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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
agentId | path | string | Yes | ID of the agent to update. |
Request body (required): application/scim+json
Agent object that needs to be updated.
Schema: AgentUpdateObject
6 properties
| Name | Type | Required | Description |
|---|---|---|---|
id | string | A unique identifier for the SCIM resource. | |
userName | string | Unique identifier for the agent. | |
urn:scim:wso2:agent:schema | object | ||
urn:scim:wso2:agent:schema.Description | string | A description for the agent. | |
urn:scim:wso2:agent:schema.DisplayName | string | A human-readable name for the agent. | |
urn:scim:wso2:agent:schema.Owner | string | The ID of the owner of this agent. |
Responses
| Code | Description | Schema |
|---|---|---|
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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
agentId | path | string | Yes | ID of the agent to delete. |
Responses
| Code | Description | Schema |
|---|---|---|
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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
agentId | path | string | Yes | ID of the agent to partially update. |
Request body (required): application/scim+json
Patch operations to apply to the agent.
Schema: PatchOperation
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
schemas | array of string | Yes | |
Operations | array of object | Yes |
Responses
| Code | Description | Schema |
|---|---|---|
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
| Name | Type | Required | Description |
|---|---|---|---|
urn:scim:wso2:agent:schema | object | Yes | |
urn:scim:wso2:agent:schema.Description | string | A description for the agent. | |
urn:scim:wso2:agent:schema.DisplayName | string | Yes | A human-readable name for the agent. |
urn:scim:wso2:agent:schema.Owner | string | Yes | The ID of the owner of this agent. |
AgentUpdateObject
Type: object
SCIM agent resource for update.
6 properties
| Name | Type | Required | Description |
|---|---|---|---|
id | string | A unique identifier for the SCIM resource. | |
userName | string | Unique identifier for the agent. | |
urn:scim:wso2:agent:schema | object | ||
urn:scim:wso2:agent:schema.Description | string | A description for the agent. | |
urn:scim:wso2:agent:schema.DisplayName | string | A human-readable name for the agent. | |
urn:scim:wso2:agent:schema.Owner | string | The ID of the owner of this agent. |
AgentResponseObject
Type: object
SCIM agent resource.
16 properties
| Name | Type | Required | Description |
|---|---|---|---|
schemas | array 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. | |
id | string | A unique identifier for the SCIM resource as defined by the service provider. | |
meta | object | A complex attribute containing resource metadata. | |
meta.resourceType | string | The name of the resource type. | |
meta.created | string (date-time) | The date and time at which the resource was added to the service provider. | |
meta.lastModified | string (date-time) | The date and time at which the resource was last modified in the service provider. | |
meta.location | string | The URI of the resource being returned. | |
userName | string | Unique identifier for the agent. | |
password | string | The agent's clear text password (only returned on creation). | |
roles | array of Role | A list of roles for the agent. | |
urn:scim:wso2:schema | object | ||
urn:scim:wso2:schema.lastPasswordUpdateTime | string | The epoch timestamp when the password was last updated. | |
urn:scim:wso2:agent:schema | object | ||
urn:scim:wso2:agent:schema.Description | string | A description for the agent. | |
urn:scim:wso2:agent:schema.DisplayName | string | A human-readable name for the agent. | |
urn:scim:wso2:agent:schema.Owner | string | The ID of the owner of this agent. |
AgentListResponseObject
Type: object
A list of SCIM agents.
5 properties
| Name | Type | Required | Description |
|---|---|---|---|
totalResults | integer (int32) | The total number of results returned by the list operation. | |
startIndex | integer (int32) | The 1-based index of the first result in the current page. | |
itemsPerPage | integer (int32) | The number of results in the current page. | |
schemas | array 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. | |
Resources | array of AgentResponseObject |
Role
Type: object
A complex attribute that specifies the agent's roles.
6 properties
| Name | Type | Required | Description |
|---|---|---|---|
value | string | The identifier of the role. | |
$ref | string | The URI of the role. | |
display | string | A human-readable name for the role. | |
audienceValue | string | The audience value of the role. | |
audienceType | string | The audience type of the role. | |
audienceDisplay | string | A human-readable display name for the role's audience. |
PatchOperation
Type: object
A single SCIM patch operation.
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
schemas | array of string | Yes | |
Operations | array of object | Yes |
ErrorInvalidInput
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
schemas | array of string | ||
scimType | string | A SCIM detail error keyword. | |
detail | string | A more specific error message. | |
status | string | The HTTP status code. |
ErrorUnauthorized
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
schemas | array of string | ||
detail | string | A more specific error message. | |
status | string | The HTTP status code. |
ErrorForbidden
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
schemas | array of string | ||
detail | string | A more specific error message. | |
status | string | The HTTP status code. |
ErrorNotFound
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
schemas | array of string | ||
detail | string | A more specific error message. | |
status | string | The HTTP status code. |
ErrorConflict
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
schemas | array of string | ||
detail | string | A more specific error message. | |
status | string | The HTTP status code. |
ErrorInternalServerError
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
schemas | array of string | ||
detail | string | A more specific error message. | |
status | string | The HTTP status code. |
Was this page helpful?