> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.konfidant.app/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.konfidant.app/_mcp/server.

# List Organization Shares

GET https://www.konfidant.app/api/v1/shares

Lists the organization's shares, newest first. The order is stable, so paging with `limit` and `offset` never repeats or skips a share. Only metadata is returned: no content, file names or keys (Konfidant does not have them). Only shares created while verified burn was enabled are recorded.

Reference: https://docs.konfidant.app/konfidant-api/list-shares

## Authentication

- `Authorization` header (bearer token, required) — Konfidant API key (`kf_live_...` or `kf_test_...`), created by an organization admin in the dashboard.

## Request

### Query parameters

- `type` (enum, optional) — Filter by share type
  - Allowed values: `file`, `text`
- `status` (enum, optional) — Filter by status: not yet opened (`active`) or opened (`accessed`)
  - Allowed values: `active`, `accessed`
- `limit` (integer, optional, default: 50)
- `offset` (integer, optional, default: 0) — Number of shares to skip

## Response

### 200

OK

- `shares` (list of ApiV1SharesGetResponsesContentApplicationJsonSchemaSharesItems, required)
- `pagination` (ApiV1SharesGetResponsesContentApplicationJsonSchemaPagination, required)

## Errors

### 400 Bad Request Error

Bad Request: invalid filter

- `error` (string, required)

### 401 Unauthorized Error

Unauthorized

- `error` (string, required)

### 403 Forbidden Error

Forbidden: missing scope, plan without API access, or quota exceeded

- `error` (string, required)
- `code` (string, optional) — `api_quota_exceeded` when the organization's API share allowance is used up.
- `required_scope` (string, optional)
- `available_scopes` (list of string, optional)

### 429 Too Many Requests Error

Rate limit exceeded

- `error` (string, required)
- `limit` (integer, optional)
- `window_seconds` (integer, optional)
- `retry_after_seconds` (integer, optional)

## Types

### ApiV1SharesGetResponsesContentApplicationJsonSchemaSharesItems

- `type` (enum, required)
  - Allowed values: `file`, `text`
- `file_size_bytes` (integer, required, nullable) — Ciphertext size in bytes; null for texts.
- `created_at` (datetime, required)
- `expires_at` (datetime, required)
- `accessed_at` (datetime, required, nullable)
- `created_by` (string, required, nullable) — Email of the API key creator; null if the user was deleted.

### ApiV1SharesGetResponsesContentApplicationJsonSchemaPagination

- `total` (integer, required)
- `limit` (integer, required)
- `offset` (integer, required)
- `has_more` (boolean, required)

## Examples

**Response**

```json
{
  "shares": [
    {
      "type": "file",
      "file_size_bytes": 1964720,
      "created_at": "2026-10-03T09:46:10.000Z",
      "expires_at": "2026-10-10T09:46:10.000Z",
      "accessed_at": null,
      "created_by": "foo@bar.com"
    },
    {
      "type": "text",
      "file_size_bytes": null,
      "created_at": "2026-10-03T09:42:36.000Z",
      "expires_at": "2026-10-03T17:42:36.000Z",
      "accessed_at": "2026-10-03T10:01:12.000Z",
      "created_by": "foo@bar.com"
    }
  ],
  "pagination": {
    "total": 2,
    "limit": 50,
    "offset": 0,
    "has_more": false
  }
}
```

**SDK Code**

```python listShares_example
import requests

url = "https://www.konfidant.app/api/v1/shares"

querystring = {"status":"active","type":"file"}

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript listShares_example
const url = 'https://www.konfidant.app/api/v1/shares?status=active&type=file';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go listShares_example
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://www.konfidant.app/api/v1/shares?status=active&type=file"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby listShares_example
require 'uri'
require 'net/http'

url = URI("https://www.konfidant.app/api/v1/shares?status=active&type=file")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java listShares_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://www.konfidant.app/api/v1/shares?status=active&type=file")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php listShares_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://www.konfidant.app/api/v1/shares?status=active&type=file', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp listShares_example
using RestSharp;

var client = new RestClient("https://www.konfidant.app/api/v1/shares?status=active&type=file");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift listShares_example
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://www.konfidant.app/api/v1/shares?status=active&type=file")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```