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

# Refresh posts already on the team

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

Requires `posts:write`. Re-fetches the comments of up to 100 posts that
are already on the team — the same as **Resync** in the Siftsy app —
by `postIds` and/or `links`. Each accepted post bumps `dataVersion`,
reprocesses, and shows up in `GET /posts?updated_since=…` when done.

**Refresh floor.** A given post on a given team is refreshed at most
**once every 12 hours** through the API (and through automations).
Posts inside that window are `skipped` with `reason: min_interval`
and a `nextRefreshAt`; they are never charged. Calling this route on a
schedule more often than every 12 hours is therefore harmless but
pointless.

**Credits.** Charged exactly like the dashboard, from the team's
existing MAPs / Ad Hoc credits — there is no separate refresh credit:

* free (`creditSource: included`) when the plan's included refresh
  cadence (hourly / daily / weekly) allows it;
* otherwise **1 credit** (`creditSource: credit`; **5** with
  `capture.fullRead`).
  `credits.source` chooses `auto` (MAPs first) or `adhoc`. Posts that
  need a credit the team cannot fund are `rejected` with
  `insufficient_credits`; if nothing at all could be refreshed for that
  reason the response is `402`.

Responds `202` with a `ContentJob` (`kind: refresh`) and a `Location`
header; poll `GET /content/jobs/{jobId}` until `completed`,
`partial`, or `failed`. Unlike `POST /content/posts/add`, identical
requests are **not** replayed — the 12-hour floor already makes a
repeat call free. `teamId` targets an Enterprise sub-team as on the
other content routes.

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

Reference: https://api.docs.siftsy.com/api-reference/siftsy-analyst-api/refresh-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 a RefreshPostsRequest.

- `postIds` (list of string, optional) — Post ids on the target team (from `GET /posts`)
- `links` (list of string, optional) — Post URLs already on the target team
- `teamId` (string, optional) — Enterprise keys only — a sub-team of the key's enterprise
- `credits` (CreditOptions, optional)
- `capture` (CaptureOptions, optional)

## Response

### 202

Refresh job created (`kind: refresh`); accepted posts are reprocessing

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

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

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

### content_refreshPosts_example

**Response**

```json
{
  "data": {
    "id": "cj_9a1b2c3d4e5f60718293a4b5c6d7e8f9",
    "kind": "refresh",
    "status": "syncing",
    "teamId": "team_2f8c1a",
    "dryRun": false,
    "collections": [],
    "tags": [],
    "credits": {
      "source": "auto",
      "perPost": 1,
      "reserved": 1,
      "settled": 0,
      "refunded": 0,
      "included": 1
    },
    "minRefreshIntervalHours": 12,
    "counts": {
      "requested": 3,
      "accepted": 2,
      "skipped": 1,
      "rejected": 0,
      "syncing": 2,
      "complete": 0,
      "failed": 0
    },
    "pollAfterMs": 5000,
    "createdAt": "2026-09-16T14:10:00.000Z",
    "updatedAt": "2026-09-16T14:10:00.000Z",
    "completedAt": null,
    "expiresAt": "2026-10-16T14:10:00.000Z",
    "accepted": [
      {
        "link": "https://www.tiktok.com/@dove/video/7412345678901234567",
        "postId": "post_01j9y",
        "postStatus": "fetching",
        "creditSource": "included",
        "creditCost": 0,
        "dataVersion": 3
      },
      {
        "link": "https://www.instagram.com/reel/C9AbCdEfGhI/",
        "postId": "post_01j9z",
        "postStatus": "fetching",
        "creditSource": "credit",
        "creditCost": 1,
        "dataVersion": 2
      }
    ],
    "skipped": [
      {
        "link": "https://x.com/dove/status/1812345678901234567",
        "postId": "post_01ja0",
        "reason": "min_interval",
        "nextRefreshAt": "2026-09-16T23:10:00.000Z"
      }
    ],
    "rejected": []
  },
  "meta": {
    "status": "syncing",
    "pollAfterMs": 5000
  }
}
```

**SDK Code**

```python content_refreshPosts_example
import requests

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

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

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

print(response.json())
```

```javascript content_refreshPosts_example
const url = 'https://api.siftsy.app/analyst/v1/content/posts/refresh';
const options = {method: 'POST', 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 content_refreshPosts_example
package main

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

func main() {

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

	req, _ := http.NewRequest("POST", 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 content_refreshPosts_example
require 'uri'
require 'net/http'

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

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

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

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

```java content_refreshPosts_example
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/refresh")
  .header("Authorization", "Bearer <token>")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.siftsy.app/analyst/v1/content/posts/refresh', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

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

```csharp content_refreshPosts_example
using RestSharp;

var client = new RestClient("https://api.siftsy.app/analyst/v1/content/posts/refresh");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift content_refreshPosts_example
import Foundation

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.siftsy.app/analyst/v1/content/posts/refresh")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
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()
```

### Refresh the posts a warehouse flagged as stale

**Request**

```json
{
  "postIds": [
    "post_01j9y",
    "post_01j9z"
  ]
}
```

**Response**

```json
{
  "data": {
    "id": "cj_9a1b2c3d4e5f60718293a4b5c6d7e8f9",
    "kind": "refresh",
    "status": "syncing",
    "teamId": "team_2f8c1a",
    "dryRun": false,
    "collections": [],
    "tags": [],
    "credits": {
      "source": "auto",
      "perPost": 1,
      "reserved": 1,
      "settled": 0,
      "refunded": 0,
      "included": 1
    },
    "minRefreshIntervalHours": 12,
    "counts": {
      "requested": 3,
      "accepted": 2,
      "skipped": 1,
      "rejected": 0,
      "syncing": 2,
      "complete": 0,
      "failed": 0
    },
    "pollAfterMs": 5000,
    "createdAt": "2026-09-16T14:10:00.000Z",
    "updatedAt": "2026-09-16T14:10:00.000Z",
    "completedAt": null,
    "expiresAt": "2026-10-16T14:10:00.000Z",
    "accepted": [
      {
        "link": "https://www.tiktok.com/@dove/video/7412345678901234567",
        "postId": "post_01j9y",
        "postStatus": "fetching",
        "creditSource": "included",
        "creditCost": 0,
        "dataVersion": 3
      },
      {
        "link": "https://www.instagram.com/reel/C9AbCdEfGhI/",
        "postId": "post_01j9z",
        "postStatus": "fetching",
        "creditSource": "credit",
        "creditCost": 1,
        "dataVersion": 2
      }
    ],
    "skipped": [
      {
        "link": "https://x.com/dove/status/1812345678901234567",
        "postId": "post_01ja0",
        "reason": "min_interval",
        "nextRefreshAt": "2026-09-16T23:10:00.000Z"
      }
    ],
    "rejected": []
  },
  "meta": {
    "status": "syncing",
    "pollAfterMs": 5000
  }
}
```

**SDK Code**

```python Refresh the posts a warehouse flagged as stale
import requests

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

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

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

print(response.json())
```

```javascript Refresh the posts a warehouse flagged as stale
const url = 'https://api.siftsy.app/analyst/v1/content/posts/refresh';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"postIds":["post_01j9y","post_01j9z"]}'
};

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

```go Refresh the posts a warehouse flagged as stale
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"postIds\": [\n    \"post_01j9y\",\n    \"post_01j9z\"\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 Refresh the posts a warehouse flagged as stale
require 'uri'
require 'net/http'

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

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    \"post_01j9y\",\n    \"post_01j9z\"\n  ]\n}"

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

```java Refresh the posts a warehouse flagged as stale
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/refresh")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"postIds\": [\n    \"post_01j9y\",\n    \"post_01j9z\"\n  ]\n}")
  .asString();
```

```php Refresh the posts a warehouse flagged as stale
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

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

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

```csharp Refresh the posts a warehouse flagged as stale
using RestSharp;

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

```swift Refresh the posts a warehouse flagged as stale
import Foundation

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

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

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

### Refresh by URL with Full Read on Ad Hoc credits

**Request**

```json
{
  "links": [
    "https://www.tiktok.com/@dove/video/7412345678901234567"
  ],
  "credits": {
    "source": "adhoc"
  },
  "capture": {
    "fullRead": true
  }
}
```

**Response**

```json
{
  "data": {
    "id": "cj_9a1b2c3d4e5f60718293a4b5c6d7e8f9",
    "kind": "refresh",
    "status": "syncing",
    "teamId": "team_2f8c1a",
    "dryRun": false,
    "collections": [],
    "tags": [],
    "credits": {
      "source": "auto",
      "perPost": 1,
      "reserved": 1,
      "settled": 0,
      "refunded": 0,
      "included": 1
    },
    "minRefreshIntervalHours": 12,
    "counts": {
      "requested": 3,
      "accepted": 2,
      "skipped": 1,
      "rejected": 0,
      "syncing": 2,
      "complete": 0,
      "failed": 0
    },
    "pollAfterMs": 5000,
    "createdAt": "2026-09-16T14:10:00.000Z",
    "updatedAt": "2026-09-16T14:10:00.000Z",
    "completedAt": null,
    "expiresAt": "2026-10-16T14:10:00.000Z",
    "accepted": [
      {
        "link": "https://www.tiktok.com/@dove/video/7412345678901234567",
        "postId": "post_01j9y",
        "postStatus": "fetching",
        "creditSource": "included",
        "creditCost": 0,
        "dataVersion": 3
      },
      {
        "link": "https://www.instagram.com/reel/C9AbCdEfGhI/",
        "postId": "post_01j9z",
        "postStatus": "fetching",
        "creditSource": "credit",
        "creditCost": 1,
        "dataVersion": 2
      }
    ],
    "skipped": [
      {
        "link": "https://x.com/dove/status/1812345678901234567",
        "postId": "post_01ja0",
        "reason": "min_interval",
        "nextRefreshAt": "2026-09-16T23:10:00.000Z"
      }
    ],
    "rejected": []
  },
  "meta": {
    "status": "syncing",
    "pollAfterMs": 5000
  }
}
```

**SDK Code**

```python Refresh by URL with Full Read on Ad Hoc credits
import requests

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

payload = {
    "links": ["https://www.tiktok.com/@dove/video/7412345678901234567"],
    "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 Refresh by URL with Full Read on Ad Hoc credits
const url = 'https://api.siftsy.app/analyst/v1/content/posts/refresh';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"links":["https://www.tiktok.com/@dove/video/7412345678901234567"],"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 Refresh by URL with Full Read on Ad Hoc credits
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"links\": [\n    \"https://www.tiktok.com/@dove/video/7412345678901234567\"\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 Refresh by URL with Full Read on Ad Hoc credits
require 'uri'
require 'net/http'

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

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  ],\n  \"credits\": {\n    \"source\": \"adhoc\"\n  },\n  \"capture\": {\n    \"fullRead\": true\n  }\n}"

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

```java Refresh by URL with Full Read on 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/refresh")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"links\": [\n    \"https://www.tiktok.com/@dove/video/7412345678901234567\"\n  ],\n  \"credits\": {\n    \"source\": \"adhoc\"\n  },\n  \"capture\": {\n    \"fullRead\": true\n  }\n}")
  .asString();
```

```php Refresh by URL with Full Read on 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/refresh', [
  'body' => '{
  "links": [
    "https://www.tiktok.com/@dove/video/7412345678901234567"
  ],
  "credits": {
    "source": "adhoc"
  },
  "capture": {
    "fullRead": true
  }
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

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

```csharp Refresh by URL with Full Read on Ad Hoc credits
using RestSharp;

var client = new RestClient("https://api.siftsy.app/analyst/v1/content/posts/refresh");
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  ],\n  \"credits\": {\n    \"source\": \"adhoc\"\n  },\n  \"capture\": {\n    \"fullRead\": true\n  }\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Refresh by URL with Full Read on Ad Hoc credits
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "links": ["https://www.tiktok.com/@dove/video/7412345678901234567"],
  "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/refresh")! 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()
```