Skip to content

The upstream has these people

POST
/v1/id/external/sync
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.

x-edgekit-site-id
required

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.

string
>= 1 characters <= 128 characters

Example

site_example

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.

Media typeapplication/json
object
users
required

1 to 100 users.

Array<object>
>= 1 items
object
subject
required

The sub the identity provider issues for this person.

string
>= 1 characters <= 512 characters

Example

legacy-1001
email
required
string format: email

Example

ada@example.com
emailVerified
boolean
changedAt
required

When the identity provider last recorded this address. A push not strictly newer than what is held changes nothing.

string format: date-time

Example

2026-10-19T09:00:00.000Z

Every user was handled; each result says how.

Media typeapplication/json
object
results
required

One per pushed user, in request order.

Array<object>
object
subject
required

The sub the identity provider issues for this person.

string
>= 1 characters <= 512 characters
outcome
required

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.

string
userId

The user the subject is bound to, when one is.

string format: uuid

Example

{
"results": [
{
"subject": "legacy-1001",
"outcome": "minted",
"userId": "01926f3a-8b4c-7d2e-9f10-2a3b4c5d6e7f"
}
]
}

Invalid request.

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details

Example

{
"error": {
"code": "unauthorized",
"message": "Invalid or missing API key."
}
}

Missing or invalid credential.

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details

Example

{
"error": {
"code": "unauthorized",
"message": "Invalid or missing API key."
}
}

Not allowed.

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details

Example

{
"error": {
"code": "unauthorized",
"message": "Invalid or missing API key."
}
}

Resource not found.

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details

Example

{
"error": {
"code": "unauthorized",
"message": "Invalid or missing API key."
}
}

Request body too large.

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details

Example

{
"error": {
"code": "unauthorized",
"message": "Invalid or missing API key."
}
}

Request validation failed.

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details

Example

{
"error": {
"code": "unauthorized",
"message": "Invalid or missing API key."
}
}

Unexpected error.

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details

Example

{
"error": {
"code": "unauthorized",
"message": "Invalid or missing API key."
}
}

With Retry-After, briefly unavailable; without it, not configured.

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details

Example

{
"error": {
"code": "unauthorized",
"message": "Invalid or missing API key."
}
}

edgekit.ai