curl --request GET \
--url https://api.kadoa.com/v4/templates/{templateId} \
--header 'x-api-key: <api-key>'{
"error": false,
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"teamId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"latestVersion": 123,
"archivedAt": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"versions": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"templateId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"version": 123,
"prompt": "<string>",
"schemaId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "<string>",
"schemaFields": [
{
"name": "<string>",
"description": "<string>",
"fieldType": "<string>",
"example": "<string>",
"dataType": "<string>",
"isKey": true
}
],
"dataValidation": {
"rules": [
{
"name": "<string>",
"ruleType": "regex",
"parameters": {},
"description": "<string>",
"targetColumns": [
"<string>"
],
"status": "enabled",
"metadata": {}
}
]
},
"notificationSettings": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"eventType": "<string>",
"eventConfiguration": {},
"enabled": true,
"channels": [
{
"channelId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"channelName": "<string>",
"channelType": "<string>"
}
]
}
],
"validationRules": [
{
"name": "<string>",
"ruleType": "regex",
"parameters": {},
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>",
"targetColumns": [
"<string>"
],
"status": "enabled",
"metadata": {}
}
],
"schemaName": "<string>",
"schemaEntity": "<string>"
}
],
"workflowCount": 123,
"hasPrompt": true,
"hasSchema": true,
"hasValidation": true,
"hasNotifications": true
}
}Retrieve a template by ID, including its version history
curl --request GET \
--url https://api.kadoa.com/v4/templates/{templateId} \
--header 'x-api-key: <api-key>'{
"error": false,
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"teamId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"latestVersion": 123,
"archivedAt": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>",
"versions": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"templateId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"version": 123,
"prompt": "<string>",
"schemaId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "<string>",
"schemaFields": [
{
"name": "<string>",
"description": "<string>",
"fieldType": "<string>",
"example": "<string>",
"dataType": "<string>",
"isKey": true
}
],
"dataValidation": {
"rules": [
{
"name": "<string>",
"ruleType": "regex",
"parameters": {},
"description": "<string>",
"targetColumns": [
"<string>"
],
"status": "enabled",
"metadata": {}
}
]
},
"notificationSettings": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"eventType": "<string>",
"eventConfiguration": {},
"enabled": true,
"channels": [
{
"channelId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"channelName": "<string>",
"channelType": "<string>"
}
]
}
],
"validationRules": [
{
"name": "<string>",
"ruleType": "regex",
"parameters": {},
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>",
"targetColumns": [
"<string>"
],
"status": "enabled",
"metadata": {}
}
],
"schemaName": "<string>",
"schemaEntity": "<string>"
}
],
"workflowCount": 123,
"hasPrompt": true,
"hasSchema": true,
"hasValidation": true,
"hasNotifications": true
}
}API key for authentication
Template ID