The unique string that identifies the Supporting Document Type resource.
^OY[0-9a-fA-F]{32}$
Min length: 34
Max length: 34
A human-readable description of the Supporting Document Type resource.
The machine-readable description of the Supporting Document Type resource.
The required information for creating a Supporting Document. The required fields will change as regulatory needs change and will differ for businesses and individuals.
The absolute URL of the Supporting Document Type resource.
GET https://trusthub.twilio.com/v1/SupportingDocumentTypes/{Sid}
The unique string that identifies the Supporting Document Type resource.
1// Download the helper library from https://www.twilio.com/docs/node/install2const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";34// Find your Account SID and Auth Token at twilio.com/console5// and set the environment variables. See http://twil.io/secure6const accountSid = process.env.TWILIO_ACCOUNT_SID;7const authToken = process.env.TWILIO_AUTH_TOKEN;8const client = twilio(accountSid, authToken);910async function fetchSupportingDocumentType() {11const supportingDocumentType = await client.trusthub.v112.supportingDocumentTypes("Sid")13.fetch();1415console.log(supportingDocumentType.sid);16}1718fetchSupportingDocumentType();
1{2"url": "https://trusthub.twilio.com/v1/SupportingDocumentTypes/OYaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",3"fields": [4{5"machine_name": "first_name",6"friendly_name": "First Name",7"constraint": "String"8},9{10"machine_name": "last_name",11"friendly_name": "Last Name",12"constraint": "String"13},14{15"machine_name": "business_name",16"friendly_name": "Business Name",17"constraint": "String"18}19],20"machine_name": "government_issued_proof_of_authorized_representative",21"friendly_name": "Government Issued Identity certifying proof of being an authorized representative of a company",22"sid": "Sid"23}
GET https://trusthub.twilio.com/v1/SupportingDocumentTypes
How many resources to return in each list page. The default is 50, and the maximum is 1000.
1
Maximum: 1000
The page token. This is provided by the API.
1// Download the helper library from https://www.twilio.com/docs/node/install2const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";34// Find your Account SID and Auth Token at twilio.com/console5// and set the environment variables. See http://twil.io/secure6const accountSid = process.env.TWILIO_ACCOUNT_SID;7const authToken = process.env.TWILIO_AUTH_TOKEN;8const client = twilio(accountSid, authToken);910async function listSupportingDocumentType() {11const supportingDocumentTypes =12await client.trusthub.v1.supportingDocumentTypes.list({ limit: 20 });1314supportingDocumentTypes.forEach((s) => console.log(s.sid));15}1617listSupportingDocumentType();
1{2"supporting_document_types": [],3"meta": {4"page": 0,5"page_size": 50,6"first_page_url": "https://trusthub.twilio.com/v1/SupportingDocumentTypes?PageSize=50&Page=0",7"previous_page_url": null,8"url": "https://trusthub.twilio.com/v1/SupportingDocumentTypes?PageSize=50&Page=0",9"next_page_url": null,10"key": "supporting_document_types"11}12}