How the OpenProject API v3 fits reporting and integration work
When a team needs OpenProject data in another system or a custom report, the supported route is the OpenProject API v3, a REST interface that exposes projects, work packages and related records to tools your team controls. Reporting tools, data warehouses, finance systems and internal portals can all read through it, and integrations that write data back use the same interface. Because your OpenProject instance runs in your own infrastructure, the API endpoints, the credentials and the data that moves between systems stay inside the network boundary you define, which matters when a security review asks where project data travels.
Before choosing a design, confirm three things with your OpenProject administrator. First, the maximum API page size configured on the instance, because a request that asks for more values on one page fails, so reporting jobs must page through results. Second, whether the interactive APIv3 documentation view is enabled, since it lets engineers test endpoints and read the exact fields each resource returns for the version you run. Third, whether browser-based clients need access, because CORS headers for APIv3 and the OAuth token endpoint are configured per list of allowed origins. The wildcard * is not suitable for authenticated resources, so a dashboard hosted on another domain needs that domain listed explicitly, and the list should be reviewed whenever you add a new front end.
What you need before calling the OpenProject API
API access depends on how your OpenProject instance is configured, so the items below need an owner before any code is written. Each card covers one decision or check that connects your release, your administrators and your integration account to a working call.
Edition and version you run
Confirm whether you run the Community edition or an Enterprise plan, and which release is installed. Plan features such as single sign-on and some integrations depend on the edition, and API behavior can change between releases. Record the exact version in your integration design so that every later test is tied to a known release. Check the version-specific API behavior in the release notes before you rely on a field or endpoint.
Release notesAdministrator access for API settings
The interactive API documentation and the CORS settings are administration options, so someone with administrator rights must enable them. Agree in advance who makes those changes and who approves them. Without that access, your developers will test against a documentation view they cannot open and a browser client that fails on preflight requests.
HTTPS endpoint and proxy path
Decide the public base URL that clients will call, including any path prefix added by a reverse proxy. Serve it over HTTPS and confirm that the proxy forwards the API path without rewriting it. A mismatch between the URL in your configuration and the URL clients use is a common cause of failed calls and of redirects that drop authentication headers.
Authentication method
Choose how the integration authenticates before you build it. Personal API tokens suit scripts and reporting that act as one user, while OAuth applications suit integrations that act for many users. Each method has different revocation, rotation and audit consequences. Confirm which methods your edition and administrator settings allow, and document the account each integration uses.
Page size and data volume limits
Ask an administrator for the maximum API page size set on your instance, and design queries to page through results instead of requesting everything at once. Requests for more values than the limit fail, so a report that works on a small test project can break on production data. Estimate the number of work packages and projects each report touches before you set page sizes in the client.
Browser origins and allowed domains
If a browser application will call the API, list the exact origins that need access. The wildcard setting is not suitable for authenticated resources, so each allowed origin must be named explicitly. Keep this list under change control, because every entry widens the set of sites that can make authenticated requests to your instance.
API and webhooks docsHow to configure API access for a reporting integration
This sequence takes an OpenProject instance from default settings to a reporting integration that reads work packages through APIv3 in full pages. Each step ends with a check so the reporting team knows the access works before the job depends on it.
Confirm who owns the API settings
An OpenProject administrator makes the changes in this sequence, so the reporting team should agree on the owner before anything is touched. Ask the administrator to confirm the instance version and whether the interactive API documentation is already enabled, since the documentation view is switched on by an administrator when wanted. Record the instance URL the reporting job will call, because every later check depends on it. The step is done when the owner, the instance URL and the current settings are written down in the integration ticket.
Enable the interactive API documentation if wanted
If the team needs to explore endpoints before writing the job, an administrator enables the interactive APIv3 documentation view in the administration settings. Use it only as a reference for request shapes and filters, and note that it is a convenience for developers rather than the place where production credentials are used. Open the documentation page from a logged-in browser session to confirm it loads. The step is done when the documentation renders for an administrator and the team has recorded whether it stays enabled in production.
Set the maximum page size for the job
Administrators set a maximum API page size, and any request asking for more values on one page fails. Choose a value the reporting job can page through comfortably, then confirm the number with the team that owns the job so the paging loop matches it. Keep the value consistent with the other integrations that share this instance, because changing it affects all callers. The step is done when the chosen maximum is saved and written into the job's configuration as the page size it requests.
Create the credential the integration uses
Create a dedicated user or token for the reporting integration instead of reusing a personal login, so its access can be reviewed and revoked on its own. Give that account only the project and work package visibility the reports need, and confirm with the administrator which token type the instance allows for this kind of caller. Store the credential in the job's secret store, never in the query code or a shared document. The step is done when the credential exists, its permissions match the report scope, and the team can name its owner.
Test a read request against a known project
Send one read request for work packages in a project whose contents the team already knows, such as a test project with a known count of items. Authenticate with the new credential and request a small page so the response is easy to compare. Check that the status is successful, that the returned items match the expected project, and that the total reported in the response agrees with what the team counted in the interface. The step is done when the values match and the team has saved the request as a reference for later checks.
Confirm that an oversized page request fails
Send a request for more values in one page than the configured maximum, and confirm that OpenProject rejects it as the documentation describes. This check proves the limit is active and that the job cannot silently assume a larger page. Record the response so the team knows what error to expect if someone later changes the configuration. The step is done when the oversized request fails as documented and the reporting job's own paging logic is confirmed not to send such a request.
Page through a full query and reconcile totals
Run the reporting query page by page with the configured size, following the paging information in each response until no further pages remain. Compare the number of items collected with the total the query reports, and compare a sample of rows with the same items in the interface. Ask the reporting team to confirm the job handles an empty last page and an unchanged query during the run. The step is done when the collected count equals the reported total and the sampled rows match, which is the point where the integration can be handed to the team that depends on it.
Why page size limits break reporting jobs
A reporting job that asks OpenProject for more values on one page than the administrator allows will fail, so the first design decision is to treat the page size as a configured limit rather than a fixed number in your code. OpenProject administrators set a maximum API page size, and any request that asks for more values in one page is rejected. Scripts written against a demo instance often work until they meet a production work package set that is ten times larger, and that is when the failure appears. Request a smaller pageSize on every call, read the paging metadata in each response, and follow the links the API returns instead of computing offsets yourself.
Size each page against the limit your administrator has configured, not against the default you remember from documentation. Ask the administrator for the current maximum before you write the job, and store it as a setting so the job can be adjusted without a code change. For large work package sets, filter by project or by a saved query so each run covers a bounded population, then page through that population until the response reports no further pages. Record the total count the API returns at the start and end of the run, so a job that silently drops records between pages shows up as a count mismatch rather than as a wrong report.
Retest the job whenever the page size limit changes, including after an OpenProject upgrade, because the limit is an administrator setting that an upgrade does not necessarily leave alone. Run the job against a copy of production data with the new limit in place, confirm that a request at the limit succeeds and a request above it fails with a clear error your job handles, and compare record counts with a known baseline. Also check that any filter or sort parameter your job relies on still behaves the same in the new release, and confirm the exact limit and upgrade behavior with your OpenProject administrator and the release notes for your version.
CORS settings for browser-based clients
A reporting service, scheduled export or integration backend that calls OpenProject from its own infrastructure does not run inside a browser, so the browser same-origin policy and CORS do not apply to it. The service sends its requests directly to the APIv3 endpoints with an API token or OAuth token and reads the responses without any CORS headers. Changing CORS settings for this type of client gives no benefit and widens the browser attack surface for no reason.
- No CORS configuration needed: Server-to-server calls work with the existing API authentication alone.
- Keep authentication server-side: Store tokens in the service's secret store, not in client code.
- Respect the page size limit: Paginate requests so no single page exceeds the maximum that the administrator has set.
- Review token scope: Give the reporting account read access only to the projects it needs.
Before changing any CORS setting, confirm that the calling code truly runs in a browser. If it runs on a server, leave the allowed origins list empty for that purpose.
A browser dashboard or single page app served from a different origin than OpenProject cannot read API responses unless OpenProject returns the matching CORS headers. Enabling CORS for APIv3 and the OAuth token endpoint lets that application call the API and complete sign-in from its own origin. Only origins that the organization controls and has reviewed should be added, because every listed origin can make authenticated requests that the user's browser session or token allows.
- Enable APIv3 and token endpoint: Turn on CORS for both APIv3 and the OAuth token endpoint, since the browser must exchange codes and refresh tokens.
- List exact origins: Include the scheme, host and port for each application, such as an origin of the dashboard host.
- Avoid the wildcard: Do not use
*for authenticated resources, because it allows any website to read responses made with a user's credentials. - Separate environments: Keep development, test and production origins in separate configurations.
- Retire unused origins: Remove entries when an application is decommissioned.
Ask the application team for the exact origin of every build that calls OpenProject, including preview and staging deployments.
Verification confirms that each environment accepts only the origins its applications use and rejects everything else. The check should run against each environment separately, because a list copied from staging into production often carries stale or test origins. Testing is best done with a browser developer tool or a command-line request that sends an Origin header and inspects the Access-Control-Allow-Origin response header.
- Send a test origin: Request an API endpoint with an
Originheader that is on the list and confirm the header is echoed back. - Send an unlisted origin: Confirm that an origin not on the list receives no matching allow header.
- Check the token endpoint: Repeat both checks against the OAuth token endpoint, since sign-in fails silently when only APIv3 is configured.
- Record the list per environment: Keep the approved origins in version control or the change record so reviews are repeatable.
- Recheck after upgrades: Confirm the settings still apply after each OpenProject upgrade.
Compare results with the settings documented in the administration guide for your version, and confirm the exact configuration keys with your administrator before the change goes live.
Origin lists tend to grow quietly as teams add tools, so CORS settings need an owner and a review cycle like any other access control. The security team should approve each origin against a named application, a business owner and a retirement condition. Auditors and security reviewers usually ask for evidence of who approved the list and when it last changed, so the record matters as much as the setting itself.
- Named owner per origin: Every entry maps to an application and an accountable team.
- Change approval: Additions go through the same change process as other access rule changes.
- Periodic review: Review the list on a fixed schedule and remove entries no application uses.
- Logging and monitoring: Review web server or proxy logs for requests from unexpected origins where your deployment exposes them.
- Documented exceptions: Record any temporary origin with an expiry date.
Ask your DeployOpen contact to include the origin list in the handover documentation so the platform team can maintain it.
How a reporting request reaches OpenProject
The request starts in a reporting service or a browser client inside the client's own network. It passes the reverse proxy, then reaches the APIv3 endpoint, where the server checks the origin for browser calls and the requested page size before it authenticates the caller and returns the result. Teams should confirm that the proxy forwards the headers the server expects, that allowed origins are listed explicitly, and that page sizes match what reports need.
Reporting request path through the proxy, APIv3 checks and authentication.
Mapping OpenProject API resources to reporting fields
This table maps the main API v3 resources to the fields a reporting or integration job usually reads, and notes which values are read-only and which must be matched by configured name. Use each row as a checklist for your mapping specification before writing client code. The main takeaway is that custom field keys and status or type identifiers can differ between instances, so the mapping should be built from each instance's own schemas.
| Resource | Fields a report usually needs | Read-only or writable | What to confirm in your instance |
|---|---|---|---|
| Projects | Identifier, name and parent project reference | Read-only for reporting jobs | Use the identifier as the stable join key across exports |
| Work packages | Id, subject, start and due dates, percentage done, estimated time | Id and timestamps are read-only; updates need the current lock version | Which custom fields appear on each work package type in the project |
| Statuses | Status id and name, closed flag | Read-only in reporting | Status names are set per instance, so map by id where possible |
| Types | Type id and name, such as task or milestone | Read-only in reporting | Whether your teams renamed types, which breaks name-based mappings |
| Users | User id, display name and linked author or assignee | Read-only through reporting tokens | Which users the token can see, since visibility follows the token owner's permissions |
| Time entries | Hours, spent-on date, linked work package and project, activity | Created by users; read-only for most reporting use | Whether billing needs the activity field and how it is named locally |
| Custom fields | Values set by your teams, such as cost center or client code | Keys are generated per instance and read-only in schemas | The configured field name, matched through the schema for each type |
Integration patterns DeployOpen builds on the API
Most OpenProject API work falls into a few recurring shapes, and each one trades polling frequency against load and data freshness. The right shape depends on how much data moves, how often it changes, and what your governance rules allow a second system to hold.
Scheduled reporting extracts
A job reads work packages, time entries or project status on a fixed schedule and writes the result to a data warehouse or report file. Pulls are paged, so the job must follow page size limits set by your administrator and handle partial pages. Freshness is only as current as the last run, so a nightly job suits monthly steering reports, while anything operational needs a shorter interval. Confirm which fields the reporting account may read before the first run.
API and webhooks docsRead-only dashboards
A dashboard tool queries OpenProject through the API to show live counts, milestones or workload across projects. Because every panel triggers requests, refresh intervals drive load directly, and many open browser tabs multiply it. Browser-based dashboards also need CORS configured for their exact origin, since a wildcard is not suitable for authenticated resources. Cache results on a short timer and check that the dashboard account only holds read permissions.
Sync jobs between systems
A two-way job keeps OpenProject and another system, such as an ERP or HR tool, aligned on projects, users or status. Each side can overwrite the other, so you must decide a system of record per field and how conflicts are resolved before writing code. Sync frequency sets the window in which stale data can cause errors. Log every write with its source, and test the job against a copy of the data first, because bulk changes are hard to reverse.
Event-driven exchanges
Webhooks push a notification when a work package or time entry changes, and the receiver then calls the API to read the full record. This removes most routine polling and gives fresher data at lower steady-state load. The trade-off moves to reliability: the receiver must verify signatures, tolerate repeated or out-of-order deliveries, and run a scheduled reconciliation to catch missed events. Confirm the webhook event list and project scoping against your release before design.
Governed bulk loads
Large one-time or periodic loads of historical data write records through the API when no importer fits. The governance question is who approves what is written, since read-only attributes such as author and creation date need special handling and every load should be traceable. Load in batches sized to your page and attachment limits, and run count and sample checks afterward. Ask your team to set an approval step for loads that touch many projects.
Common API failures and how to fix them
This table pairs each common APIv3 failure with its likely cause and the fix to try first. Read it by matching the symptom you see in your client or browser console to a row, then working through the cause column before changing server settings. The main takeaway is that most failures come from page size, origin allow lists, credential scope or filter defaults rather than from the API itself.
| Symptom | Likely cause | Fix |
|---|---|---|
| Request fails when asking for many values on one page | The requested page size is above the maximum that an administrator set for the instance | Lower the page size in the request and page through results, or ask the administrator whether the limit should change |
| Browser console shows a CORS error on API calls | The calling origin is missing from the allowed origins list for APIv3 or the OAuth token endpoint | Add the exact scheme, host and port of the front end to the allowed origins, then retest from the same origin |
| CORS fails even though the origin looks correct | A wildcard was used for an authenticated resource, or the origin differs by a trailing slash, port or scheme | Use an explicit origin list instead of the wildcard and compare the origin string character by character |
| Requests return authentication errors after working earlier | The credential has expired, was revoked, or the client is sending an old value | Issue a new token, update the stored secret in the integration, and confirm the client reads the new value |
| Authentication errors on OAuth-protected calls | The token lacks the scope the endpoint needs, or the wrong token type is being sent | Check which scopes the application requested and reissue the token with the scope the endpoint requires |
| Expected work packages or projects are missing from results | The query or filter excludes closed, archived or otherwise inactive items by default | Add an explicit status or archive filter to the query and confirm the result count against the interface |
| Results change between runs without data changes | Pagination is being read from the first page only, or sort order is not fixed | Follow the next-page links until the collection ends and sort on a stable field before paging |
| Access denied on data that exists in the interface | The user behind the credential lacks the role or project membership needed for that data | Check the user's project roles and permissions, then retest with the same account the integration uses |
Questions teams ask before building on the OpenProject API
Can our own developers build a reporting integration on the OpenProject API?
Yes, if your developers are comfortable with REST APIs, JSON and token-based authentication. The API v3 is documented in the system administration guide, and an interactive documentation view is available when an administrator enables it. The first build is usually a read-only report that pulls work packages, projects or time entries into a data store. The harder parts are paging through large result sets, handling custom fields with their own identifiers, and keeping credentials secure. Teams with no spare capacity or no prior API work often choose a fixed-scope partner for the first version and keep ownership of the code afterward.
What drives the effort of an OpenProject API integration?
Effort follows four factors more than the endpoint count alone:
- Data volume: the number of work packages, projects and time entries, and how often the extract must refresh. Your administrator's maximum API page size determines how many requests a full pull needs.
- Resource count and custom fields: each custom field, status, type and relation must be mapped to your reporting model.
- Browser clients: if a web page calls the API directly, CORS must be configured for the exact origins you allow.
- Security review: token handling, scoped access and logging all need to be documented for your reviewers.
Ask any partner to price each factor separately so you can see which one moves the quote.
How long does an OpenProject API reporting integration take?
Duration depends on the scope you agree in writing, so no fixed timeline applies across projects. A narrow report over one project with standard fields is a much smaller job than a multi-source pipeline with custom fields, historical backfill and a security review. Ask for a timeline tied to named deliverables: the data model, the extraction job, the reporting output, test runs against a non-production instance and the handover documentation. Any estimate should state which factors it assumes, such as the number of custom fields and the size of the instance.
What do we need to provide before the API work starts?
Plan to provide the following before work begins:
- A non-production OpenProject instance that matches your production version, so changes can be tested safely.
- An administrator account, or a named contact who can enable the API documentation view, set the maximum page size and configure allowed CORS origins.
- Read-only test users with the project roles the report needs, plus a list of the projects in scope.
- A description of the consuming system, its hosting location and the people who approve access.
- Access to your identity and secrets tooling if tokens must be stored securely.
Missing any of these typically extends the schedule, so confirm them in the scope document.
Is the OpenProject API included in the Community or Enterprise edition?
The Community edition is free and includes the core work package, project and time tracking features that a reporting integration usually reads. The researched pricing page does not list API access as an Enterprise-only feature, but it lists single sign-on, LDAP group synchronization and custom branding as Enterprise features. Confirm the exact API behavior on your chosen edition with OpenProject before committing, and note that any SSO-based login for the integration would fall under the Enterprise plan. The OpenProject pricing page is the place to check current plan contents.
Can the integration run from a browser, and what are the security limits?
A browser can call the API only when your administrator enables CORS for the exact origins that should be allowed. Wildcard origins are not suitable for authenticated resources, so each allowed origin must be listed explicitly. Browser-side code should not hold long-lived tokens, because anyone who can read the page can read them. Most reporting setups therefore route calls through a server-side component that holds the credential. A security review should check allowed origins, token scope, the token lifetime and whether the browser can reach the API at all.
What happens to the integration when OpenProject is upgraded?
Each release can change API behavior, so an integration needs a regression test against a staging instance before every upgrade. Release notes for each OpenProject version list changes, and recent releases in the supplied facts include 17.7.0, 17.8.0, 17.9.0 and 17.9.2. Ask your partner whether the support arrangement covers upgrade testing of the integration, since that is a recurring effort separate from the initial build.
How DeployOpen scopes and supports API integrations
DeployOpen scopes an OpenProject API v3 integration in writing before any code is written. The scope names the data the integration reads or writes (projects, work packages, time entries, custom fields), the OpenProject instance and version it targets, the account that performs the calls, and who owns the code afterward. It also records the page size the integration will request, the browser origins that need access, and the acceptance tests that prove the work is done. Ask DeployOpen, or any partner, to put these decisions in the written scope so that your administrators and developers review the same contract. Your team should also confirm the maximum API page size set on your instance, because requests for more values on one page fail, and the integration must be built to page through results within that limit.
The build happens inside your infrastructure, against your own OpenProject instance, using the interactive API documentation view where your administrators have enabled it to confirm endpoints and response fields. DeployOpen tests paging with realistic data volumes, checks that the integration follows pagination links instead of assuming a single response holds the full dataset, and verifies CORS for any browser client. Enabling CORS headers for APIv3 and the OAuth token endpoint requires a list of allowed origins, and the wildcard * is not suitable for authenticated resources, so the test plan should include a request from each approved origin and a confirmation that unlisted origins are refused. Authentication is tested with the method you chose, whether a personal API token or OAuth, including what happens when a token expires or is revoked. Ongoing support is available through a retainer when your team needs help with OpenProject upgrades, changes to the integration, or periodic retesting. Confirm the retainer terms, response expectations and the upgrade path in the written agreement before you rely on them.

