Connect Power BI, Excel or Tableau with OData#
The Reportworq Content Store datasource can also be read from outside Reportworq. Each Content Store connection publishes an OData v4 feed: a standard web address that Power BI, Excel, Tableau and other OData clients open directly, with no driver or database file to copy. The feed serves the same tables you see when you use the datasource inside Reportworq, so you can build your own dashboards on job runs, schedules, users, security and integrations in the tool your team already uses.
What the feed serves. The feed exposes the Content Store's own tables and nothing else: every table of the snapshot, plus the catalog tables _stores, _columns and _relationships that describe them. Data models and the views inside the Audit Reports content pack are not published through the feed. In Power BI, Excel or Tableau you join the raw tables yourself. The views in the Audit Reports pack's data models are a worked example of those joins: open one in the data model editor to see which tables and columns it joins, and repeat the join in your BI tool.
Before you begin#
- A saved Reportworq Content Store connection with Enable Integration selected. If you do not have one yet, add it first: see Connect the Reportworq Content Store. A connection whose Enable Integration checkbox is cleared does not serve the feed.
- The API capability on your license. The feed is part of the Reportworq API, so it needs the same API license entitlement as the automation API. See Licensing and entitlements.
- A Local API key, enabled, from Settings ▸ Configuration ▸ API ▸ Local API keys. This is the same kind of key the automation API (
/api/v1) uses. Name it for the tool that will use it, for example "Power BI finance dashboard". See Server configuration. - The key's workspace must be in the connection's Availability. A Local API key is assigned to one workspace. The feed answers only if the Content Store connection is available to that workspace.
- A network path from the BI tool to the Reportworq server, over HTTPS. The tool sends the key with every request, so use
https://, never plainhttp://, outside a test machine.
A key opens everything in the snapshot. Read What a key can read before you issue one.
Copy the feed address#
Every Content Store connection has its own feed, and its editor shows the address.
- Go to Settings ▸ Integrations, filter to Datasources, and open your Reportworq Content Store connection.
- In the OData Feed section, find Feed address. If the connection is new, select Save Changes first: until it is saved, the row says "Save the connection first. The feed address uses its id."
- Select Copy. The button changes to Copied. If your browser does not let Reportworq write to the clipboard, a message shows the address so you can copy it by hand.
The address is built on the External URL set in Settings ▸ Configuration (on the Web Server tab) when there is one, and otherwise on the address your browser is using. If your BI tool reaches Reportworq at a different address, for example through a reverse proxy, set External URL first or change the start of the copied address. See Server configuration.
The copied address ends in /odata, and that is the address you give a BI tool. The feed answers at that address and at the ones below it:
| Address | What it returns |
|---|---|
https://<server>/api/v1/content-store/<datasourceId>/odata |
The service document: the list of tables. This is the address you give a BI tool, and the one Copy copies. |
https://<server>/api/v1/content-store/<datasourceId>/odata/$metadata |
The schema (CSDL, as XML): every table, its columns, their types and the table's key. |
https://<server>/api/v1/content-store/<datasourceId>/odata/<table> |
The rows of one table, for example .../odata/job_history. |
https://<server>/api/v1/content-store/<datasourceId>/odata/<table>/$count |
The number of rows in one table, as a plain number. |
<server> is the address you use to reach Reportworq, including the port if it is not the default for HTTPS, for example https://reportworq.example.com:8600. <datasourceId> is the connection's id, already filled in when you copy the address.
Table and column names are case-sensitive, and they are the names the Content Store uses inside Reportworq (job_history, not Job_History). A name that contains a character OData does not allow in a name, such as a space, has that character replaced with _ in the feed: a column called CSV Separator would appear as CSV_Separator. The $metadata document always shows the names to use.
Connect Power BI Desktop#
In Power BI Desktop, select Get data, then OData feed. (If it is not in the short list, select More, search for OData and choose OData Feed.)
Paste the feed address ending in
/odatainto URL and select OK.When Power BI asks for credentials, select Basic on the left.
Enter any User name, for example
api. Reportworq ignores it.Paste your Local API key as the Password.
Tip: if you paste the key into User name by mistake and leave Password empty, the connection still works: with an empty password, Reportworq reads the user name as the key.
In Select which level to apply these settings to, choose the address that ends in
/odata, the root of the feed, so that every table in the feed uses the same credential.Select Connect. The Navigator lists the tables.
Select the tables you want, then Load, or Transform Data to shape them first.
Power BI follows the feed's paging for you, so a large table loads in full. To change the key later, use File ▸ Options and settings ▸ Data source settings, select the feed, and choose Edit Permissions.
Publishing to the Power BI service. To refresh a published report on a schedule, the Power BI service must be able to reach your Reportworq server. For a server inside your network that usually means an on-premises data gateway. Enter the same Basic credential on the data source in the service.
Connect Excel#
- In Excel, go to Data ▸ Get Data ▸ From Other Sources ▸ From OData Feed.
- Paste the feed address ending in
/odataand select OK. - When Excel asks for credentials, select Basic on the left.
- Enter any User name, for example
api, and paste your Local API key as the Password. If you paste the key into User name and leave Password empty, that works too. - In Select which level to apply these settings to, choose the address that ends in
/odata. - Select Connect. In the Navigator, select Select multiple items if you want more than one table, tick the tables, and select Load.
To pick up newer data, select Data ▸ Refresh All. To change the key, use Data ▸ Get Data ▸ Data Source Settings.
Connect Tableau#
- In Tableau Desktop, under Connect ▸ To a Server, choose OData (under More if it is not listed).
- In Server, paste the feed address ending in
/odata. - In Authentication, choose Username and Password.
- Enter any Username, for example
api, and paste your Local API key as the Password. A key pasted into Username with an empty Password is accepted too. - Select Sign In, then drag the tables you need onto the canvas and define their relationships.
Tableau imports an OData source as an extract. Refresh the extract to see newer data.
Other ways to send the key#
The feed looks for the key in this order and uses the first it finds:
| Method | How | Use it for |
|---|---|---|
accessToken header |
accessToken: <key> |
Scripts and the API tester |
accessToken query parameter |
...?accessToken=<key> at the end of the address |
A tool that can send neither a header nor Basic |
| HTTP Basic | User name anything, password the key (or the key as the user name, with an empty password) | Power BI, Excel and Tableau, as above |
A Bearer token in the Authorization header is never read as a key.
Power Query's Web API option. In Power BI or Excel you can also write the query yourself in the Advanced Editor and keep the key out of the address:
OData.Feed("https://<server>/api/v1/content-store/<datasourceId>/odata", null, [ApiKeyName="accessToken"])
When Power Query asks for credentials, choose Web API and paste the key. Power Query then adds it to each request as the accessToken query parameter.
Anonymous with the key in the address. Some tools can only open an address. You can choose Anonymous in Power BI or Excel and add ?accessToken=<key> to the feed address. This works, but it is less safe: the key sits in the address itself, so it is saved inside the .pbix or workbook, shown to anyone who can open its query settings, may be written to proxy and server logs, and is carried in every next-page link the feed returns. Prefer Basic.
What a key can read#
Once the key's workspace is in the connection's Availability, the key reads the whole snapshot: every workspace's rows, and the system-level tables such as users, groups, entitlements, integrations and licensing. The feed applies no workspace filter and no per-user security. Secrets (passwords, API keys, tokens, connection strings and confidential fields) are removed before the snapshot is built, so they are not in the feed either. See Understand what it exposes.
There are no per-key permissions: a key either reaches the whole feed or none of it. Treat every key whose workspace can use the Content Store connection as a credential to all of that data:
- Keep the Content Store connection's Availability to a workspace used for administrative or operational reporting, as you would for reporting inside Reportworq.
- Issue keys for that workspace only to the people and tools that should see cross-tenant and administrative data, and give each tool its own named key so you can disable one without breaking the others.
- When someone leaves, or a
.pbixor workbook goes somewhere it should not, disable or change that key in Settings ▸ Configuration ▸ API. - To close the feed for a workspace, remove that workspace from the connection's Availability, or disable its keys. To close it for every key, clear the connection's Enable Integration checkbox and save: the feed then answers 404, exactly as for a connection that does not exist.
Every response carries Cache-Control: no-store, so browsers and proxies are told not to keep a copy of the data. Reads through the feed are not written to the audit logs. The server log records each request with the key's name, the workspace, the datasource and the table read, but never the filter values.
Cross-tenant exposure. Anyone holding a key for a workspace in the connection's Availability can read data from every workspace on the instance.
How fresh the data is#
The feed reads the same snapshot of the Content Store that reports and jobs use. Each feed request checks the snapshot's age first: if it is older than the connection's refresh interval, the request rebuilds it and then answers. The interval is 10 seconds unless you change it, so by default what the feed returns is at most about 10 seconds behind Reportworq. When a report or job has refreshed the snapshot more recently, the feed sees that newer data.
The snapshot is rebuilt from scratch, so on a large instance the first request after a burst of changes can take noticeably longer than the ones that follow.
The data is only as fresh as your BI tool's last refresh: Power BI, Excel and Tableau keep what they loaded until you refresh.
Change the refresh interval#
A Power BI or Excel refresh sends many requests, one per page of every table. On a large instance, rebuilding the snapshot every 10 seconds during that refresh adds load and time. You can let the feed use an older snapshot instead.
- Go to Settings ▸ Integrations, filter to Datasources, and open your Reportworq Content Store connection.
- In the OData Feed section, find the Feed refresh row and set At most every to a number of seconds, from 10 to 3600 (one hour).
- Select Save Changes.
A larger value means less load, and data up to that many seconds old. The setting applies to the feed only: reports, jobs and data models inside Reportworq still refresh the snapshot when it is more than 10 seconds old. A value outside 10 to 3600 shows the message "Refresh the snapshot for the feed at most every 10 to 3600 seconds." under the box as soon as you enter it, and Save Changes refuses it with an alert.
Query the feed directly#
You do not need these to use Power BI, Excel or Tableau, which build their own requests. They are useful in scripts, in the browser, and in the API tester.
| Option | What it does |
|---|---|
$select |
Return only the columns you name. |
$filter |
Return only the rows that match. Supports eq, ne, gt, ge, lt, le, and, or, not, in, the functions contains, startswith, endswith and length, and comparison with null. |
$orderby |
Sort by one or more columns, asc or desc. |
$top, $skip |
Return the first n rows, or skip n rows. |
$count |
$count=true adds the total number of matching rows to the response. |
Option names need the $. filter=Enabled eq 1 without the $ is not an OData option: the feed ignores it and returns every row. Write $filter=Enabled eq 1.
Count without reading rows. .../odata/<table>/$count returns only the number of rows, as plain text, for example 1284. It honors $filter, so .../odata/job_history/$count?$filter=StartTime ge '2026-11-01' counts the runs since the start of November. No other option applies to it.
Any other query option, such as $expand, $apply or $search, and any other function in $filter, such as tolower, toupper or trim, answers 501 Not Implemented. Relationships between tables are not navigable in the feed: join them in your BI tool, using the _relationships table to see which column points at which.
The feed is read-only. Only GET is answered. Any other method, such as POST, PUT, PATCH, DELETE or HEAD, answers 405 Method Not Allowed with an Allow: GET header.
How values compare. Each column has one of three types: a whole number (Edm.Int64), a decimal number (Edm.Double), or text (Edm.String). Dates and times are text in ISO form, so compare them with a quoted date, for example CreatedUtc gt '2026-01-01'. Yes-or-no values are numbers, 1 or 0, with a readable Yes or No beside some of them in a column ending in Text (for example Enabled and EnabledText). contains, startswith and endswith are case-sensitive. ne follows OData rather than SQL: Name ne 'x' also returns rows whose Name is empty (null).
Paging. Large results come back a page at a time, 1,000 rows per page. A client can ask for larger pages, up to 5,000 rows, with the Prefer: odata.maxpagesize=<n> header. A page can also end early, with fewer rows, once it holds about 16 MB of data, so a table with very large text values still pages safely. Each page except the last ends with an @odata.nextLink, the address of the next page, which keeps your query options; request it to continue. Power BI and Excel follow it automatically.
- The next-page link holds a
$skiptoken. It is opaque: it marks where the last page ended. Do not build or change one; a$skiptokenthe feed did not issue answers 400. - Ordered by the key, a traversal of a table keyed on its data is exact. Without
$orderby, rows come back in key order (see Row keys). For a table keyed on its data, such as a store keyed on itsId, every row is then delivered exactly once even if the snapshot is rebuilt in the middle of a read. A page continues from the position of the last row delivered, not from a row number, so rows added, removed or changed elsewhere in the table do not shift the pages. With$orderby, the key is added after your columns to break ties, so the order is always complete. - When data changes between pages. Rows changed, inserted or deleted elsewhere are delivered at most once, and none is missed. If a row's list was renumbered before the page boundary, for example a job's reports when one is added or removed ahead of the position, the next page answers 409 "refresh again" rather than risk a repeat or a gap. If you sort with
$orderbyand a row's sorted value changes between pages, that row can appear twice or be missed. Sort by the key for a read that must be exact. In a table keyed onOrdinal, items reordered within one list on both sides of the page boundary, such as two reports swapped, can make one appear twice and the other be missed; refresh again for an exact copy. $skipapplies to the first page only. The next-page links continue from where the previous page ended.- Rarely, a read answers 409. The snapshot changed while you were paging so that the position where the last page ended no longer holds the same row. The feed answers 409 Conflict, "The data changed while paging; refresh again." Refresh again from the first page.
Examples. Send each with your key, for example in an accessToken header. Spaces and quotes are shown as typed; your tool or script URL-encodes them.
The 50 most recent runs, with who started them and how long they took:
https://<server>/api/v1/content-store/<datasourceId>/odata/job_history?$select=JobName,RunDate,StartedBy,ElapsedText&$orderby=StartTime desc&$top=50
How many outputs failed since the start of November, with the first 100 of them:
https://<server>/api/v1/content-store/<datasourceId>/odata/job_history_outputs?$filter=Success eq 0 and StartTime ge '2026-11-01'&$count=true&$top=100
Enabled users whose email address is at one domain:
https://<server>/api/v1/content-store/<datasourceId>/odata/auth_users?$select=Name,Email&$filter=Enabled eq 1 and endswith(Email,'@example.com')
Discover the schema first. Read $metadata for every table's columns and types, or query _stores and _columns through the feed, before you write a filter.
Row keys#
OData needs a key on every row. The feed takes each table's key from the Content Store's catalog, not from the data, so a table keeps the same key from one snapshot to the next. $metadata shows the key of every table, and the key_columns column of _stores lists the same key for every derived table. Use $metadata or _stores.key_columns as the authoritative list; the table below is a summary.
| Table | Key |
|---|---|
A store whose items belong to a workspace (its row in _stores has scope = workspace) |
WorkspaceId and Id together, because the same id can appear in two workspaces |
| Any other store | Id |
integrations |
IntegrationType and Id |
A junction table (rel_*), one row per entry of a parent's id list |
from_id and ordinal, with WorkspaceId in front when the parent store belongs to a workspace |
Job child tables (job_reports, job_worksheets, job_worksheet_parameters, job_parameters, job_burst_sets, job_distributor_settings, job_destinations, job_output_formats) |
WorkspaceId, job_id and Ordinal |
Run-history child tables (the job_history and job_preview tables ending in _outputs, _output_files, _distributions, _run_distributions and _errors) and job_history_problems |
WorkspaceId, run_id and Ordinal |
integration_workspaces |
IntegrationType, IntegrationId and WorkspaceId |
auth_role_holders |
EntitlementId, UserId and AuthenticationType |
workspace_members |
WorkspaceId, UserId and AuthenticationType |
run_statuses |
Code |
calendar_days |
Date |
auth_sign_ins |
Id (the System Log file and line the sign-in was read from) |
_stores |
table |
_columns |
table and column |
_relationships |
from_table, from_column, to_table, to_column and kind |
Ordinal is the row's position within its parent, counted from 0: the order of a job's reports, or of the outputs of one run. It is a real column you can read, filter and join on. Because it is a position, it changes if an item is added or removed ahead of it in the same list, so do not store an Ordinal to find a row later. Join on the real id columns, using _relationships to see which column points at which.
A table with no natural key would get a synthetic _RowId column instead. No table in the current catalog needs one, but if you ever meet one, treat it as unstable: it can change every time the snapshot is rebuilt, so do not join on it or store it, and do not sort on it ($orderby=_RowId answers 501).
Try it in the API tester#
A system administrator can send these requests from inside Reportworq before configuring a BI tool. Open Settings ▸ Integrations ▸ API tester, select Load command, and in the Content Store OData feed (api/v1) group pick service document, $metadata, read a table or count a table. Replace the markers with your datasource id, a table name (for read a table and count a table) and your Local API key, then select Send. Count a table has a $filter row you can turn on to count only the matching rows. See Try the API in Reportworq.
Troubleshooting#
Errors from the feed come back as OData errors, with a code and a message that say what went wrong.
| Status | Meaning | What to do |
|---|---|---|
| 400 Bad Request, "REST API not available for this license" | Your license does not include the API capability. | See Licensing and entitlements. |
| 400 Bad Request, any other message | The query could not be read: a syntax error in $filter or $orderby, a column name that does not exist, an unknown $ option, the same option given twice, or a $skiptoken the feed did not issue. |
Fix the query. Check names and their case against $metadata. |
| 401 Unauthorized | The key is missing or wrong ("Missing Access Token", "Invalid Access Token"), or the Reportworq API is turned off for the key's workspace ("The Reportworq API is disabled."). | Check that the tool is sending the key (in the accessToken header or parameter, or as the Basic password), that it is the full key with no extra spaces, and that the key's switch is on in Settings ▸ Configuration ▸ API. In Power BI or Excel, clear the saved credential in Data source settings and enter it again. |
| 400 Bad Request, "The Content Store could not answer this query." | The snapshot's tables or columns changed under the query, for example after an upgrade, and a name in the query no longer exists. | Check the names against $metadata and refresh again. In Power BI or Excel, open the Navigator again so it picks up the current tables. |
| 404 Not Found, about the datasource | The datasource id is unknown or malformed, is not a Content Store connection, the connection's Enable Integration checkbox is cleared, or the connection is not available to the key's workspace. The feed gives exactly the same answer to all of these on purpose, so that a key cannot be used to find out which connections exist. | Copy the address again from the connection's OData Feed section. Check that Enable Integration is selected. Then check which workspace the key belongs to, and add that workspace to the Content Store connection's Availability. |
| 404 Not Found, "No entity set has that name." | The table name is wrong, or in the wrong case. | Check the name against the service document or $metadata. |
| 405 Method Not Allowed | The request used a method other than GET, such as POST or HEAD. The feed is read-only, and the response carries Allow: GET. |
Send GET. |
| 409 Conflict, "The data changed while paging; refresh again." | Rare. While you were paging, the snapshot changed so that the position where the last page ended no longer holds the same row, for example because an item was added or removed ahead of it in the same list. See Paging under Query the feed directly. | Refresh again. The refresh starts from the first page. |
| 501 Not Implemented | The request uses a query option, operator or function the feed does not support. | Remove it. See Query the feed directly for what is supported. If a Power BI or Excel refresh reports it, note which query step fails and contact support. |
| 503 Service Unavailable, "The Content Store snapshot is being built." | The snapshot could not be built in time to answer. The response carries Retry-After: 10. |
Wait about 10 seconds and refresh again. |
| 503 Service Unavailable, "The Content Store read took too long and was stopped." | One request read for more than 60 seconds and was stopped, so that a single query cannot hold the server. The response carries Retry-After: 30. |
Narrow the query: add a $filter, $select only the columns you need, or ask for smaller pages with Prefer: odata.maxpagesize. Then refresh again. |
The first refresh is slow. Expected on a large instance after many changes: the snapshot is being rebuilt. See How fresh the data is. If every refresh is slow, raise the connection's refresh interval: see Change the refresh interval.
Power BI keeps asking for credentials for each table. The credential was saved for a single table's address. In Data source settings, remove it and connect again, choosing the address that ends in /odata as the level.
Related pages#
- Connect the Reportworq Content Store for adding the datasource, its Availability, its editor, and what it exposes.
- Audit Reports content pack for ready-made reports on the same data, and data model views that show how to join its tables.
- The automation API for Local API keys and the rest of
/api/v1. - Try the API in Reportworq for sending a request from the server.
Feedback on this page
Comments, questions, requests, or something missing or unclear? Email us - the page you are on is filled in for you.
Email feedback on this pageOr write to support@reportworq.com directly.