Functions

ACP functions are first-class SDK resources. You can create them from a computer workspace, deploy them, invoke them, and inspect their analytics and logs without leaving the client surface.

Functions

Create, deploy, invoke, and inspect backend functions from the SDK.

Create and invoke functions

Functions should be created from code that already lives in a computer or project workspace. The SDK then lets you deploy and invoke the function directly.

Use sourceEnvironmentId and sourcePath to point ACP at the function code.
Deploy explicitly after creation.
Invoke with method, path, and body when you want an end-to-end test from the SDK.
Create and invoke a function
Loading...

Observe deployed functions

The SDK also covers the operational surface around functions. That includes logs, analytics, runtime config, and file inspection.

Use getAnalytics() to inspect function activity.
Use getLogs() to inspect request and runtime behavior.
Use file helpers when you need to inspect or update deployed source state.