Hi ,
i'm trying to create a callback by using the API /api/v2/conversations/callbacks and i use the following request body template :
{
"scriptId": "${input.scriptId}",
"queueId": "${input.queueId}",
"callbackNumbers": ["${input.callbackNumbers}"],
"callbackScheduledTime": "${input.callbackScheduledTime}",
"attributes": {
"matricola":"${input.matricola}",
"esigenza":"${input.esigenza}"
}
} .
If i test the data action from "integration"->"action" i don't have any problem but if i call data action from architect (by calling with my phone ) the scheduled callback is passed to agent without participant data. The participant data are correctly setted as "matricola" and "esigenza".
Thank in advance ,
AdR
Hello,
The correct attribute/structure name to send participant data, when creating a callback with POST /api/v2/conversations/callbacks, is "data", as you can see in the request schema of this endpoint (in the above link).
"attributes" is not supported.
So your request body must use:
{
...
"data": {
"matricola":"...",
"esigenza":"..."
}
}
Regards,
hi jerome ,
now it's works ...thank you and good day.
AdR
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.