Create a new Compliance Inquiry for the authenticated account. This is necessary to start a new embedded session.
Create a new Compliance Inquiry for the authenticated account. This is necessary to start a new embedded session.
Body
-
The unique SID identifier of the Primary Customer Profile that should be used as a parent. Only necessary when creating a secondary Customer Profile.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^BU[0-9a-fA-F]{32}$
. -
The email address that approval status updates will be sent to. If not specified, the email address associated with your primary customer profile will be used.
-
Theme id for styling the inquiry form.
POST
/v1/ComplianceInquiries/Customers/Initialize
curl \
--request POST 'https://trusthub.twilio.com/v1/ComplianceInquiries/Customers/Initialize' \
--user "username:password" \
--header "Content-Type: application/x-www-form-urlencoded" \
--data 'PrimaryProfileSid=BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
Request examples
Create
{"PrimaryProfileSid"=>"BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}
{"NotificationEmail"=>"pfarnsworth@twilio.com", "PrimaryProfileSid"=>"BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}
{"ThemeSetId"=>"th_xxxxx", "NotificationEmail"=>"pfarnsworth@twilio.com", "PrimaryProfileSid"=>"BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}
Response examples (201)
Create
{
"url": "https://trusthub.twilio.com/v1/ComplianceInquiries/Customers/tri1.us1.trusthub.ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.customer.BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Initialize",
"inquiry_id": "inq_aaaaaaaaaaaaaaaaaaaaaaaa",
"customer_id": "tri1.us1.trusthub.ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.customer.BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"inquiry_session_token": "new.session.token"
}
{
"url": "https://trusthub.twilio.com/v1/ComplianceInquiries/Customers/tri1.us1.trusthub.ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.customer.BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Initialize",
"inquiry_id": "inq_aaaaaaaaaaaaaaaaaaaaaaaa",
"customer_id": "tri1.us1.trusthub.ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.customer.BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"inquiry_session_token": "new.session.token"
}
{
"url": "https://trusthub.twilio.com/v1/ComplianceInquiries/Customers/tri1.us1.trusthub.ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.customer.BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Initialize",
"inquiry_id": "inq_aaaaaaaaaaaaaaaaaaaaaaaa",
"customer_id": "tri1.us1.trusthub.ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.customer.BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"inquiry_session_token": "new.session.token"
}