---
title: Crea Ingrediente
description: "``` POST /api/ingredients ``` Crea un nuovo ingrediente associato all’azienda collegata al token. ## Autenticazione - **Tipo**: Bearer Token - **Header richiesto**: `Authorization: Bearer {api_token}` ## Request ### Headers | Chiave | Valore | | --- | --- | |…"
url: "https://novicrea.com/docs/crea-ingrediente/"
updated: "2025-07-07"
category: API
---

# Crea Ingrediente

```
POST /api/ingredients
```

Crea un nuovo ingrediente associato all’azienda collegata al token.

## Autenticazione

- **Tipo**: Bearer Token
- **Header richiesto**: `Authorization: Bearer {api_token}`

## Request

### Headers

| Chiave | Valore |
| --- | --- |
| Authorization | Bearer {api_token} |
| Content-Type | application/json |

### Body Parameters

| Campo | Tipo | Obbligatorio | Descrizione |
| --- | --- | --- | --- |
| `name` | string | Sì | Nome dell’ingrediente |
| `value` | decimal | Sì | Valore di acquisto unitario dell’ingrediente |
| `measure` | string | Sì | Unità di misura (es. kg, lt, ecc.) |
| `ingredient_format` | string | Sì | Formato dell’ingrediente |
| `waste` | string | Sì | Percentuale o quantità di scarto |
| `category` | integer | No | ID della categoria |
| `allergenic` | integer | No | ID di eventuale allergene |
| `provider` | integer | No | ID del fornitore |

### Esempio di richiesta

```
POST /api/ingredientsAuthorization: Bearer {api_token}Content-Type: application/json{  "name": "Farina 00",  "value": 0.80,  "measure": "kg",  "ingredient_format": "sfuso",  "waste": "2%",  "category": 5,  "allergenic": 3,  "provider": 7}
```

## Response

```
{  "success": true,  "message": "Ingrediente inserito con successo.",  "ingredient_id": 123}
```
