Wiki Navigation

API Reference
File Generation

File Generates API

Generate configuration files programmatically. Create types.xml, events.xml, and other server configuration files from your instance data.

Authentication required: All endpoints require a valid Bearer token.

POST

Generate Configuration File

Generate a configuration file based on your instance data. Returns the file content or triggers a download.

Endpoint

POST /api/instance/{instance_sid}/generate/{file_type}

URL Parameters

instance_sid required

The SID of the instance

file_type required

Type of file to generate

Available File Types

types events messages globals economy

Pro Tips

Use file generation endpoints to automate your deployment workflow. Generate fresh configuration files after making changes through the API, then upload them to your server automatically using the File Uploads API.