cURL
curl --request POST \ --url https://api.lunary.ai/v1/datasets-v2/{datasetId}/import \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "format": "csv", "content": "<string>" } '
{ "insertedCount": 123 }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
csv
jsonl
Number of imported items