API reference
OData reporting feed
A read-only OData v4 feed of the workspace's projects, tasks, RAID items, time, invoices, tickets and deals. Power BI and Excel connect to it directly; any OData client can read it.
The basics
| Item | Detail |
|---|---|
| Direction | Out of Luceryn. Your client calls and reads. |
| Protocol | OData v4.0 over HTTPS, GET only. Every answer carries OData-Version: 4.0. |
| Base address | /api/odata/v1 |
| Format | JSON for the service document and the rows; XML (CSDL) for $metadata. |
| Entity sets | Projects, Tasks, RaidItems, TimeEntries, Invoices, InvoiceLines, Tickets, Deals |
| Dependencies | An OData client. No middleware and no on-premises gateway: the feed is on the public internet behind the token. |
| Method | Address | Returns | Content type |
|---|---|---|---|
| GET | /api/odata/v1 | The service document: the list of entity sets. | application/json |
| GET | /api/odata/v1/$metadata | The schema (CSDL, EDMX 4.0): every entity type with its properties and types. Id is the key of every type and the only property that is never null. | application/xml |
| GET | /api/odata/v1/{EntitySet} | The rows of one entity set, in the workspace the token belongs to. The name is matched without regard to capitals. | application/json |
Authentication
A reporting token (it starts with rpt_) sent in one of three ways. The token decides the workspace.
| Way | How |
|---|---|
| Basic | Authorization: Basic with the token as the password (any user name, for example luceryn) or as the user name. This is what Power BI offers. |
| Bearer | Authorization: Bearer followed by the token. |
| Query string | ?token= followed by the token, for a client with no place to enter a credential. The token then appears in the address, so prefer one of the headers. |
- Created under Admin, Reporting feed, by a person who holds Manage organization. Creating and revoking a token are written to the admin audit log.
- Shown once. Luceryn keeps only its SHA-256 hash, with the label you gave it and the time it was last used.
- Any number of tokens. To rotate, create a second, move the client to it and revoke the first. A revoked token is refused from the next request.
- A token reads the whole workspace, confidential projects included, so give it only to people who may see everything, and treat it like a password.
Entity sets and fields
Property names, types and source columns below are read from the same definition that builds $metadata and runs the queries. Every property except Id may be null. A property marked as needing a switch exists only while that workspace switch is on (Admin, Industry and features): with the switch off it is absent from $metadata and from the rows.
Projects
One row per project in the workspace, confidential and archived projects included. Projects in the bin are left out. Address: /api/odata/v1/Projects. Rows are ordered by projects.created_at, oldest first.
| Property | Type | In the JSON | Description | Present | Source |
|---|---|---|---|---|---|
Id | Edm.Guid | text, a UUID | The project's id. The key. | Always | projects.id |
Name | Edm.String | text | The project's name. | Always | projects.name |
Status | Edm.String | text | Overall status: on_track, at_risk, off_track, on_hold or complete. | Always | projects.overall_status |
Priority | Edm.String | text | low, medium, high or critical. | Always | projects.priority |
Department | Edm.String | text | The department named on the project. | Always | projects.department |
Methodology | Edm.String | text | The delivery method chosen for the project. | Always | projects.methodology |
StartDate | Edm.Date | text, YYYY-MM-DD | Planned start. | Always | projects.start_date |
EndDate | Edm.Date | text, YYYY-MM-DD | Planned finish. | Always | projects.end_date |
ProgressPct | Edm.Double | number | Percent complete, 0 to 100. | Always | projects.progress_pct |
CreatedAt | Edm.DateTimeOffset | text, an ISO 8601 date and time with offset | When the project was created. | Always | projects.created_at |
CapitalFiscalYear | Edm.Int32 | whole number | The fiscal year the project is planned in on the capital plan, as a whole number (for example 2027). | Only while the Capital planning switch is on | projects.capital_fiscal_year |
PrimaryFundId | Edm.Guid | text, a UUID | The id of the project's fund source, from the workspace's list of fund sources (Admin, Capital planning). The feed carries the id only; it has no entity set of fund sources. | Only while the Capital planning switch is on | projects.primary_fund_id |
GrossFloorAreaM2 | Edm.Decimal | number | The project's gross floor area in square metres, whatever unit the workspace types it in. | Only while the Floor area and cost per square metre switch is on | projects.gross_floor_area_m2 |
Tasks
One row per plan task of every project in the workspace. Rows of a project that is in the bin are still returned here until the project is removed for good, although the project itself is left out of Projects. Address: /api/odata/v1/Tasks. Rows are ordered by plan_tasks.created_at, oldest first.
| Property | Type | In the JSON | Description | Present | Source |
|---|---|---|---|---|---|
Id | Edm.Guid | text, a UUID | The task's id. The key. | Always | plan_tasks.id |
ProjectId | Edm.Guid | text, a UUID | The project the task belongs to (Projects.Id). | Always | plan_tasks.project_id |
Wbs | Edm.String | text | The task's WBS code, for example 1.2.3. | Always | plan_tasks.wbs_code |
Name | Edm.String | text | The task's name. | Always | plan_tasks.name |
Status | Edm.String | text | not_started, in_progress, blocked, complete or cancelled. | Always | plan_tasks.status |
OwnerName | Edm.String | text | The owner's name as shown on the plan. | Always | plan_tasks.owner_name |
StartDate | Edm.Date | text, YYYY-MM-DD | Start date. | Always | plan_tasks.start_date |
EndDate | Edm.Date | text, YYYY-MM-DD | Finish date. | Always | plan_tasks.end_date |
DurationDays | Edm.Double | number | Duration in days. | Always | plan_tasks.duration_days |
PctComplete | Edm.Double | number | Percent complete, 0 to 100. | Always | plan_tasks.pct_complete |
IsMilestone | Edm.Boolean | true or false | true for a milestone. | Always | plan_tasks.is_milestone |
RaidItems
One row per risk, action, issue or decision of every project in the workspace. Rows of a project that is in the bin are still returned here until the project is removed for good, although the project itself is left out of Projects. Address: /api/odata/v1/RaidItems. Rows are ordered by raid_items.created_at, oldest first.
| Property | Type | In the JSON | Description | Present | Source |
|---|---|---|---|---|---|
Id | Edm.Guid | text, a UUID | The item's id. The key. | Always | raid_items.id |
ProjectId | Edm.Guid | text, a UUID | The project the item belongs to (Projects.Id). | Always | raid_items.project_id |
Type | Edm.String | text | risk, action, issue or decision. | Always | raid_items.type |
Ref | Edm.String | text | The reference shown in the log. | Always | raid_items.ref_id |
Description | Edm.String | text | The item's text. | Always | raid_items.description |
Status | Edm.String | text | The item's status as shown in the log. | Always | raid_items.status |
Severity | Edm.String | text | The item's severity as shown in the log. | Always | raid_items.severity |
OwnerName | Edm.String | text | The owner's name. | Always | raid_items.owner_name |
DueDate | Edm.Date | text, YYYY-MM-DD | Due date. | Always | raid_items.date_due |
CreatedAt | Edm.DateTimeOffset | text, an ISO 8601 date and time with offset | When the item was created. | Always | raid_items.created_at |
TimeEntries
One row per time entry logged against a project in the workspace. Rows of a project that is in the bin are still returned here until the project is removed for good, although the project itself is left out of Projects. Address: /api/odata/v1/TimeEntries. Rows are ordered by time_entries.entry_date, oldest first.
| Property | Type | In the JSON | Description | Present | Source |
|---|---|---|---|---|---|
Id | Edm.Guid | text, a UUID | The entry's id. The key. | Always | time_entries.id |
ProjectId | Edm.Guid | text, a UUID | The project the time was logged against (Projects.Id). | Always | time_entries.project_id |
ResourceId | Edm.Guid | text, a UUID | The id of the person who logged the time. | Always | time_entries.resource_id |
EntryDate | Edm.Date | text, YYYY-MM-DD | The day the time was worked. | Always | time_entries.entry_date |
Hours | Edm.Double | number | Hours logged. | Always | time_entries.hours |
Billable | Edm.Boolean | true or false | true when the time is billable. | Always | time_entries.billable |
InvoiceId | Edm.Guid | text, a UUID | The invoice the time was billed on (Invoices.Id), when it has been. | Always | time_entries.invoice_id |
Invoices
One row per invoice of the workspace. Address: /api/odata/v1/Invoices. Rows are ordered by invoices.created_at, oldest first.
| Property | Type | In the JSON | Description | Present | Source |
|---|---|---|---|---|---|
Id | Edm.Guid | text, a UUID | The invoice's id. The key. | Always | invoices.id |
ProjectId | Edm.Guid | text, a UUID | The project the invoice is for (Projects.Id), when there is one. | Always | invoices.project_id |
ClientId | Edm.Guid | text, a UUID | The id of the client billed, when there is one. | Always | invoices.client_id |
Number | Edm.String | text | The invoice number. | Always | invoices.invoice_number |
Status | Edm.String | text | draft, issued, paid or void. | Always | invoices.status |
Currency | Edm.String | text | Three letter currency code. | Always | invoices.currency |
IssueDate | Edm.Date | text, YYYY-MM-DD | Issue date. | Always | invoices.issue_date |
DueDate | Edm.Date | text, YYYY-MM-DD | Due date. | Always | invoices.due_date |
TaxPct | Edm.Double | number | Tax rate in percent. | Always | invoices.tax_pct |
CreatedAt | Edm.DateTimeOffset | text, an ISO 8601 date and time with offset | When the invoice was created. | Always | invoices.created_at |
InvoiceLines
One row per line of those invoices. Address: /api/odata/v1/InvoiceLines. Rows are ordered by invoice_lines.created_at, oldest first.
| Property | Type | In the JSON | Description | Present | Source |
|---|---|---|---|---|---|
Id | Edm.Guid | text, a UUID | The line's id. The key. | Always | invoice_lines.id |
InvoiceId | Edm.Guid | text, a UUID | The invoice the line is on (Invoices.Id). | Always | invoice_lines.invoice_id |
Kind | Edm.String | text | time, milestone, manual, retainer or overage. | Always | invoice_lines.kind |
Description | Edm.String | text | The line's text. | Always | invoice_lines.description |
Quantity | Edm.Double | number | Quantity. | Always | invoice_lines.quantity |
UnitPrice | Edm.Decimal | number | Price per unit, in the invoice's currency. | Always | invoice_lines.unit_price |
Tickets
One row per service desk ticket or incident of the workspace. Address: /api/odata/v1/Tickets. Rows are ordered by itsm_tickets.created_at, oldest first.
| Property | Type | In the JSON | Description | Present | Source |
|---|---|---|---|---|---|
Id | Edm.Guid | text, a UUID | The ticket's id. The key. | Always | itsm_tickets.id |
Ref | Edm.String | text | The reference shown to people. | Always | itsm_tickets.ref |
RecordType | Edm.String | text | ticket or incident. | Always | itsm_tickets.record_type |
Title | Edm.String | text | The ticket's title. | Always | itsm_tickets.title |
TicketType | Edm.String | text | bug, feature, question or task, when set. | Always | itsm_tickets.ticket_type |
Category | Edm.String | text | The category chosen for the ticket. | Always | itsm_tickets.category |
Priority | Edm.String | text | The ticket's priority. | Always | itsm_tickets.priority |
Status | Edm.String | text | new, assigned, in_progress, waiting, resolved, closed or cancelled. | Always | itsm_tickets.status |
RequesterName | Edm.String | text | The name of the person who asked. | Always | itsm_tickets.requester_name |
SlaBreached | Edm.Boolean | true or false | true when a service target was missed. | Always | itsm_tickets.sla_breached |
CreatedAt | Edm.DateTimeOffset | text, an ISO 8601 date and time with offset | When the ticket was opened. | Always | itsm_tickets.created_at |
ResolvedAt | Edm.DateTimeOffset | text, an ISO 8601 date and time with offset | When it was resolved, when it has been. | Always | itsm_tickets.resolved_at |
Deals
One row per CRM deal of the workspace. Deleted deals are left out. Address: /api/odata/v1/Deals. Rows are ordered by crm_deals.created_at, oldest first.
| Property | Type | In the JSON | Description | Present | Source |
|---|---|---|---|---|---|
Id | Edm.Guid | text, a UUID | The deal's id. The key. | Always | crm_deals.id |
Name | Edm.String | text | The deal's name. | Always | crm_deals.name |
Value | Edm.Decimal | number | The deal's value, in its currency. | Always | crm_deals.value |
Currency | Edm.String | text | Three letter currency code. | Always | crm_deals.currency |
Status | Edm.String | text | open, won or lost. | Always | crm_deals.status |
Probability | Edm.Double | number | Chance of winning, in percent. | Always | crm_deals.probability |
ExpectedClose | Edm.Date | text, YYYY-MM-DD | Expected close date. | Always | crm_deals.expected_close |
CreatedAt | Edm.DateTimeOffset | text, an ISO 8601 date and time with offset | When the deal was created. | Always | crm_deals.created_at |
WonAt | Edm.DateTimeOffset | text, an ISO 8601 date and time with offset | When the deal was won, when it has been. | Always | crm_deals.won_at |
Query options and paging
The feed returns a whole entity set and leaves filtering, sorting and joining to the client. Query options are accepted in the address and have no effect; none is refused.
| Option | Applied by the feed | Note |
|---|---|---|
$filter | No | Ignored. The whole set is returned and the client filters it. Power BI and Excel do this on their own. |
$select | No | Ignored. Every property is returned. |
$top, $skip | No | Ignored. There is no paging: one request returns the whole set up to the row limit. |
$orderby | No | Ignored. Rows come in a fixed order (see each set). |
$expand | No | Ignored. Join sets in the client on their Id fields. |
$count, $search, $format, $apply | No | Ignored. |
Errors
Errors are JSON of the form { "error": "message" } (not the OData error format).
| Status | Message | When |
|---|---|---|
401 | Unauthorized - supply a reporting token (Basic password, Bearer, or ?token=). | No token, an unknown token or a revoked token. The answer carries WWW-Authenticate: Basic realm="Luceryn reporting feed" so Power BI shows its sign-in prompt. |
404 | Unknown entity set "<name>". See the service document at <base address>. | The path names no entity set. Addressing one row by key, for example Projects(id), is not supported and answers this too. |
500 | Query failed | The rows could not be read. |
Limits
- Rows: at most 5,000 in one entity set. When a set is cut, the answer carries "@luceryn.truncated": "Result capped at 5000 rows." beside value. There is no next link and no way to ask for the rest.
- Read only: GET is the only method. Nothing can be created, changed or deleted through the feed.
- No query options are applied (see the table).
- Fields that need a switch: a few properties exist only while a workspace switch is on. With the switch off they are absent from $metadata and from the rows, so a client built before the switch was turned on keeps working unchanged.
- No request rate limit is applied by Luceryn on this interface.
- Scope: the whole workspace. A token is not tied to a person, so the feed is not narrowed by anyone's project access.
Examples
curl "https://luceryn.example.com/api/odata/v1/Projects" \
-H "Authorization: Bearer rpt_EXAMPLE_TOKEN_REPLACE_ME"HTTP/1.1 200 OK
Content-Type: application/json
OData-Version: 4.0
{
"@odata.context": "https://luceryn.example.com/api/odata/v1/$metadata#Projects",
"value": [
{
"Id": "9a1c7f2e-3b4d-4e5f-8a6b-7c8d9e0f1a2b",
"Name": "Science building roof replacement",
"Status": "on_track",
"Priority": "high",
"Department": "Facilities",
"Methodology": "Waterfall",
"StartDate": "2026-09-01",
"EndDate": "2027-06-30",
"ProgressPct": 35,
"CreatedAt": "2026-08-14T13:22:10.512+00:00"
}
]
}{
"@odata.context": "https://luceryn.example.com/api/odata/v1/$metadata",
"value": [
{ "name": "Projects", "kind": "EntitySet", "url": "Projects" },
{ "name": "Tasks", "kind": "EntitySet", "url": "Tasks" },
{ "name": "RaidItems", "kind": "EntitySet", "url": "RaidItems" },
{ "name": "TimeEntries", "kind": "EntitySet", "url": "TimeEntries" },
{ "name": "Invoices", "kind": "EntitySet", "url": "Invoices" },
{ "name": "InvoiceLines", "kind": "EntitySet", "url": "InvoiceLines" },
{ "name": "Tickets", "kind": "EntitySet", "url": "Tickets" },
{ "name": "Deals", "kind": "EntitySet", "url": "Deals" }
]
}Power BI and Excel
- Power BI Desktop: Get Data, OData feed, paste the base address. Choose Basic, user name
luceryn, password the token. - Excel: Data, Get Data, From OData feed, with the same address and credential.
- Pick the tables you want. Refreshing reads live data each time.
A question about an interface?
These pages are written from the code that serves each interface. If something here does not match what you see, tell us and we will check it.
hello@luceryn.com