Get Template URL endpoint
This endpoint is called during personalization time to return the Responsys Personalization Language (RPL) template in the campaign.
Responsys will call the app to get the RPL template with a call that resembles:
Service URL
<app-base-url><service-template-url>
These URLs are registered with AMS when creating the 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 UUID. |
iss
|
The issuer of the token. | The product UUID. |
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 to the Get Template URL call in case of success
{
"successful": true,
"content": {
"instanceId": "10e06e7b-a309-4df4-a6f3-70e0df5a59fa",
"template": "<h1>Hello World from Responsys Reference App!</h1><a href='http://www.oracle.com'><img src ='https://oracle.com/images/emailmarketingservices.png'/></a>"
},
"errorMessage": null
}