Who's the BOSS? APIs That Allow Dynamic SQL
Overview
If you have integrated with Oracle Fusion for any length of time, you know the classic REST entry points: /fscmRestApi/resources for Financials and supply chain, /hcmRestApi/resources for human capital and /crmRestApi/resources for sales and service. Each pillar has its own catalog of resources, and all of them accept a user name and password sent as Basic authentication.
Oracle is now shipping a second set of REST APIs that cuts across all of the pillars. You will see it called BOSS, under the path /api/boss, and Oracle's APEX integration guide expands the name as Business Object Spectra Services. In a September 2024 post about the Redwood smart search component, Oracle's Visual Builder product manager wrote that Oracle's own developers build Redwood pages on BOSS, and the Common Features REST guide calls these v1 resources the latest version of the APIs.
Three things are different from the classic APIs:
- The query travels as a JSON body that holds the filter, the fields you want, the sort order and the paging.
- One call can join several business objects, even objects from different modules, with a SQL-style select that Fusion runs on the server and returns already grouped and totalled.
- Basic authentication doesn't work. Every call needs an OAuth token, and the user or application behind it needs roles set up for BOSS, which the security section summarizes.
What the new APIs do better, with examples
Every example below sends the token in the header as Authorization: Bearer <token>, along with Accept: application/json. Getting that token takes some setup, which is outlined in the security section below.
Example 1: filter, sort and choose fields with $query
A BOSS URL names a business object inside a module:
https://<your-pod>/api/boss/data/objects/ora/<module>/<domain>/v1/<object>
To query it, you add $query to the end of that URL and POST a JSON body to it. $query is a fixed part of the URL rather than a placeholder you fill in, and the JSON body holds the query itself. In a shell, write it as \$query or %24query so the shell doesn't treat it as a variable.
This call reads General Ledger journal sources, the labels such as Payables or Assets that record where a journal came from. It asks only for the sources that need journal approval, sorted by name, and returns three fields:
POST https://<your-pod>/api/boss/data/objects/ora/erpCore/accountingSetup/v1/journalSources/$query
Authorization: Bearer <token>
Content-Type: application/json
Accept: application/json
{
"collection": {
"filter": "journalApprovalFlag = true",
"limit": 5,
"sortBy": [ { "userJeSourceName": "asc" } ]
},
"fields": [ "userJeSourceName", "description", "journalApprovalFlag" ]
}
The body has two parts:
collectionholds the rules for which rows come back.filteris a condition much like a SQL WHERE clause,limitandoffsetset the page size and the first row, andsortBylists fields withascordesc.fieldslists the attributes you want back. Fields on a related object can be reached with dot notation, in the form<relation>.<field>.
The response is an items array with a hasMore flag for paging. Two sources come back:
{
"items": [
{
"userJeSourceName": "AutoCopy",
"description": "Journal entry copied from another.",
"journalApprovalFlag": true,
"$id": "AutoCopy",
"$context": { "etag": "2", "links": { "$self": { "href": "https://<your-pod>/api/boss/data/objects/ora/erpCore/accountingSetup/v1/journalSources/AutoCopy" } } }
},
{
"userJeSourceName": "Real Estate",
"description": "Real Estate.",
"journalApprovalFlag": true,
"$id": "Real+Estate",
"$context": { "etag": "1", "links": { "$self": { "href": "https://<your-pod>/api/boss/data/objects/ora/erpCore/accountingSetup/v1/journalSources/Real%2BEstate" } } }
}
],
"hasMore": false
}
Choosing fields isn't new, because the classic APIs have a fields= parameter. What is better is that the whole query travels in one JSON body, so a long filter never runs into URL-length or encoding problems, and a bad name is rejected with a specific message such as <name> is not a valid field or <name> is not searchable.
Finding the module and object names
The names in the URL come from Oracle's business object catalog, which has one guide per pillar. For Financials it is Business Objects for Oracle Fusion Cloud Financials. Each object has a page that lists its fields, marks which ones are searchable and sortable, and names its extract views.
The JournalSource page is the one behind Example 1. The object belongs to the module oraErpCoreAccountingSetup, which also appears in the page's address, and it lists fields such as userJeSourceName and journalApprovalFlag and the extract view journalSourcesExtract. This is how the catalog entries turn into the Example 1 call:
| In the catalog | In the call |
|---|---|
Module oraErpCoreAccountingSetup | ora/erpCore/accountingSetup in the path |
Business object JournalSource | journalSources, the object name in camel case and plural |
| Fields marked searchable and sortable | Names you can use in filter and sortBy |
| Any field | Names you can list in fields |
Extract view journalSourcesExtract | The view in an extraction call, as in Example 2 |
Example 2: join and total two objects in one call
The extraction endpoint, POST /api/boss/extraction/extract, is the bigger change. You name one or more extract views, give each field an alias, and write a SQL-style select over them that Fusion runs on the server. The catalog lists the extract views for each object, such as journalHeadersExtract and journalLinesExtract.
In fieldAliases, each key is the field name in the view and each value is the alias the select uses. The return list names the columns that come back, and these examples type every one as string, the same way Oracle's own agent definitions do, so numbers come back as strings.
This call answers a common month-end close question: which journals hit October, how many lines each one has, and whether each one balances.
POST https://<your-pod>/api/boss/extraction/extract
Authorization: Bearer <token>
Content-Type: application/json
Accept: application/json
{
"viewQueries": {
"jh": {
"module": "oraErpCoreAccountingEntries",
"businessObject": "JournalHeader",
"view": "journalHeadersExtract",
"fieldAliases": {
"journalHeaderId": "journalHeaderId",
"name": "journalName",
"status": "status",
"periodName": "periodName",
"accountingDate": "accountingDate"
}
},
"jl": {
"module": "oraErpCoreAccountingEntries",
"businessObject": "JournalLine",
"view": "journalLinesExtract",
"fieldAliases": {
"journalHeaderId": "journalHeaderId",
"enteredDr": "enteredDr",
"enteredCr": "enteredCr"
}
}
},
"select": "SELECT jh.journalName, jh.status, jh.periodName, jh.accountingDate, COUNT(*) AS lineCount, SUM(NVL(jl.enteredDr,0)) AS totalDebit, SUM(NVL(jl.enteredCr,0)) AS totalCredit FROM jh, jl WHERE jl.journalHeaderId = jh.journalHeaderId AND jh.accountingDate >= DATE '2026-10-01' AND jh.accountingDate < DATE '2026-11-01' GROUP BY jh.journalName, jh.status, jh.periodName, jh.accountingDate ORDER BY totalDebit DESC FETCH FIRST 10 ROWS ONLY",
"return": [
{ "type": "string", "name": "journalName" },
{ "type": "string", "name": "status" },
{ "type": "string", "name": "periodName" },
{ "type": "string", "name": "accountingDate" },
{ "type": "string", "name": "lineCount" },
{ "type": "string", "name": "totalDebit" },
{ "type": "string", "name": "totalCredit" }
]
}
The response is a plain JSON array, one object per row. These are the first three rows, all posted (P) and all balanced, with journal names and amounts shown as placeholders:
[
{"journalName":"<budget entry journal>","status":"P","periodName":"27-01","accountingDate":"2026-10-01 00:00:00","lineCount":"84","totalDebit":"<amount A>","totalCredit":"<amount A>"},
{"journalName":"<sales invoices journal>","status":"P","periodName":"27-01","accountingDate":"2026-10-31 00:00:00","lineCount":"27","totalDebit":"<amount B>","totalCredit":"<amount B>"},
{"journalName":"<purchase invoices journal>","status":"P","periodName":"27-01","accountingDate":"2026-10-31 00:00:00","lineCount":"22","totalDebit":"<amount C>","totalCredit":"<amount C>"}
]
With the classic APIs you would pull journal batches with their headers and lines expanded and add up the totals in your own code. Here the join, the grouping and the totals all run inside Fusion, and the select accepts ORDER BY, NVL and FETCH FIRST. The top-level select is required, and leaving it out returns 400 select must be provided.
Tip: Oracle's Ledger Agent in AI Agent Studio reads its data through this endpoint, so the tool definitions behind it are a good place to find more working view names and selects.
Example 3: join objects from different modules
The views in one call don't have to come from the same module. This call joins journal headers from oraErpCoreAccountingEntries to accounting periods from oraErpCoreStructure to count journals per period:
{
"viewQueries": {
"jh": {
"module": "oraErpCoreAccountingEntries",
"businessObject": "JournalHeader",
"view": "journalHeadersExtract",
"fieldAliases": { "journalHeaderId": "journalHeaderId", "periodName": "periodName", "enteredDebit": "enteredDebit" }
},
"per": {
"module": "oraErpCoreStructure",
"businessObject": "AccountingPeriod",
"view": "accountingPeriodList",
"fieldAliases": { "periodName": "periodName", "startDate": "startDate", "endDate": "endDate" }
}
},
"select": "SELECT per.periodName, per.startDate, per.endDate, COUNT(DISTINCT jh.journalHeaderId) AS journalCount, SUM(NVL(jh.enteredDebit,0)) AS totalDebit FROM jh, per WHERE jh.periodName = per.periodName AND per.startDate >= DATE '2026-07-01' GROUP BY per.periodName, per.startDate, per.endDate ORDER BY per.startDate",
"return": [
{ "type": "string", "name": "periodName" },
{ "type": "string", "name": "startDate" },
{ "type": "string", "name": "endDate" },
{ "type": "string", "name": "journalCount" },
{ "type": "string", "name": "totalDebit" }
]
}
[
{"periodName":"26-10","startDate":"2026-07-01 00:00:00","endDate":"2026-07-31 00:00:00","journalCount":"6","totalDebit":"<amount>"},
{"periodName":"26-11","startDate":"2026-08-01 00:00:00","endDate":"2026-08-31 00:00:00","journalCount":"12","totalDebit":"<amount>"},
{"periodName":"26-12","startDate":"2026-09-01 00:00:00","endDate":"2026-09-30 00:00:00","journalCount":"138","totalDebit":"<amount>"},
{"periodName":"27-01","startDate":"2026-10-01 00:00:00","endDate":"2026-10-31 00:00:00","journalCount":"24","totalDebit":"<amount>"}
]
Two limits apply to joins: the token must be allowed to read every object in the join, and you can only join on fields the extract view exposes. The Payables payment view, for example, has no invoice ID, so a join to invoices fails with Cannot query fields outside the business view definition. I hope Oracle widens this soon, so that agents and integrations can join any business objects that are related to each other, across modules, in a single call.
The kinds of BOSS endpoint
- Business object resources, such as
journalSourcesabove, takeGETwith$filter,$fields,$limit,$offsetand$sortByin the query string, or aPOSTto$querywith the JSON body from Example 1. - The extraction endpoint,
/api/boss/extraction/extract, runs a select over extract views, as in Examples 2 and 3. - Named views are saved query shapes on an object, addressed with
$views. The Common Features REST guide documentslanguages/$views/activeLanguage, which takes the usual query parameters plus its ownlanguageCodeparameter, and Oracle's Ledger Agent readserpCore/sensorPolicies/v1/$en-US/sensorInsightRecipients/$views/sensorInsightList.
Oracle's APEX guide also lists search views and custom business object views as BOSS endpoint types, but neither has a published path or example yet. Custom objects themselves are created in Application Composer, and so far they only show up in the classic REST APIs. I'll cover views, search views and custom objects in a separate post.
BOSS errors are specific enough to tell you which part of a call is wrong:
| Response | What it means |
|---|---|
404 Module 'oraErpCoreGeneralLedger' not found. | No module by that name. Check it against the catalog. |
404 API 'oraErpCoreAccountingEntries' not found. | The module exists but has no $query resource on your pod. Use the extraction endpoint for it. |
404 Resource 'invoices' not found in module oraErpCorePayablesInvoices. | The module is right but the resource name is wrong. |
403 Authorization is denied for action read on business object <object>. | The token was accepted, but none of its roles has the permission group for that object. |
401 Anonymous access is not allowed for module: <module> | The request had no Bearer token, or one BOSS didn't accept. |
| 406 Not Acceptable, with an empty body | The request didn't ask for JSON. Send Accept: application/json. |
| 204 No Content | The call worked but returned no rows. Either nothing matches the query or the identity behind the token isn't allowed to see the rows that do, so check its data access before you change the query. |
The four security layers
BOSS doesn't accept Basic authentication, and a call has to get through four layers of security, in this order:
| Layer | What it decides | What you see if it fails |
|---|---|---|
| 1. OAuth client and scope | Whether the program can get a BOSS token at all. It needs an application in the pod's OCI IAM identity domain with the Oracle Boss Cloud (Spectra) scope. | The identity domain refuses the token request, and a call without a token gets a 401. |
| 2. Grant type | Whose identity the token carries. Authorization code gives a token for the person who signs in, and client credentials gives one for the application itself. | The identity domain refuses a grant type the application doesn't allow. |
| 3. Roles with permission groups | Whether that identity may read or change the business object. Its role needs the object's permission group, and most seeded job roles don't have permission groups yet, so a role that works in the UI often fails here. | 403 Authorization is denied for action read on business object <object>. |
| 4. Data security | Which rows come back, using the same data roles and security profiles that limit what a user sees in the UI. | Rows the identity can't see are left out, and when it can see none of them the extraction endpoint returns 204 No Content. |
The examples in this post ran as a user with the Ledger Inquiry Assistant role, which holds the permission groups for journal sources, journal headers and journal lines. Setting up each layer, from the identity domain application through to the Fusion roles, takes more steps than fit here, so I covered them in a follow-up post, Setting Up Security for Oracle's BOSS REST APIs, with screenshots for both a person who signs in and an integration that runs on its own.
BOSS won't replace the FSCM and HCM APIs for some time
BOSS is where Oracle is heading, since Oracle builds its own Redwood pages and AI agents on it, and its query model is cleaner than the pillar-specific resources it sits beside. For now, though, many objects in Oracle's catalog aren't reachable through $query yet, and the ones that are need roles with permission groups that most customers haven't set up, so the classic /fscmRestApi and /hcmRestApi resources remain the dependable route for those objects today.
My practical advice to a team would be:
- If you already have a working classic REST integration, keep it. The classic APIs aren't deprecated, and nothing you built has stopped working.
- For new work, look the object up in Oracle's business object catalog, then confirm it on your pod with a call and read the error if it fails. If the object is there, use BOSS, because its query model is better.
- Set up the OAuth client and the roles before you write a single query, because you can't test anything until both are in place.
Lessons learned
- Add
Accept: application/jsonto every request. Postman and many other HTTP clients sendAccept: */*unless you change it, and BOSS answers that with406 Not Acceptableand an empty body, even when the token and the body are fine. - Use the module, object and view names from Oracle's business object catalog rather than guessing them.
- Check a role for permission groups in the Security Console before you debug a 403.