# `Twilio.Resources.Api.V2010.Call`
[🔗](https://github.com/jeffhuen/twilio_elixir/blob/main/lib/twilio/resources/api/v2010/call.ex#L2)

A Call is an object that represents a connection between a telephone and Twilio.

SID prefix: `CA`

Parent: `/Accounts/{Sid}.json`

## Sub-resources
- `events` — `/2010-04-01/Accounts/{account_sid}/Calls/{call_sid}/Events.json`
- `notifications` — `/2010-04-01/Accounts/{account_sid}/Calls/{call_sid}/Notifications.json`
- `payments` — `/2010-04-01/Accounts/{account_sid}/Calls/{call_sid}/Payments.json`
- `recordings` — `/2010-04-01/Accounts/{account_sid}/Calls/{call_sid}/Recordings.json`
- `siprec` — `/2010-04-01/Accounts/{account_sid}/Calls/{call_sid}/Siprec.json`
- `streams` — `/2010-04-01/Accounts/{account_sid}/Calls/{call_sid}/Streams.json`
- `transcriptions` — `/2010-04-01/Accounts/{account_sid}/Calls/{call_sid}/Transcriptions.json`
# credo:disable-for-next-line Credo.Check.Readability.MaxLineLength
- `user_defined_message_subscriptions` — `/2010-04-01/Accounts/{account_sid}/Calls/{call_sid}/UserDefinedMessageSubscriptions.json`
- `user_defined_messages` — `/2010-04-01/Accounts/{account_sid}/Calls/{call_sid}/UserDefinedMessages.json`

## Properties

| Field | Description |
|-------|-------------|
# credo:disable-for-next-line Credo.Check.Readability.MaxLineLength
| `account_sid` | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created this Call resource. |
# credo:disable-for-next-line Credo.Check.Readability.MaxLineLength
| `answered_by` | Either `human` or `machine` if this call was initiated with answering machine detection. Empty otherwise. |
| `api_version` | The API version used to create the call. |
# credo:disable-for-next-line Credo.Check.Readability.MaxLineLength
| `caller_name` | The caller's name if this call was an incoming call to a phone number with caller ID Lookup enabled. Otherwise, empty.. PII: standard |
# credo:disable-for-next-line Credo.Check.Readability.MaxLineLength
| `date_created` | The date and time in UTC that this resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.. Format: date-time-rfc-2822 |
# credo:disable-for-next-line Credo.Check.Readability.MaxLineLength
| `date_updated` | The date and time in UTC that this resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.. Format: date-time-rfc-2822 |
# credo:disable-for-next-line Credo.Check.Readability.MaxLineLength
| `direction` | A string describing the direction of the call. Can be: `inbound` for inbound calls, `outbound-api` for calls initiated via the REST API or `outbound-dial` for calls initiated by a `<Dial>` verb. Using [Elastic SIP Trunking](https://www.twilio.com/docs/sip-trunking), the values can be [`trunking-terminating`](https://www.twilio.com/docs/sip-trunking#termination) for outgoing calls from your communications infrastructure to the PSTN or [`trunking-originating`](https://www.twilio.com/docs/sip-trunking#origination) for incoming calls to your communications infrastructure from the PSTN. |
# credo:disable-for-next-line Credo.Check.Readability.MaxLineLength
| `duration` | The length of the call in seconds. This value is empty for busy, failed, unanswered, or ongoing calls. |
# credo:disable-for-next-line Credo.Check.Readability.MaxLineLength
| `end_time` | The time the call ended, given as UTC in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. Empty if the call did not complete successfully.. Format: date-time-rfc-2822 |
# credo:disable-for-next-line Credo.Check.Readability.MaxLineLength
| `forwarded_from` | The forwarding phone number if this call was an incoming call forwarded from another number (depends on carrier supporting forwarding). Otherwise, empty.. PII: standard |
# credo:disable-for-next-line Credo.Check.Readability.MaxLineLength
| `from` | The phone number, SIP address, Client identifier or SIM SID that made this call. Phone numbers are in [E.164](https://www.twilio.com/docs/glossary/what-e164) format (e.g., +16175551212). SIP addresses are formatted as `name@company.com`. Client identifiers are formatted `client:name`. SIM SIDs are formatted as `sim:sid`.. PII: standard |
# credo:disable-for-next-line Credo.Check.Readability.MaxLineLength
| `from_formatted` | The calling phone number, SIP address, or Client identifier formatted for display. Non-North American phone numbers are in [E.164](https://www.twilio.com/docs/glossary/what-e164) format (e.g., +442071838750).. PII: standard |
# credo:disable-for-next-line Credo.Check.Readability.MaxLineLength
| `group_sid` | The Group SID associated with this call. If no Group is associated with the call, the field is empty. |
| `parent_call_sid` | The SID that identifies the call that created this leg. |
# credo:disable-for-next-line Credo.Check.Readability.MaxLineLength
| `phone_number_sid` | If the call was inbound, this is the SID of the IncomingPhoneNumber resource that received the call. If the call was outbound, it is the SID of the OutgoingCallerId resource from which the call was placed. |
# credo:disable-for-next-line Credo.Check.Readability.MaxLineLength
| `price` | The charge for this call, in the currency associated with the account. Populated after the call is completed. May not be immediately available. The price associated with a call only reflects the charge for connectivity.  Charges for other call-related features such as Answering Machine Detection, Text-To-Speech, and SIP REFER are not included in this value. |
# credo:disable-for-next-line Credo.Check.Readability.MaxLineLength
| `price_unit` | The currency in which `Price` is measured, in [ISO 4127](https://www.iso.org/iso/home/standards/currency_codes.htm) format (e.g., `USD`, `EUR`, `JPY`). Always capitalized for calls.. Format: currency |
| `queue_time` | The wait time in milliseconds before the call is placed. |
| `sid` | The unique string that we created to identify this Call resource. |
# credo:disable-for-next-line Credo.Check.Readability.MaxLineLength
| `start_time` | The start time of the call, given as UTC in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. Empty if the call has not yet been dialed.. Format: date-time-rfc-2822 |
# credo:disable-for-next-line Credo.Check.Readability.MaxLineLength
| `status` | The status of this call. Can be: `queued`, `ringing`, `in-progress`, `canceled`, `completed`, `failed`, `busy` or `no-answer`. See [Call Status Values](https://www.twilio.com/docs/voice/api/call-resource#call-status-values) below for more information.. Values: `queued`, `ringing`, `in-progress`, `completed`, `busy`, `failed`, `no-answer`, `canceled` |
# credo:disable-for-next-line Credo.Check.Readability.MaxLineLength
| `subresource_uris` | A list of subresources available to this call, identified by their URIs relative to `https://api.twilio.com`.. Format: uri-map |
# credo:disable-for-next-line Credo.Check.Readability.MaxLineLength
| `to` | The phone number, SIP address, Client identifier or SIM SID that received this call. Phone numbers are in [E.164](https://www.twilio.com/docs/glossary/what-e164) format (e.g., +16175551212). SIP addresses are formatted as `name@company.com`. Client identifiers are formatted `client:name`. SIM SIDs are formatted as `sim:sid`.. PII: standard |
# credo:disable-for-next-line Credo.Check.Readability.MaxLineLength
| `to_formatted` | The phone number, SIP address or Client identifier that received this call. Formatted for display. Non-North American phone numbers are in [E.164](https://www.twilio.com/docs/glossary/what-e164) format (e.g., +442071838750).. PII: standard |
# credo:disable-for-next-line Credo.Check.Readability.MaxLineLength
| `trunk_sid` | The unique identifier of the trunk resource that was used for this call. The field is empty if the call was not made using a SIP trunk or if the call is not terminated. |
| `uri` | The URI of this resource, relative to `https://api.twilio.com`. |

# `t`

```elixir
@type t() :: %Twilio.Resources.Api.V2010.Call{
  account_sid: String.t() | nil,
  answered_by: String.t() | nil,
  api_version: String.t() | nil,
  caller_name: String.t() | nil,
  date_created: String.t() | nil,
  date_updated: String.t() | nil,
  direction: String.t() | nil,
  duration: String.t() | nil,
  end_time: String.t() | nil,
  forwarded_from: String.t() | nil,
  from: String.t() | nil,
  from_formatted: String.t() | nil,
  group_sid: String.t() | nil,
  parent_call_sid: String.t() | nil,
  phone_number_sid: String.t() | nil,
  price: String.t() | nil,
  price_unit: String.t() | nil,
  queue_time: String.t() | nil,
  sid: String.t() | nil,
  start_time: String.t() | nil,
  status: String.t(),
  subresource_uris: map() | nil,
  to: String.t() | nil,
  to_formatted: String.t() | nil,
  trunk_sid: String.t() | nil,
  uri: String.t() | nil
}
```

# `object_name`

# `sid_prefix`

---

*Consult [api-reference.md](api-reference.md) for complete listing*
