Canvas View URL endpoint
This endpoint is expected to be invoked by a product to retrieve a template service's preview template.
Service URL
<app-base-url><service-canvas-view-url>
These URLs are registered with AMS when creating a service.
Request Method
GET
Request Header
Authorization: Bearer <JWT>
OMC-ID: <instanceId>
Content-Type=application/json
JWT claims
In the case where it is the product making the request to the App, the key and value pairs bear the following meanings:
Key | Value Definition | Context |
---|---|---|
aud
|
The audience of the token. | The service instance ID. |
iss
|
The issuer of the token. | The product ID. |
exp
|
The date and time the token will expire, expressed as a Unix timestamp. Must be after the current date/time. | Set to 60 seconds after the JWT was created. |
iat
|
The date and time the JWT was issued, expressed as a Unix timestamp. | Set to the current time. |
o.a.p.ctenantId
|
The tenant Id. | Set to the id of the tenant as identified by the product. |
Sample Response in case of success
{
"successful": true,
"content": {
"instanceId": "10e06e7b-a309-4df4-a6f3-70e0df5a59fa",
"template": "<img src ='https:/oracle.com/emailmarketingservices.png'/>"
},
"errorMessage": null
}