Skip to main content
POST
/
source
/
v1
/
api
/
document
Ingest a document or file
curl --request POST \
  --url https://app.skimming.ai/back/source/v1/api/document \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form source='@example-file' \
  --form saveToServer=true
{
  "success": {
    "file_id": "abc123-def456-ghi789",
    "file_name": "document.pdf",
    "user_id": "user123",
    "createAt": "2024-01-20T10:30:00.000Z"
  },
  "error": null,
  "message": {
    "content": null,
    "displayContent": true
  }
}

Documentation Index

Fetch the complete documentation index at: https://haider-5d8ca6e7.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer token authentication using an API key

Body

source
file

File to upload

saveToServer
boolean
default:true

Whether to save the file to server

Response

File ingested successfully