API
Create a label
Colour is optional; omitted, the label renders in the default.
POSTapi.openemail.uk/labels
Runs the real call against your workspace, with your own key.
POST /labels
Colour is optional; omitted, the label renders in the default.
Example
Needs labels:write.
curl -X POST "$OE/labels" -H "$AUTH" -H "Content-Type: application/json" \ -d '{ "name": "Invoices", "color": { "backgroundColor": "#e8f0fe", "textColor": "#1967d2" } }'{ "object": "label", "id": "USER_INVOICES", "name": "Invoices" }Read id back from the response rather than building it. It comes from the name today, and that is not part of the contract.