const options = {
method: 'GET',
headers: {'x-organization-id': '<x-organization-id>', 'x-api-key': '<api-key>'}
};
fetch('https://api.dcycle.io/v2/imports/templates/{template_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"template_id": "<string>",
"columns": [
{
"key": "<string>",
"label": "<string>",
"type": "<string>",
"required": false,
"aliases": [
"<string>"
],
"options": [
"<string>"
],
"options_source": "countries",
"default": "<unknown>",
"validations": [
{}
]
}
]
}Get backend template metadata.
Intentionally not org-scoped: templates are static column/validation config, not org-specific data. Any authenticated caller may fetch them.
const options = {
method: 'GET',
headers: {'x-organization-id': '<x-organization-id>', 'x-api-key': '<api-key>'}
};
fetch('https://api.dcycle.io/v2/imports/templates/{template_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"template_id": "<string>",
"columns": [
{
"key": "<string>",
"label": "<string>",
"type": "<string>",
"required": false,
"aliases": [
"<string>"
],
"options": [
"<string>"
],
"options_source": "countries",
"default": "<unknown>",
"validations": [
{}
]
}
]
}Documentation Index
Fetch the complete documentation index at: https://code.dcycle.io/llms.txt
Use this file to discover all available pages before exploring further.
Successful Response
Template definition returned to the UI.
Hide child attributes
Valid provider keys for import category option resolution.
countries, fuels, logistics_tocs