# Test thread div strong 🔨 In Development — This section is still being developed and may change. Test endpoint for thread operations. Used for development and debugging purposes. Test endpoint for verifying thread access and operations. Returns thread information and test data for debugging purposes. #### Path Parameters **`thread_id`** string required The unique identifier of the thread to test. Request ```bash curl "https://api.freddy.aitronos.com/v1/threads/thread_abc123/test" \ -H "Authorization: Bearer $FREDDY_API_KEY" ``` ```python import requests response = requests.get( "https://api.freddy.aitronos.com/v1/threads/thread_abc123/test", headers={"Authorization": f"Bearer {api_key}"} ) test_result = response.json() print(f"Test success: {test_result['success']}") print(f"Test data: {test_result['testData']}") ``` ```javascript const response = await fetch('https://api.freddy.aitronos.com/v1/threads/thread_abc123/test', { headers: { 'Authorization': `Bearer ${apiKey}` } }); const testResult = await response.json(); console.log(`Test success: ${testResult.success}`); console.log(`Test data:`, testResult.testData); ``` ## Response 200 OK ```json { "success": true, "threadId": "thread_abc123", "message": "Thread test successful", "testData": { "threadExists": true, "hasAccess": true, "messageCount": 15, "lastActivity": "2025-01-20T10:30:00Z" } } ``` Errors ```json 404 Not Found { "error": { "message": "Thread not found or access denied", "type": "not_found_error", "code": "thread_not_found" } } ``` ```json 401 Unauthorized { "error": { "message": "Authentication required", "type": "authentication_error", "code": "missing_authentication" } } ``` ```json 403 Forbidden { "error": { "message": "Access denied to thread", "type": "permission_error", "code": "insufficient_permissions" } } ``` ## Related Resources - [List Threads](/docs/api-reference/threads/list) - [Retrieve Thread](/docs/api-reference/threads/retrieve) - [Thread Object](/docs/api-reference/objects/thread-object)