Skip to main content

Epochs

Returns all epoch periods with their status.

GET /epochs

No authentication required.

Response

[
{
"id": 1,
"label": "Epoch 1: 2026.1.1 - 2026.1.15",
"startDate": "2026-01-01",
"endDate": "2026-01-15",
"status": "settled"
},
{
"id": 2,
"label": "Epoch 2: 2026.1.15 - 2026.1.29",
"startDate": "2026-01-15",
"endDate": "2026-01-29",
"status": "active"
}
]

Response Fields

FieldTypeDescription
idintEpoch number (epoch_number)
labelstringHuman-readable label with date range
startDatestringStart date (YYYY-MM-DD)
endDatestringEnd date (YYYY-MM-DD)
statusstringEpoch status (see below)

Epoch Status

ValueDescription
pendingNot yet started
activeCurrently running
endedFinished, pending settlement
settledSettled and finalized

Code Examples

Python

import requests

BASE_URL = "https://api.primit.io/api/v1"

resp = requests.get(f"{BASE_URL}/epochs")
epochs = resp.json()

for e in epochs:
print(f"Epoch {e['id']}: {e['startDate']}{e['endDate']} [{e['status']}]")