# create()

Canonical URL: https://developers.iagenify.com/sdk/ref/storage/create/
Language: en

`api.storage.create({ service, label }) → Promise<ConnectedStorage>`

Opens an IaGenify Cloud storage. No host, no credentials, nothing to rotate — and it is read with the same calls as one you connected.

Status: POST /api/cloud/storages · 201 · no credentials to supply

## Parameters {#parameters}

| Name | Type | Requirement | Description |
| --- | --- | --- | --- |
| `service` | string | required | `nosql` · `sql` · `object`. Missing → the SDK throws. |
| `label` | string |  | The display name. The service's own name by default. |

## The three services {#three}

| service | Is | Read and written with |
| --- | --- | --- |
| nosql | A document database — collections and documents. | run({ action: "find" \| "insert" \| "aggregate" … }) |
| sql | A relational database — tables and SQL. | run({ action: "sql" }) |
| object | Object storage — keys and bytes. | run({ action: "objects" \| "put" \| "remove" }) |

```javascript
const base = await api.storage.create({ service: "nosql", label: "App data" });

base.id;
base.label;      // "App data"
base.type;       // "database"
base.service;    // "nosql"
base.provider;   // "iagenify"

await base.run({ action: "insert", collection: "events", documents: JSON.stringify([{ at: Date.now() }]) });
await base.run({ action: "count", collection: "events" });
```

## Why this rather than connecting your own {#why}

|  | IaGenify Cloud | Connected |
| --- | --- | --- |
| Credentials | none to hold | yours, to supply and rotate |
| Setup | one call | an account somewhere else |
| Space | what your plan gives, extendable | whatever you pay for there |
| Portability | ours | yours, and it stays yours |

The calls are identical either way, so this is not a decision you are locked into — the code that reads one reads the other.

## How many, and how much {#quota}

The plan decides how many storages per service and how much space each one gets. Both are readable before you hit them with [api.cloud.usage()](/sdk/ref/cloud/usage), which is better than discovering a limit through a refusal.

```javascript
const usage = await api.cloud.usage();
// per service: what is used, what the plan includes, what is available

const base = await api.storage.create({ service: "nosql", label: "App data" });
```

> **A write past the quota is refused, a read is not**
>
> quota_exceeded stops you adding; reading and deleting keep working, so you can always get your data out and make room. That asymmetry is deliberate.

## Errors {#errors}

| Code | Status | When |
| --- | --- | --- |
| invalid_service | 400 | Not one of the three — thrown by the SDK when absent. |
| cloud_storage_limit | 403 | The plan's count for that service is reached. |
| cloud_service_unavailable | 503 | That service cannot be served right now. |

- [run()](/sdk/ref/connected-storage/run): Everything you can ask a storage to do.
- [Quotas and plans](/sdk/ref/cloud/quotas): What each plan includes, per service.

```python
import json, time

base = api.storage.create(service="nosql", label="App data")

base.id
base.label      # "App data"
base.type       # "database"
base.service    # "nosql"
base.provider   # "iagenify"

base.run(action="insert", collection="events", documents=json.dumps([{"at": int(time.time() * 1000)}]))
base.run(action="count", collection="events")
```

```python
usage = api.cloud.usage()
# per service: what is used, what the plan includes, what is available

base = api.storage.create(service="nosql", label="App data")
```
