The upstream has these people
const url = 'https://your-tenant-host/v1/id/external/sync';const options = { method: 'POST', headers: { 'x-edgekit-site-id': 'site_example', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: '{"users":[{"subject":"legacy-1001","email":"ada@example.com","emailVerified":true,"changedAt":"2026-10-19T09:00:00.000Z"}]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://your-tenant-host/v1/id/external/sync \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'x-edgekit-site-id: site_example' \ --data '{ "users": [ { "subject": "legacy-1001", "email": "ada@example.com", "emailVerified": true, "changedAt": "2026-10-19T09:00:00.000Z" } ] }'Puts users into the tenant by identity provider subject before they send a request: an unknown subject is first sight (adopting a user only on emailVerified: true, else minting one with no session and no mail), a known one is an identifier change. Needs a key holding users:sync. At most 100 users. Safe to retry: a subject is unique per identity_provider and a change applies only when strictly newer.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”The site this request is for, within this tenant. Every official EdgeKit SDK sets it from the client you configured; set it yourself only when calling this API directly.
Example
site_exampleThe site this request is for, within this tenant. Every official EdgeKit SDK sets it from the client you configured; set it yourself only when calling this API directly.
Request Bodyrequired
Section titled “Request Bodyrequired”object
1 to 100 users.
object
The sub the identity provider issues for this person.
Example
legacy-1001Example
ada@example.comWhen the identity provider last recorded this address. A push not strictly newer than what is held changes nothing.
Example
2026-10-19T09:00:00.000ZResponses
Section titled “Responses”Every user was handled; each result says how.
object
One per pushed user, in request order.
object
The sub the identity provider issues for this person.
minted, adopted (a verified address took over the row holding it), changed, unchanged (older, equal or already erased), adoption_refused (an unverified address a live user holds), conflict (a change onto another user’s address; the durable record names them). Open: accept an unknown outcome.
The user the subject is bound to, when one is.
Example
{ "results": [ { "subject": "legacy-1001", "outcome": "minted", "userId": "01926f3a-8b4c-7d2e-9f10-2a3b4c5d6e7f" } ]}Invalid request.
object
object
Example
{ "error": { "code": "unauthorized", "message": "Invalid or missing API key." }}Missing or invalid credential.
object
object
Example
{ "error": { "code": "unauthorized", "message": "Invalid or missing API key." }}Not allowed.
object
object
Example
{ "error": { "code": "unauthorized", "message": "Invalid or missing API key." }}Resource not found.
object
object
Example
{ "error": { "code": "unauthorized", "message": "Invalid or missing API key." }}Request body too large.
object
object
Example
{ "error": { "code": "unauthorized", "message": "Invalid or missing API key." }}Request validation failed.
object
object
Example
{ "error": { "code": "unauthorized", "message": "Invalid or missing API key." }}Unexpected error.
object
object
Example
{ "error": { "code": "unauthorized", "message": "Invalid or missing API key." }}With Retry-After, briefly unavailable; without it, not configured.
object
object
Example
{ "error": { "code": "unauthorized", "message": "Invalid or missing API key." }}