Automate.ax can’t define a new platform-managed integration entirely in automation code. Managed integrations depend on server-side credential storage, authorization, account binding, and token refresh.
Call a public endpoint
fetchHttp makes a durable request and returns the status, headers, and parsed body as signals.
This endpoint passes its offset query parameter to the public PokéAPI:
automations/look-up-pokemon.automation.ts
fetchHttp registers work and returns a signal without calling the API during composition. Every input accepts compatible signals. fetchHttp serializes JSON request bodies automatically and uses responseType to read the response body.
Handle failures
HTTP error statuses return normally withok: false. Network and response parsing failures throw, so Automate.ax retries them before recording a failed action. Use provider-supported idempotency keys for requests that create or change data.
See fetchHttp for request fields, response parsing, and output details.
Protect credentials and validate responses
Literal action inputs are durable run data. Don’t put a raw API key, bearer token, or other secret infetchHttp headers, query parameters, or the body.
If Automate.ax supports the service but not the operation, define a custom action with .account(...) and use the integration’s authenticated API helper. The platform privately resolves and refreshes the selected account for the handler.
For an unsupported service, store a restricted credential in 1Password, resolve it with onePassword.resolveSecret, and pass that sensitive signal directly to a custom action. Automate.ax keeps the value encrypted in storage and materializes it for the handler when it runs. A custom action also lets you validate the provider response with Zod before returning typed data to the rest of the automation:
automations/list-provider-projects.automation.ts
op:// reference. Apply the provider’s scope, resource, expiration, quota, and network restrictions. Rotate the 1Password item without changing secretReference.
If you can’t use 1Password, keep a restricted credential inside the custom action handler’s closure in private automation source. Anyone who can read the source can read the credential, and rotation requires a code change and deployment.
Use the provider’s platform-managed integration account when Automate.ax supports it.