">
The Onboarding Buddy File Upload API enables developers to securely upload user files, including documents, images, and videos, with AI-driven classification and storage. Ideal for onboarding, compliance, and data management workflows, this API supports single and batch uploads for seamless integration.
Sign Up for File Upload APISecurely upload and manage user files to streamline onboarding, ensure compliance, and enhance data workflows. The Onboarding Buddy API leverages AI-powered features like automatic classification and semantic search, making it perfect for KYC, user verification, and content management applications.
Endpoint | Method | Purpose |
---|---|---|
POST /file-service/upload |
POST | Uploads a single user file and returns the file metadata. |
POST /file-service/batch/upload |
POST | Uploads multiple user files and returns a batch upload response. |
GET /file-service/batch/poll/{batchId} |
GET | Polls the status of a submitted batch file upload request using the batch ID. |
GET /file-service/batch/upload/{batchId} |
GET | Retrieves the metadata for a batch of uploaded user files using the batch ID. |
Use the POST /file-service/upload
endpoint to upload a single user file. Include your API credentials in the headers for secure access.
curl -X POST https://api.onboardingbuddy.co/file-service/upload \
-H "ob-app-key: your-app-key" \
-H "ob-api-key: your-api-key" \
-H "ob-api-secret: your-api-secret" \
-H "Content-Type: multipart/form-data" \
-F "file=@/path/to/document.pdf"
Example Response:
{
"fileId": "file-12345",
"fileName": "document.pdf",
"fileType": "document",
"fileSize": 1048576,
"uploadStatus": "success",
"metadata": {
"classification": "KYC document",
"uploadedAt": "2025-09-09T17:56:00Z",
"storagePath": "gs://onboarding-buddy-files/file-12345"
}
}
Use the POST /file-service/batch/upload
endpoint to upload multiple user files efficiently.
curl -X POST https://api.onboardingbuddy.co/file-service/batch/upload \
-H "ob-app-key: your-app-key" \
-H "ob-api-key: your-api-key" \
-H "ob-api-secret: your-api-secret" \
-H "Content-Type: multipart/form-data" \
-F "files=@/path/to/document1.pdf" \
-F "files=@/path/to/image.jpg"
Example Response:
{
"batchId": "batch-98765",
"status": "processing"
}
Check the status of a batch upload request using the GET /file-service/batch/poll/{batchId}
endpoint.
curl -X GET https://api.onboardingbuddy.co/file-service/batch/poll/batch-98765 \
-H "ob-app-key: your-app-key" \
-H "ob-api-key: your-api-key" \
-H "ob-api-secret: your-api-secret"
Example Response:
{
"batchId": "batch-98765",
"status": "completed"
}
Retrieve the metadata for a completed batch upload using the GET /file-service/batch/upload/{batchId}
endpoint.
curl -X GET https://api.onboardingbuddy.co/file-service/batch/upload/batch-98765 \
-H "ob-app-key: your-app-key" \
-H "ob-api-key: your-api-key" \
-H "ob-api-secret: your-api-secret"
Example Response:
{
"batchId": "batch-98765",
"results": [
{
"fileId": "file-12346",
"fileName": "document1.pdf",
"fileType": "document",
"fileSize": 1048576,
"uploadStatus": "success",
"metadata": {
"classification": "KYC document",
"uploadedAt": "2025-09-09T17:56:00Z",
"storagePath": "gs://onboarding-buddy-files/file-12346"
}
},
{
"fileId": "file-12347",
"fileName": "image.jpg",
"fileType": "image",
"fileSize": 524288,
"uploadStatus": "success",
"metadata": {
"classification": "user profile image",
"uploadedAt": "2025-09-09T17:56:00Z",
"storagePath": "gs://onboarding-buddy-files/file-12347"
}
}
]
}
The Onboarding Buddy File Upload API is ideal for:
Get started with the Onboarding Buddy File Upload API today. Sign up to obtain your API credentials, explore the full API documentation, or discover other use cases like email validation or sanctions screening. For technical details, view all API endpoints.
Start Uploading Files Now