Documentation Index

Fetch the complete documentation index at: https://help.elaine.io/llms.txt

Use this file to discover all available pages before exploring further.

API reference: Templates

Prev Next

 API reference: Templates documents the function signatures, parameters, return values, and error behavior of the Elaine HTTP API.

Note

Function availability depends on the Elaine release and enabled features. Authenticate HTTP requests with an Elaine-issued Bearer JWT.

Function overview

array|integerapi_getTemplateContent ( int $template_id )
Returns the content of the template $template_id.
array|integerapi_getTemplates ()
Returns an array of all templates with the ID as key and the name as value.

Functions


api_getTemplateContent

array|integer api_getTemplateContent( int $template_id )

SINCE 5.11.4 Returns the content of the template $template_id.

Parameters

int$template_idTemplate ID

Return Value

array|integerContents of template

api_getTemplates ()

array|integer api_getTemplates ()

SINCE 5.11.4 Returns an array of all templates with the ID as key and the name as value.

Return Value

array|integerTemplate list