Skip to main content
Action scripts store JavaScript that your automations can run. You can list, create, read, update and delete them. This area has 5 endpoints, and all seven SDKs call every one.

At a glance

Before you call

Register your API credentials once when your app starts, as shown in Authentication. Every SDK sample on these pages then gets its client in one line. With cURL, send the access token in an Authorization header: Authorization: Bearer $ACCESS_TOKEN.

Things to know

  • Writes are wrapped in action_script. name is required and unique, and one script comes back under action_script.
  • Code is sent as a base64 .js file. Put the file in script_file, with its contents base64 encoded in content. A script stored without one holds no code.
  • Action script ids start with ascr_.
  • An update refuses unknown keys.
  • Listings page by cursor. Records sit under data; pass pagination.next_cursor as cursor to read the next page, and stop when pagination.has_more is false.