Skip to main content

Models

List All Available Models

GET /api/v1/user/model List all available models in your account.

Get Model Details

GET /api/v1/user/model/{model_id} Get details about a specific model.

Parameters


Create a New Model

POST /api/v1/user/model Create a new model (optionally with a dataset attached).

Delete a Model

DELETE /api/v1/user/model/{id} Delete a model by ID.

Parameters


Conversations

List All Conversations

GET /api/v1/user/conversations Retrieves all conversations for a specific model.

Query Parameters


Create a New Conversation

POST /api/v1/user/conversations Creates a new conversation thread.

Rename a Conversation

PATCH /api/v1/user/conversations/{conversation_id} Updates the title of an existing conversation.

Path Parameters


Delete a Conversation

DELETE /api/v1/user/conversations/{conversation_id} Permanently deletes a conversation and all its messages.

Path Parameters


Get All Messages from a Conversation

GET /api/v1/user/conversations/{conversation_id}/messages Retrieves all messages from a specific conversation thread.

Path Parameters


Datasets

List All Datasets

GET /api/v1/user/dataset Retrieves a list of all available datasets.

Get Dataset Details

GET /api/v1/user/dataset/{id} Retrieves detailed information about a specific dataset.

Path Parameters


Create a New Dataset

POST /api/v1/user/dataset Creates a new dataset by uploading files or providing URLs to scrape.

Request Body


Upload Files to Dataset

POST /api/v1/user/dataset/upload Adds files to an existing dataset.

Request Body

Multipart form data with the following fields:

Delete a Dataset

DELETE /api/v1/user/dataset/{id} Deletes a dataset. This can be a soft delete (by default), or a permanent delete.

Path Parameters

Query Parameters


Evaluations

List All Evaluations

GET /api/v1/evaluations List all evaluations with pagination and filtering.

Query Parameters


Create a New Evaluation

POST /api/v1/evaluations Create a new evaluation for a model.

Request Body


Get Evaluation Details

GET /api/v1/evaluations/{evaluation_id} Get details about a specific evaluation.

Path Parameters


Start Running an Evaluation

POST /api/v1/evaluations/{evaluation_id}/start Start running an evaluation.

Path Parameters


Run RAGAS Evaluation

POST /api/v1/evaluations/{evaluation_id}/run-ragas Run RAGAS evaluation with benchmark data.

Path Parameters

Executes a RAGAS (Retrieval Augmented Generation Assessment) benchmark evaluation on the specified evaluation.

Update Evaluation Metadata

PUT /api/v1/evaluations/{evaluation_id} Update an evaluation’s metadata.

Path Parameters

Request Body


Delete an Evaluation

DELETE /api/v1/evaluations/{evaluation_id} Delete an evaluation (cannot delete running evaluations).

Path Parameters

Note: You cannot delete evaluations that are currently running.

Check Evaluation Name Availability

GET /api/v1/evaluations/check-name Check if an evaluation name is available.

Query Parameters


Inference

Perform direct inference queries without streaming, perfect for simple question-answering and batch processing workflows using knowledge graphs.

Run a Single Query

POST /api/v1/user/inference Run a single query with your knowledge graph.

Required Parameters

Optional Parameters

Advanced sampling overrides

These parameters provide fine-grained control over response generation and are typically used for specialized use cases.

Authentication

All API requests require authentication using a Bearer token in the Authorization header:
You can obtain your API key from your 4MINDS dashboard.

Response Format

All responses are returned in JSON format.

Success Response

Error Response