API for iblai
API Reference//
- ai_index_orgs_users_documents_pathways_list
ai_index_orgs_users_documents_retrieve
ai_index_orgs_users_documents_update
ai_index_orgs_users_documents_destroy
ai_index_orgs_users_documents_settings_retrieve
ai_index_orgs_users_documents_settings_create
ai_index_orgs_users_documents_document_from_pool_create
ai_index_orgs_users_documents_search_create
ai_index_orgs_users_documents_sources_create
ai_index_orgs_users_documents_tasks_retrieve
ai_index_orgs_users_documents_train_create
ai_index_orgs_users_documents_train_retriever_create
ai_index_orgs_users_documents_train_sessions_create
ai_index_orgs_users_resource_data_scrapped_retrieve
ai_index_orgs_users_resource_data_scrapped_list
ai_index_webhook_scan_create
ai_index_orgs_users_docum...
ibl-data-manager (4.84.1-ai-plus)
- Mock serverhttps://docs.ibl.ai/_mock/apis/ibl/api/ai-index/orgs/{org}/users/{user_id}/documents/document-from-pool/
- https://base.manager.iblai.app/api/ai-index/orgs/{org}/users/{user_id}/documents/document-from-pool/
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://docs.ibl.ai/_mock/apis/ibl/api/ai-index/orgs/{org}/users/{user_id}/documents/document-from-pool/' \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"to_pathway": "string",
"document_id": 0
}'Response
application/json
{ "document_id": "string", "task_id": "string", "message": "string", "error": "string" }
Request
Description: Retrieves a list of document embeddings for a specific pathway with optional search and pagination.
Methods:
- GET: Retrieves document embeddings that match the specified search criteria and are paginated according to offset and limit.
Parameters:
- search (str): Search query to filter document names or URLs.
- offset (int): Offset number for pagination.
- limit (int): Limit number for pagination.
Returns:
- GET: A paginated list of document embeddings with their details. { "count": 10, "next": "http://api.example.com/retriever_documents/?offset=10&limit=2", "previous": "http://api.example.com/retriever_documents/?offset=0&limit=2", "results": [ { "document_name": "Document2", "platform_key": "example_platform", "pathway": "example_pathway" } ] }
Error Responses:
- 400 Bad Request: Invalid query parameters.
- 404 Not Found: No document embeddings found for the specified criteria.
Security
PlatformApiKeyAuthentication
- Mock serverhttps://docs.ibl.ai/_mock/apis/ibl/api/ai-index/orgs/{org}/users/{user_id}/documents/pathways/{pathway}/
- https://base.manager.iblai.app/api/ai-index/orgs/{org}/users/{user_id}/documents/pathways/{pathway}/
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.ibl.ai/_mock/apis/ibl/api/ai-index/orgs/{org}/users/{user_id}/documents/pathways/{pathway}/?limit=0&offset=0&search=string' \
-H 'Authorization: YOUR_API_KEY_HERE'Bodyapplication/json
results[].training_status(TrainingStatusEnum (string or null)) or (BlankEnum (any or null)) or (NullEnum (any or null))
One of:
trained- Trainedfailed- Failedpending- Pendinguntrained- Untrained
string or null(TrainingStatusEnum)
Enum"trained""failed""pending""untrained"
results[].access(AccessEnum (string or null)) or (BlankEnum (any or null)) or (NullEnum (any or null))
One of:
public- Publicprivate- Private
string or null(AccessEnum)
Enum"public""private"
List of patterns that the crawler should use to match urls. Patterns may be a glob pattern or a full regex pattern. Indicate the specified type in crawler_pattern_type.
One of:
glob- Globregex- Regex
string(CrawlerPatternTypeEnum)
Enum"glob""regex"
Response
application/json
{ "count": 123, "next": "http://api.example.org/accounts/?offset=400&limit=100", "previous": "http://api.example.org/accounts/?offset=200&limit=100", "results": [ [ … ] ] }
Request
Retrieve resource documents similar to the given query.
This endpoint performs a semantic search to find documents that are relevant to the provided query within the specified pathway.
Args: request: The HTTP request containing the search query. org: Organization key identifier.
Returns: Response: A list of documents relevant to the search query.
Raises: ValidationError: If the request data is invalid.
Security
PlatformApiKeyAuthentication
- application/json
- application/scim+json
- application/x-www-form-urlencoded
- multipart/form-data
- */*
- Mock serverhttps://docs.ibl.ai/_mock/apis/ibl/api/ai-index/orgs/{org}/users/{user_id}/documents/search/
- https://base.manager.iblai.app/api/ai-index/orgs/{org}/users/{user_id}/documents/search/
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://docs.ibl.ai/_mock/apis/ibl/api/ai-index/orgs/{org}/users/{user_id}/documents/search/' \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"query": "Computational thinking",
"pathway": "test-pathway"
}'Response
application/json
{ "results": [ { … }, { … } ] }