Index

get/v1/drugs/{id}/form-options

Request

  • Base URL: https://api.pillwise.dev
  • URL: https://api.pillwise.dev/v1/drugs/{id}/form-options
  • Auth: HTTP bearer

Path parameters

idstring required
Example:pw_d_tylenol

Query parameters

formstring
Example:patch

Narrow to one form: a value from form_options.forms (for example eye_drops), or the form on a suggest hit.

as_ofstring

Latest retained snapshot with built_at <= this instant. RFC3339 is an exact instant; YYYY-MM-DD includes that whole UTC day. Envelope freshness is pinned.

graph_versionstring

Exact snapshot pin. Unknown or pruned versions return 410 gone_graph.

Response

Forms, strengths, routes for this id (no packages)

Example response

{
  "form_options": {
    "forms": [
      {
        "value": "eye_drops",
        "label": "Eye drops",
        "dose_unit": "drop",
        "route": "ophthalmic"
      }
    ],
    "strengths": [
      {
        "value": "0.05 MG/ML",
        "label": "0.005%",
        "forms": [
          "eye_drops"
        ]
      }
    ],
    "routes": [
      {
        "value": "inhaled",
        "label": "Inhaled"
      }
    ]
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.