# List Storage Locations

`GET /storage/locations` · Core · Storage & Schema

Lists the project's active storage locations: the customer's own object stores (bring your own store) that buckets and datasets can be linked to. Retired locations are not listed.

## Parameters

| Name | In | Required | Description |
|---|---|---|---|
| `projectSlug` | path | yes | The project's slug: the path segment after `@`. It is unique within the org. Example: `"storefront"`. |

## Responses

- **200**: Success

| Field | Type | Required | Description |
|---|---|---|---|
| `data` | array of object | yes | The project's active locations, newest first. |
| `data.[]id` | string | yes | The location id (`byos_...`). |
| `data.[]projectId` | string | yes | The project the location belongs to (`proj_...`). |
| `data.[]provider` | enum ("s3", "s3_compatible", "gcs", "azure_blob", "minio", "r2", "b2") | yes | The storage provider. `s3_compatible` is any S3 API at `endpointOverride`. |
| `data.[]bucketName` | string | yes | The bucket or container name at the provider. |
| `data.[]region` | string | yes | The platform region the data belongs to. |
| `data.[]providerRegion` | string | yes | The bucket's region at its provider. |
| `data.[]endpointOverride` | object | yes | The custom endpoint URL, or null when none is set. |
| _one of_ | | |  |
| _or_ | | |  |
| `data.[]credentialRef` | string | yes | The credential reference (`kibo://byos-creds/sec_...`). The secret itself is never returned. |
| `data.[]custodyMode` | enum ("PLATFORM_MANAGED", "BYOK", "HYOK") | yes | Who holds the encryption keys for data written to the location. |
| `data.[]providerParams` | object | yes | The non-secret provider settings as stored, string keys with string values; an empty object when none were given. |
| `data.[]createdAt` | string (date-time) | yes | When the location was created. |
| `data.[]retiredAt` | object | yes | When the location was retired, or null while it is active. List results are always active; a read by id also returns a retired location. |
| _one of_ | | |  |
| _or_ | | |  |
| `meta` | object | yes |  |


## Errors

| HTTP | Code | When |
|---|---|---|
| 403 | `K9O_ACCESS_DENIED` | Your role does not permit listing storage locations for this project. |

## Code samples

### cURL

```bash
curl -X GET 'https://<org>.api-<region>.k9o.io/@storefront/storage/locations' \
  -H 'Authorization: Bearer $K9O_TOKEN'
```

### fetch

```javascript
const res = await fetch('https://<org>.api-<region>.k9o.io/@storefront/storage/locations', {
  method: 'GET',
  headers: {
    'Authorization': `Bearer ${process.env.K9O_TOKEN}`
  },
});
const { data, meta } = await res.json();
```

### @k9o/core

```typescript
// const k9o = new K9o({ orgSlug: 'playground', projectSlug: 'storefront', apiKey: 'k9o_…' })
const { data } = await k9o.storage.locations.list()
```

### k9o

```python
# k9o = create_client(org_slug="playground", project_slug="storefront", api_key="k9o_…")
response = k9o.storage.locations.list()
```

### sdk-go

```go
// ctx := context.Background()
// client, _ := k9o.NewClient(k9o.ClientOpts{OrgSlug: "playground", ProjectSlug: "storefront", APIKey: "k9o_…"})
data, _, kerr := client.Storage.Locations.List(ctx)
```

### k9o

```rust
// let k9o = Client::new(ClientOpts { org_slug: "playground".into(), project_slug: "storefront".into(), api_key: "k9o_…".into() })?;
let resp = k9o.storage.locations.list().await?
```

### dev.k9o:core

```java
// K9o k9o = K9o.createClient(K9o.Opts.builder().orgSlug("playground").projectSlug("storefront").apiKey("k9o_…").build());
var response = k9o.storage().locations().list()
```

### K9o.Core

```c#
// var k9o = K9oClient.Create(new K9oOptions { OrgSlug = "playground", ProjectSlug = "storefront", ApiKey = "k9o_…" });
var response = await k9o.Storage.Locations.ListAsync()
```

### k9o

```ruby
# k9o = K9o.create_client(org_slug: "playground", project_slug: "storefront", api_key: "k9o_…")
response = k9o.storage.locations.list()
```

### k9o/sdk

```php
// $k9o = K9oClient::create(['org_slug' => 'playground', 'project_slug' => 'storefront', 'api_key' => 'k9o_…']);
$response = $k9o->storage->locations->list()
```

### K9o

```swift
// let k9o = try K9o.createClient(orgSlug: "playground", projectSlug: "storefront", apiKey: "k9o_…")
let result = try await k9o.storage.locations.list()
```

### core-kotlin

```kotlin
// val k9o = createClient { orgSlug = "playground"; projectSlug = "storefront"; apiKey = "k9o_…" }
val result = k9o.storage.locations.list()
```

### k9o (Flutter)

```dart
// final k9o = K9o.createClient(orgSlug: 'playground', projectSlug: 'storefront', apiKey: 'k9o_…');
final result = await k9o.storage.locations.list()
```

### @k9o/react-native

```javascript
// const k9o = createClient({ orgSlug: 'playground', projectSlug: 'storefront', apiKey: 'k9o_…' })  // RN, secure storage
const { data } = await k9o.storage.locations.list()
```


Canonical page: https://docs.kilimanjaro.dev/api-playground/core/list-storage-locations
