> 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.

# Add posts by URL

POST https://api.siftsy.app/analyst/v1/content/posts/add
Content-Type: application/json

Requires `posts:write` (opt-in when the key is created). Adds up to
100 post URLs to the team the same way **Add New** does in the Siftsy
app: each accepted link reserves one MAP or Ad Hoc credit (5 with
`capture.fullRead`), creates the post, and queues it for processing.
Links already on the team are `skipped` (never charged); links on an
unsupported host are `rejected` up front (never charged).

Responds `202` with a `ContentJob` and a `Location` header. Poll
`GET /content/jobs/{jobId}` until `status` is `completed`, `partial`,
or `failed`, honoring `Retry-After` / `meta.pollAfterMs`. Posts become
readable through `GET /posts` as they finish processing.

Order of operations inside the request: validate links → resolve the
target team → resolve `collections` → replay check → dedupe against
the team's posts → fund check for the whole batch → reserve + create
each post (`status: fetching`, `addedVia: api`) → queue. The per-link
outcome (`accepted` / `skipped` / `rejected`) is therefore final on the
`202`; only processing remains. See the Adding content guide for the
post lifecycle and when credits are consumed or refunded.

* `collections`: attach the posts to existing collections by `id`, or
  by `name` — an exact (case-insensitive) match on an active
  collection is reused, otherwise a new campaign is created. A name
  that matches more than one collection returns `409
  collection_name_ambiguous` with the candidate ids.
* `tags`: free-form content tags (strings), merged onto the posts.
* `teamId`: for Enterprise keys only — a sub-team of the key's
  enterprise to add to (credits are reserved on that sub-team).
* `credits.source`: `auto` (MAPs first, then Ad Hoc) or `adhoc`.

Identical requests within the retention window return the existing
job (`200`, `meta.replayed: true`) instead of charging twice. When
the whole batch cannot be funded, nothing is created and the
response is `402`.

Rate class `content_add_posts` (10 / minute, 200 / day per key).

Reference: https://api.docs.siftsy.com/api-reference/siftsy-analyst-api/add-posts

## 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 an AddPostsRequest.

- `links` (list of string, required) — Post URLs on TikTok, Instagram, YouTube, Facebook, LinkedIn, X, Reddit, or Pinterest. Scheme-less URLs are accepted.
- `teamId` (string, optional) — Enterprise keys only — a sub-team of the key's enterprise to add to
- `collections` (list of CollectionRef, optional)
- `tags` (list of string, optional) — Content tags to merge onto the posts (leading `#` is dropped)
- `credits` (CreditOptions, optional)
- `capture` (CaptureOptions, optional)

## Response

### 200

Identical request replayed; existing job returned (`meta.replayed: true`)

- `data` (ContentJob, optional)
- `meta` (EnvelopeContentJobMeta, optional)

### 202

Content job created; posts are queued and syncing

- `data` (ContentJob, optional)
- `meta` (EnvelopeContentJobMeta, optional)

## Errors

### 400 Bad Request Error

Invalid request

- `any`

### 402 Payment Required Error

The team cannot fund any of the requested links (no MAPs or Ad Hoc credits left, no active plan, or not enough for `capture.fullRead`). Nothing was created or charged. `error.code` carries the reason (`insufficient_credits`, `no_active_plan`, `insufficient_capacity_for_full_read`). When only part of a batch can be funded the request still succeeds and the unfunded links appear in `rejected[]` with `reason: insufficient_credits`.

- `any`

### 403 Forbidden Error

Missing required scope

- `any`

### 404 Not Found Error

Resource not found

- `any`

### 409 Conflict Error

A `collections[].name` matched more than one active collection on the team. `error.code` is `collection_name_ambiguous` and `error.candidates[]` lists `{ id, name, type }`; retry with one of the ids. Nothing was created or charged.

- `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 (2/min, 10/day), adding posts (10/min, 200/day), adding accounts (2/min, 20/day), refreshing posts (10/min, 200/day), and content job polls (60/min, 2,000/day). Daily transfer cap 500 MB.

- `any`

## Types

### CollectionRef

Exactly one of `id` or `name`. `id` must be an active collection on the target team. `name` reuses an exact (case-insensitive) match on an active collection, otherwise creates one. Ambiguous names return `409 collection_name_ambiguous`.

- `id` (string, optional) — Existing collection id
- `name` (string, optional) — Collection name to match or create
- `type` (enum, optional, default: campaign) — Structural type when creating by name
  - Allowed values: `campaign`, `group`
- `parentId` (string, optional) — With `type: group` — the campaign to nest the new group under

### CreditOptions

- `source` (enum, optional, default: auto) — `auto` spends MAPs first and overflows into Ad Hoc credits; `adhoc` spends Ad Hoc credits only
  - Allowed values: `auto`, `adhoc`

### CaptureOptions

- `fullRead` (boolean, optional, default: false) — Capture the full comment section (5 credits per post instead of 1)
- `commentLimit` (integer, optional) — Cap comments captured per post (ignored with `fullRead`)

### ContentJob

- `id` (string, optional) — `cj_…`
- `url` (string, optional, nullable) — Absolute URL of this job on the host you called. Poll it as-is.
- `kind` (enum, optional)
  - Allowed values: `posts`, `account`, `refresh`
- `status` (enum, optional) — `discovering` (account jobs, before posts are known) → `queuing` → `syncing` (posts created and processing) → `completed` (every requested link added and processed), `partial` (some skipped, rejected, or failed to process), or `failed` (nothing added).
  - Allowed values: `discovering`, `queuing`, `syncing`, `completed`, `partial`, `failed`
- `teamId` (string, optional) — Team the content was added to
- `dryRun` (boolean, optional)
- `account` (ContentJobAccount, optional, nullable)
- `filters` (AccountFilters, optional) — The same account filters offered in the Siftsy app.
- `collections` (list of ContentJobCollectionsItems, optional)
- `tags` (list of string, optional)
- `credits` (ContentJobCredits, optional) — Credit accounting derived from link outcomes and post status
- `minRefreshIntervalHours` (integer, optional) — Refresh jobs — the per-post floor between programmatic refreshes (12)
- `counts` (ContentJobCounts, optional)
- `error` (ContentJobError, optional, nullable)
- `pollAfterMs` (integer, optional) — Present while the job is not terminal
- `createdAt` (datetime, optional)
- `updatedAt` (datetime, optional)
- `completedAt` (datetime, optional, nullable)
- `expiresAt` (datetime, optional)
- `accepted` (list of ContentJobLinkResult, optional) — Links that reserved a credit and created a post
- `skipped` (list of ContentJobLinkResult, optional) — Links already on the team (not charged)
- `rejected` (list of ContentJobLinkResult, optional) — Links that were not added (not charged)
- `discovered` (list of ContentJobDiscoveredItems, optional) — Account `dryRun` jobs — the posts that matched the filters

### EnvelopeContentJobMeta

- `status` (string, optional)
- `pollAfterMs` (integer, optional) — Present while the job is not terminal
- `replayed` (boolean, optional) — `true` when an identical request returned an existing job

### ContentJobAccount

- `url` (string, optional)
- `platform` (string, optional)

### AccountFilters

The same account filters offered in the Siftsy app.

- `since` (datetime, optional) — Only posts published on or after this time (ISO 8601; a date is accepted)
- `until` (datetime, optional) — Only posts published on or before this time (defaults to now)
- `limit` (integer, optional, default: 20) — Maximum posts to add, newest first
- `keywords` (list of AccountFiltersKeywordsItems, optional) — Caption keyword filters. Strings mean `includes`.
- `minViews` (integer, optional)
- `minLikes` (integer, optional)
- `postType` (enum, optional)
  - Allowed values: `video`, `image`, `carousel`, `reel`, `short`, `story`, `text`, `other`

### ContentJobCollectionsItems

- `id` (string, optional)
- `name` (string, optional, nullable)
- `type` (string, optional)
- `created` (boolean, optional) — `true` when this request created the collection by name

### ContentJobCredits

Credit accounting derived from link outcomes and post status

- `source` (enum, optional)
  - Allowed values: `auto`, `adhoc`
- `perPost` (integer, optional) — 1, or 5 with `capture.fullRead`
- `reserved` (integer, optional) — Credits reserved for accepted links
- `settled` (integer, optional, nullable) — Credits for accepted posts that finished processing
- `refunded` (integer, optional, nullable) — Credits returned for accepted posts that failed to process
- `estimated` (integer, optional) — Account jobs — what adding the discovered posts would cost (`dryRun`)
- `included` (integer, optional) — Refresh jobs — accepted refreshes covered by the plan's included cadence (cost 0)

### ContentJobCounts

- `requested` (integer, optional)
- `discovered` (integer, optional, nullable) — Account jobs — posts matching the filters
- `accepted` (integer, optional)
- `skipped` (integer, optional)
- `rejected` (integer, optional)
- `syncing` (integer, optional)
- `complete` (integer, optional, nullable)
- `failed` (integer, optional, nullable)

### ContentJobError

- `message` (string, optional)
- `code` (string, optional)

### ContentJobLinkResult

- `link` (string, optional)
- `postId` (string, optional, nullable)
- `postStatus` (string, optional) — Processing status of the created post while the job is syncing
- `reason` (string, optional, nullable) — Why a link was skipped or rejected. Add jobs: `already_complete`, `already_processing`, `duplicate_in_batch`, `unsupported_platform`, `invalid_url`, `insufficient_credits`, `create_failed`. Refresh jobs add `min_interval` (inside the 12-hour floor), `cooldown`, `not_found`, `not_on_team`, `unreachable`, `resync_not_enabled`.
- `creditSource` (enum, optional) — Refresh jobs — `included` (free under the plan's refresh cadence) or `credit` (charged)
  - Allowed values: `included`, `credit`
- `creditCost` (integer, optional) — Refresh jobs — 0, 1, or 5 (Full Read)
- `dataVersion` (integer, optional) — Refresh jobs — the data version this refresh will produce
- `nextRefreshAt` (datetime, optional) — Refresh jobs — when a `min_interval` / `cooldown` skip becomes eligible

### ContentJobDiscoveredItems

- `link` (string, optional)
- `postedAt` (datetime, optional, nullable)
- `postType` (string, optional, nullable)
- `engagement` (Engagement, optional) — Platform engagement counts as last refreshed. Null when the platform does not report a metric.

### AccountFiltersKeywordsItems

- string
- AccountFiltersKeywordsItems1

### Engagement

Platform engagement counts as last refreshed. Null when the platform does not report a metric.

- `views` (double, optional, nullable)
- `likes` (double, optional, nullable)
- `comments` (double, optional, nullable)
- `shares` (double, optional, nullable)
- `saves` (double, optional, nullable)
- `engagementRate` (double, optional, nullable)

### AccountFiltersKeywordsItems1

- `term` (string, required)
- `match` (enum, optional, default: includes)
  - Allowed values: `includes`, `exact`, `excludes`

## Examples

### Enterprise key adding to a sub-team with Ad Hoc credits

**Request**

```json
{
  "links": [
    "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
  ],
  "teamId": "team_subbrand",
  "collections": [
    {
      "id": "col_launch"
    }
  ],
  "credits": {
    "source": "adhoc"
  },
  "capture": {
    "fullRead": true
  }
}
```

**Response**

```json
{
  "data": {
    "id": "cj_5f2c1a9e3b7d4c0e8a1f2b3c4d5e6f70",
    "kind": "posts",
    "status": "syncing",
    "teamId": "team_2f8c1a",
    "dryRun": false,
    "collections": [
      {
        "id": "col_launch",
        "name": "Q4 Launch",
        "type": "campaign",
        "created": false
      }
    ],
    "tags": [
      "launch",
      "paid"
    ],
    "credits": {
      "source": "auto",
      "perPost": 1,
      "reserved": 2,
      "settled": 0,
      "refunded": 0
    },
    "counts": {
      "requested": 3,
      "accepted": 2,
      "skipped": 0,
      "rejected": 1,
      "syncing": 2,
      "complete": 0,
      "failed": 0
    },
    "pollAfterMs": 5000,
    "createdAt": "2026-09-13T22:10:00.000Z",
    "updatedAt": "2026-09-13T22:10:00.000Z",
    "completedAt": null,
    "expiresAt": "2026-10-13T22:10:00.000Z",
    "accepted": [
      {
        "link": "https://www.tiktok.com/@dove/video/7412345678901234567",
        "postId": "post_01j9y",
        "postStatus": "fetching"
      },
      {
        "link": "https://www.instagram.com/reel/C9AbCdEfGhI/",
        "postId": "post_01j9z",
        "postStatus": "fetching"
      }
    ],
    "skipped": [],
    "rejected": [
      {
        "link": "https://example.com/not-social",
        "reason": "unsupported_platform"
      }
    ]
  },
  "meta": {
    "status": "string",
    "pollAfterMs": 1,
    "replayed": true
  }
}
```

**SDK Code**

```python Enterprise key adding to a sub-team with Ad Hoc credits
import requests

url = "https://api.siftsy.app/analyst/v1/content/posts/add"

payload = {
    "links": ["https://www.youtube.com/watch?v=dQw4w9WgXcQ"],
    "teamId": "team_subbrand",
    "collections": [{ "id": "col_launch" }],
    "credits": { "source": "adhoc" },
    "capture": { "fullRead": True }
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript Enterprise key adding to a sub-team with Ad Hoc credits
const url = 'https://api.siftsy.app/analyst/v1/content/posts/add';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"links":["https://www.youtube.com/watch?v=dQw4w9WgXcQ"],"teamId":"team_subbrand","collections":[{"id":"col_launch"}],"credits":{"source":"adhoc"},"capture":{"fullRead":true}}'
};

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

```go Enterprise key adding to a sub-team with Ad Hoc credits
package main

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

func main() {

	url := "https://api.siftsy.app/analyst/v1/content/posts/add"

	payload := strings.NewReader("{\n  \"links\": [\n    \"https://www.youtube.com/watch?v=dQw4w9WgXcQ\"\n  ],\n  \"teamId\": \"team_subbrand\",\n  \"collections\": [\n    {\n      \"id\": \"col_launch\"\n    }\n  ],\n  \"credits\": {\n    \"source\": \"adhoc\"\n  },\n  \"capture\": {\n    \"fullRead\": true\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 Enterprise key adding to a sub-team with Ad Hoc credits
require 'uri'
require 'net/http'

url = URI("https://api.siftsy.app/analyst/v1/content/posts/add")

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  \"links\": [\n    \"https://www.youtube.com/watch?v=dQw4w9WgXcQ\"\n  ],\n  \"teamId\": \"team_subbrand\",\n  \"collections\": [\n    {\n      \"id\": \"col_launch\"\n    }\n  ],\n  \"credits\": {\n    \"source\": \"adhoc\"\n  },\n  \"capture\": {\n    \"fullRead\": true\n  }\n}"

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

```java Enterprise key adding to a sub-team with Ad Hoc credits
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.siftsy.app/analyst/v1/content/posts/add")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"links\": [\n    \"https://www.youtube.com/watch?v=dQw4w9WgXcQ\"\n  ],\n  \"teamId\": \"team_subbrand\",\n  \"collections\": [\n    {\n      \"id\": \"col_launch\"\n    }\n  ],\n  \"credits\": {\n    \"source\": \"adhoc\"\n  },\n  \"capture\": {\n    \"fullRead\": true\n  }\n}")
  .asString();
```

```php Enterprise key adding to a sub-team with Ad Hoc credits
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.siftsy.app/analyst/v1/content/posts/add', [
  'body' => '{
  "links": [
    "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
  ],
  "teamId": "team_subbrand",
  "collections": [
    {
      "id": "col_launch"
    }
  ],
  "credits": {
    "source": "adhoc"
  },
  "capture": {
    "fullRead": true
  }
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

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

```csharp Enterprise key adding to a sub-team with Ad Hoc credits
using RestSharp;

var client = new RestClient("https://api.siftsy.app/analyst/v1/content/posts/add");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"links\": [\n    \"https://www.youtube.com/watch?v=dQw4w9WgXcQ\"\n  ],\n  \"teamId\": \"team_subbrand\",\n  \"collections\": [\n    {\n      \"id\": \"col_launch\"\n    }\n  ],\n  \"credits\": {\n    \"source\": \"adhoc\"\n  },\n  \"capture\": {\n    \"fullRead\": true\n  }\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Enterprise key adding to a sub-team with Ad Hoc credits
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "links": ["https://www.youtube.com/watch?v=dQw4w9WgXcQ"],
  "teamId": "team_subbrand",
  "collections": [["id": "col_launch"]],
  "credits": ["source": "adhoc"],
  "capture": ["fullRead": true]
] as [String : Any]

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

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

### Example 2

**Request**

```json
{
  "links": [
    "https://www.tiktok.com/@dove/video/7412345678901234567",
    "https://www.instagram.com/reel/C9AbCdEfGhI/",
    "https://x.com/dove/status/1812345678901234567"
  ],
  "collections": [
    {
      "name": "Q4 Launch"
    }
  ],
  "tags": [
    "launch",
    "paid"
  ]
}
```

**Response**

```json
{
  "data": {
    "id": "cj_5f2c1a9e3b7d4c0e8a1f2b3c4d5e6f70",
    "kind": "posts",
    "status": "syncing",
    "teamId": "team_2f8c1a",
    "dryRun": false,
    "collections": [
      {
        "id": "col_launch",
        "name": "Q4 Launch",
        "type": "campaign",
        "created": false
      }
    ],
    "tags": [
      "launch",
      "paid"
    ],
    "credits": {
      "source": "auto",
      "perPost": 1,
      "reserved": 2,
      "settled": 0,
      "refunded": 0
    },
    "counts": {
      "requested": 3,
      "accepted": 2,
      "skipped": 0,
      "rejected": 1,
      "syncing": 2,
      "complete": 0,
      "failed": 0
    },
    "pollAfterMs": 5000,
    "createdAt": "2026-09-13T22:10:00.000Z",
    "updatedAt": "2026-09-13T22:10:00.000Z",
    "completedAt": null,
    "expiresAt": "2026-10-13T22:10:00.000Z",
    "accepted": [
      {
        "link": "https://www.tiktok.com/@dove/video/7412345678901234567",
        "postId": "post_01j9y",
        "postStatus": "fetching"
      },
      {
        "link": "https://www.instagram.com/reel/C9AbCdEfGhI/",
        "postId": "post_01j9z",
        "postStatus": "fetching"
      }
    ],
    "skipped": [],
    "rejected": [
      {
        "link": "https://example.com/not-social",
        "reason": "unsupported_platform"
      }
    ]
  },
  "meta": {
    "status": "string",
    "pollAfterMs": 1,
    "replayed": true
  }
}
```

**SDK Code**

```python
import requests

url = "https://api.siftsy.app/analyst/v1/content/posts/add"

payload = {
    "links": ["https://www.tiktok.com/@dove/video/7412345678901234567", "https://www.instagram.com/reel/C9AbCdEfGhI/", "https://x.com/dove/status/1812345678901234567"],
    "collections": [{ "name": "Q4 Launch" }],
    "tags": ["launch", "paid"]
}
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/content/posts/add';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"links":["https://www.tiktok.com/@dove/video/7412345678901234567","https://www.instagram.com/reel/C9AbCdEfGhI/","https://x.com/dove/status/1812345678901234567"],"collections":[{"name":"Q4 Launch"}],"tags":["launch","paid"]}'
};

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/content/posts/add"

	payload := strings.NewReader("{\n  \"links\": [\n    \"https://www.tiktok.com/@dove/video/7412345678901234567\",\n    \"https://www.instagram.com/reel/C9AbCdEfGhI/\",\n    \"https://x.com/dove/status/1812345678901234567\"\n  ],\n  \"collections\": [\n    {\n      \"name\": \"Q4 Launch\"\n    }\n  ],\n  \"tags\": [\n    \"launch\",\n    \"paid\"\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/content/posts/add")

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  \"links\": [\n    \"https://www.tiktok.com/@dove/video/7412345678901234567\",\n    \"https://www.instagram.com/reel/C9AbCdEfGhI/\",\n    \"https://x.com/dove/status/1812345678901234567\"\n  ],\n  \"collections\": [\n    {\n      \"name\": \"Q4 Launch\"\n    }\n  ],\n  \"tags\": [\n    \"launch\",\n    \"paid\"\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/content/posts/add")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"links\": [\n    \"https://www.tiktok.com/@dove/video/7412345678901234567\",\n    \"https://www.instagram.com/reel/C9AbCdEfGhI/\",\n    \"https://x.com/dove/status/1812345678901234567\"\n  ],\n  \"collections\": [\n    {\n      \"name\": \"Q4 Launch\"\n    }\n  ],\n  \"tags\": [\n    \"launch\",\n    \"paid\"\n  ]\n}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.siftsy.app/analyst/v1/content/posts/add', [
  'body' => '{
  "links": [
    "https://www.tiktok.com/@dove/video/7412345678901234567",
    "https://www.instagram.com/reel/C9AbCdEfGhI/",
    "https://x.com/dove/status/1812345678901234567"
  ],
  "collections": [
    {
      "name": "Q4 Launch"
    }
  ],
  "tags": [
    "launch",
    "paid"
  ]
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://api.siftsy.app/analyst/v1/content/posts/add");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"links\": [\n    \"https://www.tiktok.com/@dove/video/7412345678901234567\",\n    \"https://www.instagram.com/reel/C9AbCdEfGhI/\",\n    \"https://x.com/dove/status/1812345678901234567\"\n  ],\n  \"collections\": [\n    {\n      \"name\": \"Q4 Launch\"\n    }\n  ],\n  \"tags\": [\n    \"launch\",\n    \"paid\"\n  ]\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "links": ["https://www.tiktok.com/@dove/video/7412345678901234567", "https://www.instagram.com/reel/C9AbCdEfGhI/", "https://x.com/dove/status/1812345678901234567"],
  "collections": [["name": "Q4 Launch"]],
  "tags": ["launch", "paid"]
] as [String : Any]

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

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

### Example 3

**Request**

```json
{
  "links": [
    "https://www.tiktok.com/@dove/video/7412345678901234567",
    "https://www.instagram.com/reel/C9AbCdEfGhI/",
    "https://x.com/dove/status/1812345678901234567"
  ],
  "collections": [
    {
      "name": "Q4 Launch"
    }
  ],
  "tags": [
    "launch",
    "paid"
  ]
}
```

**Response**

```json
{
  "data": {
    "id": "cj_5f2c1a9e3b7d4c0e8a1f2b3c4d5e6f70",
    "kind": "posts",
    "status": "syncing",
    "teamId": "team_2f8c1a",
    "dryRun": false,
    "collections": [
      {
        "id": "col_launch",
        "name": "Q4 Launch",
        "type": "campaign",
        "created": false
      }
    ],
    "tags": [
      "launch",
      "paid"
    ],
    "credits": {
      "source": "auto",
      "perPost": 1,
      "reserved": 2,
      "settled": 0,
      "refunded": 0
    },
    "counts": {
      "requested": 3,
      "accepted": 2,
      "skipped": 0,
      "rejected": 1,
      "syncing": 2,
      "complete": 0,
      "failed": 0
    },
    "pollAfterMs": 5000,
    "createdAt": "2026-09-13T22:10:00.000Z",
    "updatedAt": "2026-09-13T22:10:00.000Z",
    "completedAt": null,
    "expiresAt": "2026-10-13T22:10:00.000Z",
    "accepted": [
      {
        "link": "https://www.tiktok.com/@dove/video/7412345678901234567",
        "postId": "post_01j9y",
        "postStatus": "fetching"
      },
      {
        "link": "https://www.instagram.com/reel/C9AbCdEfGhI/",
        "postId": "post_01j9z",
        "postStatus": "fetching"
      }
    ],
    "skipped": [],
    "rejected": [
      {
        "link": "https://example.com/not-social",
        "reason": "unsupported_platform"
      }
    ]
  },
  "meta": {
    "status": "string",
    "pollAfterMs": 1,
    "replayed": true
  }
}
```

**SDK Code**

```python
import requests

url = "https://api.siftsy.app/analyst/v1/content/posts/add"

payload = {
    "links": ["https://www.tiktok.com/@dove/video/7412345678901234567", "https://www.instagram.com/reel/C9AbCdEfGhI/", "https://x.com/dove/status/1812345678901234567"],
    "collections": [{ "name": "Q4 Launch" }],
    "tags": ["launch", "paid"]
}
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/content/posts/add';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"links":["https://www.tiktok.com/@dove/video/7412345678901234567","https://www.instagram.com/reel/C9AbCdEfGhI/","https://x.com/dove/status/1812345678901234567"],"collections":[{"name":"Q4 Launch"}],"tags":["launch","paid"]}'
};

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/content/posts/add"

	payload := strings.NewReader("{\n  \"links\": [\n    \"https://www.tiktok.com/@dove/video/7412345678901234567\",\n    \"https://www.instagram.com/reel/C9AbCdEfGhI/\",\n    \"https://x.com/dove/status/1812345678901234567\"\n  ],\n  \"collections\": [\n    {\n      \"name\": \"Q4 Launch\"\n    }\n  ],\n  \"tags\": [\n    \"launch\",\n    \"paid\"\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/content/posts/add")

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  \"links\": [\n    \"https://www.tiktok.com/@dove/video/7412345678901234567\",\n    \"https://www.instagram.com/reel/C9AbCdEfGhI/\",\n    \"https://x.com/dove/status/1812345678901234567\"\n  ],\n  \"collections\": [\n    {\n      \"name\": \"Q4 Launch\"\n    }\n  ],\n  \"tags\": [\n    \"launch\",\n    \"paid\"\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/content/posts/add")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"links\": [\n    \"https://www.tiktok.com/@dove/video/7412345678901234567\",\n    \"https://www.instagram.com/reel/C9AbCdEfGhI/\",\n    \"https://x.com/dove/status/1812345678901234567\"\n  ],\n  \"collections\": [\n    {\n      \"name\": \"Q4 Launch\"\n    }\n  ],\n  \"tags\": [\n    \"launch\",\n    \"paid\"\n  ]\n}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.siftsy.app/analyst/v1/content/posts/add', [
  'body' => '{
  "links": [
    "https://www.tiktok.com/@dove/video/7412345678901234567",
    "https://www.instagram.com/reel/C9AbCdEfGhI/",
    "https://x.com/dove/status/1812345678901234567"
  ],
  "collections": [
    {
      "name": "Q4 Launch"
    }
  ],
  "tags": [
    "launch",
    "paid"
  ]
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://api.siftsy.app/analyst/v1/content/posts/add");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"links\": [\n    \"https://www.tiktok.com/@dove/video/7412345678901234567\",\n    \"https://www.instagram.com/reel/C9AbCdEfGhI/\",\n    \"https://x.com/dove/status/1812345678901234567\"\n  ],\n  \"collections\": [\n    {\n      \"name\": \"Q4 Launch\"\n    }\n  ],\n  \"tags\": [\n    \"launch\",\n    \"paid\"\n  ]\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "links": ["https://www.tiktok.com/@dove/video/7412345678901234567", "https://www.instagram.com/reel/C9AbCdEfGhI/", "https://x.com/dove/status/1812345678901234567"],
  "collections": [["name": "Q4 Launch"]],
  "tags": ["launch", "paid"]
] as [String : Any]

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

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