Create a new dataset to store and organize documents
cURL
curl --request POST \ --url https://api.fltr.com/v1/datasets \ --header 'Authorization: <authorization>' \ --header 'Content-Type: <content-type>' \ --data ' { "name": "<string>", "description": "<string>", "is_public": true, "metadata": {} } '
{ "400": {}, "401": {}, "429": {}, "id": "<string>", "name": "<string>", "description": "<string>", "is_public": true, "document_count": 123, "created_at": "<string>", "updated_at": "<string>", "metadata": {} }
Bearer fltr_sk_abc123...
application/json
ds_abc123
curl -X POST https://api.fltr.com/v1/datasets \ -H "Authorization: Bearer fltr_sk_abc123..." \ -H "Content-Type: application/json" \ -d '{ "name": "Product Documentation", "description": "All product docs and guides", "is_public": false, "metadata": { "category": "documentation", "team": "product" } }'
{ "id": "ds_abc123def456", "name": "Product Documentation", "description": "All product docs and guides", "is_public": false, "document_count": 0, "created_at": "2024-01-10T12:00:00Z", "updated_at": "2024-01-10T12:00:00Z", "metadata": { "category": "documentation", "team": "product" } }
{ "error": "Invalid dataset name", "code": "invalid_name", "details": { "field": "name", "issue": "Name cannot be empty" } }
{ "error": "Invalid API key", "code": "invalid_api_key" }
{ "error": "Rate limit exceeded", "code": "rate_limit_exceeded", "retry_after": 3600 }
is_public: true