Skip to main content

Request Parameters

This section describes the parameters commonly used when making requests to the Neolens API.

πŸ” Query Parameters​

ParameterTypeDescription
searchstringText to search across patient records or image metadata.
limitintNumber of results to return (default: 20, max: 100).
offsetintNumber of results to skip (for pagination).
sortstringSorting order (e.g., date:asc, confidence:desc).
tip

Use offset and limit together to paginate through large result sets.

πŸ“¦ Request Body Parameters (POST/PUT)​

ParameterTypeDescription
image_database64Base64-encoded image file (max 10 MB).
patient_idstringID of the patient the image belongs to.
modalitystringImaging modality (e.g., X-ray, MRI, CT).
notesstringOptional free-text note.

🧾 Headers​

HeaderRequiredDescription
Authorizationβœ…Bearer token obtained via authentication.
X-Neolens-Clientβœ…Your registered client ID.
Content-Typeβœ…Always application/json.

πŸŽ›οΈ Optional Parameters​

ParameterTypeDescription
confidence_minfloatOnly return results above this confidence threshold.
tagsarrayFilter results by image tags.

βœ… Best Practices​

Best Practices
  • Always validate user input before sending it to the API.
  • When handling large datasets, implement pagination with limit and offset.
  • Avoid sending unnecessary fields in the request body.

πŸ“Œ Special Cases​

Partner Use Case

If you’re a hospital partner using a custom deployment, you may have specific required parameters or limits (e.g., restricted modality types or patient_id patterns). Refer to your deployment guide or contact support.


🧠 Ethical & Regulatory Considerations​

Rate limiting and strict parameter validation help ensure traceability, prevent accidental misuse of data, and support compliance with healthcare data regulations (e.g., GDPR, HIPAA).


Need help ? Contact our support team.