Skip to contentSkip to navigationSkip to topbar
Rate this page:
On this page

SupportingDocument Resource



SupportingDocument Properties

supportingdocument-properties page anchor
Property nameTypePIIDescription
sidSID<RD>
Not PII

The unique string created by Twilio to identify the Supporting Document resource.

Pattern: ^RD[0-9a-fA-F]{32}$Min length: 34Max length: 34

account_sidSID<AC>

The SID of the Account that created the Document resource.

Pattern: ^AC[0-9a-fA-F]{32}$Min length: 34Max length: 34

friendly_namestring

The string that you assigned to describe the resource.


mime_typestring

The image type uploaded in the Supporting Document container.


statusenum<string>

The verification status of the Supporting Document resource.

Possible values:
draftpending-reviewrejectedapprovedexpiredprovisionally-approved

typestring

The type of the Supporting Document.


attributesobject
PII MTL: 30 days

The set of parameters that are the attributes of the Supporting Documents resource which are listed in the Supporting Document Types.


date_updatedstring<date-time>

The date and time in GMT when the resource was last updated specified in ISO 8601(link takes you to an external page) format.


urlstring<uri>

The absolute URL of the Supporting Document resource.


Create a new Supporting Document.

create-a-new-supporting-document page anchor
POST https://trusthub.twilio.com/v1/SupportingDocuments

Request body parameters

request-body-parameters page anchor
Property nameTypeRequiredPIIDescription
FriendlyNamestringrequired

The string that you assigned to describe the resource.


Typestringrequired

The type of the Supporting Document.


AttributesobjectOptional

The set of parameters that are the attributes of the Supporting Documents resource which are derived Supporting Document Types.

Create a SupportingDocument

create-a-supportingdocument page anchor
Node.js
Python
C#
Java
Go
PHP
Ruby
twilio-cli
curl

_20
// Download the helper library from https://www.twilio.com/docs/node/install
_20
const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";
_20
_20
// Find your Account SID and Auth Token at twilio.com/console
_20
// and set the environment variables. See http://twil.io/secure
_20
const accountSid = process.env.TWILIO_ACCOUNT_SID;
_20
const authToken = process.env.TWILIO_AUTH_TOKEN;
_20
const client = twilio(accountSid, authToken);
_20
_20
async function createSupportingDocument() {
_20
const supportingDocument =
_20
await client.trusthub.v1.supportingDocuments.create({
_20
friendlyName: "FriendlyName",
_20
type: "Type",
_20
});
_20
_20
console.log(supportingDocument.sid);
_20
}
_20
_20
createSupportingDocument();

Output

_14
{
_14
"status": "draft",
_14
"date_updated": "2021-02-11T17:23:00Z",
_14
"friendly_name": "FriendlyName",
_14
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
_14
"url": "https://trusthub.twilio.com/v1/SupportingDocuments/RDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
_14
"date_created": "2021-02-11T17:23:00Z",
_14
"sid": "RDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
_14
"attributes": {
_14
"address_sids": "ADaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
_14
},
_14
"type": "Type",
_14
"mime_type": null
_14
}


Fetch specific Supporting Document Instance.

fetch-specific-supporting-document-instance page anchor
GET https://trusthub.twilio.com/v1/SupportingDocuments/{Sid}

Property nameTypeRequiredPIIDescription
SidSID<RD>required

The unique string created by Twilio to identify the Supporting Document resource.

Pattern: ^RD[0-9a-fA-F]{32}$Min length: 34Max length: 34

Fetch a SupportingDocument

fetch-a-supportingdocument page anchor
Node.js
Python
C#
Java
Go
PHP
Ruby
twilio-cli
curl

_18
// Download the helper library from https://www.twilio.com/docs/node/install
_18
const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";
_18
_18
// Find your Account SID and Auth Token at twilio.com/console
_18
// and set the environment variables. See http://twil.io/secure
_18
const accountSid = process.env.TWILIO_ACCOUNT_SID;
_18
const authToken = process.env.TWILIO_AUTH_TOKEN;
_18
const client = twilio(accountSid, authToken);
_18
_18
async function fetchSupportingDocument() {
_18
const supportingDocument = await client.trusthub.v1
_18
.supportingDocuments("RDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
_18
.fetch();
_18
_18
console.log(supportingDocument.sid);
_18
}
_18
_18
fetchSupportingDocument();

Output

_14
{
_14
"status": "draft",
_14
"date_updated": "2021-02-11T17:23:00Z",
_14
"friendly_name": "Business-profile-physical-address",
_14
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
_14
"url": "https://trusthub.twilio.com/v1/SupportingDocuments/RDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
_14
"date_created": "2021-02-11T17:23:00Z",
_14
"sid": "RDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
_14
"attributes": {
_14
"address_sids": "ADaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
_14
},
_14
"type": "customer_profile_address",
_14
"mime_type": null
_14
}


Retrieve a list of all Supporting Document for an account.

retrieve-a-list-of-all-supporting-document-for-an-account page anchor
GET https://trusthub.twilio.com/v1/SupportingDocuments

Property nameTypeRequiredPIIDescription
PageSizeintegerOptional

How many resources to return in each list page. The default is 50, and the maximum is 1000.

Minimum: 1Maximum: 1000

PageintegerOptional

The page index. This value is simply for client state.

Minimum: 0

PageTokenstringOptional

The page token. This is provided by the API.

List multiple SupportingDocuments

list-multiple-supportingdocuments page anchor
Node.js
Python
C#
Java
Go
PHP
Ruby
twilio-cli
curl

_18
// Download the helper library from https://www.twilio.com/docs/node/install
_18
const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";
_18
_18
// Find your Account SID and Auth Token at twilio.com/console
_18
// and set the environment variables. See http://twil.io/secure
_18
const accountSid = process.env.TWILIO_ACCOUNT_SID;
_18
const authToken = process.env.TWILIO_AUTH_TOKEN;
_18
const client = twilio(accountSid, authToken);
_18
_18
async function listSupportingDocument() {
_18
const supportingDocuments = await client.trusthub.v1.supportingDocuments.list(
_18
{ limit: 20 }
_18
);
_18
_18
supportingDocuments.forEach((s) => console.log(s.sid));
_18
}
_18
_18
listSupportingDocument();

Output

_12
{
_12
"results": [],
_12
"meta": {
_12
"page": 0,
_12
"page_size": 50,
_12
"first_page_url": "https://trusthub.twilio.com/v1/SupportingDocuments?PageSize=50&Page=0",
_12
"previous_page_url": null,
_12
"url": "https://trusthub.twilio.com/v1/SupportingDocuments?PageSize=50&Page=0",
_12
"next_page_url": null,
_12
"key": "results"
_12
}
_12
}


Update an existing Supporting Document.

update-an-existing-supporting-document page anchor
POST https://trusthub.twilio.com/v1/SupportingDocuments/{Sid}

Property nameTypeRequiredPIIDescription
SidSID<RD>required

The unique string created by Twilio to identify the Supporting Document resource.

Pattern: ^RD[0-9a-fA-F]{32}$Min length: 34Max length: 34
Property nameTypeRequiredPIIDescription
FriendlyNamestringOptional

The string that you assigned to describe the resource.


AttributesobjectOptional

The set of parameters that are the attributes of the Supporting Document resource which are derived Supporting Document Types.

Update a SupportingDocument

update-a-supportingdocument page anchor
Node.js
Python
C#
Java
Go
PHP
Ruby
twilio-cli
curl

_18
// Download the helper library from https://www.twilio.com/docs/node/install
_18
const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";
_18
_18
// Find your Account SID and Auth Token at twilio.com/console
_18
// and set the environment variables. See http://twil.io/secure
_18
const accountSid = process.env.TWILIO_ACCOUNT_SID;
_18
const authToken = process.env.TWILIO_AUTH_TOKEN;
_18
const client = twilio(accountSid, authToken);
_18
_18
async function updateSupportingDocument() {
_18
const supportingDocument = await client.trusthub.v1
_18
.supportingDocuments("RDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
_18
.update({ friendlyName: "FriendlyName" });
_18
_18
console.log(supportingDocument.sid);
_18
}
_18
_18
updateSupportingDocument();

Output

_14
{
_14
"status": "draft",
_14
"date_updated": "2021-02-11T17:23:00Z",
_14
"friendly_name": "FriendlyName",
_14
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
_14
"url": "https://trusthub.twilio.com/v1/SupportingDocuments/RDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
_14
"date_created": "2021-02-11T17:23:00Z",
_14
"sid": "RDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
_14
"attributes": {
_14
"address_sids": "ADaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
_14
},
_14
"type": "customer_profile_address",
_14
"mime_type": null
_14
}


Delete a specific Supporting Document.

delete-a-specific-supporting-document page anchor
DELETE https://trusthub.twilio.com/v1/SupportingDocuments/{Sid}

Property nameTypeRequiredPIIDescription
SidSID<RD>required

The unique string created by Twilio to identify the Supporting Document resource.

Pattern: ^RD[0-9a-fA-F]{32}$Min length: 34Max length: 34

Delete a SupportingDocument

delete-a-supportingdocument page anchor
Node.js
Python
C#
Java
Go
PHP
Ruby
twilio-cli
curl

_16
// Download the helper library from https://www.twilio.com/docs/node/install
_16
const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";
_16
_16
// Find your Account SID and Auth Token at twilio.com/console
_16
// and set the environment variables. See http://twil.io/secure
_16
const accountSid = process.env.TWILIO_ACCOUNT_SID;
_16
const authToken = process.env.TWILIO_AUTH_TOKEN;
_16
const client = twilio(accountSid, authToken);
_16
_16
async function deleteSupportingDocument() {
_16
await client.trusthub.v1
_16
.supportingDocuments("RDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
_16
.remove();
_16
}
_16
_16
deleteSupportingDocument();


Rate this page: