{ "swagger": "2.0", "info": { "title": "oAuth API for OHIP", "version": "21.5.0.0", "description": "REST API to obtain an OAuth token from the Oracle Hospitality Integration Platform.
For authenticating to Distribution APIs please use the Early Release OPERA Cloud Distribution Authentication API.
This document and all content within is available under the Universal Permissive License v 1.0 (https://oss.oracle.com/licenses/upl). Copyright (c) 2020, 2026 Oracle and/or its affiliates.
", "x-summary": "The OHIP REST API enables you to develop apps that connect to Oracle Hospitality products through a single endpoint in the Oracle Hospitality cloud.", "termsOfService": "https://www.oracle.com/legal/terms.html", "contact": { "email": "hospitality_apis_ww_grp@oracle.com" }, "license": { "name": "UPL", "url": "https://opensource.org/licenses/upl" } }, "schemes": [ "https" ], "basePath": "/oauth/v1", "tags": [ { "name": "Authentication", "description": "Authentication service" } ], "paths": { "/tokens": { "post": { "description": "This is required to access Oracle Hospitality OPERA Cloud REST APIs.
To obtain a token include the following headers:
ClientID:ClientSecret - base64 encoded to the Basic Access Authorization standardx-app-key headerAnd the following body parameters:
An open standard (RFC 7519) that defines a compact and self-contained way for securely transmitting information between parties as a JSON object. This information can be verified and trusted because it is digitally signed.
OperationId:getToken
", "summary": "Authenticate with the identity server", "operationId": "getToken", "produces": [ "application/json" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/OAuth2TokenResponse" } }, "400": { "description": "Bad Request. This error is returned if the authentication information provided is not valid." }, "401": { "description": "Unauthorized. Invalid client ID, client secret, username, and/or password, and/or scope." }, "403": { "description": "Forbidden. This error is returned if the operation is not allowed for the request." } }, "parameters": [ { "name": "grant_type", "description": "The grant type. This value will depend on the API you are passing the OAuth token to.", "in": "formData", "required": true, "type": "string", "enum": [ "password", "client_credentials" ] }, { "name": "username", "description": "Your OPERA Cloud integration user name. Required value when requesting a token using the password grant.", "in": "formData", "required": false, "type": "string" }, { "name": "password", "in": "formData", "type": "string", "required": false, "description": "Your OPERA Cloud integration user password. Required value when requesting a token using the password grant." }, { "name": "scope", "in": "formData", "type": "string", "required": false, "description": "Your assigned scope. Required value when requesting a token using the client_credentials grant." }, { "$ref": "#/parameters/x-app-key" }, { "$ref": "#/parameters/enterpriseId" } ], "consumes": [ "application/x-www-form-urlencoded" ], "tags": [ "Authentication" ], "x-internal-id": "v1-oauth2Token-post" } } }, "parameters": { "x-app-key": { "name": "x-app-key", "description": "Client or Partner's Application Key", "type": "string", "pattern": "^[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB][a-f0-9]{3}-[a-f0-9]{12}$", "in": "header", "required": true, "x-example": "41ecd082-8997-4c69-af34-2f72b83645ff" }, "enterpriseId": { "name": "enterpriseId", "description": "Global unique ID of the Enterprise. Only while using Client Credentials workflow with OCIM environments, users should pass this header.", "type": "string", "minLength": 1, "maxLength": 8, "pattern": "^[A-Z0-9]{1,8}$", "in": "header", "required": false, "x-example": "ENT123" } }, "definitions": { "OAuth2TokenResponse": { "type": "object", "description": "OAuth2 token object sent as a response to the token request", "required": [ "access_token" ], "properties": { "access_token": { "type": "string", "description": "The access token. Include this in the header for every subsequent request." }, "expires_in": { "type": "integer", "format": "int64", "description": "Time in seconds for the access token to expire (typically, 3600 i.e. 60 minutes)" }, "token_type": { "type": "string", "description": "The type of access token issued (Bearer)." }, "oracle_tk_context": { "type": "string", "description": "Always user_assertion." } } } }, "securityDefinitions": { "basicAuth": { "type": "basic" } }, "security": [ { "basicAuth": [] } ], "externalDocs": { "description": "Find out more about Oracle Hospitality", "url": "https://docs.oracle.com/en/industries/hospitality/integration_platforms.html" } }