Body
Required
-
Per-tenant context passed in the invoke body.
The gateway resolves a runtime tenant DTO upstream and injects this block; the main-api then trusts it as authenticated context.
Additional properties are NOT allowed.
-
Section metadata for ranking + UI hints.
Additional properties are NOT allowed.
-
Additional properties are allowed.
-
Default value is
chatgpt. -
Additional properties are allowed.
-
Minimum length is
1. -
Default value is
false.
POST
/v1/internal/experiences/{capability}/invoke
curl \
--request POST 'http://api.example.com/v1/internal/experiences/{capability}/invoke' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"partner_context":{"org_id":"string","partner_app_id":"string","brand_slug":"string","catalog_id":"string"},"section_context":{"section_id":"string","layout":"grid","max_items":42,"filter":{}},"input":{},"placement":"chatgpt","session_id":"string","refinement":{},"idempotency_key":"string","visitor_id":"string","preview":false}'
Request examples
{
"partner_context": {
"org_id": "string",
"partner_app_id": "string",
"brand_slug": "string",
"catalog_id": "string"
},
"section_context": {
"section_id": "string",
"layout": "grid",
"max_items": 42,
"filter": {}
},
"input": {},
"placement": "chatgpt",
"session_id": "string",
"refinement": {},
"idempotency_key": "string",
"visitor_id": "string",
"preview": false
}
Response examples (200)
{}
Response examples (422)
{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"ctx": {}
}
]
}