curl --request POST \
--url https://api.fanfeed.ai/v1/users \
--header 'Content-Type: application/json' \
--header 'X-PARTNER-API-KEY: <api-key>' \
--data '
{
"email": "fan@example.com",
"partner_user_id": "partner_user_12345",
"first_name": "Jane",
"last_name": "Doe",
"phone_number": "+12125551234",
"address": {
"line1": "350 5th Ave",
"line2": "Apt 4B",
"city": "New York",
"region": "NY",
"postal_code": "10001",
"country": "US"
}
}
'import requests
url = "https://api.fanfeed.ai/v1/users"
payload = {
"email": "fan@example.com",
"partner_user_id": "partner_user_12345",
"first_name": "Jane",
"last_name": "Doe",
"phone_number": "+12125551234",
"address": {
"line1": "350 5th Ave",
"line2": "Apt 4B",
"city": "New York",
"region": "NY",
"postal_code": "10001",
"country": "US"
}
}
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({
email: 'fan@example.com',
partner_user_id: 'partner_user_12345',
first_name: 'Jane',
last_name: 'Doe',
phone_number: '+12125551234',
address: {
line1: '350 5th Ave',
line2: 'Apt 4B',
city: 'New York',
region: 'NY',
postal_code: '10001',
country: 'US'
}
})
};
fetch('https://api.fanfeed.ai/v1/users', 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",
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([
'email' => 'fan@example.com',
'partner_user_id' => 'partner_user_12345',
'first_name' => 'Jane',
'last_name' => 'Doe',
'phone_number' => '+12125551234',
'address' => [
'line1' => '350 5th Ave',
'line2' => 'Apt 4B',
'city' => 'New York',
'region' => 'NY',
'postal_code' => '10001',
'country' => 'US'
]
]),
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"
payload := strings.NewReader("{\n \"email\": \"fan@example.com\",\n \"partner_user_id\": \"partner_user_12345\",\n \"first_name\": \"Jane\",\n \"last_name\": \"Doe\",\n \"phone_number\": \"+12125551234\",\n \"address\": {\n \"line1\": \"350 5th Ave\",\n \"line2\": \"Apt 4B\",\n \"city\": \"New York\",\n \"region\": \"NY\",\n \"postal_code\": \"10001\",\n \"country\": \"US\"\n }\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")
.header("X-PARTNER-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"fan@example.com\",\n \"partner_user_id\": \"partner_user_12345\",\n \"first_name\": \"Jane\",\n \"last_name\": \"Doe\",\n \"phone_number\": \"+12125551234\",\n \"address\": {\n \"line1\": \"350 5th Ave\",\n \"line2\": \"Apt 4B\",\n \"city\": \"New York\",\n \"region\": \"NY\",\n \"postal_code\": \"10001\",\n \"country\": \"US\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fanfeed.ai/v1/users")
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 \"email\": \"fan@example.com\",\n \"partner_user_id\": \"partner_user_12345\",\n \"first_name\": \"Jane\",\n \"last_name\": \"Doe\",\n \"phone_number\": \"+12125551234\",\n \"address\": {\n \"line1\": \"350 5th Ave\",\n \"line2\": \"Apt 4B\",\n \"city\": \"New York\",\n \"region\": \"NY\",\n \"postal_code\": \"10001\",\n \"country\": \"US\"\n }\n}"
response = http.request(request)
puts response.read_body{
"user_id": "8f14e45f-ceea-467a-9a1e-2b4d9c3f0a11",
"existing": false,
"created_at": "2026-08-25T18:31:07Z"
}{
"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": {}
}
}Create a user
Call this once, after your user has agreed to the terms and tapped Sync Now.
FanFeed creates a profile and returns a user_id. Store that id on your side and
send it on every subsequent call. The user_id is the handle, and losing it means
losing the link to the user’s synced history.
Email is the only required field.
Idempotent on email, scoped to your partner key: a retry returns the same user_id
rather than creating a second profile, and the response marks it with
existing: true. The same email under a different FanFeed partner is a different,
independent profile; no call made with your key returns data another partner created.
curl --request POST \
--url https://api.fanfeed.ai/v1/users \
--header 'Content-Type: application/json' \
--header 'X-PARTNER-API-KEY: <api-key>' \
--data '
{
"email": "fan@example.com",
"partner_user_id": "partner_user_12345",
"first_name": "Jane",
"last_name": "Doe",
"phone_number": "+12125551234",
"address": {
"line1": "350 5th Ave",
"line2": "Apt 4B",
"city": "New York",
"region": "NY",
"postal_code": "10001",
"country": "US"
}
}
'import requests
url = "https://api.fanfeed.ai/v1/users"
payload = {
"email": "fan@example.com",
"partner_user_id": "partner_user_12345",
"first_name": "Jane",
"last_name": "Doe",
"phone_number": "+12125551234",
"address": {
"line1": "350 5th Ave",
"line2": "Apt 4B",
"city": "New York",
"region": "NY",
"postal_code": "10001",
"country": "US"
}
}
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({
email: 'fan@example.com',
partner_user_id: 'partner_user_12345',
first_name: 'Jane',
last_name: 'Doe',
phone_number: '+12125551234',
address: {
line1: '350 5th Ave',
line2: 'Apt 4B',
city: 'New York',
region: 'NY',
postal_code: '10001',
country: 'US'
}
})
};
fetch('https://api.fanfeed.ai/v1/users', 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",
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([
'email' => 'fan@example.com',
'partner_user_id' => 'partner_user_12345',
'first_name' => 'Jane',
'last_name' => 'Doe',
'phone_number' => '+12125551234',
'address' => [
'line1' => '350 5th Ave',
'line2' => 'Apt 4B',
'city' => 'New York',
'region' => 'NY',
'postal_code' => '10001',
'country' => 'US'
]
]),
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"
payload := strings.NewReader("{\n \"email\": \"fan@example.com\",\n \"partner_user_id\": \"partner_user_12345\",\n \"first_name\": \"Jane\",\n \"last_name\": \"Doe\",\n \"phone_number\": \"+12125551234\",\n \"address\": {\n \"line1\": \"350 5th Ave\",\n \"line2\": \"Apt 4B\",\n \"city\": \"New York\",\n \"region\": \"NY\",\n \"postal_code\": \"10001\",\n \"country\": \"US\"\n }\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")
.header("X-PARTNER-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"fan@example.com\",\n \"partner_user_id\": \"partner_user_12345\",\n \"first_name\": \"Jane\",\n \"last_name\": \"Doe\",\n \"phone_number\": \"+12125551234\",\n \"address\": {\n \"line1\": \"350 5th Ave\",\n \"line2\": \"Apt 4B\",\n \"city\": \"New York\",\n \"region\": \"NY\",\n \"postal_code\": \"10001\",\n \"country\": \"US\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fanfeed.ai/v1/users")
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 \"email\": \"fan@example.com\",\n \"partner_user_id\": \"partner_user_12345\",\n \"first_name\": \"Jane\",\n \"last_name\": \"Doe\",\n \"phone_number\": \"+12125551234\",\n \"address\": {\n \"line1\": \"350 5th Ave\",\n \"line2\": \"Apt 4B\",\n \"city\": \"New York\",\n \"region\": \"NY\",\n \"postal_code\": \"10001\",\n \"country\": \"US\"\n }\n}"
response = http.request(request)
puts response.read_body{
"user_id": "8f14e45f-ceea-467a-9a1e-2b4d9c3f0a11",
"existing": false,
"created_at": "2026-08-25T18:31:07Z"
}{
"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.
Body
The only required field.
"fan@example.com"
Your own identifier for this user, stored with the partner-user link so both sides can correlate. Recommended.
"partner_user_12345"
User's first name.
"Jane"
User's last name.
"Doe"
Stored when it is not already in use by another profile, and silently ignored when it is. Never causes this call to fail.
"+12125551234"
Optional. Stored with the partner-user link. Not used for matching; matching is driven entirely by photo coordinates.
Show child attributes
Show child attributes
Response
User created or returned.
Store this. Every other endpoint needs it.
"8f14e45f-ceea-467a-9a1e-2b4d9c3f0a11"
true when this call reused a previously created user record instead of creating a new one.
false
"2026-08-25T18:31:07Z"