Compile Knowledge Base
Compile Knowledge Base Generate a knowledge base for elements.
GET/v1/elemental/{elemental_id}/knowledge-base- Param
- Response
Properties
| Name | Type | Required | Description |
|---|---|---|---|
| elemental_id | string | ✅ | Elemental ID |
| format | string | ❌ | Output format (text, markdown, json) |
| group_by | string | ❌ | Group data by row or column (using for tables) |
| fields | string | ❌ | Fields for the knowledge return (id, title, type, description, content, url, images, video, tutorial and files) |
Example
/v1/elemental/123e4567-e89b-12d3-a456-426614174000/knowledge-base
Properties
| Name | Type | Description |
|---|---|---|
| code | number | HTTP status code |
| meta | object | Meta information including version and authentication status |
| response | object | Knowledge base content |
Example
{
"code": 200,
"meta": {
"version": "v1.0.0",
"is_authenticaded": true
},
"response": {
"knowledge_base": {
"title": "Prompt Title",
"description": "This is my prompt",
"type": "Prompt",
"content": "Content of the prompt"
}
}
}
CURL Example
curl -X GET "https://api-integrations.snackprompt.com/v1/elemental/{elemental_id}/knowledge-base" \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY"