Actions

Define custom actions that can be triggered on documents within a Content Type in Firepanel.

Actions are custom operations that can be triggered on a document from within the Firepanel editor. They allow you to call external APIs or Firebase Cloud Functions directly from the CMS interface.

Use Cases

  • Trigger a publish/unpublish workflow
  • Call a webhook to notify a third-party service when a record is updated
  • Run a Cloud Function to process a document (e.g., generate a PDF, send an email)
  • Invoke a search reindex for a specific document

Creating an Action

1

Open a Content Type

Navigate to Content Types and open the content type where you want to add an action.

2

Switch to the Actions tab

Click the Actions tab.

Actions tab

3

Click Add Action

Click + Add Action. The Action Editor sheet opens.

Action editor sheet

4

Configure the action

  • Label — the button label shown in the document editor (e.g., Publish, Sync)
  • Icon — optional icon for the button
  • Type — the type of action (http for webhooks, function for Cloud Functions)
  • URL / Function name — the endpoint or function to call
  • Method — HTTP method if using a webhook (GET, POST, etc.)
  • Confirmation — optionally require a confirmation dialog before the action runs
5

Save

Click Save. The action button will now appear in the document editor for this content type.

Triggering an Action

When editing or viewing a document of this content type, the action appears as a button in the document toolbar. Click it to execute the action.

Note:

Actions run in the context of the current document. The document ID and project credentials are automatically included in the request payload.