List functions
Every function in the key’s environment, with its current version. Never the source.
/api/v2/functionsAuthorizationBearer token (Anlyon API key) · headerrequiredWorkspace API key sent as Authorization: Bearer <key>.
better-auth.session_tokenAPI key · cookierequiredBrowser session used by dashboard-only operations.
X-Request-IdstringOptional caller correlation ID. Unsafe or oversized values are replaced.
The functions.
successbooleanrequiredtruedataFunction[]requiredShow propertiesHide properties
Functionidstringrequirednamestringrequireddescriptionstring | nullrequiredenvironmentIdstring<uuid>requiredcurrentVersionFunctionVersion | nullrequiredNull until the first publish.
Show propertiesHide properties
idstringrequiredThe version id.
versionintegerrequiredlanguagestringrequiredjavascriptpythondigeststringrequiredSHA-256 of the source.
allowedActionsstring[]requiredinputSchemaobjectrequiredbudgetsobjectrequiredShow propertiesHide properties
maxActionCallsintegerrequiredmaxCpuMsintegerrequiredmaxSubrequestsintegerrequiredtimeoutMsintegerrequiredstraightThroughFunctionStraightThroughPolicy | nullrequiredShow propertiesHide properties
actionsstring[]requiredAllowed actions a straight-through run may write to. Each must be in allowedActions.
maxWritesintegerrequiredWrites in one straight-through run.
nullreviewFunctionVersionReview | nullrequiredShow propertiesHide properties
astFunctionSourceFindingsrequiredWhat the source says it calls and uses, read from its syntax tree. Advice for people; what a run may call is the version's allowedActions.
Show propertiesHide properties
languagestringrequiredjavascriptpythonparsedbooleanrequiredparseErrorstring | nullrequiredcallsobject[]requiredShow propertiesHide properties
objectkindstringrequiredinvokereadactionstringrequiredlineintegerrequiredproposedAllowedActionsstring[]requiredcomputedActionNamesobject[]requiredShow propertiesHide properties
objectkindstringrequiredinvokereadlineintegerrequiredriskyobject[]requiredNetwork, file, process, environment and eval APIs. They fail inside a function anyway.
Show propertiesHide properties
objectapistringrequiredcategorystringrequirednetworkfileprocessenvironmentevallineintegerrequiredwritesInLoopobject[]requiredShow propertiesHide properties
objectactionstring | nullrequiredlineintegerrequiredaiobject | nullrequiredThe AI review, for a workspace with Anlyon Vigil on. Null until it is done.
Show propertiesHide properties
statusstringrequiredreviewedskippedfailedreasonstring | nullrequiredmodelstring | nullrequiredsummarystring | nullrequiredpurposestring | nullrequiredrefundspaymentsmessagesrecordsaccountslookupsotherriskyPatternsobject[]requiredShow propertiesHide properties
objectpatternstringrequiredwrites_in_loopmoney_per_itemamount_from_inputunchecked_writedescriptionstringrequiredprobabilitynumberrequiredsuggestedRiskTierstring | nullrequiredroutinelowmoderatehighcriticalconfidencenumber | nullrequiredtruncatedbooleanrequiredreviewedAtstring<date-time>requirednullcreatedAtstring<date-time>requirednullcreatedAtstring<date-time>requiredupdatedAtstring<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.
Too Many Requests - Rate limit exceeded. A workspace's API requests are limited per minute and per UTC clock hour by plan; Retry-After says when to try again, and an hourly refusal names the limit and when the count resets. Successful responses carry the same limits in X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset (the minute) and X-RateLimit-Limit-Hour, X-RateLimit-Remaining-Hour, X-RateLimit-Reset-Hour (the hour).
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.

