API Overview
The Joryio REST API provides programmatic access to all platform features.
Base URL
https://api-eu1.joryio.com/api
All workspaces are currently served from a single region; region-specific endpoints will be documented when additional regions launch.
Authentication
All API requests require authentication via API key. Keys are scoped to a single workspace, carry an explicit permission set, and can be restricted to a list of IPs. See the API Keys reference for the full scope catalog and IP allowlist behavior.
GET /api/users/by-user-id/user_123
Host: api-eu1.joryio.com
Authorization: Bearer jry_live_your_api_key_here
Content-Type: application/json
Pass the key as a bearer token in the Authorization header on every request. Keys always start with jry_live_ (production) or jry_test_ (test). The key's visible prefix (e.g. jry_live_98f31a72) is safe to log - the rest is secret.
Get your API key
- Log in to the Joryio dashboard.
- Go to Settings → API Keys.
- Click Create API Key, pick the scopes the integration needs, and copy the value shown once.
Never commit API keys to version control or expose them in client-side code. The full value is shown exactly once after creation - store it in your secret manager immediately.
Postman Collection
The fastest way to explore the API: import the official collection into Postman - every public endpoint with an example body, pre-wired to a {{baseUrl}} variable and bearer-token auth.
- Download the collection
- In Postman: Import → drop the file in.
- Set the collection variables:
baseUrl=https://api-eu1.joryio.com/api,token= your API key (jry_live_...).
Request Format
All requests and responses use JSON:
POST /users/track
Content-Type: application/json
{
"attributes": {
"externalId": "user_123",
"email": "[email protected]",
"attributes": {
"plan": "premium"
}
}
}
Response Format
Endpoints return the resource JSON directly - there is no { "success": true, "data": ... } wrapper envelope.
Success Response
For example, GET /users/by-user-id/user_123 returns the user object itself:
{
"id": "665f1e2a9b3c4d5e6f7a8b9c",
"userId": "665f1e2a9b3c4d5e6f7a8b9c",
"externalId": "user_123",
"phone": "+14155550123",
"attributes": { "plan": "premium" },
"createdAt": "2026-01-15T10:30:00.000Z",
"updatedAt": "2026-01-15T10:30:00.000Z"
}
id / userId are Joryio's internal identifier; the identifier you supplied is echoed as externalId.
Error Response
All errors share one shape, produced by a global exception filter:
{
"statusCode": 400,
"message": "Cannot create user without a valid identifier (userId, externalId, or email)",
"timestamp": "2026-01-15T10:30:00.000Z",
"path": "/users"
}
Request-validation failures (400) additionally carry an errors array with one message per failed field:
{
"statusCode": 400,
"message": "Bad Request Exception",
"timestamp": "2026-01-15T10:30:00.000Z",
"path": "/api/users/track",
"errors": [
"eventName must be shorter than or equal to 500 characters"
]
}
Request body errors
A body the server cannot read is rejected before it reaches the endpoint, with a message that names the problem. The body you sent is never echoed back.
| Status | message | Cause |
|---|---|---|
400 | Request body is not valid JSON. | The JSON has a syntax error. |
400 | Request body must be a JSON object or array - a bare string, number, boolean or null is not accepted. | The top level is not an object {...} or an array [...]. |
413 | Request body is too large - the limit is 1 MB. | The body is larger than 1 MB. |
415 | Request body charset is not supported - send UTF-8. | The Content-Type names a charset other than UTF-8. |
HTTP Status Codes
| Code | Meaning | Description |
|---|---|---|
200 | OK | Request succeeded |
201 | Created | Resource created successfully |
204 | No Content | Delete succeeded (empty response body) |
400 | Bad Request | Invalid request parameters |
401 | Unauthorized | Invalid or missing API key |
403 | Forbidden | API key lacks required permissions |
404 | Not Found | Resource not found |
409 | Conflict | Resource already exists |
413 | Payload Too Large | Request body larger than 1 MB |
415 | Unsupported Media Type | Unsupported body charset or encoding |
429 | Too Many Requests | Rate limit exceeded |
500 | Internal Server Error | Server error occurred |
503 | Service Unavailable | Service temporarily unavailable |
Rate Limiting
Authenticated API endpoints enforce a per-organization ceiling. These are an abuse ceiling, not a throughput budget - they sit far above normal use, and capacity is handled by our worker fleet rather than by refusing requests at the edge.
| Surface | Limit | Keyed on |
|---|---|---|
| API requests | 1,200/min | your organization |
Contact and event ingest (POST /users/track) | 6,000/min | your organization |
| Sign-in and password reset | 5-10/min | IP address |
Authenticated limits are keyed on your organization, not your IP - so a fleet of servers shares one budget rather than each getting its own, and two customers behind the same network never affect one another.
Your account's current limits are shown in Settings -> Usage, and can be raised. If a bulk import or a busy send is approaching one, contact [email protected].
Inbound webhook receivers - delivery events, replies, ecommerce platform callbacks - are deliberately unlimited. A refused webhook is lost data, so those endpoints are protected by signature verification instead of a counter.
Every limited response carries the standard headers:
X-RateLimit-Limit: 1200
X-RateLimit-Remaining: 1188
X-RateLimit-Reset: 60
When a request is throttled, the API responds 429 Too Many Requests with a Retry-After header (seconds until the window resets):
HTTP/1.1 429 Too Many Requests
Retry-After: 42
{
"statusCode": 429,
"message": "Too Many Requests",
"timestamp": "2026-01-15T10:30:00.000Z",
"path": "/auth/login"
}
Handling Rate Limits
Limits may be introduced or tightened over time - always treat 429 as retryable, honor Retry-After, and implement exponential backoff:
async function makeRequestWithRetry(url, options, maxRetries = 3) {
for (let i = 0; i < maxRetries; i++) {
const response = await fetch(url, options);
if (response.status === 429) {
const retryAfter = response.headers.get('Retry-After') || Math.pow(2, i);
await sleep(retryAfter * 1000);
continue;
}
return response;
}
}
Pagination
List endpoints paginate with limit / offset query parameters:
GET /users?limit=50&offset=100
Parameters:
limit: Results per page (defaults and maximums vary per endpoint - users: default 50, max 200; segments: default 100, max 100; events query: default 100, max 1000)offset: Number of items to skip (default: 0)
Response:
Paginated list responses wrap the page in a data array plus a pagination object:
{
"data": [...],
"pagination": {
"total": 1234,
"limit": 50,
"offset": 100,
"hasMore": true
}
}
Some endpoints include additional pagination fields (such as page / totalPages), and some smaller lists return a bare JSON array - each endpoint's page documents its exact shape.
Filtering
There is no generic filter[field] or sort query syntax. List endpoints expose endpoint-specific filter parameters instead, for example:
GET /events/query?eventName=Order+Completed&startDate=2026-01-01&endDate=2026-01-31
GET /segments?q=vip&status=active&tags=onboarding
GET /users/search?query=jane
Results are returned in a fixed, most-recent-first order.
Idempotency
There is no generic Idempotency-Key request header. Retry safety is provided per endpoint:
POST /users/trackis an upsert keyed on yourexternalId- retrying the same request updates the same profile instead of creating a duplicate.- Each element of
eventsaccepts an optionalclientEventId; it is used as the stored event ID, so a retried request with the sameclientEventIdis deduplicated. POST /campaigns/transactional/sendaccepts an optionalidempotencyKeyin the body - a retry with the same key will not double-send.
Timestamps
All timestamps are in ISO 8601 format with UTC timezone:
{
"createdAt": "2024-01-15T10:30:00.000Z",
"updatedAt": "2024-01-15T14:45:30.000Z"
}
API Endpoints
Users API
| Method | Endpoint | Description |
|---|---|---|
| POST | /users/track | Create or update people and record their events, purchases and push devices - each field takes one object or an array (max 1000 attributes per request) |
| GET | /users | List users (limit / offset) |
| GET | /users/search | Search users by email, name, phone, or ID |
| GET | /users/:userId | Get user by Joryio internal ID |
| GET | /users/by-user-id/:userId | Get user by your userId |
| PUT | /users/:userId | Update user by internal ID |
| PUT | /users/by-user-id/:userId | Update user by your userId |
| DELETE | /users/:userId | Delete user (returns 204) |
Events API
| Method | Endpoint | Description |
|---|---|---|
| POST | /users/track | Track one event or many - events takes one object or an array (max 500 per request) |
| GET | /events/query | Query events with filters |
| POST | /events/aggregate | Aggregate event metrics over time |
Campaigns API
| Method | Endpoint | Description |
|---|---|---|
| POST | /campaigns | Create campaign |
| GET | /campaigns/:id | Get campaign |
| PUT | /campaigns/:id | Update campaign |
| DELETE | /campaigns/:id | Delete campaign |
| POST | /campaigns/:id/send | Send campaign |
| GET | /campaigns/:id/stats | Get campaign stats |
Segments API
| Method | Endpoint | Description |
|---|---|---|
| POST | /segments | Create segment |
| GET | /segments | List segments |
| GET | /segments/:id | Get segment |
| PUT | /segments/:id | Update segment |
| POST | /segments/:id/archive | Archive segment (segments cannot be hard-deleted) |
| GET | /segments/:id/users | Get users in segment |
| GET | /segments/:id/size | Get segment size |
Apps API
| Method | Endpoint | Description |
|---|---|---|
| POST | /apps | Create app |
| GET | /apps | List apps (each with sdkVersions) |
| GET | /apps/:id | Get app |
| PUT | /apps/:id | Update app |
| DELETE | /apps/:id | Delete app |
| POST | /apps/:id/regenerate-key | Regenerate SDK key |
| GET | /apps/:id/stats | Get app statistics |
SDK versions
GET /apps and GET /apps/:id (scope apps:read) also return which SDK version the app's devices run and the newest SDK release. sdkVersions is empty for an app whose devices run an SDK that does not report its version (1.3.3 and earlier).
{
"id": "6f1c2a9e-...",
"name": "My iOS app",
"platform": "ios",
"latestSdkVersion": "1.6.0",
"sdkVersions": [
{
"platform": "ios",
"wrapper": "react-native",
"oldestActiveVersion": "1.5.0",
"newestVersion": "1.6.0",
"activeVersions": ["1.5.0", "1.6.0"],
"nativeVersions": ["1.5.0", "1.6.0"],
"active": true,
"lastSeenAt": "2026-11-19T08:00:00.000Z",
"updateAvailable": true,
"changelogUrl": "https://github.com/joryio/joryio-react-native-sdk/releases"
}
]
}
| Field | Type | Description |
|---|---|---|
latestSdkVersion | string | The newest SDK version Joryio has released. |
sdkVersions[].platform | string | android, ios or web - the native SDK that sent the requests. |
sdkVersions[].wrapper | string | null | react-native or unity when the app uses that bridge, otherwise null. |
sdkVersions[].oldestActiveVersion | string | The oldest version seen in the last 7 days - of the bridge when there is one, of the native SDK otherwise. With nothing seen in 7 days: the last version seen. |
sdkVersions[].newestVersion | string | The newest version in the same set. |
sdkVersions[].activeVersions | string[] | Every version seen in the last 7 days, oldest first. |
sdkVersions[].nativeVersions | string[] | For a bridge: the native SDK versions under it. |
sdkVersions[].active | boolean | Whether any request was seen in the last 7 days. |
sdkVersions[].lastSeenAt | string | When a request was last recorded (accurate to about an hour). |
sdkVersions[].updateAvailable | boolean | oldestActiveVersion is older than latestSdkVersion. |
sdkVersions[].changelogUrl | string | Release notes of that SDK. |
SDKs
For easier integration, use our official SDKs:
- Web SDK: npm install @joryio/web-sdk
- iOS SDK: Swift Package / CocoaPods
- Android SDK: Gradle
- React Native SDK: npm install @joryio/react-native-sdk
Examples
Create User
curl -X POST https://api-eu1.joryio.com/api/users/track \
-H "Authorization: Bearer jry_live_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"attributes": {
"externalId": "user_123",
"email": "[email protected]",
"attributes": {
"firstName": "John",
"lastName": "Doe",
"plan": "premium"
}
}
}'
Track Event
curl -X POST https://api-eu1.joryio.com/api/users/track \
-H "Authorization: Bearer jry_live_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"events": {
"externalId": "user_123",
"name": "Order Completed",
"properties": { "orderId": "order_456", "total": 99.99 }
}
}'
Create Segment
curl -X POST https://api-eu1.joryio.com/api/segments \
-H "Authorization: Bearer jry_live_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"name": "Premium Users",
"description": "Users on premium plan",
"filterGroups": [{
"filters": [{
"type": "attribute",
"field": "plan",
"operator": "equals",
"value": "premium"
}],
"operator": "AND"
}],
"groupOperator": "AND"
}'
Send Campaign
The send endpoint takes no request body - the campaign's saved configuration determines what is sent:
curl -X POST https://api-eu1.joryio.com/api/campaigns/:id/send \
-H "Authorization: Bearer jry_live_your_api_key"
Errors
There is no separate machine-readable error-code vocabulary - use the HTTP status code plus the message field of the standard error body (see Response Format):
{
"statusCode": 404,
"message": "Segment with ID 3f9d2c1e-7a54-4b2e-9c1d-8e6f5a4b3c2d not found",
"timestamp": "2026-01-15T10:30:00.000Z",
"path": "/segments/3f9d2c1e-7a54-4b2e-9c1d-8e6f5a4b3c2d"
}
Testing
Keys can be created with a test label (jry_test_...) so you can tell integration keys apart from production keys at a glance - the label doesn't change what the key can do. For safe experimentation, create a separate workspace for testing: workspaces fully isolate profiles, events, and campaigns, so nothing you try can touch production data or recipients. Channel test sends (email test sends, SMS test messages) are built into the campaign editors.
Support
Need help?