Templates
Last updated
Was this helpful?
Last updated
Was this helpful?
Templates are created and managed within folders.
POST
https://api.openai.com/v1/create_template/
Creates a template
template_id Integer Optional Logic for copying another template, using their template_id
folder_id Integer Required The id of the folder inside which the template is created
name String Required The name of the template to create, unique
desc String The description of the template to create
type String Spend accounts only
Can be invoice
, regular
, or grid
The created object
GET
https://api.openai.com/v1/fetch_template/{template_id}
Fetches all informations about a template, using the template_id
template_id Integer Required The id of the template to fetch
PUT
https://api.openai.com/v1/update_template/{template_id}
Updates a template, using the template_id
template_id Integer Required The id of the template to update
name String
desc String
type String Spend accounts only
Can be invoice
, regular
, or grid
DELETE
https://api.openai.com/v1/delete_template/{template_id}
Deletes a template, using the template_id
template_id Integer Required The id of the template to update
override Boolean
If True
forces deletion. Default False
id
Integer
name
String
The name of the template
desc
String
A more detailled description of the template. Informations can have an impact on the document output.
type
String Spend accounts only
Can be invoice
, regular
, or grid
folder_id
Integer
The id from the folder the template is linked to
The object
The object