Skip to main content

Agentic virtual agents public APIs

Genesys Cloud Developer Center contains the public API schemas for agentic virtual agents. For more information, see .

Note: Due to a limitation in the Public API Developer Center Documentation, the agentic virtual agent API contracts are only partially documented. The documentation renderer does not support the discriminator pattern used by certain OpenAPI 2.0 contracts. As a result, some fields and subtypes are not displayed.

The API documentation is currently being migrated to the OpenAPI 3.0 standard, which supports the discriminator pattern. Until this migration is complete, direct public API clients for agentic virtual agent resources can use the underlying OpenAPI 2.0 specification below, which contains the complete definitions of all agentic virtual agent contracts. This specification also includes the fields that are not currently displayed in the Developer Center API documentation.

Agentic virtual agents OpenAPI 2.0 specification

You can download the as a .json file.

Example

The Tool contract has multiple subtypes, for example, one for a Data Action and another for a knowledge base tool. The discriminator pattern has two parts: the base contract and the subtype. Combine these two parts to form the complete contract.

The base type declares the discriminator

"AgenticVirtualAgentTool": {
  "type": "object",
  "required": ["description", "name", "target", "type"],
  "discriminator": "type",
  "properties": {
    "type": {
      "type": "string",
      "description": "Tool type discriminator.",
      "enum": ["KnowledgeSetting", "KnowledgeBase", "DataAction", "ExternalA2AServer"]
    },
    "name": { "type": "string", ... },
    "description": { "type": "string", ... },
    ...
  }
}
Notes:
  • "discriminator": "type" names the property whose value decides the concrete subtype.
  • The enum defined on the type property lists the allowed discriminator values. Each value corresponds to a subtype, which links back to the base through its x-discriminator-value (vendor extension) field, as shown after this.

The subtypes reference the base with “allOf”

"AgenticVirtualAgentKnowledgeBaseTool": {
  "allOf": [
    { "$ref": "#/definitions/AgenticVirtualAgentTool" },
    {
      "type": "object",
      "properties": {
        "inputs": { "type": "array", "items": {...} },
        "inputValidation": { "type": "array", "items": {...} }
      },
      "description": "Knowledge base tool."
    }
  ],
  "x-discriminator-value": "KnowledgeBase"
}
Notes:
  • allOf means that “this type is the base plus these additional properties.” The first element references the base contract, and the second adds subtype-specific fields.
  • x-discriminator-value links the enum from the base to this subtype.