Categories
500Successful response
Invalid input data
Not found
Internal server error
GET /api/v2/categories HTTP/1.1
Host: api.ethos.network
Accept: */*
{
"categories": [
{
"id": 1,
"slug": "text",
"name": "text",
"description": "text",
"showOnLeaderboard": true,
"showInDailyService": true,
"bannerImageUrl": "https://example.com",
"userCount": 1
}
],
"total": 1
}Successful response
Invalid input data
Authorization not provided
Insufficient access
Internal server error
POST /api/v2/categories HTTP/1.1
Host: api.ethos.network
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 140
{
"slug": "text",
"name": "text",
"description": "text",
"showOnLeaderboard": true,
"showInDailyService": true,
"bannerImageUrl": "https://example.com"
}{
"id": 1,
"slug": "text",
"name": "text",
"description": "text",
"showOnLeaderboard": true,
"showInDailyService": true,
"bannerImageUrl": "https://example.com",
"userCount": 1
}Successful response
Invalid input data
Not found
Internal server error
GET /api/v2/categories/{id} HTTP/1.1
Host: api.ethos.network
Accept: */*
{
"id": 1,
"slug": "text",
"name": "text",
"description": "text",
"showOnLeaderboard": true,
"showInDailyService": true,
"bannerImageUrl": "https://example.com",
"userCount": 1
}10Successful response
Invalid input data
Not found
Internal server error
GET /api/v2/categories/summaries/bulk HTTP/1.1
Host: api.ethos.network
Accept: */*
[
{
"id": 1,
"slug": "text",
"name": "text",
"description": "text",
"showOnLeaderboard": true,
"showInDailyService": true,
"bannerImageUrl": "https://example.com",
"topUsers": [
{
"id": 1,
"profileId": 1,
"displayName": "text",
"username": "text",
"avatarUrl": "https://example.com",
"description": "text",
"score": 1,
"status": "ACTIVE",
"userkeys": [
"text"
],
"xpTotal": 1,
"xpStreakDays": 1,
"xpRemovedDueToAbuse": true,
"influenceFactor": 1,
"influenceFactorPercentile": 1,
"links": {
"profile": "https://example.com",
"scoreBreakdown": "https://example.com"
},
"stats": {
"review": {
"received": {
"negative": 1,
"neutral": 1,
"positive": 1
}
},
"vouch": {
"given": {
"amountWeiTotal": 1,
"count": 1
},
"received": {
"amountWeiTotal": 1,
"count": 1
}
}
}
}
],
"userStats": {
"totalUsers": 1,
"averageScore": 1,
"totalXp": 1,
"averageXpTotal": 1,
"totalXpStreakDays": 1,
"averageXpStreakDays": 1,
"totalReviewReceivedPositive": 1,
"averageReviewReceivedPositive": 1,
"totalReviewReceivedNegative": 1,
"averageReviewReceivedNegative": 1,
"totalReviewReceivedNeutral": 1,
"averageReviewReceivedNeutral": 1,
"totalVouchReceivedCount": 1,
"averageVouchReceivedCount": 1,
"totalVouchGivenCount": 1,
"averageVouchGivenCount": 1,
"totalVouchReceivedAmountWei": 1,
"averageVouchReceivedAmountWei": 1,
"totalVouchGivenAmountWei": 1,
"averageVouchGivenAmountWei": 1
}
}
]Successful response
Invalid input data
Authorization not provided
Insufficient access
Not found
Internal server error
PUT /api/v2/categories/{categoryId} HTTP/1.1
Host: api.ethos.network
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 140
{
"slug": "text",
"name": "text",
"description": "text",
"showOnLeaderboard": true,
"showInDailyService": true,
"bannerImageUrl": "https://example.com"
}{
"id": 1,
"slug": "text",
"name": "text",
"description": "text",
"showOnLeaderboard": true,
"showInDailyService": true,
"bannerImageUrl": "https://example.com",
"userCount": 1
}Successful response
Invalid input data
Authorization not provided
Insufficient access
Not found
Internal server error
DELETE /api/v2/categories/{categoryId} HTTP/1.1
Host: api.ethos.network
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": 1,
"slug": "text",
"name": "text",
"description": "text",
"showOnLeaderboard": true,
"showInDailyService": true,
"bannerImageUrl": "https://example.com",
"userCount": 1
}500createdAtPossible values: Successful response
Invalid input data
Not found
Internal server error
GET /api/v2/categories/{categoryId}/users HTTP/1.1
Host: api.ethos.network
Accept: */*
{
"users": [
{
"id": 1,
"profileId": 1,
"displayName": "text",
"username": "text",
"avatarUrl": "https://example.com",
"description": "text",
"score": 1,
"status": "ACTIVE",
"userkeys": [
"text"
],
"xpTotal": 1,
"xpStreakDays": 1,
"xpRemovedDueToAbuse": true,
"influenceFactor": 1,
"influenceFactorPercentile": 1,
"links": {
"profile": "https://example.com",
"scoreBreakdown": "https://example.com"
},
"stats": {
"review": {
"received": {
"negative": 1,
"neutral": 1,
"positive": 1
}
},
"vouch": {
"given": {
"amountWeiTotal": 1,
"count": 1
},
"received": {
"amountWeiTotal": 1,
"count": 1
}
}
},
"addedAt": "text"
}
],
"total": 1
}Successful response
Invalid input data
Authorization not provided
Insufficient access
Internal server error
POST /api/v2/categories/{categoryId}/users HTTP/1.1
Host: api.ethos.network
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 15
{
"userIds": [
1
]
}{
"id": 1,
"slug": "text",
"name": "text",
"description": "text",
"showOnLeaderboard": true,
"showInDailyService": true,
"bannerImageUrl": "https://example.com",
"userCount": 1
}Successful response
Invalid input data
Authorization not provided
Insufficient access
Not found
Internal server error
DELETE /api/v2/categories/{categoryId}/users?userIds=1 HTTP/1.1
Host: api.ethos.network
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": 1,
"slug": "text",
"name": "text",
"description": "text",
"showOnLeaderboard": true,
"showInDailyService": true,
"bannerImageUrl": "https://example.com",
"userCount": 1
}Successful response
Invalid input data
Authorization not provided
Insufficient access
Internal server error
POST /api/v2/categories/{categoryId}/bulk-import HTTP/1.1
Host: api.ethos.network
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 24
{
"twitterUrls": [
"text"
]
}{
"total": 1,
"added": 1,
"alreadyInCategory": 1,
"notFound": 1,
"invalid": 1,
"duplicates": 1,
"errors": [
{
"url": "text",
"reason": "text"
}
]
}500Successful response
Invalid input data
Authorization not provided
Insufficient access
Not found
Internal server error
GET /api/v2/categories/requests HTTP/1.1
Host: api.ethos.network
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"requests": [
{
"id": 1,
"name": "text",
"description": "text",
"categoryId": 1,
"requestedBy": {
"id": 1,
"displayName": "text",
"address": "text",
"avatarUrl": "text"
},
"status": "pending",
"createdAt": "text",
"reason": "text"
}
],
"total": 1
}Successful response
Invalid input data
Authorization not provided
Insufficient access
Not found
Internal server error
PUT /api/v2/categories/requests/{requestId}/status HTTP/1.1
Host: api.ethos.network
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 47
{
"categoryId": 1,
"userId": 1,
"status": "approved"
}{
"success": true
}Last updated