curl --request POST \
--url http://localhost:8080/api/v1/endpoints/ \
--header 'Authorization: Bearer YOUR_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
"name": "Legal Q&A Endpoint",
"slug": "legal-qa",
"description": "# Legal Q&A\\nAnswers questions about legal documents",
"summary": "Legal document Q&A system",
"dataset_id": "123e4567-e89b-12d3-a456-426614174000",
"model_id": "223e4567-e89b-12d3-a456-426614174000",
"response_type": "both",
"published": true,
"tags": "legal,qa,documents"
}'
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Legal Q&A Endpoint",
"slug": "legal-qa",
"description": "# Legal Q&A\nAnswers questions about legal documents",
"summary": "Legal document Q&A system",
"response_type": "both",
"published": true,
"tags": "legal,qa,documents",
"model_id": "223e4567-e89b-12d3-a456-426614174000",
"dataset_id": "123e4567-e89b-12d3-a456-426614174000",
"created_at": "2024-03-01T12:00:00Z",
"updated_at": "2024-03-01T12:00:00Z"
}
curl --request POST \
--url http://localhost:8080/api/v1/endpoints/ \
--header 'Authorization: Bearer YOUR_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
"name": "Legal Q&A Endpoint",
"slug": "legal-qa",
"description": "# Legal Q&A\\nAnswers questions about legal documents",
"summary": "Legal document Q&A system",
"dataset_id": "123e4567-e89b-12d3-a456-426614174000",
"model_id": "223e4567-e89b-12d3-a456-426614174000",
"response_type": "both",
"published": true,
"tags": "legal,qa,documents"
}'
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Legal Q&A Endpoint",
"slug": "legal-qa",
"description": "# Legal Q&A\nAnswers questions about legal documents",
"summary": "Legal document Q&A system",
"response_type": "both",
"published": true,
"tags": "legal,qa,documents",
"model_id": "223e4567-e89b-12d3-a456-426614174000",
"dataset_id": "123e4567-e89b-12d3-a456-426614174000",
"created_at": "2024-03-01T12:00:00Z",
"updated_at": "2024-03-01T12:00:00Z"
}
Create a new endpoint that allows users to query your datasets and models.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/openmined/syft-space/llms.txt
Use this file to discover all available pages before exploring further.
raw - Only return dataset search resultssummary - Only return model-generated responseboth - Return both search results and model responsecurl --request POST \
--url http://localhost:8080/api/v1/endpoints/ \
--header 'Authorization: Bearer YOUR_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
"name": "Legal Q&A Endpoint",
"slug": "legal-qa",
"description": "# Legal Q&A\\nAnswers questions about legal documents",
"summary": "Legal document Q&A system",
"dataset_id": "123e4567-e89b-12d3-a456-426614174000",
"model_id": "223e4567-e89b-12d3-a456-426614174000",
"response_type": "both",
"published": true,
"tags": "legal,qa,documents"
}'
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Legal Q&A Endpoint",
"slug": "legal-qa",
"description": "# Legal Q&A\nAnswers questions about legal documents",
"summary": "Legal document Q&A system",
"response_type": "both",
"published": true,
"tags": "legal,qa,documents",
"model_id": "223e4567-e89b-12d3-a456-426614174000",
"dataset_id": "123e4567-e89b-12d3-a456-426614174000",
"created_at": "2024-03-01T12:00:00Z",
"updated_at": "2024-03-01T12:00:00Z"
}