Endpoints
Create Storage
POST
https://api.oneinfer.ai/v1/storageCreate a new persistent storage volume on the ULA network.
Request Body
sizenumberrequired
Requested storage size in GB.
namestring
Optional human-readable name for the volume.
Example Request
curl -X POST https://api.oneinfer.ai/v1/storage -H "Authorization: Bearer <ACCESS_TOKEN>" -H "Content-Type: application/json" -d '{
"size": 50,
"name": "my-dataset-volume"
}'Error Status Codes
| Code | Status | Description |
|---|---|---|
| 200 | OK | Storage volume created successfully. |
| 401 | Unauthorized | Missing or invalid Authorization header / Bearer token. |
| 422 | Unprocessable Entity | Request body failed schema validation (e.g. missing size field). |
| 500 | Internal Server Error | Unexpected error creating the storage volume. |