...
Example of the body in JSON format:
Code Block |
---|
|
{
"page_type": "p2",
"callback_url": "https://link.to.your.callback.url",
"display_chat": true
}
|
Example how to create a Container by cURL:
Code Block |
---|
|
curl -i --request POST "https://api.botdoc.io/v1/module_container/container/" \
--header "Authorization: JWT <Authorization Token>" \
--header "Content-Type: application/json" \
--data-raw "{
"page_type": "p2",
"callback_url": "https://link.to.your.callback.url",
"display_chat": true
}" |
...
Example how to create a Recipient by cURL:
Code Block |
---|
|
curl -i --request POST "https://api.botdoc.io/v1/module_container/container/{container_id}/recipient/" \
--header "Authorization: JWT <Authorization Token>" \
--header "Content-Type: application/json" \
--data-raw "{
"first_name": "First",
"last_name": "Receiver"
}
"
|
...
Example of the body in JSON format:
Code Block |
---|
|
{
"interface_class": "email", //can be "email" or "sms"
"value": "myemail@botdoc.io"
} |
Example how to create a first Recipient Item by cURL:
Code Block |
---|
|
curl -i --request POST "https://api.botdoc.io/v1/module_container/recipient/{recipient_id}/recipient_item/" \
--header "Authorization: JWT <Authorization Token>" \
--header "Content-Type: application/json" \
--data-raw "{
"interface_class": "email",
"value": "myemail@botdoc.io"
}
" |
...
Example of the body in JSON format:
Code Block |
---|
|
{
"interface_class": "sms", //can be "email" or "sms"
"value": "000000000000"
} |
Example how to create a second Recipient Item by cURL:
Code Block |
---|
|
curl -i
--request POST "https://api.botdoc.io/v1/module_container/recipient/{recipient_id}/recipient_item/" \
--header "Authorization: JWT <Authorization Token>" \
--header "Content-Type: application/json" \
--data-raw "{
"interface_class": "sms",
"value": "000000000000"
}
" |
...