Legacy Dev Forum Posts

 View Only

Sign Up

Set participant data for a web callback (created by the API /api/v2/conversations/callbacks)

  • 1.  Set participant data for a web callback (created by the API /api/v2/conversations/callbacks)

    Posted 06-05-2025 18:20

    Ale | 2021-09-20 14:49:31 UTC | #1

    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


    Jerome.Saint-Marc | 2021-09-21 06:46:55 UTC | #2

    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,


    Ale | 2021-09-21 07:33:39 UTC | #3

    hi jerome , now it's works ...thank you and good day. AdR


    system | 2021-10-22 07:34:14 UTC | #4

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 12064