API Reference
Knowledge Status
API reference for the knowledge status endpoint
GET
The /knowledge_status/{job_id}
endpoint allows you to check the status of a knowledge upload job.
Base URL
Authentication
Path Parameters
The job ID for the knowledge upload, returned from the store_knowledge endpoint
Example Requests
Response
Success Response
Current status of the knowledge upload job, can be:
completed
, processing
or failed
Human-readable status message
Example success response:
Error Response
Array of validation errors
Example error response:
Status Codes
Best Practices
-
Job ID Management
- Store job IDs returned from store_knowledge endpoint
- Implement retry logic for failed status checks
- Consider implementing a timeout for long-running jobs
-
Status Monitoring
- Check status periodically for long-running jobs
- Implement exponential backoff for status checks
- Handle all possible status values appropriately
-
Error Handling
- Handle 404 errors for invalid job IDs
- Implement proper retry logic
- Log status check failures for debugging
Authorizations
Path Parameters
Response
200
application/json
Successful Response
The response is of type object
.