---
schema_version: "1"
id: ab7f992f80681151f2f6a58c9bc166285d634985a927e848bac2aefe75aed6c3
title: ExternalService Namespace
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_namespace_ExternalService.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_namespace_ExternalService.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 3ca88173b57dbe899961cfa10f22f0503136ca4103d09da2b91447836f9455bc
description: The ExternalService namespace provides dynamically generated Apex service interfaces and Apex classes for complex object data types.
---
# ExternalService Namespace

The ExternalService namespace provides dynamically generated Apex service interfaces and Apex classes for complex object data types.

The ExternalService namespace doesn't define a fixed set of classes. The namespace reflects OpenAPI-compatible external service registrations with active operations for type-safe outbound calls. The object schema, in the API specification that is associated with the registered external service, maps to Apex types.

#### See Also

- [_Salesforce Help:_ Invoke External Service Callouts Using Apex](https://help.salesforce.com/s/articleView?id=platform.external_services_apex_invoking.htm&type=5&language=en_US)