{"openapi":"3.1.0","info":{"title":"DermDecode API","version":"1","description":"Rules-only skin-care ingredient decoder. Flags come from a fixed, cited rules file; no language model is called. Educational only, not medical advice. Up to 60 requests per hour per network. For AI assistants, an MCP server is at https://dermdecode.com/api/mcp."},"servers":[{"url":"https://dermdecode.com"}],"paths":{"/api/v1/decode":{"post":{"operationId":"decodeIngredientsPost","description":"Send ingredients and optional concerns in the JSON body. Do not put them in a URL.","summary":"Decode an ingredient list (JSON body)","requestBody":{"required":true,"content":{"application/json":{"example":{"ingredients":["Water","Glycerin"]},"schema":{"type":"object","required":["ingredients"],"properties":{"ingredients":{"oneOf":[{"type":"string","maxLength":4000},{"type":"array","items":{"type":"string"},"description":"The joined ingredient list must fit the character limit."}]},"concerns":{"type":"array","items":{"type":"string","enum":["sensitive","rosacea","pregnancy","fungal-acne"]}}}}}}},"responses":{"200":{"description":"Decode result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DecodeResult"}}}},"400":{"description":"Invalid JSON or ingredient input"},"422":{"description":"Ingredient input could not be decoded"},"429":{"description":"Rate limited"}}}}},"components":{"schemas":{"DecodeResult":{"type":"object","properties":{"ok":{"type":"boolean"},"apiVersion":{"type":"string"},"attribution":{"type":"string"},"rulesVersion":{"type":"string"},"resultUrl":{"type":"string","format":"uri","deprecated":true,"description":"Legacy field that may contain submitted ingredients and concerns. Do not open, log, or share it. Cite the individual note and source links instead."},"summary":{"type":"string"},"ingredients":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"recognized":{"type":"boolean"},"noteUrl":{"type":"string"}}}},"unrecognized":{"type":"array","items":{"type":"string"}},"notes":{"type":"array","items":{"type":"object","properties":{"ingredient":{"type":"string"},"note":{"type":"string"},"noteUrl":{"type":"string"},"sources":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string"},"publisher":{"type":"string"},"year":{"type":"integer"},"url":{"type":"string","format":"uri"}}}}}}},"flags":{"type":"array","items":{"type":"object","properties":{"ingredient":{"type":"string"},"ingredientsMatched":{"type":"array","items":{"type":"string"}},"kind":{"type":"string"},"severity":{"type":"string"},"appliesTo":{"type":"array","items":{"type":"string"}},"note":{"type":"string"},"noteUrl":{"type":"string"},"sources":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string"},"publisher":{"type":"string"},"year":{"type":"integer"},"url":{"type":"string","format":"uri"}}}}}}},"conflicts":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string"},"severity":{"type":"string"},"note":{"type":"string"},"left":{"type":"array","items":{"type":"string"}},"right":{"type":"array","items":{"type":"string"}},"pageUrl":{"type":"string"},"sources":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string"},"publisher":{"type":"string"},"year":{"type":"integer"},"url":{"type":"string","format":"uri"}}}}}}},"disclaimer":{"type":"string"}}}}}}