Loreax API
Loreax creator monetization API.
Access 1
Purchase a post with one-off payment.
{
"postId": 123,
"promoCode": "SAVE10"
}
{
"message": "Purchase completed",
"data": {
"id": "01HQ123456789ABCDEFGHJKMNP",
"postId": 123,
"buyerUserId": 456,
"creatorUserId": 789,
"grossAmount": 10000,
"platformFee": 1500,
"creatorNet": 8500,
"discount": 0,
"currency": "KES",
"status": "completed",
"expiresAt": "2025-01-01T00:00:00Z",
"purchasedAt": "2026-04-24T08:00:00Z",
"grantsAccess": true
},
"meta": {
"requestId": "01HQ123456789ABCDEFGHJKMNP",
"traceId": "0af7651916cd43dd8448eb211c80319c",
"timestamp": "2026-04-24T08:00:00Z"
}
}
{
"message": "Invalid input",
"errors": [],
"meta": []
}
{
"errorCode": "POST_ALREADY_PURCHASED",
"message": "User 456 has already purchased post 123.",
"meta": {
"requestId": "string",
"traceId": "string",
"timestamp": "2025-01-01T00:00:00Z"
}
}
Content 14
Core 1
Returns API version, documentation links, and service status
{
"message": "Loreax v1 APIs",
"data": {
"version": "v1",
"docs": {
"wiki": "https://dev.loreax.bervant.co.ke",
"openapi": {
"schema": "https://dev.loreax.bervant.co.ke/api-reference",
"json": "https://dev.loreax.bervant.co.ke/api-reference/download/openapi",
"postman": "https://dev.loreax.bervant.co.ke/api-reference/download/postman",
"bruno": "https://dev.loreax.bervant.co.ke/api-reference/download/bruno"
},
"interactive": "https://dev.loreax.bervant.co.ke/api-playground"
},
"services": {
"postgres": {
"status": "ok",
"latency_ms": 12
},
"redis": {
"status": "ok",
"latency_ms": 2
},
"mongodb": {
"status": "ok",
"latency_ms": 1
},
"s3": {
"status": "error",
"message": "Unable to check existence"
},
"mpesa": {
"status": "ok",
"latency_ms": 494,
"cached": false
}
}
},
"meta": {
"requestId": "01HQ123456789ABCDEFGHJKMNP",
"traceId": "0af7651916cd43dd8448eb211c80319c",
"timestamp": "2026-04-27T10:00:00Z"
}
}
Discovery 3
| Name | Type | Required | Description |
|---|---|---|---|
| niche | string | ||
| category | string | ||
| verified | boolean | ||
| cursor | string | ||
| limit | integer |
Bearer
Token
Requires Authorization:
Bearer <token> header.
{
"interactions": [
{
"targetType": "post",
"targetId": "string",
"type": "impression",
"surface": "home",
"position": 1,
"occurredAt": "2025-01-01T00:00:00Z",
"context": []
}
]
}
| Name | Type | Required | Description |
|---|---|---|---|
| q | string | ✓ | |
| type | string | ||
| niche | string | ||
| category | string | ||
| tag | string | ||
| cursor | string | ||
| limit | integer |
Identity 3
{
"username": "string",
"password": "string",
"deviceName": "string"
}
Bearer
Token
Requires Authorization:
Bearer <token> header.
{
"email": "string",
"username": "string",
"password": "string",
"firstName": "string",
"lastName": "string",
"countryCode": "string",
"referralCode": "string"
}
Monetization 13
Payments 5
Social 31
Taxonomy 3
Returns a list of all active niches (interests/genres) available on the platform.
{
"message": "Success",
"data": [
{
"id": "01HQ123456789ABCDEFGHJKMNP",
"name": "Technology",
"slug": "technology",
"description": "Tech, gadgets, software, and innovation",
"isActive": true,
"sortOrder": 1
}
]
}
Returns a list of all active categories, optionally filtered by niche.
| Name | Type | Required | Description |
|---|---|---|---|
| nicheId | string | Filter categories by niche ID |
{
"message": "Success",
"data": [
{
"id": "01HQ234567890BCDEFGHJKMNPQ",
"nicheId": "01HQ123456789ABCDEFGHJKMNP",
"name": "Web Development",
"slug": "web-development",
"description": "Frontend, backend, and full-stack development",
"isActive": true,
"sortOrder": 1
}
]
}
Search for active tags by prefix. Returns tags matching the search term.
| Name | Type | Required | Description |
|---|---|---|---|
| prefix | string | Search prefix for tag names |
{
"message": "Success",
"data": [
{
"id": "01HQ345678901CDEFGHJKMNPQR",
"name": "javascript",
"slug": "javascript",
"useCount": 42,
"isActive": true
}
]
}
Timeline 3
Bearer
Token
Requires Authorization:
Bearer <token> header.
| Name | Type | Required | Description |
|---|---|---|---|
| cursor | string | ||
| limit | integer |
| Name | Type | Required | Description |
|---|---|---|---|
| niche | string | ||
| category | string | ||
| tag | string | ||
| creator | string | ||
| cursor | string | ||
| limit | integer |
| Name | Type | Required | Description |
|---|---|---|---|
| niche | string | ||
| category | string | ||
| tag | string | ||
| cursor | string | ||
| limit | integer |