Autocomplete API Documentation

Authentication

All API requests require authentication using your API key in the header:

X-API-Key: your_api_key

Base URL

https://dosetta.com/api/

Endpoints

POST/drug-autocomplete

Retrieve a list of medications that match the search query.

Parameters:

  • query (required): The search query, can be a partial name or a full name

Example Response:

{
  "matches": [
    "asparaginase",
    "aspirin",
    "aspirin with codeine",
    "aspirin with metoclopramide",
    "biphasic insulin aspart",
    "caspofungin",
    "crisantaspase",
    "insulin aspart",
    "magnesium aspartate",
    "pegaspargase",
    "wasp venom extract"
  ]
}

Rate Limits

Requests are unlimited. Each request costs 1 credit from your account.

Error Codes

Status CodeDescription
400Bad Request - Invalid parameters
401Unauthorized - Invalid or missing API key
403Forbidden - Insufficient credits or permissions
404Not Found - Requested resource does not exist
429Too Many Requests - Rate limit exceeded
500Internal Server Error