Warning
The chemical API is in beta. Endpoint paths and schema may change.
Endpoints
| Method | Path | Description |
|---|---|---|
GET | /api/chemicals | List all chemical products |
GET | /api/chemicals/{id} | Get by ID |
GET | /api/chemicals/search?cas= | Search by CAS number |
POST | /api/chemicals | Create a chemical product |
PUT | /api/chemicals/{id} | Replace a chemical product |
POST /api/chemicals
| Field | Type | Required | Description |
|---|---|---|---|
name | string | ✅ | Chemical or trade name |
cas_numbers | array | ❌ | CAS Registry Numbers |
supplier | string | ❌ | Chemical supplier |
zdhc_level | string | ❌ | LEVEL_1, LEVEL_2, LEVEL_3, NOT_LISTED |
msds_url | string | ❌ | Safety Data Sheet URL |
reach_compliant | boolean | ❌ | Default: false |
svhc_substance | boolean | ❌ | Default: false |
Shell
curl -X POST http://localhost:8080/api/chemicals \-H "Content-Type: application/json" \-d '{"name": "Reactive Blue 19","cas_numbers": ["2580-78-1"],"zdhc_level": "LEVEL_2","reach_compliant": true}'