Source (monorepo)
SDK source lives in backend-mono under
sdks/dotnetRequirements
- .NET 8.0 or later
Installation
From source
DeepXL/DeepXL.csproj.
NuGet (when published)
Example
Create an API key in the DeepXL Dashboard (Settings → API Keys).HttpClient with a longer timeout:
Client methods
Account
- CheckUsageAsync() – GET /v1/account. Returns
UsageResponse(usage and limits per media type). Optional fields:parsingUsageLimit,parsingUsage.
Models
- GetDetectionModelsAsync() – GET /v1/detection-models. Returns
JsonDocument. - GetParsingModelsAsync() – GET /v1/parsing-models. Returns
JsonDocument.
Fraud detection
- DetectAsync(modelName, fileName, fileData [, tags]) / DetectFileAsync(modelName, filePath [, tags]) – POST /v1/detection. Models:
document,object. ReturnsJsonDocument. - GetDetectionAsync(detectionId) – GET /v1/detection/. Returns
JsonDocument. - ListDetectionsAsync([param]) – GET /v1/detection. Params:
ListParamswithlimit,offset,sortBy,direction,tagFilter. ReturnsJsonDocumentwithtotalCount,count,data.
Document parsing
- ParseAsync(modelName, fileName, fileData [, tags]) / ParseFileAsync(modelName, filePath [, tags]) – POST /v1/parse. Models:
light,performance. ReturnsJsonDocument. - GetParseAsync(parseId) – GET /v1/parse/. Returns
JsonDocument. - ListParsesAsync([param]) – GET /v1/parse. Returns
JsonDocumentwithtotalCount,count,data.
ID verification
- VerifyAsync(idFileName, idFileData, selfieFileName, selfieFileData [, tags]) / VerifyFilesAsync(idFilePath, selfieFilePath [, tags]) – POST /v1/verification. Returns
JsonDocument. - GetVerificationAsync(verificationId) – GET /v1/verification/. Returns
JsonDocument. - ListVerificationsAsync([param]) – GET /v1/verification. Returns
JsonDocumentwithtotalCount,count,data.
File retrieval
- GetFileAsync(fileName) – GET /v1/files/. Returns
byte[]. Use the file name from thefilesarray in any analysis response.
Types
- UsageResponse –
ImageUsageLimit,ImageUsage,VideoUsageLimit,VideoUsage,AudioUsageLimit,AudioUsage,DocumentUsageLimit,DocumentUsage, and optionallyParsingUsageLimit,ParsingUsage. - ListParams –
Limit,Offset,SortBy,Direction,TagFilter.
Errors
On API or network failure the client throwsDeepXLException with an optional StatusCode. Parse error responses from the API when present.