Skip to content

Send customer profiles

A customer profile is JustAI’s record of one person. It holds your user ID for that person and their traits, such as email address, first name, and plan. Journeys, segments, and message personalization read these traits. You create and update profiles with the Identify API. This page shows how to send an Identify request, how JustAI merges each update into the profile, and how to read the saved profile back.

Segment, RudderStack, and Hightouch send the same Identify request for you, so the rules on this page apply to them too. To sync profiles from another tool, such as HubSpot or Salesforce, follow its guide. All integrations lists every tool that syncs profiles.

  • Create an API key while the environment you send to is selected. Open the account menu, select Settings > API keys, and select New key. Copy the key when it is shown, because JustAI shows it only once.
  • Get your organization slug from your JustAI team.
  • Agree which value you send as the user ID. See Identity and consent.

An API key works for every JustAI API in its environment. Keep it on your servers or in your CDP or warehouse tool. Never put it in browser or mobile app code.

Send the profile in a POST request:

POST https://ingest.justwords.ai/api/identify/{org_slug}
X-Api-Key: YOUR_API_KEY
Content-Type: application/json
{
"userId": "user-1234",
"messageId": "user-1234:2026-10-12T15:00:00Z",
"timestamp": "2026-10-12T15:00:00Z",
"traits": {
"email": "ada@example.com",
"first_name": "Ada",
"plan": "pro",
"signup_date": "2026-09-30"
}
}

The first request for a userId creates the profile. Later requests update it. JustAI accepts each request with 202 and writes the update, usually within seconds:

Response
{
"success": true,
"messageId": "user-1234:2026-10-12T15:00:00Z"
}

Most first-time errors come from these rules:

  • Send one profile per request. An array or a {"batch": [...]} body returns 400.
  • Do not end the URL with a slash. A trailing slash returns 404.
  • Send only identify calls to this endpoint. Identify does not check the call type, so a Group call from a CDP writes the group’s traits onto the person’s profile.
  • For production, omit the X-JustAI-Environment header. For another environment, use its path value in place of {org_slug}, and send its environment key in the X-JustAI-Environment header. Your JustAI team gives you both values. See Environments.
Field Required Description
userId Yes Your stable ID for the person, as a string. JustAI removes leading and trailing spaces.
traits Yes, unless you send consent An object of traits. Values can be strings, numbers, booleans, null, arrays, or objects. Send at least one trait.
messageId No A unique ID for this update. If you omit it, JustAI generates one and returns it. See Message IDs and safe retries for when to omit it.
timestamp No When the values changed in your system, in ISO 8601 with Z or an offset. If you omit it, JustAI uses the time it receives the call.
consent No Email and SMS consent decisions. See Identity and consent.

Put traits in the top-level traits object. JustAI does not read context.traits, and it does not save context, integrations, anonymousId, or any other top-level field. For every validation rule, see the Identify API reference.

Send each person’s email address as traits.email, with the key in lowercase. JustAI uses it to:

  • Reach the person in Iterable. JustAI identifies every recipient to Iterable by this address, for email, SMS, and push. A person without an email address can’t receive messages through Iterable.
  • Apply email consent decisions.
  • Show the address on the person’s page in Users.

To record SMS consent decisions, also send the phone number as traits.phone.

Each Identify call merges into the stored profile. It never replaces the whole profile.

  • JustAI writes only the top-level traits you send. Traits you leave out keep their values.
  • A nested object or array replaces the whole stored value for that trait. JustAI does not merge nested values.
  • Sending null stores null. The trait stays on the profile with a null value.
  • Identify can’t delete a trait. To delete a person’s data, contact your JustAI team.

For example, a profile has these traits:

Stored traits
{
"email": "ada@example.com",
"plan": "trial",
"address": { "city": "London", "country": "GB" }
}

You send this update:

Request
{
"userId": "user-1234",
"traits": {
"plan": "pro",
"address": { "city": "Paris" }
}
}

The stored traits become:

Result
{
"email": "ada@example.com",
"plan": "pro",
"address": { "city": "Paris" }
}

email is unchanged because the update left it out. address lost country because the new object replaced the old one. To change one nested value, send the whole object, or keep traits flat.

JustAI records when each trait was last written. It writes a trait only when the call’s timestamp is the same as or later than that time. An older call does not overwrite a newer value, but the other traits in that call still apply. When two calls have the same time, the one that arrives last wins. Every one of these calls returns 202, so read the profile back to see which values JustAI applied. The values usually appear within seconds.

Send timestamp as the time the values changed in your system. Without it, JustAI uses the time it receives the call. A delayed retry with no timestamp can then overwrite a newer value that arrived in between.

The timestamp must be an ISO 8601 string with a time zone, such as 2026-10-12T15:00:00Z or 2026-10-12T17:00:00.123+02:00. JustAI returns 400 for a time without a time zone, a space instead of T, an epoch number, a time before 1970, or a time more than 5 minutes ahead of JustAI’s clock. Identify timestamps lists every accepted and rejected form.

A messageId identifies one update. Use a new one for every update, and reuse it only to retry the same call.

You send What JustAI does
A messageId with no journey change recorded under it Applies the update under each trait’s update time.
A messageId under which JustAI already recorded a journey change Applies nothing from the call, including its consent decisions.

Both cases return 202, so the response doesn’t tell you which one applied. JustAI records a journey change under a messageId when the call changes a trait that a journey watches. Send a correction or a new consent decision with a new messageId.

Retries are safe because of timestamp, not messageId. A retry with the same timestamp writes the same values at the same time, so it changes nothing and starts no journey. Always send timestamp.

Leave messageId out when your sync tool can’t give every new update a new ID. JustAI generates one for each call. To send your own ID from a warehouse or reverse ETL sync, build it from values that change whenever any synced value changes, such as a hash of the user ID, the update time, and every synced trait. The Hightouch profile sync template builds it this way.

If a call times out or returns 500 or 503, retry it with the same body, messageId, and timestamp. Fix the request before you resend a 400. See Errors and retries.

Profile traits drive these parts of JustAI:

  • Journeys. Confirm with your JustAI team whether A profile attribute changes is available for your organization. When available, an Identify call that changes at least one trait value can start that journey. A call that changes nothing starts no journey, so a retry with the same timestamp starts none. Wait until steps and exit rules can also check profile fields.
  • Segments. Auto-updating segments in Users > Segments match people by their traits.
  • Personalization. Messages read traits through Profile merge tags, written as {{ profile.<field> }}.

Profile updates from a CSV upload change the traits but do not start profile-change journeys. Confirm the behavior of a customer-specific file import with your JustAI team. Use Identify for changes that must trigger a journey.

Identify accepts an optional consent array. Each decision records a person’s email or SMS consent for an address on the profile. An email decision applies to traits.email, and an SMS decision applies to traits.phone. For the fields, the rules for which decision wins, and how consent relates to Iterable subscriptions, see Identity and consent. Agree your consent mapping with your JustAI team before launch.

Confirm the saved profile with the Profiles API or in the JustAI app.

Use the same API key, and the same environment header if you send one:

GET https://ingest.justwords.ai/api/profiles/{org_slug}/{user_id}
X-Api-Key: YOUR_API_KEY

URL-encode the user ID. For example, / becomes %2F and @ becomes %40. A known user returns 200 with the saved profile:

Response
{
"org_slug": "acme",
"user_id": "user-1234",
"profile_id": "5f0c9a52-3e1b-4d7a-9c2e-8b6f1a2d4e90",
"updated_at": 1791817200000,
"fields": {
"plan": "pro",
"email": "ada@example.com",
"first_name": "Ada",
"signup_date": "2026-09-30"
}
}
  • fields holds every saved trait.
  • updated_at is the latest update time applied to the profile, in epoch milliseconds.
  • profile_id is JustAI’s own ID for the profile.
  • org_slug repeats the slug or environment path value from the request.

An unknown user returns 404 with {"error":"Profile not found"}. The Profiles API finds people by user ID only, not by email.

A read right after an update can briefly return the previous values. If your change is not there, wait a minute and read again.

  1. In the JustAI app, check the account menu at the bottom of the left sidebar. It shows your organization and environment. Switch to the environment you sent to if needed.

  2. Select Users and search for the user ID. The search matches user IDs, email addresses, and trait values.

  3. Open the person. Attributes lists the User ID, the Email, and every other trait you sent.

  4. Under Activity, open the Events tab. Each Identify call that changed a value has an entry. A call that changed nothing has no entry.