Get Guild Tournament
Retrieve details of a guild tournament. Requires the guilds.owner permission.
Endpoint
GET /api/v2/guild-tournaments/:id
Authentication
This endpoint requires:
- JWT Token: User authentication
- Permission:
guilds.ownerrole (you must own a guild)
Authorization: Bearer user-jwt-token-here
Description
Returns full details of a guild tournament by its ID. Use this to check tournament status, configuration, and whether it's ready to launch.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Guild tournament ID |
Request Example
GET /api/v2/guild-tournaments/gt-123
Response
Success Response (200)
{
"id": "gt-123",
"guildId": "guild-456",
"guildName": "Elite Gamers",
"name": "My Guild Championship",
"slug": "my-guild-championship",
"status": "accepted",
"requestedBy": "user-789",
"organizationId": "org-456",
"color": "#FF5733",
"image": "https://example.com/banner.png",
"projectsIds": ["project-1"],
"startDate": 1704067200000,
"endDate": 1704153600000,
"airdropsIds": [],
"stakesIds": [],
"gameId": "game-789",
"totalWinners": 10,
"totalPrize": 1000,
"prizeDistributionType": "automatic",
"isPractice": false,
"tournamentId": "tournament-abc",
"createdAt": 1704060000000,
"updatedAt": 1704060000000,
"rounds": []
}
Error Response (401)
{
"message": "Unauthorized",
"status": 401
}
Error Response (403)
{
"message": "Forbidden",
"status": 403
}
Error Response (404)
{
"message": "Guild tournament not found",
"status": 404
}
Response Fields
| Field | Type | Description |
|---|---|---|
id | string | Guild tournament ID |
guildId | string | Guild ID |
guildName | string | Guild name |
name | string | Tournament name |
status | string | pending, accepted, rejected, launched |
requestedBy | string | User ID who requested |
tournamentId | string | Created tournament ID (after launch) |
reviewedBy | string | Reviewer user ID (if reviewed) |
rejectionReason | string | Reason if rejected |
Usage Example
const response = await fetch("https://api.intraverse.io/api/v2/guild-tournaments/gt-123", {
headers: {
Authorization: `Bearer ${jwtToken}`,
},
});
const tournament = await response.json();
if (tournament.status === "accepted") {
console.log("Ready to launch!");
} else if (tournament.status === "rejected") {
console.log(`Rejected: ${tournament.rejectionReason}`);
}