Easymailing
A I agents

List the versions of an AI agent

GET /ai_agents/{uuid}/versions

GET/ai_agents/{uuid}/versions

Lists the published versions of an agent, the last one first. Each one keeps the definition that was frozen when it was published.

When to use: To see how an agent changed over time, or to find the definition of an earlier version, for example to copy it back into the draft with update_ai_agent.

When not to use: The current version is already in published of get_ai_agent. A draft is not a version until it is published with publish_ai_agent.

Filters: Sorting: fixed, last version first. Pagination: page and itemsPerPage (default 25, maximum 100); the total is in hydra:totalItems.

Permissions: Requires the automations.read capability.

Authorization

X-Auth-Token<token>

Value for the X-Auth-Token header parameter.

In: header

Path Parameters

uuid*string

UUID of the agent.

Formatuuid

Query Parameters

page?integer

Page number, starting at 1.

Range1 <= value
Default1
itemsPerPage?integer

Versions per page. Default 25, maximum 100.

Range1 <= value <= 100
Default25

Response Body

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X GET "https://api.easymailing.com/ai_agents/6e2f0a97-4b1c-4d35-9a8e-2c7d5f1b3e40/versions?page=1&itemsPerPage=25" \  -H "X-Auth-Token: YOUR_API_KEY"
[  {    "number": 1,    "definition": {},    "published_by": "9ac9eee7-2153-423d-b22d-04e12679154a",    "published_at": "2019-08-24T14:15:22Z"  }]