AgentVariationService
Agent Variations

Get a variation by ID

Retrieves a variation by ID from an agent

get/v1/workspaces/{workspaceId}/agents/{agentId}/variations/{id}

Path parameters

workspaceIdstring required
Example:workspace_01HXKD2E5NQM3T9AYWCF133E3Q

Workspace ID.

agentIdstring required
Example:agent_01HXKD2E5NQM3T9AYWCFMGWT9Y

Agent ID. Accepts the canonical agent_… form or the external_id:<value> form.

idstring required
Example:agentvar_01HXKD2E5NQM3T9AYWCF32BSPP

Variation ID. Accepts the canonical agentvar_… form or the external_id:<value> form.

Response

OK

Example response

{
  "metadata": {
    "accountId": "account_01HXKD2E5NQM3T9AYWCFTJHJVF",
    "workspaceId": "workspace_01HXKD2E5NQM3T9AYWCF133E3Q",
    "profileId": "profile_01HXKD2E5NQM3T9AYWCFS0AP08"
  },
  "spec": {
    "modelConfig": {
      "modelId": "claude/opus-4.6"
    }
  },
  "info": {
    "createdBy": {
      "metadata": {
        "accountId": "account_01HXKD2E5NQM3T9AYWCFTJHJVF",
        "profileId": "profile_01HXKD2E5NQM3T9AYWCFS0AP08"
      }
    },
    "model": {
      "accountId": "account_01HXKD2E5NQM3T9AYWCFTJHJVF",
      "workspaceId": "workspace_01HXKD2E5NQM3T9AYWCF133E3Q",
      "profileId": "profile_01HXKD2E5NQM3T9AYWCFS0AP08"
    },
    "assignments": [
      {
        "id": "avt_01HXKD2E5NQM3T9AYWCFJE6K89"
      }
    ],
    "memoryLayerAssignments": [
      {
        "id": "avml_01HXKD2E5NQM3T9AYWCFX8AF59"
      }
    ]
  }
}

Changes

Changed in 11 of the 57 revisions of this API.3138

  • 3ecc1debabfa241See the full diff
    • added VariationAssignment_Tool VariationAssignment_ToolSet VariationAssignment_Agent to the info/allOf[AgentVariationInfo]/assignments/items/ response property oneOf list for the response status 200

      response-property-one-of-added

    • the info/allOf[AgentVariationInfo]/assignments/items/ response's property type/format changed from object/ to / for status 200

      response-property-type-changed

    • removed the optional property info/allOf[AgentVariationInfo]/assignments/items/agent from the response with the 200 status

      response-optional-property-removed

    • removed the optional property info/allOf[AgentVariationInfo]/assignments/items/id from the response with the 200 status

      response-optional-property-removed

    • removed the optional property info/allOf[AgentVariationInfo]/assignments/items/tool from the response with the 200 status

      response-optional-property-removed

    • removed the optional property info/allOf[AgentVariationInfo]/assignments/items/toolSet from the response with the 200 status

      response-optional-property-removed

    • added discriminator to info/allOf[AgentVariationInfo]/assignments/items/ response property for the response status 200

      response-property-discriminator-added

    • removed the optional property spec/allOf[AgentVariationSpec]/progressiveDiscovery/allOf[AgentVariationSpec_ProgressiveDiscovery]/rerankThreshold from the response with the 200 status

      response-optional-property-removed

    • removed the optional property spec/allOf[AgentVariationSpec]/weight from the response with the 200 status

      response-optional-property-removed

    • the spec/allOf[AgentVariationSpec]/constraints/allOf[AgentVariationSpec_Constraints]/inactivityTimeout response's property type/format changed from integer/ to string/ for status 200

      response-property-type-changed

    • added the optional property spec/allOf[AgentVariationSpec]/constraints/allOf[AgentVariationSpec_Constraints]/inactivityTimeout to the response with the 200 status

      response-optional-property-added

    • removed the optional property spec/allOf[AgentVariationSpec]/userMessageTemplate from the response with the 200 status

      response-optional-property-removed

    • added the optional property spec/allOf[AgentVariationSpec]/firstUserMessageTemplate to the response with the 200 status

      response-optional-property-added

    • removed the optional property info/allOf[AgentVariationInfo]/model/allOf[ResourceMetadata]/bundleKey from the response with the 200 status

      response-optional-property-removed

    • removed the optional property metadata/allOf[ResourceMetadata]/bundleKey from the response with the 200 status

      response-optional-property-removed

    • added the optional property info/allOf[AgentVariationInfo]/createdBy/metadata/createdAt to the response with the 200 status

      response-optional-property-added

    This revision also has 27 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • removed the optional property spec/allOf[AgentVariationSpec]/enableEpisodicMemory from the response with the 200 status

      response-optional-property-removed

    • removed the optional property spec/allOf[AgentVariationSpec]/episodicMemoryTtl from the response with the 200 status

      response-optional-property-removed

  • d2d65c2665bd12See the full diff
    • removed the optional property spec/allOf[AgentVariationSpec]/prompt from the response with the 200 status

      response-optional-property-removed

    • added the optional property spec/allOf[AgentVariationSpec]/systemPromptTemplate to the response with the 200 status

      response-optional-property-added

    • added the optional property spec/allOf[AgentVariationSpec]/userMessageTemplate to the response with the 200 status

      response-optional-property-added

    • added the optional property info/allOf[AgentVariationInfo]/model/allOf[ResourceMetadata]/updatedAt to the response with the 200 status

      response-optional-property-added

    • added the optional property metadata/allOf[ResourceMetadata]/updatedAt to the response with the 200 status

      response-optional-property-added

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog