ManageSettings policy. Topic and hook document links determine where a document is made available during topic handling, channel-specific flows and workflow hook execution.GET /api/Documents – ManageSettingsPOST /api/Documents – ManageSettingsGET /api/Documents/{id} – ManageSettingsPUT /api/Documents/{id} – ManageSettingsDELETE /api/Documents/{id} – ManageSettingsPOST /api/Documents/convert – ManageSettingsTopicDocuments link documents to topics, special topics, channels or special channels.
GET /api/TopicDocuments – Bearer JWTPOST /api/TopicDocuments – Bearer JWTPOST /api/TopicDocuments/bulk – Bearer JWTGET /api/TopicDocuments/{id} – Bearer JWTPUT /api/TopicDocuments/{id} – Bearer JWTDELETE /api/TopicDocuments/{id} – Bearer JWTHookDocuments use topic-document records for workflow hook prompt documents.
GET /api/HookDocuments/promptDocuments – TicketAccessOrPhoneAuthPOST /api/HookDocuments – Bearer JWToverrideApiBaseUrl, overrideApiUsername, overrideApiPassword, overrideApiToken and overrideApiAuthenticationType are used when AnswerPal calls external APIs for data retrieval.GET /api/HookDocuments/promptDocuments accepts ticket access or phone-auth context. A phone-auth token cannot request documents for a different channel.documentIDnamedescription, contentisDataRetrievalProcessincludeInRealtimeInstructionscreationDate, lastModifiedDateoverrideApiBaseUrl, overrideApiUsername, overrideApiPassword, overrideApiToken, overrideApiAuthenticationTypeapiEndpoint, apiMethod, apiHeaders, apiBodyTemplatefieldMappingisFunctionTool, functionParametersSchema, toolCallTimeoutSecondscustomFieldDefinitionscustomFieldRequirementsdocumentCustomFieldRequirementID, customFieldDefinitionID, isRequired, fieldName, displayName, fieldType, descriptiontopicDocumentID, customerIDtopicID, specialTopicdocumentIDchannelID, specialChanneltopicName, documentName, channelNamedocumentID, name, content, contentTypeincludeInRealtimeInstructions, imageUrls{
"name": "Order status lookup",
"description": "Fetches the current order status",
"content": null,
"isDataRetrievalProcess": true,
"apiEndpoint": "https://erp.example.com/orders/{{orderNumber}}",
"apiMethod": "GET",
"apiHeaders": "{\"Accept\":\"application/json\"}",
"fieldMapping": "{\"status\":\"$.status\"}",
"isFunctionTool": true,
"functionParametersSchema": "{\"type\":\"object\",\"properties\":{\"orderNumber\":{\"type\":\"string\"}}}",
"toolCallTimeoutSeconds": 30
}
POST /api/Documents/convert
Authorization: Bearer <token>
Content-Type: multipart/form-data
file=@policy.docx
GET /api/HookDocuments/promptDocuments?hookName=OnPhonePickup&channelId=3
Authorization: Bearer <token>
A static document contributes prompt or knowledge content directly. A data-retrieval process sets isDataRetrievalProcess=true and defines outbound API-call fields such as apiEndpoint, apiMethod, headers, body template and field mapping.
Yes. GET /api/Documents/{id}?replacePlaceholders=true replaces special placeholders such as {{TopicList}} before returning content.
Use /api/TopicDocuments for topic/channel links and /api/HookDocuments for hook prompt-document flows. Both use the TopicDocument link model.
Inbound AnswerPal API requests use JWT Bearer authentication. The document fields overrideApiAuthenticationType, overrideApiUsername, overrideApiPassword and overrideApiToken are outbound settings used when AnswerPal calls an external API.
AnswerPal: AI-powered customer service solutions to elevate your support and communication effortlessly.
For all support, sales, and partnership inquiries, email us at info@answerpal.eu
AnswerPal
Bisschoppenhoflaan 380
2100 Antwerp
Belgium
+32.36416685
BE 0862.692.858