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

# Create share

POST https://api.frame.io/v4/accounts/{account_id}/projects/{project_id}/shares
Content-Type: application/json

Create share. Rate Limits: 10 calls per 1.00 minute(s) per account\_user

Reference: https://developer.staging.frame.io/platform/api-reference/shares/create

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Request

### Path parameters

- `account_id` (string, required)
- `project_id` (string, required)

### Body (application/json)

This endpoint expects a CreateShareParams.

- `data` (CreateShareParamsData, required)

## Response

### 201

Created

- `data` (Share, required)

## Errors

### 400 Bad Request Error

Bad Request

- `errors` (list of BadRequestErrorsItems, required)

### 401 Unauthorized Error

Unauthorized

- `errors` (list of UnauthorizedErrorsItems, required)

### 403 Forbidden Error

Forbidden

- `errors` (list of ForbiddenErrorsItems, required)

### 404 Not Found Error

Not Found

- `errors` (list of NotFoundErrorsItems, required)

### 422 Unprocessable Entity Error

Unprocessable Entity

- `errors` (list of UnprocessableEntityErrorsItems, required)

### 429 Too Many Requests Error

Too Many Requests

- `errors` (list of TooManyRequestsErrorsItems, required)

## Types

### CreateShareParamsData

### Share

- `access` (enum, required)
  - Allowed values: `public`, `secure`
- `collection_id` (string, required) — Collection ID
- `commenting_enabled` (boolean, required)
- `created_at` (string, required) — Creation timestamp
- `description` (string, required, nullable) — Share description
- `downloading_enabled` (boolean, required)
- `enabled` (boolean, required)
- `expiration` (string, required, nullable) — Expiration timestamp
- `id` (string, required) — Share ID
- `last_viewed_at` (string, required, nullable) — Last viewed timestamp
- `name` (string, required, nullable) — Share name
- `short_url` (string, required, nullable) — Share URL
- `updated_at` (string, required) — Update timestamp
- `passphrase` (string, optional, nullable) — Passphrase to access share, if passphrase is required and not given it will be generated

### BadRequestErrorsItems

- `detail` (string, required)
- `source` (BadRequestErrorsItemsSource, optional)
- `title` (string, optional)

### UnauthorizedErrorsItems

- `detail` (string, required)
- `source` (UnauthorizedErrorsItemsSource, optional)
- `title` (string, optional)

### ForbiddenErrorsItems

- `detail` (string, required)
- `source` (ForbiddenErrorsItemsSource, optional)
- `title` (string, optional)

### NotFoundErrorsItems

- `detail` (string, required)
- `source` (NotFoundErrorsItemsSource, optional)
- `title` (string, optional)

### UnprocessableEntityErrorsItems

- `detail` (string, required)
- `source` (UnprocessableEntityErrorsItemsSource, optional)
- `title` (string, optional)

### TooManyRequestsErrorsItems

- `detail` (string, required)
- `source` (TooManyRequestsErrorsItemsSource, optional)
- `title` (string, optional)

### AssetShareParams

- `access` (enum, required)
  - Allowed values: `public`, `secure`
- `name` (string, required) — Share Name (must include at least one non-whitespace character and no line breaks)
- `type` (enum, required) — Entity type
  - Allowed values: `asset`
- `asset_ids` (list of string, optional) — Asset IDs (File, folder, and/or version stack IDs)
- `description` (string, optional, nullable) — Share description - NOTE: Requires feature custom_branded_shares
- `downloading_enabled` (boolean, optional)
- `expiration` (string, optional, nullable) — Expiration timestamp
- `passphrase` (string, optional, nullable) — Passphrase to access share, if passphrase is required and not given it will be generated

### BadRequestErrorsItemsSource

- `pointer` (string, optional)

### UnauthorizedErrorsItemsSource

- `pointer` (string, optional)

### ForbiddenErrorsItemsSource

- `pointer` (string, optional)

### NotFoundErrorsItemsSource

- `pointer` (string, optional)

### UnprocessableEntityErrorsItemsSource

- `pointer` (string, optional)

### TooManyRequestsErrorsItemsSource

- `pointer` (string, optional)

## Examples

**Request**

```json
{
  "data": {
    "access": "public",
    "asset_ids": [
      "c8c86967-97f2-4f18-ab33-e8fbbc803c4c",
      "4e5b8301-cb95-4eee-b979-e11a55858340"
    ],
    "downloading_enabled": true,
    "expiration": "2025-10-24T22:42:23.690532Z",
    "name": "Share Name",
    "passphrase": "as!dfj39sd(*",
    "type": "asset"
  }
}
```

**Response**

```json
{
  "data": {
    "access": "public",
    "collection_id": "b3252929-2bd2-4b7b-9db2-7e7e8f798284",
    "commenting_enabled": true,
    "created_at": "2024-02-02T21:19:24.828948Z",
    "description": "Description of share",
    "downloading_enabled": true,
    "enabled": true,
    "expiration": "2025-10-24T22:42:23.690532Z",
    "id": "e92216a0-4497-4980-9f35-4c480a926139",
    "last_viewed_at": "2024-03-02T21:19:24.828948Z",
    "name": "Test Share",
    "short_url": "https://f.io/GGa9wPw5",
    "updated_at": "2024-02-02T21:19:24.828948Z",
    "passphrase": "as!dfj39sd(*"
  }
}
```

**SDK Code**

```python
import requests

url = "https://api.frame.io/v4/accounts/47fa85e8-afb2-4b40-8575-d58f264670c1/projects/9e00a043-fc06-46ab-857d-522e38eca4b1/shares"

payload = { "data": {
        "access": "public",
        "asset_ids": ["c8c86967-97f2-4f18-ab33-e8fbbc803c4c", "4e5b8301-cb95-4eee-b979-e11a55858340"],
        "downloading_enabled": True,
        "expiration": "2025-10-24T22:42:23.690532Z",
        "name": "Share Name",
        "passphrase": "as!dfj39sd(*",
        "type": "asset"
    } }
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.frame.io/v4/accounts/47fa85e8-afb2-4b40-8575-d58f264670c1/projects/9e00a043-fc06-46ab-857d-522e38eca4b1/shares';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"data":{"access":"public","asset_ids":["c8c86967-97f2-4f18-ab33-e8fbbc803c4c","4e5b8301-cb95-4eee-b979-e11a55858340"],"downloading_enabled":true,"expiration":"2025-10-24T22:42:23.690532Z","name":"Share Name","passphrase":"as!dfj39sd(*","type":"asset"}}'
};

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

```go
package main

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

func main() {

	url := "https://api.frame.io/v4/accounts/47fa85e8-afb2-4b40-8575-d58f264670c1/projects/9e00a043-fc06-46ab-857d-522e38eca4b1/shares"

	payload := strings.NewReader("{\n  \"data\": {\n    \"access\": \"public\",\n    \"asset_ids\": [\n      \"c8c86967-97f2-4f18-ab33-e8fbbc803c4c\",\n      \"4e5b8301-cb95-4eee-b979-e11a55858340\"\n    ],\n    \"downloading_enabled\": true,\n    \"expiration\": \"2025-10-24T22:42:23.690532Z\",\n    \"name\": \"Share Name\",\n    \"passphrase\": \"as!dfj39sd(*\",\n    \"type\": \"asset\"\n  }\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

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

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

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

}
```

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

url = URI("https://api.frame.io/v4/accounts/47fa85e8-afb2-4b40-8575-d58f264670c1/projects/9e00a043-fc06-46ab-857d-522e38eca4b1/shares")

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

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"data\": {\n    \"access\": \"public\",\n    \"asset_ids\": [\n      \"c8c86967-97f2-4f18-ab33-e8fbbc803c4c\",\n      \"4e5b8301-cb95-4eee-b979-e11a55858340\"\n    ],\n    \"downloading_enabled\": true,\n    \"expiration\": \"2025-10-24T22:42:23.690532Z\",\n    \"name\": \"Share Name\",\n    \"passphrase\": \"as!dfj39sd(*\",\n    \"type\": \"asset\"\n  }\n}"

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

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

HttpResponse<String> response = Unirest.post("https://api.frame.io/v4/accounts/47fa85e8-afb2-4b40-8575-d58f264670c1/projects/9e00a043-fc06-46ab-857d-522e38eca4b1/shares")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"data\": {\n    \"access\": \"public\",\n    \"asset_ids\": [\n      \"c8c86967-97f2-4f18-ab33-e8fbbc803c4c\",\n      \"4e5b8301-cb95-4eee-b979-e11a55858340\"\n    ],\n    \"downloading_enabled\": true,\n    \"expiration\": \"2025-10-24T22:42:23.690532Z\",\n    \"name\": \"Share Name\",\n    \"passphrase\": \"as!dfj39sd(*\",\n    \"type\": \"asset\"\n  }\n}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.frame.io/v4/accounts/47fa85e8-afb2-4b40-8575-d58f264670c1/projects/9e00a043-fc06-46ab-857d-522e38eca4b1/shares', [
  'body' => '{
  "data": {
    "access": "public",
    "asset_ids": [
      "c8c86967-97f2-4f18-ab33-e8fbbc803c4c",
      "4e5b8301-cb95-4eee-b979-e11a55858340"
    ],
    "downloading_enabled": true,
    "expiration": "2025-10-24T22:42:23.690532Z",
    "name": "Share Name",
    "passphrase": "as!dfj39sd(*",
    "type": "asset"
  }
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://api.frame.io/v4/accounts/47fa85e8-afb2-4b40-8575-d58f264670c1/projects/9e00a043-fc06-46ab-857d-522e38eca4b1/shares");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"data\": {\n    \"access\": \"public\",\n    \"asset_ids\": [\n      \"c8c86967-97f2-4f18-ab33-e8fbbc803c4c\",\n      \"4e5b8301-cb95-4eee-b979-e11a55858340\"\n    ],\n    \"downloading_enabled\": true,\n    \"expiration\": \"2025-10-24T22:42:23.690532Z\",\n    \"name\": \"Share Name\",\n    \"passphrase\": \"as!dfj39sd(*\",\n    \"type\": \"asset\"\n  }\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = ["data": [
    "access": "public",
    "asset_ids": ["c8c86967-97f2-4f18-ab33-e8fbbc803c4c", "4e5b8301-cb95-4eee-b979-e11a55858340"],
    "downloading_enabled": true,
    "expiration": "2025-10-24T22:42:23.690532Z",
    "name": "Share Name",
    "passphrase": "as!dfj39sd(*",
    "type": "asset"
  ]] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.frame.io/v4/accounts/47fa85e8-afb2-4b40-8575-d58f264670c1/projects/9e00a043-fc06-46ab-857d-522e38eca4b1/shares")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

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()
```