OpenAPI Specification
openapi: 3.1.0
info:
title: Oracle Eloqua REST Accounts API
description: "Oracle Eloqua REST APIs for the Oracle Marketing B2B marketing\nautomation platform. Two API surfaces are covered:\n\n- The **Application API** at `/api/rest/2.0/` for managing assets and\n data (contacts, accounts, campaigns, emails, forms, custom objects).\n- The **Bulk API** at `/api/bulk/2.0/` for high-volume imports,\n exports, and sync operations.\n\nBoth surfaces share the same authentication. The base URL is\npod-specific and resolved at runtime per customer from the\n`https://login.eloqua.com/id` discovery endpoint. Authentication is\nOAuth 2.0 Bearer tokens (Authorization Code, Implicit, or Resource\nOwner Password grants) or HTTP Basic Authentication using\n`client_id:client_secret`.\n"
version: 2.0.0
contact:
name: Oracle Eloqua
url: https://www.oracle.com/cx/marketing/automation/
servers:
- url: https://{pod}.eloqua.com
description: Customer's Eloqua pod (e.g. secure.p01.eloqua.com).
variables:
pod:
default: secure.p01
description: The pod-specific subdomain returned by the /id discovery call.
security:
- bearerAuth: []
- basicAuth: []
tags:
- name: Accounts
description: Manage account records.
paths:
/api/rest/2.0/data/accounts:
post:
tags:
- Accounts
summary: Retrieve account information
operationId: searchAccounts
requestBody:
required: false
content:
application/json:
schema:
type: object
additionalProperties: true
responses:
'200':
description: Account search payload.
content:
application/json:
schema:
$ref: '#/components/schemas/Collection'
/api/rest/2.0/data/account/{id}:
parameters:
- $ref: '#/components/parameters/IdParam'
get:
tags:
- Accounts
summary: Retrieve an account
operationId: getAccount
responses:
'200':
description: Account resource.
content:
application/json:
schema:
type: object
additionalProperties: true
components:
schemas:
Collection:
type: object
properties:
elements:
type: array
items:
type: object
additionalProperties: true
page:
type: integer
pageSize:
type: integer
total:
type: integer
parameters:
IdParam:
name: id
in: path
required: true
schema:
type: string
description: Resource ID.
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: JWT
description: 'OAuth 2.0 access token obtained from
`https://login.eloqua.com/auth/oauth2/token`. Sent as
`Authorization: Bearer {access_token}`.
'
basicAuth:
type: http
scheme: basic
description: 'HTTP Basic Authentication with `client_id:client_secret`. Used at
the token endpoint and as a legacy fallback.
'
externalDocs:
description: Oracle Eloqua REST API Documentation
url: https://docs.oracle.com/en/cloud/saas/marketing/eloqua-rest-api/index.html