curl --request POST \
--url https://api.fanfeed.ai/v1/users/{user_id}/sync-complete \
--header 'Content-Type: application/json' \
--header 'X-PARTNER-API-KEY: <api-key>' \
--data '
{
"photos_processed": 1284
}
'import requests
url = "https://api.fanfeed.ai/v1/users/{user_id}/sync-complete"
payload = { "photos_processed": 1284 }
headers = {
"X-PARTNER-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-PARTNER-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({photos_processed: 1284})
};
fetch('https://api.fanfeed.ai/v1/users/{user_id}/sync-complete', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.fanfeed.ai/v1/users/{user_id}/sync-complete",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'photos_processed' => 1284
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-PARTNER-API-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.fanfeed.ai/v1/users/{user_id}/sync-complete"
payload := strings.NewReader("{\n \"photos_processed\": 1284\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-PARTNER-API-KEY", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.fanfeed.ai/v1/users/{user_id}/sync-complete")
.header("X-PARTNER-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"photos_processed\": 1284\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fanfeed.ai/v1/users/{user_id}/sync-complete")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-PARTNER-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"photos_processed\": 1284\n}"
response = http.request(request)
puts response.read_body{
"has_synced": true,
"last_sync_at": "2026-08-25T18:44:12Z"
}{
"error": {
"code": "invalid_batch_size",
"message": "Send at most 200 media items per request.",
"details": {}
}
}{
"error": {
"code": "invalid_batch_size",
"message": "Send at most 200 media items per request.",
"details": {}
}
}{
"error": {
"code": "invalid_batch_size",
"message": "Send at most 200 media items per request.",
"details": {}
}
}{
"error": {
"code": "invalid_batch_size",
"message": "Send at most 200 media items per request.",
"details": {}
}
}{
"error": {
"code": "invalid_batch_size",
"message": "Send at most 200 media items per request.",
"details": {}
}
}{
"error": {
"code": "invalid_batch_size",
"message": "Send at most 200 media items per request.",
"details": {}
}
}Record that a library scan finished
Call this once at the end of a completed library scan, not per batch.
has_synced decides whether the next scan is a full library scan or a narrow
incremental one. FanFeed sets it to true only when a completed scan examined the
library (photos_processed greater than zero, or omitted while media was received
during the scan), and never sets it back to false.
That asymmetry is deliberate. If the flag is set after a scan that never ran (say the
user denied photo permission, or the app crashed mid-scan), the account is stuck on
the incremental window permanently and never recovers. Pass an honest
photos_processed: the count of assets examined, 0 when the scan did not complete.
Idempotent: calling it twice advances last_sync_at twice and is otherwise a no-op.
curl --request POST \
--url https://api.fanfeed.ai/v1/users/{user_id}/sync-complete \
--header 'Content-Type: application/json' \
--header 'X-PARTNER-API-KEY: <api-key>' \
--data '
{
"photos_processed": 1284
}
'import requests
url = "https://api.fanfeed.ai/v1/users/{user_id}/sync-complete"
payload = { "photos_processed": 1284 }
headers = {
"X-PARTNER-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-PARTNER-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({photos_processed: 1284})
};
fetch('https://api.fanfeed.ai/v1/users/{user_id}/sync-complete', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.fanfeed.ai/v1/users/{user_id}/sync-complete",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'photos_processed' => 1284
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-PARTNER-API-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.fanfeed.ai/v1/users/{user_id}/sync-complete"
payload := strings.NewReader("{\n \"photos_processed\": 1284\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-PARTNER-API-KEY", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.fanfeed.ai/v1/users/{user_id}/sync-complete")
.header("X-PARTNER-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"photos_processed\": 1284\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fanfeed.ai/v1/users/{user_id}/sync-complete")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-PARTNER-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"photos_processed\": 1284\n}"
response = http.request(request)
puts response.read_body{
"has_synced": true,
"last_sync_at": "2026-08-25T18:44:12Z"
}{
"error": {
"code": "invalid_batch_size",
"message": "Send at most 200 media items per request.",
"details": {}
}
}{
"error": {
"code": "invalid_batch_size",
"message": "Send at most 200 media items per request.",
"details": {}
}
}{
"error": {
"code": "invalid_batch_size",
"message": "Send at most 200 media items per request.",
"details": {}
}
}{
"error": {
"code": "invalid_batch_size",
"message": "Send at most 200 media items per request.",
"details": {}
}
}{
"error": {
"code": "invalid_batch_size",
"message": "Send at most 200 media items per request.",
"details": {}
}
}{
"error": {
"code": "invalid_batch_size",
"message": "Send at most 200 media items per request.",
"details": {}
}
}Authorizations
Your FanFeed partner API key, issued to your organization.
FanFeed trusts your authentication: the key identifies you, and the user_id in the
path identifies which of your users the request is for. FanFeed performs no end-user
authentication of its own.
Treat the key as a server-side secret. See the guide for what that implies for the camera-roll ingest path, which is the one call that naturally originates on-device.
Path Parameters
The FanFeed user id returned by POST /users.
"8f14e45f-ceea-467a-9a1e-2b4d9c3f0a11"
Body
Assets your scan examined, whether or not you sent them. Pass 0 when the scan
did not complete. Omit it and FanFeed infers the answer from what it received
during the scan.
x >= 01284
Response
Sync recorded.
Whether this user has ever completed a scan that examined the library. Decides
full vs. incremental on the next run. Never returns to false once true.
true
Server-side timestamp of the last time FanFeed received media or a sync-complete
for this user, advanced by this call.
"2026-08-25T18:44:12Z"