Skip to content

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

OData feed basics
ItemDetail
DirectionOut of Luceryn. Your client calls and reads.
ProtocolOData v4.0 over HTTPS, GET only. Every answer carries OData-Version: 4.0.
Base address/api/odata/v1
FormatJSON for the service document and the rows; XML (CSDL) for $metadata.
Entity setsProjects, Tasks, RaidItems, TimeEntries, Invoices, InvoiceLines, Tickets, Deals
DependenciesAn OData client. No middleware and no on-premises gateway: the feed is on the public internet behind the token.
OData feed addresses
MethodAddressReturnsContent type
GET/api/odata/v1The service document: the list of entity sets.application/json
GET/api/odata/v1/$metadataThe 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.

Ways to send the reporting token
WayHow
BasicAuthorization: Basic with the token as the password (any user name, for example luceryn) or as the user name. This is what Power BI offers.
BearerAuthorization: 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.

Projects fields
PropertyTypeIn the JSONDescriptionPresentSource
IdEdm.Guidtext, a UUIDThe project's id. The key.Alwaysprojects.id
NameEdm.StringtextThe project's name.Alwaysprojects.name
StatusEdm.StringtextOverall status: on_track, at_risk, off_track, on_hold or complete.Alwaysprojects.overall_status
PriorityEdm.Stringtextlow, medium, high or critical.Alwaysprojects.priority
DepartmentEdm.StringtextThe department named on the project.Alwaysprojects.department
MethodologyEdm.StringtextThe delivery method chosen for the project.Alwaysprojects.methodology
StartDateEdm.Datetext, YYYY-MM-DDPlanned start.Alwaysprojects.start_date
EndDateEdm.Datetext, YYYY-MM-DDPlanned finish.Alwaysprojects.end_date
ProgressPctEdm.DoublenumberPercent complete, 0 to 100.Alwaysprojects.progress_pct
CreatedAtEdm.DateTimeOffsettext, an ISO 8601 date and time with offsetWhen the project was created.Alwaysprojects.created_at
CapitalFiscalYearEdm.Int32whole numberThe 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 onprojects.capital_fiscal_year
PrimaryFundIdEdm.Guidtext, a UUIDThe 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 onprojects.primary_fund_id
GrossFloorAreaM2Edm.DecimalnumberThe 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 onprojects.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.

Tasks fields
PropertyTypeIn the JSONDescriptionPresentSource
IdEdm.Guidtext, a UUIDThe task's id. The key.Alwaysplan_tasks.id
ProjectIdEdm.Guidtext, a UUIDThe project the task belongs to (Projects.Id).Alwaysplan_tasks.project_id
WbsEdm.StringtextThe task's WBS code, for example 1.2.3.Alwaysplan_tasks.wbs_code
NameEdm.StringtextThe task's name.Alwaysplan_tasks.name
StatusEdm.Stringtextnot_started, in_progress, blocked, complete or cancelled.Alwaysplan_tasks.status
OwnerNameEdm.StringtextThe owner's name as shown on the plan.Alwaysplan_tasks.owner_name
StartDateEdm.Datetext, YYYY-MM-DDStart date.Alwaysplan_tasks.start_date
EndDateEdm.Datetext, YYYY-MM-DDFinish date.Alwaysplan_tasks.end_date
DurationDaysEdm.DoublenumberDuration in days.Alwaysplan_tasks.duration_days
PctCompleteEdm.DoublenumberPercent complete, 0 to 100.Alwaysplan_tasks.pct_complete
IsMilestoneEdm.Booleantrue or falsetrue for a milestone.Alwaysplan_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.

RaidItems fields
PropertyTypeIn the JSONDescriptionPresentSource
IdEdm.Guidtext, a UUIDThe item's id. The key.Alwaysraid_items.id
ProjectIdEdm.Guidtext, a UUIDThe project the item belongs to (Projects.Id).Alwaysraid_items.project_id
TypeEdm.Stringtextrisk, action, issue or decision.Alwaysraid_items.type
RefEdm.StringtextThe reference shown in the log.Alwaysraid_items.ref_id
DescriptionEdm.StringtextThe item's text.Alwaysraid_items.description
StatusEdm.StringtextThe item's status as shown in the log.Alwaysraid_items.status
SeverityEdm.StringtextThe item's severity as shown in the log.Alwaysraid_items.severity
OwnerNameEdm.StringtextThe owner's name.Alwaysraid_items.owner_name
DueDateEdm.Datetext, YYYY-MM-DDDue date.Alwaysraid_items.date_due
CreatedAtEdm.DateTimeOffsettext, an ISO 8601 date and time with offsetWhen the item was created.Alwaysraid_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.

TimeEntries fields
PropertyTypeIn the JSONDescriptionPresentSource
IdEdm.Guidtext, a UUIDThe entry's id. The key.Alwaystime_entries.id
ProjectIdEdm.Guidtext, a UUIDThe project the time was logged against (Projects.Id).Alwaystime_entries.project_id
ResourceIdEdm.Guidtext, a UUIDThe id of the person who logged the time.Alwaystime_entries.resource_id
EntryDateEdm.Datetext, YYYY-MM-DDThe day the time was worked.Alwaystime_entries.entry_date
HoursEdm.DoublenumberHours logged.Alwaystime_entries.hours
BillableEdm.Booleantrue or falsetrue when the time is billable.Alwaystime_entries.billable
InvoiceIdEdm.Guidtext, a UUIDThe invoice the time was billed on (Invoices.Id), when it has been.Alwaystime_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.

Invoices fields
PropertyTypeIn the JSONDescriptionPresentSource
IdEdm.Guidtext, a UUIDThe invoice's id. The key.Alwaysinvoices.id
ProjectIdEdm.Guidtext, a UUIDThe project the invoice is for (Projects.Id), when there is one.Alwaysinvoices.project_id
ClientIdEdm.Guidtext, a UUIDThe id of the client billed, when there is one.Alwaysinvoices.client_id
NumberEdm.StringtextThe invoice number.Alwaysinvoices.invoice_number
StatusEdm.Stringtextdraft, issued, paid or void.Alwaysinvoices.status
CurrencyEdm.StringtextThree letter currency code.Alwaysinvoices.currency
IssueDateEdm.Datetext, YYYY-MM-DDIssue date.Alwaysinvoices.issue_date
DueDateEdm.Datetext, YYYY-MM-DDDue date.Alwaysinvoices.due_date
TaxPctEdm.DoublenumberTax rate in percent.Alwaysinvoices.tax_pct
CreatedAtEdm.DateTimeOffsettext, an ISO 8601 date and time with offsetWhen the invoice was created.Alwaysinvoices.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.

InvoiceLines fields
PropertyTypeIn the JSONDescriptionPresentSource
IdEdm.Guidtext, a UUIDThe line's id. The key.Alwaysinvoice_lines.id
InvoiceIdEdm.Guidtext, a UUIDThe invoice the line is on (Invoices.Id).Alwaysinvoice_lines.invoice_id
KindEdm.Stringtexttime, milestone, manual, retainer or overage.Alwaysinvoice_lines.kind
DescriptionEdm.StringtextThe line's text.Alwaysinvoice_lines.description
QuantityEdm.DoublenumberQuantity.Alwaysinvoice_lines.quantity
UnitPriceEdm.DecimalnumberPrice per unit, in the invoice's currency.Alwaysinvoice_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.

Tickets fields
PropertyTypeIn the JSONDescriptionPresentSource
IdEdm.Guidtext, a UUIDThe ticket's id. The key.Alwaysitsm_tickets.id
RefEdm.StringtextThe reference shown to people.Alwaysitsm_tickets.ref
RecordTypeEdm.Stringtextticket or incident.Alwaysitsm_tickets.record_type
TitleEdm.StringtextThe ticket's title.Alwaysitsm_tickets.title
TicketTypeEdm.Stringtextbug, feature, question or task, when set.Alwaysitsm_tickets.ticket_type
CategoryEdm.StringtextThe category chosen for the ticket.Alwaysitsm_tickets.category
PriorityEdm.StringtextThe ticket's priority.Alwaysitsm_tickets.priority
StatusEdm.Stringtextnew, assigned, in_progress, waiting, resolved, closed or cancelled.Alwaysitsm_tickets.status
RequesterNameEdm.StringtextThe name of the person who asked.Alwaysitsm_tickets.requester_name
SlaBreachedEdm.Booleantrue or falsetrue when a service target was missed.Alwaysitsm_tickets.sla_breached
CreatedAtEdm.DateTimeOffsettext, an ISO 8601 date and time with offsetWhen the ticket was opened.Alwaysitsm_tickets.created_at
ResolvedAtEdm.DateTimeOffsettext, an ISO 8601 date and time with offsetWhen it was resolved, when it has been.Alwaysitsm_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.

Deals fields
PropertyTypeIn the JSONDescriptionPresentSource
IdEdm.Guidtext, a UUIDThe deal's id. The key.Alwayscrm_deals.id
NameEdm.StringtextThe deal's name.Alwayscrm_deals.name
ValueEdm.DecimalnumberThe deal's value, in its currency.Alwayscrm_deals.value
CurrencyEdm.StringtextThree letter currency code.Alwayscrm_deals.currency
StatusEdm.Stringtextopen, won or lost.Alwayscrm_deals.status
ProbabilityEdm.DoublenumberChance of winning, in percent.Alwayscrm_deals.probability
ExpectedCloseEdm.Datetext, YYYY-MM-DDExpected close date.Alwayscrm_deals.expected_close
CreatedAtEdm.DateTimeOffsettext, an ISO 8601 date and time with offsetWhen the deal was created.Alwayscrm_deals.created_at
WonAtEdm.DateTimeOffsettext, an ISO 8601 date and time with offsetWhen the deal was won, when it has been.Alwayscrm_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.

OData query options
OptionApplied by the feedNote
$filterNoIgnored. The whole set is returned and the client filters it. Power BI and Excel do this on their own.
$selectNoIgnored. Every property is returned.
$top, $skipNoIgnored. There is no paging: one request returns the whole set up to the row limit.
$orderbyNoIgnored. Rows come in a fixed order (see each set).
$expandNoIgnored. Join sets in the client on their Id fields.
$count, $search, $format, $applyNoIgnored.

Errors

Errors are JSON of the form { "error": "message" } (not the OData error format).

OData feed errors
StatusMessageWhen
401Unauthorized - 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.
404Unknown 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.
500Query failedThe 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

Read one entity set: request
curl "https://luceryn.example.com/api/odata/v1/Projects" \
  -H "Authorization: Bearer rpt_EXAMPLE_TOKEN_REPLACE_ME"
Read one entity set: answer
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"
    }
  ]
}
The service document
{
  "@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