Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Botdoc P2 Container is a session with multiple secure Features inside of it, with P2 you can make a Flow automation or just a simple file "push", "pull", “DocuSign” or “DocuSign”“External URL”.

Endpoint: https://api.botdoc.io/v1/module_container/container/ 
Method: POST.

Example of the body in JSON format:

...

Code Block
languagejson
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
}"

1.2 - Create a Container with a Requester:

...

Code Block
languagejson
{
   "first_name": "John",
   "last_name": "Smith"
}

Example how to create a Container Recipient by cURL:

Code Block
languagejson
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": "John",
   "last_name": "Smith"
}
"

...

Code Block
languagejson
{
   "interface_class": "email", //can be "email" or "sms"
   "value": "myemail@botdoc.io"
}

Example how to create a Container Recipient Item by cURL:

Code Block
languagejson
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"
}
"

...