Skip to main content

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​

  1. Log in to the Joryio dashboard.
  2. Go to Settings → API Keys.
  3. Click Create API Key, pick the scopes the integration needs, and copy the value shown once.
Keep API keys secret

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.

  1. Download the collection
  2. In Postman: Import → drop the file in.
  3. 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",
"email": "[email protected]",
"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.

StatusmessageCause
400Request body is not valid JSON.The JSON has a syntax error.
400Request 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 [...].
413Request body is too large - the limit is 1 MB.The body is larger than 1 MB.
415Request body charset is not supported - send UTF-8.The Content-Type names a charset other than UTF-8.

HTTP Status Codes​

CodeMeaningDescription
200OKRequest succeeded
201CreatedResource created successfully
204No ContentDelete succeeded (empty response body)
400Bad RequestInvalid request parameters
401UnauthorizedInvalid or missing API key
403ForbiddenAPI key lacks required permissions
404Not FoundResource not found
409ConflictResource already exists
413Payload Too LargeRequest body larger than 1 MB
415Unsupported Media TypeUnsupported body charset or encoding
429Too Many RequestsRate limit exceeded
500Internal Server ErrorServer error occurred
503Service UnavailableService 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.

SurfaceLimitKeyed on
API requests1,200/minyour organization
Contact and event ingest (POST /users/track)6,000/minyour organization
Sign-in and password reset5-10/minIP 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/track is an upsert keyed on your externalId - retrying the same request updates the same profile instead of creating a duplicate.
  • Each element of events accepts an optional clientEventId; it is used as the stored event ID, so a retried request with the same clientEventId is deduplicated.
  • POST /campaigns/transactional/send accepts an optional idempotencyKey in 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​

MethodEndpointDescription
POST/users/trackCreate 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/usersList users (limit / offset)
GET/users/searchSearch users by email, name, phone, or ID
GET/users/:userIdGet user by Joryio internal ID
GET/users/by-user-id/:userIdGet user by your userId
PUT/users/:userIdUpdate user by internal ID
PUT/users/by-user-id/:userIdUpdate user by your userId
DELETE/users/:userIdDelete user (returns 204)

Events API​

MethodEndpointDescription
POST/users/trackTrack one event or many - events takes one object or an array (max 500 per request)
GET/events/queryQuery events with filters
POST/events/aggregateAggregate event metrics over time

Campaigns API​

MethodEndpointDescription
POST/campaignsCreate campaign
GET/campaigns/:idGet campaign
PUT/campaigns/:idUpdate campaign
DELETE/campaigns/:idDelete campaign
POST/campaigns/:id/sendSend campaign
GET/campaigns/:id/statsGet campaign stats

Segments API​

MethodEndpointDescription
POST/segmentsCreate segment
GET/segmentsList segments
GET/segments/:idGet segment
PUT/segments/:idUpdate segment
POST/segments/:id/archiveArchive segment (segments cannot be hard-deleted)
GET/segments/:id/usersGet users in segment
GET/segments/:id/sizeGet segment size

Apps API​

MethodEndpointDescription
POST/appsCreate app
GET/appsList apps (each with sdkVersions)
GET/apps/:idGet app
PUT/apps/:idUpdate app
DELETE/apps/:idDelete app
POST/apps/:id/regenerate-keyRegenerate SDK key
GET/apps/:id/statsGet 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"
}
]
}
FieldTypeDescription
latestSdkVersionstringThe newest SDK version Joryio has released.
sdkVersions[].platformstringandroid, ios or web - the native SDK that sent the requests.
sdkVersions[].wrapperstring | nullreact-native or unity when the app uses that bridge, otherwise null.
sdkVersions[].oldestActiveVersionstringThe 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[].newestVersionstringThe newest version in the same set.
sdkVersions[].activeVersionsstring[]Every version seen in the last 7 days, oldest first.
sdkVersions[].nativeVersionsstring[]For a bridge: the native SDK versions under it.
sdkVersions[].activebooleanWhether any request was seen in the last 7 days.
sdkVersions[].lastSeenAtstringWhen a request was last recorded (accurate to about an hour).
sdkVersions[].updateAvailablebooleanoldestActiveVersion is older than latestSdkVersion.
sdkVersions[].changelogUrlstringRelease notes of that SDK.

SDKs​

For easier integration, use our official SDKs:

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?