List one action's immutable versions
Every definition this action has had, oldest first. Editing an action appends a version; nothing updates one. An agent version pins a version id in its config.actions, which is what makes rolling an agent back restore the tool definitions it was published with rather than whatever those tools have since been edited to.
/api/v2/actions/{ref}/versionsAuthorizationBearer token (Anlyon API key) · headerrequiredWorkspace API key sent as Authorization: Bearer <key>.
better-auth.session_tokenAPI key · cookierequiredBrowser session used by dashboard-only operations.
refstringrequiredAction name or public action identifier.
X-Request-IdstringOptional caller correlation ID. Unsafe or oversized values are replaced.
Action versions returned, oldest first.
successbooleanrequiredtruedataActionVersion[]requiredShow propertiesHide properties
ActionVersionidstringrequiredPin this from an agent version's config.actions.
versionintegerrequiredMonotonic per action, starting at 1.
methodstringrequiredGETPOSTPUTPATCHDELETEurlTemplatestringrequiredheadersobjectrequiredbodyTemplateobject | nullrequiredinputSchemaobjectrequiredrequiresApprovalbooleanrequiredPart of the definition, so a rollback to this version restores its approval requirement too.
adapterActionAdapter | nullThe adapter configuration this version pins, or null for a template version.
Show propertiesHide properties
typestringrequiredstripe.refundgithub.file_updateresend.email_sendconfigobjectrequiredcredentialSecretstringrequirednullgovernedbooleanrequiredWhether this version is governed. A pin or a rollback restores it with the request.
impactActionImpact | nullrequiredThe impact this version declares, or null.
Show propertiesHide properties
dimensionstringrequiredmoney, resource_mutations, or a workspace-declared unit such as emails, messages or rows.
unitstringThe currency for money (lowercase ISO 4217, required). For every other dimension the unit is the dimension name and may be left out.
amountstringrequiredboundstringrequiredexactupper_boundnullverifyActionVerify | nullrequiredThe read-back this version declares, or null.
Show propertiesHide properties
urlstringrequiredstatusintegerrequiredThe status the read-back must answer with.
matchobject[]JSON path equality checks on the read-back body. Every one must hold.
Show propertiesHide properties
objectpathstringrequiredA dotted path into the read-back body. A numeric segment indexes an array; a * segment stands for any item of one (labels.*.name).
equalsany | nullrequiredA string, number, boolean or null. A string may be exactly one {{input.field}} or {{response.field}}.
absentbooleanTrue when the check holds only if no value at the path equals equals: how a removal is read back. Left out, the check holds when one does.
graphqlobjectA GraphQL read-back: Anlyon POSTs { query, variables } to url instead of a GET. The query is fixed text: no placeholder, and no mutation or subscription anywhere in it, so a read-back cannot write. Only the variables come from the call.
Show propertiesHide properties
querystringrequiredvariablesobjectEach a string, number, boolean or null; a string may be exactly one {{input.field}} or {{response.field}}.
nullsecretsstring[]requiredSecret names this version references. Names only, never values.
currentbooleanrequiredWhether this is the action's present definition.
createdAtstring<date-time>requiredUnauthorized - Invalid or missing API key
successbooleanrequiredrequestIdstringrequiredCorrelation ID matching the X-Request-Id response header.
errorobjectrequiredShow propertiesHide properties
codestringmessagestringdetailsobjectfixErrorFixHow to get past this error, for a person or an agent. Present on refusals with a known next step, such as a missing scope or role, a plan or billing limit, a halted environment, or a missing secret, connected account, OAuth app or end-user header. Absent when there is no fix to give. Kept in production responses, unlike details.
Show propertiesHide properties
summarystringrequiredOne sentence that says what to do.
commandstringAn exact anlyon CLI command that fixes it. Absent when no command does.
urlstring<uri>An absolute console link where a person fixes it.
docsstring<uri>A docs page that explains it.
Authenticated credential lacks the required scope or workspace access.
successbooleanrequiredrequestIdstringrequiredCorrelation ID matching the X-Request-Id response header.
errorobjectrequiredShow propertiesHide properties
codestringmessagestringdetailsobjectfixErrorFixHow to get past this error, for a person or an agent. Present on refusals with a known next step, such as a missing scope or role, a plan or billing limit, a halted environment, or a missing secret, connected account, OAuth app or end-user header. Absent when there is no fix to give. Kept in production responses, unlike details.
Show propertiesHide properties
summarystringrequiredOne sentence that says what to do.
commandstringAn exact anlyon CLI command that fixes it. Absent when no command does.
urlstring<uri>An absolute console link where a person fixes it.
docsstring<uri>A docs page that explains it.
Not Found - Resource does not exist
successbooleanrequiredrequestIdstringrequiredCorrelation ID matching the X-Request-Id response header.
errorobjectrequiredShow propertiesHide properties
codestringmessagestringdetailsobjectfixErrorFixHow to get past this error, for a person or an agent. Present on refusals with a known next step, such as a missing scope or role, a plan or billing limit, a halted environment, or a missing secret, connected account, OAuth app or end-user header. Absent when there is no fix to give. Kept in production responses, unlike details.
Show propertiesHide properties
summarystringrequiredOne sentence that says what to do.
commandstringAn exact anlyon CLI command that fixes it. Absent when no command does.
urlstring<uri>An absolute console link where a person fixes it.
docsstring<uri>A docs page that explains it.

