[Legacy]{class="badge informative"}
List decisions list-decisions
TIP
Decisioning, Adobe Journey Optimizer’s new decisioning capability, is now available via the code-based experience and email channels! Learn more
A decision contains the logic that informs the selection of an offer.
You can view a list of all decisions within a container by performing a single GET request to the Offer Library API.
API format
GET /{ENDPOINT_PATH}/{CONTAINER_ID}/queries/core/search?schema={SCHEMA_ACTIVITIES}&{QUERY_PARAMS}
Parameter
Description
Example
{ENDPOINT_PATH}The endpoint path for repository APIs.
https://platform.adobe.io/data/core/xcore/{CONTAINER_ID}The container where the decisions are located.
e0bd8463-0913-4ca1-bd84-6309134ca1f6{SCHEMA_ACTIVITIES}Defines the schema associated with decisions.
https://ns.adobe.com/experience/offer-management/offer-activity;version=0.5{QUERY_PARAMS}Optional query parameters to filter results by.
limit=2Request
curl -X GET \
'https://platform.adobe.io/data/core/xcore/e0bd8463-0913-4ca1-bd84-6309134ca1f6/queries/core/search?schema=https://ns.adobe.com/experience/offer-management/offer-activity;version=0.5&limit=2' \
-H 'Accept: *,application/vnd.adobe.platform.xcore.hal+json; schema="https://ns.adobe.com/experience/xcore/hal/results"' \
-H 'Authorization: Bearer {ACCESS_TOKEN}' \
-H 'x-api-key: {API_KEY}' \
-H 'x-gw-ims-org-id: {IMS_ORG}' \
-H 'x-sandbox-name: {SANDBOX_NAME}'
Parameter
Description
Example
qAn optional query string to search for in selected fields. The query string should be lowercase and can be surrounded by double quotes to prevent it from being tokenized and to escape special characters. The characters
+ - = && || > < ! ( ) { } [ ] ^ \" ~ * ? : \ / have special meaning and should be escaped with a backslash when appearing in the query string.defaultqopApplies AND or OR operator to values in q query string param.
AND / ORfieldOptional list of fields to limit the search to. This param can be repeated like so: field=field1[,field=field2,…] and (path expressions are in the form of dot separated paths such as _instance.xdm:name)
_instance.xdm:nameorderBySort results by a specific property. Adding a
- before title (orderby=-title) will sort items by title in descending order (Z-A).-repo:createdDatelimitLimit the number of decisions returned.
limit=5Response
A successful response returns a list of decisions that are present within the container you have access to.
{
"results": [
{
"created": "2022-07-05T09:02:02.835+00:00",
"modified": "2022-08-16T21:40:58.573+00:00",
"etag": 12,
"schemas": [
"https://ns.adobe.com/experience/offer-management/offer-activity;version=0.8"
],
"createdBy": "{CREATED_BY}",
"lastModifiedBy": "{MODIFIED_BY}",
"id": "offerDecision1234",
"name": "Test Decision One",
"status": "live",
"startDate": "2022-05-18T00:09:57.706+00:00",
"endDate": "2032-08-13T21:40:58.235+00:00",
"fallback": "fallbackOffer1234",
"criteria": [
{
"placements": [
"offerPlacement1234",
"offerPlacement5678"
],
"rank": {
"priority": 0,
"order": {
"orderEvaluationType": "ranking-strategy",
"rankingStrategy": "123456789123"
}
},
"profileConstraint": {
"profileConstraintType": "none"
},
"optionSelection": {
"filter": "offerCollection1234"
}
}
]
},
{
"created": "2022-09-05T14:12:13.773+00:00",
"modified": "2022-09-05T14:12:13.773+00:00",
"etag": 1,
"schemas": [
"https://ns.adobe.com/experience/offer-management/offer-activity;version=0.8"
],
"createdBy": "{CREATED_BY}",
"lastModifiedBy": "{MODIFIED_BY}",
"id": "offerDecision5678",
"name": "Test Decision Two",
"status": "live",
"startDate": "2022-08-31T21:00:00.000+00:00",
"endDate": "2023-02-03T22:00:00.000+00:00",
"fallback": "fallbackOffer5678",
"criteria": [
{
"placements": [
"offerPlacement1234"
],
"rank": {
"priority": 2
},
"optionSelection": {
"filter": "offerCollection5678"
}
},
{
"placements": [
"offerPlacement5678"
],
"rank": {
"priority": 1
},
"optionSelection": {
"filter": "offerCollection1234"
}
}
]
}
],
"count": 2,
"total": 21,
"_links": {
"self": {
"href": "/offer-decisions?href={SELF_HREF}&limit=2",
"type": "application/json"
},
"next": {
"href": "/offer-decisions?href={NEXT_HREF}&limit=2",
"type": "application/json"
}
}
}
recommendation-more-help
b22c9c5d-9208-48f4-b874-1cefb8df4d76