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

# Publish a share link (legacy path)

POST https://api.siftsy.app/analyst/v1/briefs
Content-Type: application/json

Legacy path for `POST /shares`. Same scope, body, response, and rate
class; existing integrations keep working.


Reference: https://api.docs.siftsy.com/api-reference/siftsy-analyst-api/briefs/create-brief

## Authentication

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

## Servers

- `https://api.siftsy.app/analyst/v1` (Production, default)
- `http://localhost:3000/analyst/v1` (Local development)

## Request

### Body (application/json)

This endpoint expects a CreateBriefRequest.

- `postIds` (list of string, required) — Post ids on the target team (from `GET /posts` or a content job's `accepted[].postId`)
- `title` (string, optional)
- `note` (string, optional) — Shown to recipients at the top of the brief
- `accessMode` (enum, optional, default: team) — `team`: signed-in team members only. `public`: anyone with the link
  - Allowed values: `team`, `public`
- `expiresAt` (datetime, optional) — When the link stops opening. Omit for no expiry
- `teamId` (string, optional) — Enterprise keys only — a sub-team of the key's enterprise
- `analysisId` (string, optional) — A `ready` analysis (`kind` `snapshot` or `search`, not a comparison) created with `include: ["insights"]` on exactly `postIds`. The brief shows its scores, comment summary, themes, and top comments. A searched or filtered analysis shows as that search on the brief, labeled with `search.query` and its applied filters, instead of as the Overview. Needs `analyses:read`, or an analysis this key created. `400` when the analysis doesn't fit (not ready, a comparison, other posts, no insights, or older than the posts' latest sync).

## Response

### 201

Share link published

- `data` (Brief, optional)
- `meta` (EnvelopeBriefMeta, optional)

## Errors

### 400 Bad Request Error

Invalid request

- `any`

### 403 Forbidden Error

Missing required scope

- `any`

### 404 Not Found Error

Resource not found

- `any`

### 429 Too Many Requests Error

A per-minute cap, a per-day budget, or the daily transfer cap was exceeded. `error.message` is `Rate limit exceeded`, `Daily request limit exceeded`, or `Daily transfer limit exceeded`. Honor `Retry-After` (next UTC minute for burst caps; UTC midnight for daily budgets). Sized for a scheduled BI refresh: burst caps that a sequential loop cannot trip, daily budgets that fit eight full refreshes a day of a 500-post workspace or one full refresh plus hourly incrementals. Defaults: 300/minute and 10,000/day globally, with class budgets for per-post comment samples (120/min, 1,000/day), analysis-wide comment samples (20/min, 300/day), collection posts (60/min, 1,000/day), analysis reads (60/min, 2,000/day), analysis create (10/min, 100/day), AI search and written answers (2/min, 10/day), scans, breakdowns, and link matching (20/min, 500/day each), analysis exports (30/min, 500/day), adding posts (10/min, 200/day), adding accounts (2/min, 20/day), refreshing posts (10/min, 200/day), tagging and archiving posts (20/min, 500/day each), share links (10/min, 200/day), and content job polls (60/min, 2,000/day). Daily transfer cap 500 MB. `POST /analyses` with AI also returns `429` with `error.code: ai_budget_exceeded` when the team's daily AI budget is spent; `error.budget` has `used`, `limit`, and `resetsAt`, and `Retry-After` runs to UTC midnight.

- `any`

## Types

### Brief

- `id` (string, optional)
- `teamId` (string, optional)
- `title` (string, optional, nullable)
- `note` (string, optional, nullable)
- `accessMode` (enum, optional)
  - Allowed values: `team`, `public`
- `postIds` (list of string, optional)
- `url` (string, optional) — The Shareable Brief link
- `dashboardUrl` (string, optional) — The same posts on the team dashboard (sign-in required)
- `expiresAt` (datetime, optional, nullable)
- `createdAt` (datetime, optional)
- `engineVersions` (EngineVersions, optional) — Versions that produced this result. A search-only result omits `analysis`. `sentiment` is the processing service's sentiment stamp, passed through unchanged. When posts disagree it is `{ stamps, truncated, omitted }`.

### EnvelopeBriefMeta

### EngineVersions

Versions that produced this result. A search-only result omits `analysis`. `sentiment` is the processing service's sentiment stamp, passed through unchanged. When posts disagree it is `{ stamps, truncated, omitted }`.

- `api` (string, optional)
- `search` (EngineStamp, optional) — One engine stamp. `version` is `search@x.y.z` or `analysis@x.y.z`. `mixedWith` lists earlier `id@fingerprint` values reused from a cached partial.
- `analysis` (EngineStamp, optional) — One engine stamp. `version` is `search@x.y.z` or `analysis@x.y.z`. `mixedWith` lists earlier `id@fingerprint` values reused from a cached partial.
- `sentiment` (any, optional, nullable)
- `commentDataVersion` (integer, optional, nullable)

### EngineStamp

One engine stamp. `version` is `search@x.y.z` or `analysis@x.y.z`. `mixedWith` lists earlier `id@fingerprint` values reused from a cached partial.

- `id` (string, optional)
- `version` (string, optional)
- `fingerprint` (string, optional)
- `promptHash` (string, optional, nullable)
- `overrides` (map from string to any, optional)
- `fallbacks` (list of map from string to any, optional)
- `modified` (boolean, optional)
- `draft` (boolean, optional)
- `parent` (string, optional, nullable)
- `mixedWith` (list of string, optional)

## Examples

**Request**

```json
{
  "postIds": [
    "string"
  ]
}
```

**Response**

```json
{
  "data": {
    "id": "string",
    "teamId": "string",
    "title": "string",
    "note": "string",
    "accessMode": "team",
    "postIds": [
      "string"
    ],
    "url": "string",
    "dashboardUrl": "string",
    "expiresAt": "2024-01-15T09:30:00Z",
    "createdAt": "2024-01-15T09:30:00Z",
    "engineVersions": {
      "api": "2.0.0",
      "search": {
        "id": "string",
        "version": "string",
        "fingerprint": "string",
        "promptHash": "string",
        "overrides": {},
        "fallbacks": [
          {}
        ],
        "modified": true,
        "draft": true,
        "parent": "string",
        "mixedWith": [
          "string"
        ]
      },
      "analysis": {
        "id": "string",
        "version": "string",
        "fingerprint": "string",
        "promptHash": "string",
        "overrides": {},
        "fallbacks": [
          {}
        ],
        "modified": true,
        "draft": true,
        "parent": "string",
        "mixedWith": [
          "string"
        ]
      },
      "sentiment": null,
      "commentDataVersion": 1
    }
  },
  "meta": {}
}
```

**SDK Code**

```python
import requests

url = "https://api.siftsy.app/analyst/v1/briefs"

payload = { "postIds": ["string"] }
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript
const url = 'https://api.siftsy.app/analyst/v1/briefs';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"postIds":["string"]}'
};

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.siftsy.app/analyst/v1/briefs"

	payload := strings.NewReader("{\n  \"postIds\": [\n    \"string\"\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.siftsy.app/analyst/v1/briefs")

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  \"postIds\": [\n    \"string\"\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.siftsy.app/analyst/v1/briefs")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"postIds\": [\n    \"string\"\n  ]\n}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.siftsy.app/analyst/v1/briefs', [
  'body' => '{
  "postIds": [
    "string"
  ]
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://api.siftsy.app/analyst/v1/briefs");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"postIds\": [\n    \"string\"\n  ]\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = ["postIds": ["string"]] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.siftsy.app/analyst/v1/briefs")! 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()
```