June · Schema
June Identify Request
Request body schema for the June Tracking API /identify endpoint.
AnalyticsProduct AnalyticsB2B SaaSEvent TrackingSegment CompatibleRetentionFeature AdoptionActivation
Properties
| Name | Type | Description |
|---|---|---|
| userId | string | The ID for this user in your database. At least one of userId or anonymousId must be provided. |
| anonymousId | string | An ID for the user when identity is unknown. |
| traits | object | User attributes such as email, name, company, etc. |
| timestamp | string | ISO 8601 date-time when identification occurred. Defaults to server time if omitted. |
| context | object | Extra context to attach to the call. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/june/main/json-schema/june-identify-request-schema.json",
"title": "June Identify Request",
"description": "Request body schema for the June Tracking API /identify endpoint.",
"type": "object",
"properties": {
"userId": {
"type": "string",
"description": "The ID for this user in your database. At least one of userId or anonymousId must be provided."
},
"anonymousId": {
"type": "string",
"description": "An ID for the user when identity is unknown."
},
"traits": {
"type": "object",
"description": "User attributes such as email, name, company, etc.",
"properties": {
"email": {
"type": "string",
"format": "email",
"description": "The user's email address."
},
"name": {
"type": "string",
"description": "The user's full name."
}
},
"additionalProperties": true
},
"timestamp": {
"type": "string",
"format": "date-time",
"description": "ISO 8601 date-time when identification occurred. Defaults to server time if omitted."
},
"context": {
"type": "object",
"description": "Extra context to attach to the call.",
"additionalProperties": true
}
},
"anyOf": [
{ "required": ["userId"] },
{ "required": ["anonymousId"] }
]
}