Import actions from OpenAPI
Translate supported OpenAPI 3.x operations into hosted actions, reporting every skipped operation and translation warning. A dry run creates nothing.
/api/v2/actions/importAuthorizationBearer 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.
Idempotency-KeystringStable retry key for a mutation. The key is claimed atomically before the handler runs, so concurrent retries execute the side effect at most once. Replaying the key for the same request (same method, path, workspace and JSON body) returns the original response with an X-Idempotent-Replay: true header. Reusing the key for a different request returns 409 with error code idempotency_key_reuse. A duplicate arriving while the first is still in flight waits and then replays; if the first does not finish in time the duplicate gets 409 idempotency_request_in_progress. Keys are retained for 24 hours. Only successful (2xx) responses are stored; a failed request frees the key so it can be retried.
application/jsonspecobjectrequiredOpenAPI 3.x document.
baseUrlstring<uri>authobjectShow propertiesHide properties
headerNamestringrequiredsecretNamestringrequiredvalueTemplatestringrequiresApprovalbooleandryRunbooleanonlystring[]Import or dry-run report returned.
successbooleanrequiredtruedataobjectrequiredShow propertiesHide properties
createdImportedAction[]requiredShow propertiesHide properties
ImportedActionnamestringrequiredmethodstringrequiredGETPOSTPUTPATCHDELETEpathstringrequiredurlTemplatestringrequiredwarningsstring[]requiredactionActionShow propertiesHide properties
idstringrequiredenvironmentIdstring<uuid>requiredThe environment this action lives in. An action belongs to exactly one.
namestringrequireddescriptionstring | nullrequiredmethodstringrequiredGETPOSTPUTPATCHDELETEurlTemplatestringrequiredheadersobjectrequiredbodyTemplateobject | nullrequiredinputSchemaobjectrequiredrequiresApprovalbooleanrequiredenabledbooleanrequiredsecretsstring[]requiredReferenced secret names only; values are never returned.
currentVersionIdstring | nullrequiredThe immutable version this definition currently is. An agent version pins a version id, so this is what to pin to hold an action at its present definition. Null only for actions that predate versioning and have not been edited since.
adapterActionAdapter | nullrequiredThe governed-effect adapter, or null for a template action.
Show propertiesHide properties
typestringrequiredstripe.refundgithub.file_updateresend.email_sendconfigobjectrequiredcredentialSecretstringrequirednullgovernedbooleanrequiredTrue when every invocation creates a governed effect. The action has an adapter, or it carries a declaration.
impactActionImpact | nullrequiredThe declared impact, or null when the action declares none.
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 declared read-back, or null when the action declares none.
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.
equalsany | nullrequiredA string, number, boolean or null. A string may be exactly one {{input.field}} or {{response.field}}.
nullcreatedAtstring<date-time>requiredupdatedAtstring<date-time>requiredskippedSkippedActionOperation[]requiredShow propertiesHide properties
SkippedActionOperationpathstringrequiredmethodstringrequiredreasonstringrequireddryRunbooleanrequiredImport or dry-run report returned.
successbooleanrequiredtruedataobjectrequiredShow propertiesHide properties
createdImportedAction[]requiredShow propertiesHide properties
ImportedActionnamestringrequiredmethodstringrequiredGETPOSTPUTPATCHDELETEpathstringrequiredurlTemplatestringrequiredwarningsstring[]requiredactionActionShow propertiesHide properties
idstringrequiredenvironmentIdstring<uuid>requiredThe environment this action lives in. An action belongs to exactly one.
namestringrequireddescriptionstring | nullrequiredmethodstringrequiredGETPOSTPUTPATCHDELETEurlTemplatestringrequiredheadersobjectrequiredbodyTemplateobject | nullrequiredinputSchemaobjectrequiredrequiresApprovalbooleanrequiredenabledbooleanrequiredsecretsstring[]requiredReferenced secret names only; values are never returned.
currentVersionIdstring | nullrequiredThe immutable version this definition currently is. An agent version pins a version id, so this is what to pin to hold an action at its present definition. Null only for actions that predate versioning and have not been edited since.
adapterActionAdapter | nullrequiredThe governed-effect adapter, or null for a template action.
Show propertiesHide properties
typestringrequiredstripe.refundgithub.file_updateresend.email_sendconfigobjectrequiredcredentialSecretstringrequirednullgovernedbooleanrequiredTrue when every invocation creates a governed effect. The action has an adapter, or it carries a declaration.
impactActionImpact | nullrequiredThe declared impact, or null when the action declares none.
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 declared read-back, or null when the action declares none.
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.
equalsany | nullrequiredA string, number, boolean or null. A string may be exactly one {{input.field}} or {{response.field}}.
nullcreatedAtstring<date-time>requiredupdatedAtstring<date-time>requiredskippedSkippedActionOperation[]requiredShow propertiesHide properties
SkippedActionOperationpathstringrequiredmethodstringrequiredreasonstringrequireddryRunbooleanrequiredBad Request - Invalid input data
successbooleanrequiredrequestIdstringrequiredCorrelation ID matching the X-Request-Id response header.
errorobjectrequiredShow propertiesHide properties
codestringmessagestringdetailsobjectUnauthorized - Invalid or missing API key
successbooleanrequiredrequestIdstringrequiredCorrelation ID matching the X-Request-Id response header.
errorobjectrequiredShow propertiesHide properties
codestringmessagestringdetailsobjectPayment Required - Usage quota exceeded
successbooleanrequiredrequestIdstringrequiredCorrelation ID matching the X-Request-Id response header.
errorobjectrequiredShow propertiesHide properties
codestringmessagestringdetailsobjectAuthenticated credential lacks the required scope or workspace access.
successbooleanrequiredrequestIdstringrequiredCorrelation ID matching the X-Request-Id response header.
errorobjectrequiredShow propertiesHide properties
codestringmessagestringdetailsobjectToo Many Requests - Rate limit exceeded
successbooleanrequiredrequestIdstringrequiredCorrelation ID matching the X-Request-Id response header.
errorobjectrequiredShow propertiesHide properties
codestringmessagestringdetailsobject
