Skip to main content
Ctrl+K

DIDWW Docs

Support Sign in
  • Services & Tools
  • phone.systems™
  • Integrations
    • API Documentation
    • Call Events
API3 Version:
  • Services & Tools
  • phone.systems™
  • Integrations
  • API Documentation
  • Call Events
API3 Version:
Support Sign in

Section Navigation

Introduction

  • Getting Started
  • API Requests in Postman
  • Use Case Examples
    • Buy DID Number(s) that Requires Verification
    • Buy Available DID Number(s)
    • Select, Reserve & Buy Available DID Number(s)
    • Register Emergency Calling Service
    • Update Emergency Calling Service
  • Specification
    • Sorting
    • Pagination
    • Filters
    • Sparse Fieldsets
    • Inclusion of Related Resources
    • Headers
    • Assigning Related Resources
    • Error Objects
  • API Versioning

API Documentation v2026-04-16 (Latest)

  • Overview
  • Coverage Resources
    • Countries
      • Get Country
      • Get Countries
      • Country Object
    • Regions
      • Get Region
      • Get Regions
      • Regions Object
    • Cities
      • Get City
      • Get Cities
      • City Object
    • NANPA Prefix
      • Get NANPA Prefix
      • Get NANPA Prefixes
      • NANPA Prefix Object
    • DID Group Type
      • Get DID Group Type
      • Get DID Group Types
      • DID Group Type Object
    • DID Group
      • Get DID Group
      • Get DID Groups
      • DID Group Object
    • Available DID
      • Get Available DID
      • Get Available DIDs
      • Available DID Object
    • DID Reservation
      • Get DID Reservation
      • Get DID Reservations
      • Create DID Reservation
      • Delete DID Reservation
      • DID Reservation Object
  • Inventory Resources
    • Balance
      • Get Balance
      • Balance Object
    • Orders
      • Get Order
      • Get Orders
      • Create Order
      • Cancel Order
      • Order Object
    • DID
      • Get DID
      • Get DIDs
      • Update DID
      • DID Object
    • DID History
      • Get DID History
      • Get DID Histories
      • DID History Object
    • Inbound Trunks
      • Get Inbound Trunk
      • Get Inbound Trunks
      • Create Inbound Trunk
      • Update Inbound Trunk
      • Delete Inbound Trunk
      • Inbound Trunk Object
      • Get POPs
      • POP Object
      • Codecs
      • Rerouting Disconnect Codes
    • Inbound Trunk Group
      • Get Inbound Trunk Group
      • Get Inbound Trunk Groups
      • Create Inbound Trunk Group
      • Update Inbound Trunk Group
      • Delete Inbound Trunk Group
      • Inbound Trunk Group Object
    • Outbound Trunks
      • Get Outbound Trunk
      • Get Outbound Trunks
      • Create Outbound Trunk
      • Update Outbound Trunk
      • Delete Outbound Trunk
      • Outbound Trunk Object
      • Outbound Trunk Regenerate Credentials
    • Capacity Pool
      • Get Capacity Pool
      • Get Capacity Pools
      • Update Capacity Pool
      • Capacity Pool Object
    • Shared Capacity Group
      • Get Shared Capacity Group
      • Get Shared Capacity Groups
      • Create Shared Capacity Groups
      • Update Shared Capacity Groups
      • Delete Shared Capacity Group
      • Shared Capacity Group Object
  • Regulation Resources
    • Identities
      • Get Identity
      • Get Identities
      • Create Identity
      • Update Identity
      • Delete Identity
      • Identity Object
    • Addresses
      • Get Address
      • Get Addresses
      • Create Addresses
      • Update Addresses
      • Delete Address
      • Addresses Object
    • Address Requirements
      • Get Address Requirement
      • Get Address Requirements
      • Address Requirement Object
      • Address Requirement Validations
    • Address Verifications
      • Get Address Verification
      • Get Address Verifications
      • Create Address Verification
      • Update Address Verification
      • Address Verifications Object
    • Supporting Document Templates
      • Get Supporting Document Templates
      • Get Supporting Document Templates
      • Supporting Document Template Object
    • Encrypted Files
      • Encryption details
      • Get Encrypted File
      • Get Encrypted Files
      • Create Encrypted File
      • Delete Encrypted File
      • Encrypted Files Object
      • Get Public Keys
    • Proofs
      • Get Proof
      • Get Proofs
      • Create Proof
      • Delete Proof
      • Proofs Object
    • Permanent Supporting Documents
      • Get Permanent Supporting Document
      • Get Permanent Supporting Documents
      • Create Permanent Supporting Document
      • Delete Permanent Supporting Document
      • Permanent Supporting Documents Object
    • Proof Types
      • Get Proof Type
      • Get Proof Types
      • Proof Types Object
    • Areas
      • Get Area
      • Get Areas
      • Area Object
  • Emergency Resources
    • Emergency Requirements
      • Get Emergency Requirement
      • Get Emergency Requirements
      • Emergency Requirement Object
      • Emergency Requirement Validations
    • Emergency Calling Services
      • Get Emergency Calling Service
      • Get Emergency Calling Services
      • Delete Emergency Calling Service
      • Emergency Calling Service Object
    • Emergency Verifications
      • Get Emergency Verification
      • Get Emergency Verifications
      • Create Emergency Verification
      • Update Emergency Verification
      • Emergency Verification Object
  • Export
    • Get Export
    • Get Exports
    • Get CSV File of Export
    • Create Export
    • Export Object
    • Export Filters Object
  • Common Definitions
    • Stock Keeping Unit Object
    • Channel Quantity Based Price Object
  • Callback Details
  • Changelog
  • API Documentation v2026-04-16 (Latest Version)
  • Specification
  • Inclusion of Related Resources

Inclusion of Related Resources#

The include parameter allows you to retrieve related resources in a single request. This is also known as side-loading and reduces the need for multiple API calls by returning related objects alongside the primary resource.

The response includes a top-level relationships object containing the related data.

Note

Using include reduces the number of requests needed to fetch related data and improves performance when working with linked resources.



Include a single related resource#

You can include a single related resource by specifying it in the include parameter.

In this example, each DID record includes its associated voice_in_trunk resource. This allows you to retrieve additional details about related resources without sending a separate request:

http

GET /v3/dids?include=voice_in_trunk HTTP/1.1
Host: api.didww.com
Accept: application/vnd.api+json

curl

curl -i -X GET 'https://api.didww.com/v3/dids?include=voice_in_trunk' -H "Accept: application/vnd.api+json"


Include multiple related resources#

You can include multiple related resources by separating them with commas.

In this example, the request includes the DID’s voice_in_trunk resource together with the related voice_in_trunk_group in a single request.

http

GET /v3/dids?include=voice_in_trunk.voice_in_trunk_group HTTP/1.1
Host: api.didww.com
Accept: application/vnd.api+json

curl

curl -i -X GET 'https://api.didww.com/v3/dids?include=voice_in_trunk.voice_in_trunk_group' -H "Accept: application/vnd.api+json"


Include nested related resources#

You can also include relationships of already-included objects.

In this example, the request includes voice_in_trunk and its related voice_in_trunk_group:

http

GET /v3/dids?include=voice_in_trunk%2Cvoice_in_trunk_group HTTP/1.1
Host: api.didww.com
Accept: application/vnd.api+json

curl

curl -i -X GET 'https://api.didww.com/v3/dids?include=voice_in_trunk%2Cvoice_in_trunk_group' -H "Accept: application/vnd.api+json"

previous

Sparse Fieldsets

next

Headers

On this page
  • Include a single related resource
  • Include multiple related resources
  • Include nested related resources