TypeScript (Node.js, Deno)
Usage examples
Introduction
The AI Actions API client can be used to interact with any of the API endpoints that AI Actions supports.
Below are a few examples of common uses for the client.
Creating a client
See the authentication guide for more information on how to authenticate.
Checking a user’s authentication
This is useful if you want to check if a user’s AI Actions OAuth token is valid.
Error handling
The @zapier/ai-actions
package exports an AiActionsHttpError
type that can be used to get JSON from errors.
Listing a user’s actions
Actions can be created or edited either on the AI Actions website or using the @zapier/ai-actions-react
library
Executig an action
See the Run a stored action guide for more information on the available parameters.
Search for Zapier apps and actions
Give feedback on an action run
If an execution doesn’t work properly, you can provide feedback on it to help us improve the AI.