Skip to content

Twilio - Trusthub API

by twilio.com

HTTP BasicHTTPSPhone
Open documentation ↗

Overview

This is the public Twilio REST API.

Twilio - Trusthub is a phone API from twilio.com. Requests are authenticated with HTTP Basic auth. It is served over HTTPS. Its OpenAPI description documents 48 endpoints.

At a glance

Authentication
HTTP Basic
HTTPS
Yes
CORS
Unknown
Category
Phone
Base URL
https://trusthub.twilio.com
Version
1.42.0
Endpoints
48
Spec updated
2023-04-20

Make a first request

Replace the placeholders; the documentation says exactly where credentials go.

cURL
curl -X GET "https://trusthub.twilio.com/v1/CustomerProfiles" \
  -H "Accept: application/json" \
  -H "Authorization: Basic BASE64_USER_PASSWORD"
JavaScript
const response = await fetch("https://trusthub.twilio.com/v1/CustomerProfiles", {
  method: "GET",
  headers: {
    "Accept": "application/json",
    "Authorization": "Basic BASE64_USER_PASSWORD",
  },
});
const data = await response.json();
console.log(data);
Python
import requests

response = requests.request(
    "GET",
    "https://trusthub.twilio.com/v1/CustomerProfiles",
    headers={
    "Accept": "application/json",
    "Authorization": "Basic BASE64_USER_PASSWORD",
    },
    timeout=30,
)
print(response.json())

Endpoints

MethodPathWhat it does
GET/v1/CustomerProfilesRetrieve a list of all Customer-Profiles for an account.
POST/v1/CustomerProfilesCreate a new Customer-Profile.
GET/v1/CustomerProfiles/{CustomerProfileSid}/ChannelEndpointAssignmentsRetrieve a list of all Assigned Items for an account.
POST/v1/CustomerProfiles/{CustomerProfileSid}/ChannelEndpointAssignmentsCreate a new Assigned Item.
GET/v1/CustomerProfiles/{CustomerProfileSid}/ChannelEndpointAssignments/{Sid}Fetch specific Assigned Item Instance.
DELETE/v1/CustomerProfiles/{CustomerProfileSid}/ChannelEndpointAssignments/{Sid}Remove an Assignment Item Instance.
GET/v1/CustomerProfiles/{CustomerProfileSid}/EntityAssignmentsRetrieve a list of all Assigned Items for an account.
POST/v1/CustomerProfiles/{CustomerProfileSid}/EntityAssignmentsCreate a new Assigned Item.
GET/v1/CustomerProfiles/{CustomerProfileSid}/EntityAssignments/{Sid}Fetch specific Assigned Item Instance.
DELETE/v1/CustomerProfiles/{CustomerProfileSid}/EntityAssignments/{Sid}Remove an Assignment Item Instance.
GET/v1/CustomerProfiles/{CustomerProfileSid}/EvaluationsRetrieve a list of Evaluations associated to the customer_profile resource.
POST/v1/CustomerProfiles/{CustomerProfileSid}/EvaluationsCreate a new Evaluation
GET/v1/CustomerProfiles/{CustomerProfileSid}/Evaluations/{Sid}Fetch specific Evaluation Instance.
GET/v1/CustomerProfiles/{Sid}Fetch a specific Customer-Profile instance.
POST/v1/CustomerProfiles/{Sid}Updates a Customer-Profile in an account.
DELETE/v1/CustomerProfiles/{Sid}Delete a specific Customer-Profile.
GET/v1/EndUserTypesRetrieve a list of all End-User Types.
GET/v1/EndUserTypes/{Sid}Fetch a specific End-User Type Instance.
GET/v1/EndUsersRetrieve a list of all End User for an account.
POST/v1/EndUsersCreate a new End User.
GET/v1/EndUsers/{Sid}Fetch specific End User Instance.
POST/v1/EndUsers/{Sid}Update an existing End User.
DELETE/v1/EndUsers/{Sid}Delete a specific End User.
GET/v1/PoliciesRetrieve a list of all Policys.
GET/v1/Policies/{Sid}Fetch specific Policy Instance.
GET/v1/SupportingDocumentTypesRetrieve a list of all Supporting Document Types.
GET/v1/SupportingDocumentTypes/{Sid}Fetch a specific Supporting Document Type Instance.
GET/v1/SupportingDocumentsRetrieve a list of all Supporting Document for an account.
POST/v1/SupportingDocumentsCreate a new Supporting Document.
GET/v1/SupportingDocuments/{Sid}Fetch specific Supporting Document Instance.
POST/v1/SupportingDocuments/{Sid}Update an existing Supporting Document.
DELETE/v1/SupportingDocuments/{Sid}Delete a specific Supporting Document.
GET/v1/TrustProductsRetrieve a list of all Customer-Profiles for an account.
POST/v1/TrustProductsCreate a new Customer-Profile.
GET/v1/TrustProducts/{Sid}Fetch a specific Customer-Profile instance.
POST/v1/TrustProducts/{Sid}Updates a Customer-Profile in an account.
DELETE/v1/TrustProducts/{Sid}Delete a specific Customer-Profile.
GET/v1/TrustProducts/{TrustProductSid}/ChannelEndpointAssignmentsRetrieve a list of all Assigned Items for an account.
POST/v1/TrustProducts/{TrustProductSid}/ChannelEndpointAssignmentsCreate a new Assigned Item.
GET/v1/TrustProducts/{TrustProductSid}/ChannelEndpointAssignments/{Sid}Fetch specific Assigned Item Instance.
DELETE/v1/TrustProducts/{TrustProductSid}/ChannelEndpointAssignments/{Sid}Remove an Assignment Item Instance.
GET/v1/TrustProducts/{TrustProductSid}/EntityAssignmentsRetrieve a list of all Assigned Items for an account.
POST/v1/TrustProducts/{TrustProductSid}/EntityAssignmentsCreate a new Assigned Item.
GET/v1/TrustProducts/{TrustProductSid}/EntityAssignments/{Sid}Fetch specific Assigned Item Instance.
DELETE/v1/TrustProducts/{TrustProductSid}/EntityAssignments/{Sid}Remove an Assignment Item Instance.
GET/v1/TrustProducts/{TrustProductSid}/EvaluationsRetrieve a list of Evaluations associated to the trust_product resource.
POST/v1/TrustProducts/{TrustProductSid}/EvaluationsCreate a new Evaluation
GET/v1/TrustProducts/{TrustProductSid}/Evaluations/{Sid}Fetch specific Evaluation Instance.

Questions

Does the Twilio - Trusthub API need an API key?

Yes. The Twilio - Trusthub API uses HTTP Basic authentication; the documentation explains how to get credentials.

Does the Twilio - Trusthub API support HTTPS?

Yes, the Twilio - Trusthub API is served over HTTPS.

How many endpoints does the Twilio - Trusthub API have?

Its OpenAPI description lists 48 endpoints in version 1.42.0. All of them are shown on this page.

What are alternatives to the Twilio - Trusthub API?

Other Phone APIs include Twilio - Accounts, ETSI GS MEC 010-2 - Part 2: Application lifecycle, rules and requirements management, Twilio - Api, Mobility API, Telnyx API.

Compare alternatives →

Listed from APIs.guru (CC0).