# store

_Stores the hex of the data in the offchain storage._

## Endpoint

`/v1/store`

## Example

### Request

#### Success (201)

```shell
curl -X POST http://localhost:1031/v1/store \
     -H "Content-Type: application/json" \
     -d '{
           "data": "{\"exp\":\"3+1\"}"
          }'
```

> The returned `_url` contains the unique ID generated by hashing the data. This URL can be used to retrieve the stored data later.

#### Server error (500)

```json
{ "error": "Internal server error message" }
```
