# Service enfonica.voice.v1beta1.Faxes

## Methods

| DeleteFax |
| -- |
| <span class="e-code">rpc DeleteFax(<span class="e-code">[DeleteFaxRequest](#deletefaxrequest)</span>) returns (<span class="e-code"><a href="https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty" target="_blank">google.protobuf.Empty</a></span>)</span><br/><br/>Deletes a fax.<br/><br/>The caller must have `voice.faxes.delete` permission on the project. |

| GetFax |
| -- |
| <span class="e-code">rpc GetFax(<span class="e-code">[GetFaxRequest](#getfaxrequest)</span>) returns (<span class="e-code">[Fax](#resource-fax)</span>)</span><br/><br/>Retrieves a Fax identified by the supplied resource name.<br/><br/>The caller must have `voice.faxes.get` permission on the project. |

| ListFaxes |
| -- |
| <span class="e-code">rpc ListFaxes(<span class="e-code">[ListFaxesRequest](#listfaxesrequest)</span>) returns (<span class="e-code">[ListFaxesResponse](#listfaxesresponse)</span>)</span><br/><br/>Lists the Faxes of the specified project. List returns Faxes sorted by create_time descending.<br/><br/>The caller must have `voice.faxes.list` permission on the project. |

## Resource: Fax

The Fax resource.

Fields | &nbsp;
--|--
<span class="e-code">name</span> | <span class="e-code">string</span><br/>Resource name of the fax. It must match the pattern `projects/*/faxes/*`.
<span class="e-code">call</span> | <span class="e-code">string</span><br/>Output only. The call that the fax was received on.
<span class="e-code">to</span> | <span class="e-code">string</span><br/>Required. The recipient of the call.<br/><br/>For PSTN calls, this is the phone number in +E164 format.<br/><br/>For calls to a SIP domain, this is the URI in the To header, in the format `sip:user-or-number@domain`. 
<span class="e-code">from</span> | <span class="e-code">string</span><br/>Output only. The originator of the call.<br/><br/>For PSTN calls, this is the CLI (Caller ID) in +E164 format. When placing outgoing API calls, this is required.<br/><br/>For calls to a SIP domain, this is the URI in the From header, in the format `sip:user-or-number@domain`.<br/><br/>This field will not be set if the CLI originated from the PSTN and the call came from a private number. 
<span class="e-code">page_count</span> | <span class="e-code">int32</span><br/>Output only. The number of pages.
<span class="e-code">ready_uri</span> | <span class="e-code">string</span><br/>Output only. The URI to send the fax ready webhook to. Must be an absolute URI.
<span class="e-code">uri</span> | <span class="e-code">string</span><br/>Output only. An ephemeral URI that can be used to download the fax. The URI is valid for 60 minutes. Note that this field is only included in the FULL view.
<span class="e-code">start_time</span> | <span class="e-code"><a href="https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#timestamp" target="_blank">google.protobuf.Timestamp</a></span><br/>Output only. The start time of the fax. This is when fax on the call started. Only set when state is SUCCEEDED.
<span class="e-code">create_time</span> | <span class="e-code"><a href="https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#timestamp" target="_blank">google.protobuf.Timestamp</a></span><br/>Output only. The creation time of the fax. This is the time that the fax resource was created.

## GetFaxRequest

The GetFax request fax.

Fields | &nbsp;
--|--
<span class="e-code">name</span> | <span class="e-code">string</span><br/>Required. The resource name of the Fax to retrieve. Must be of the form `projects/*/calls/*/fax`.
<span class="e-code">view</span> | <span class="e-code">[FaxView](#faxview)</span><br/>Configuration of partial responses. Defaults to FULL.

## FaxView

Configuration of partial responses for the Fax resource.

Enums | &nbsp;
--|--
<span class="e-code">FAX_VIEW_UNSPECIFIED</span> | The default / unset value. The API will default to BASIC for ListFaxes and FULL for GetFax.
<span class="e-code">BASIC</span> | Includes all fields except `uri`. This is the default for ListFaxes.
<span class="e-code">FULL</span> | Includes all fields. This is the default for GetFax.

## ListFaxesRequest

The ListFaxes request fax.

Fields | &nbsp;
--|--
<span class="e-code">parent</span> | <span class="e-code">string</span><br/>Required. The resource name of the parent of which to list faxes. Must be of the form `projects/*`.
<span class="e-code">page_size</span> | <span class="e-code">int32</span><br/>The maximum number of Faxes to return in the response. Default value of 10 and maximum value of 100.
<span class="e-code">page_token</span> | <span class="e-code">string</span><br/>A pagination token returned from a previous fax to `ListFaxes` that indicates where this listing should continue from.
<span class="e-code">view</span> | <span class="e-code">[FaxView](#faxview)</span><br/>Configuration of partial responses. Defaults to BASIC.

## ListFaxesResponse

The ListFaxes response fax.

Fields | &nbsp;
--|--
<span class="e-code">faxes[]</span> | <span class="e-code">[Fax](#resource-fax)</span><br/>A possibly paginated list of Faxes that are direct descendants of the specified parent resource.
<span class="e-code">next_page_token</span> | <span class="e-code">string</span><br/>A pagination token returned from a previous fax to `ListFaxes` that indicates from where listing should continue.

## DeleteFaxRequest

The DeleteFax request message.

Fields | &nbsp;
--|--
<span class="e-code">name</span> | <span class="e-code">string</span><br/>Required. The resource name of the Fax to be deleted. Must be of the form `projects/*/calls/*/fax`.

