Evo Voice

<back to all web services

GetFile

Get the specific file

Requires Authentication
Requires any of the roles:SystemAdministrator, Manager, Customer
The following routes are available for this service:
GET/files/{fileId}
GetFile Parameters:
NameParameterData TypeRequiredDescription
FileIdpathstringNoThe ID of the file
FileInfo Parameters:
NameParameterData TypeRequiredDescription
TypeformFileTypesNoThe type of file this is
AccountIdformstringNoThe account ID this file is associated with
AccountNameformstringNoThe name of the account this file is associated with
CustomerIdformstringNoThe ID of the customer this file is associated with
CustomerNameformstringNoThe name of the customer this file is associated with
CustomerBreadcrumbformList<CustomerBreadcrumb>NoThe breadcrumb to the customer for this file
UserIdformstringNoThe ID of the user this file is assocaited with
UserNameformstringNoThe name of the user this file is associated with
FileNameformstringNoThe original file name for the file
UriformstringNoThe URI of the file
ContentTypeformstringNoThe Content type of the file
ContentLengthformlongNoThe size of the file
RecordingSidformstringNoThe Twilio ID of the recording
RecordingDurationformintNoThe duration of the recording in seconds
RecordingFromformstringNoWho is the recording from?
TranscriptionformstringNoTranscription (if available)
FromAddressformstringNoFrom Address (e.g. caller ID) for incoming calls
ToAddressformstringNoTo Address (e.g. dialed number) for outgoing calls
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
FileTypes Enum:
Upload
VoiceMessage
CallRecording
Fax
Attachment
FaxOutgoing
CustomerBreadcrumb Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
NameformstringNo

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 /files/{fileId} HTTP/1.1 
Host: evovoice.io 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<FileInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Voice.Api.Files">
  <CreatedBy xmlns="http://schemas.datacontract.org/2004/07/Voice.Api">String</CreatedBy>
  <DateCreated xmlns="http://schemas.datacontract.org/2004/07/Voice.Api">String</DateCreated>
  <DateLastModified xmlns="http://schemas.datacontract.org/2004/07/Voice.Api">String</DateLastModified>
  <Id xmlns="http://schemas.datacontract.org/2004/07/Voice.Api">String</Id>
  <LastModifiedBy xmlns="http://schemas.datacontract.org/2004/07/Voice.Api">String</LastModifiedBy>
  <AccountId>String</AccountId>
  <AccountName>String</AccountName>
  <ContentLength>0</ContentLength>
  <ContentType>String</ContentType>
  <CustomerBreadcrumb xmlns:d2p1="http://schemas.datacontract.org/2004/07/Voice.Api.Customers">
    <d2p1:CustomerBreadcrumb>
      <d2p1:Id>String</d2p1:Id>
      <d2p1:Name>String</d2p1:Name>
    </d2p1:CustomerBreadcrumb>
  </CustomerBreadcrumb>
  <CustomerId>String</CustomerId>
  <CustomerName>String</CustomerName>
  <FileName>String</FileName>
  <FromAddress>String</FromAddress>
  <RecordingDuration>0</RecordingDuration>
  <RecordingFrom>String</RecordingFrom>
  <RecordingSid>String</RecordingSid>
  <ToAddress>String</ToAddress>
  <Transcription>String</Transcription>
  <Type>Upload</Type>
  <Uri>String</Uri>
  <UserId>String</UserId>
  <UserName>String</UserName>
</FileInfo>