Skip to main content

API Reference

Complete reference of all available operations across the SingleBase platform APIs.

Datastore API

OperationDescription
collection.findRetrieve one or multiple documents from a collection with filtering, sorting, and pagination
collection.insertInsert one or multiple new documents into a collection
collection.updateUpdate existing documents by key or match criteria
collection.upsertUpdate existing documents or insert new ones if no matches are found
collection.countCount documents in a collection that match specific criteria
collection.deleteDelete documents from a collection (recoverable with reference ID)
collection.archiveArchive documents to hide them from queries while keeping them in storage
collection.restoreRestore previously archived or deleted documents using reference ID

Auth API

OperationDescription
auth.signinSign in users with password, OTP, or invite-based authentication methods
auth.signupRegister new user accounts with email, password, and profile information
auth.signoutSign out users and invalidate their current session
auth.update_profileUpdate user profile information including display name, phone, photo, and metadata
auth.update_accountUpdate core account details (email, password, username) with OTP verification
auth.send_otpGenerate and send OTP codes via email for various authentication operations
auth.verify_id_tokenVerify the validity of a JWT ID token for admin or server-side validation
auth.refresh_tokenRefresh expired authentication tokens using a valid refresh token
auth.settingsRetrieve public authentication configuration and password policies
auth.nonceGenerate nonce values for OAuth authentication flows

XAP API

OperationDescription
xai.generateGenerate new content based on user prompts
xai.summarizeCreate concise summaries of long-form content
xai.classifyCategorize content into predefined or custom classifications
xai.sentimentAnalyze emotional tone and sentiment of text
xai.extractExtract specific entities and information from content
xai.translateTranslate content between languages
xai.vectorizeConvert text content into vector embeddings

Vectorstore Overview

EndpointDescription
vdb.insertInsert vectors and metadata into collections
vdb.searchPerform semantic similarity search across vectors
vdb.deleteDelete vector entries by keys

Filestore API

OperationDescription
file.infoRetrieve file information including URL, metadata, and access permissions
file.updateUpdate file permissions, visibility settings, and metadata
file.deletePermanently delete files from storage
file.presign_uploadGenerate secure presigned URLs and validate file uploads before they occur
file.postsign_uploadComplete the file upload process and finalize storage
file.upload_errorReport upload errors and handle failed upload attempts