Evo Voice

<back to all web services

ListAccounts

Retrieve a list of accounts

Requires Authentication
The following routes are available for this service:
GET/accounts
ListAccounts Parameters:
NameParameterData TypeRequiredDescription
NameFilterquerystringNoFilter the results by name
ListRequest<T> Parameters:
NameParameterData TypeRequiredDescription
PageformintNoThe page of data to retrieve
AllformboolNoIf you want all objects to be returned. This should be used with care
CountPerPageformintNoThe number per page to retrieve
SpecificIdsformList<string>NoSpecific IDs
SortFieldformstringNoSpecify a sort field
SortOrderformSortOrdersNoSpecify a sort order
SimplifiedPagingformboolNoDisables total / page counts - improves performance. Returns only data. If there is no more data, Items will be empty array
SortOrders Enum:
Ascend
Descend
AccountInfo Parameters:
NameParameterData TypeRequiredDescription
NameformstringNoThe name of this account
ParentAccountIdformstringNoThe ID of this account's parent
TwilioAccountSidformstringNoThe twilio account SID
AncestorIdsformList<string>NoThe ancestors of this account. Useful for breadcrumbs
MaxPhoneNumbersformintNoThe max number of phone numbers this account can have
IsBYOAformboolNoThis account is BYOA
TrustHubProfileSidformstringNoTrustHub Profile Sid
LogoIdformstringNoThe ID of the logo file
LogoUriformstringNoThe URI of the logo file
BillingSettingsformBillingSettingsNoThe billing settings for this account
EntityInfo Parameters:
NameParameterData TypeRequiredDescription
IdformstringNoThe ID of the object
DateCreatedformstringNoThe date the object was created
DateLastModifiedformstringNoThe date the object was last modified
CreatedByformstringNoThe user that created this object
LastModifiedByformstringNoThe user that last modified this object
BillingSettings Parameters:
NameParameterData TypeRequiredDescription
BaseformBillingItemNo
LocalNumbersformBillingItemNo
TollFreeNumbersformBillingItemNo
InboundVoiceCallsformBillingItemNo
OutboundVoiceCallsformBillingItemNo
InboundFaxesformBillingItemNo
OutboundFaxesformBillingItemNo
InboundSmsMessagesformBillingItemNo
OutboundSmsMessagesformBillingItemNo
BillingItem Parameters:
NameParameterData TypeRequiredDescription
BaseCostformdoubleNo
RawUnitMultiplierformdoubleNo
UnitCostformdoubleNo
AllowanceformintNo
ListResponse<AccountInfo> Parameters:
NameParameterData TypeRequiredDescription
ItemsformList<AccountInfo>NoThe items
TotalCountformintNoThe total number of items
TotalPagesformintNoThe total number of pages
HasMorePagesformboolNoAre there more pages of items? Used with simplified paging

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /accounts HTTP/1.1 
Host: evovoice.io 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<ListResponseOfAccountInfoLIonMsk5 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Voice.Api">
  <HasMorePages>false</HasMorePages>
  <Items xmlns:d2p1="http://schemas.datacontract.org/2004/07/Voice.Api.Accounts">
    <d2p1:AccountInfo>
      <CreatedBy>String</CreatedBy>
      <DateCreated>String</DateCreated>
      <DateLastModified>String</DateLastModified>
      <Id>String</Id>
      <LastModifiedBy>String</LastModifiedBy>
      <d2p1:AncestorIds xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>String</d4p1:string>
      </d2p1:AncestorIds>
      <d2p1:BillingSettings>
        <d2p1:Base>
          <d2p1:Allowance>0</d2p1:Allowance>
          <d2p1:BaseCost>0</d2p1:BaseCost>
          <d2p1:RawUnitMultiplier>0</d2p1:RawUnitMultiplier>
          <d2p1:UnitCost>0</d2p1:UnitCost>
        </d2p1:Base>
        <d2p1:InboundFaxes>
          <d2p1:Allowance>0</d2p1:Allowance>
          <d2p1:BaseCost>0</d2p1:BaseCost>
          <d2p1:RawUnitMultiplier>0</d2p1:RawUnitMultiplier>
          <d2p1:UnitCost>0</d2p1:UnitCost>
        </d2p1:InboundFaxes>
        <d2p1:InboundSmsMessages>
          <d2p1:Allowance>0</d2p1:Allowance>
          <d2p1:BaseCost>0</d2p1:BaseCost>
          <d2p1:RawUnitMultiplier>0</d2p1:RawUnitMultiplier>
          <d2p1:UnitCost>0</d2p1:UnitCost>
        </d2p1:InboundSmsMessages>
        <d2p1:InboundVoiceCalls>
          <d2p1:Allowance>0</d2p1:Allowance>
          <d2p1:BaseCost>0</d2p1:BaseCost>
          <d2p1:RawUnitMultiplier>0</d2p1:RawUnitMultiplier>
          <d2p1:UnitCost>0</d2p1:UnitCost>
        </d2p1:InboundVoiceCalls>
        <d2p1:LocalNumbers>
          <d2p1:Allowance>0</d2p1:Allowance>
          <d2p1:BaseCost>0</d2p1:BaseCost>
          <d2p1:RawUnitMultiplier>0</d2p1:RawUnitMultiplier>
          <d2p1:UnitCost>0</d2p1:UnitCost>
        </d2p1:LocalNumbers>
        <d2p1:OutboundFaxes>
          <d2p1:Allowance>0</d2p1:Allowance>
          <d2p1:BaseCost>0</d2p1:BaseCost>
          <d2p1:RawUnitMultiplier>0</d2p1:RawUnitMultiplier>
          <d2p1:UnitCost>0</d2p1:UnitCost>
        </d2p1:OutboundFaxes>
        <d2p1:OutboundSmsMessages>
          <d2p1:Allowance>0</d2p1:Allowance>
          <d2p1:BaseCost>0</d2p1:BaseCost>
          <d2p1:RawUnitMultiplier>0</d2p1:RawUnitMultiplier>
          <d2p1:UnitCost>0</d2p1:UnitCost>
        </d2p1:OutboundSmsMessages>
        <d2p1:OutboundVoiceCalls>
          <d2p1:Allowance>0</d2p1:Allowance>
          <d2p1:BaseCost>0</d2p1:BaseCost>
          <d2p1:RawUnitMultiplier>0</d2p1:RawUnitMultiplier>
          <d2p1:UnitCost>0</d2p1:UnitCost>
        </d2p1:OutboundVoiceCalls>
        <d2p1:TollFreeNumbers>
          <d2p1:Allowance>0</d2p1:Allowance>
          <d2p1:BaseCost>0</d2p1:BaseCost>
          <d2p1:RawUnitMultiplier>0</d2p1:RawUnitMultiplier>
          <d2p1:UnitCost>0</d2p1:UnitCost>
        </d2p1:TollFreeNumbers>
      </d2p1:BillingSettings>
      <d2p1:IsBYOA>false</d2p1:IsBYOA>
      <d2p1:LogoId>String</d2p1:LogoId>
      <d2p1:LogoUri>String</d2p1:LogoUri>
      <d2p1:MaxPhoneNumbers>0</d2p1:MaxPhoneNumbers>
      <d2p1:Name>String</d2p1:Name>
      <d2p1:ParentAccountId>String</d2p1:ParentAccountId>
      <d2p1:TrustHubProfileSid>String</d2p1:TrustHubProfileSid>
      <d2p1:TwilioAccountSid>String</d2p1:TwilioAccountSid>
    </d2p1:AccountInfo>
  </Items>
  <TotalCount>0</TotalCount>
  <TotalPages>0</TotalPages>
</ListResponseOfAccountInfoLIonMsk5>