Get Access Token

post

/mobile/platform/lx/token

Retrieves an access token for connecting to the Live Experience client that's associated with the backend.

Permissions

The authorized user can be a social user, virtual user, or a mobile user. If the authorized user is a mobile user, then the user must have a role that's associated with the mobile backend.

Request

Query Parameters
Back to Top

Response

Supported Media Types

200 Response

Token was obtained successfully.
Body ()
Root Schema : Live Experience Access Token
Type: object
Title: Live Experience Access Token
Live Experience access token and related information.
Show Source
Example Response (application/json)
{
    "access_token":"eyJhbGc...H9yJhsA",
    "id_token":"eyJhbGci...18GNCB2A",
    "token_type":"Bearer",
    "expires_in":"1200"
}

400 Response

Bad Request. Either the Live Experience credential information is invalid or Live Experience must be switched on in the backend Settings page.
Body ()
Root Schema : Error
Type: object
Title: Error
The error JSON object returned by the service.
Show Source
Nested Schema : o:errorDetails
Type: array
Minimum Number of Items: 0
Included when the error is caused by multiple issues.
Show Source
Nested Schema : Error Detail
Type: object
Title: Error Detail
Show Source
Example Response (application/json)
{
    "o:errorCode":"MOBILE-28416",
    "detail":"Bad Response from client. Check your connection properties",
    "type":"http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.1",
    "title":"Bad Response from client",
    "o:errorPath":"/mobile/platform/lx/token",
    "o:ecid":"HqFoV1V0000000000, 0:1",
    "status":400
}
Back to Top

Examples

Here's an example of using cURL to obtain a Live Experience access token.

curl -i \
-X POST   \
-u user@example.com:password
-H 'Oracle-Mobile-Backend-ID: ABCD59b-f13c-4722-81b8-4e719b5a4622' \
http://fif.cloud.oracle.com/mobile/platform/lx/token?client_type=LIVE_EXPERIENCE

Example of Response Header

The following shows an example of the response header:

200 OK
Content-Length: 1203
Content-Type: application/json
Date: Fri, 06 Jul 2018 18:28:45 GMT

Example of Response Body

Here's an example of the response body in JSON format:

{
    "access_token": "ABCDbGciOiJSUzI1NiJ9.eyJhdWQiOiJvcmFjbGVtY3MiLCJpc3MiOiJhdXRoMTYyZDg3ZjFiNzhtIiwiZXhwIjoxNTMwOTAyOTI3LCJzZXJ2ZXJfdm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