# API & Developer Extensibility

API & Developer Extensibility lets developers trigger, control, and scale CloudFiles document generation from Apex, external applications, and platform events.

> Kind: Guide · Updated: Jul 30, 2026

API & Developer Extensibility lets you trigger, control, and scale document generation from code, integrations, or events, instead of relying only on manual, in-app actions.

This gives developers a programmatic path into CloudFiles Document Generation, whether the trigger comes from inside Salesforce, from an external application, or from an asynchronous platform event.

## Apex Actions

Apex Actions trigger DocGen programmatically inside Salesforce through Apex or invocable actions, so document generation can be embedded into custom Salesforce logic seamlessly.

## REST APIs

REST APIs generate documents from external apps through authenticated API calls, connecting DocGen to ERPs, websites, or middleware without rework.

## Event-Driven Triggers

Event-Driven Triggers support async and bulk generation using platform events and callbacks, scaling high-volume document generation smoothly without slowing operations.

Part of the Connected Ecosystem Layer.
