CatalogedApi represents an API imported into API Catalog for Salesforce from an external source. It defines the catalog entry, the API schema, and associated instances. Each nested CatalogedApiInstance represents a MuleSoft API instance brought in from Anypoint Platform; it is not a separately identified metadata component.
The catalog entry, its external identity, and its service registrations serve different purposes. The inherited fullName identifies the metadata component, label supplies its display name, and externalSourceIdentifier identifies the API in the external source. An instance's serviceRegistration references a related ExternalServiceRegistration, not the catalog entry itself.
Key Elements
| Element | What the Element Controls |
|---|---|
fullName |
Inherited metadata component identity. It has a different role from the catalog display name and external source identifier. |
label |
Required catalog-level display name: the API name shown in API Catalog. |
externalSourceIdentifier |
The API's ID in the external source from which it was imported. |
descriptor |
The catalog-level API schema, stored as a JSON string. Its content determines the API type when type is not specified. |
providerType |
Required source of the API specification. Only Anypoint is supported for deployment. |
type |
API type: GraphQL, gRPC, or REST. Designated required but nillable; when unspecified, it is derived from descriptor. |
instances |
Array of nested CatalogedApiInstance entries containing instance identity, schema, access information, and a service registration reference. |
accessStatus |
Required on each instance. Records Approved, Deleted, NoStatus, NotAccessible, Pending, Rejected, or Revoked. |
approvalType |
Required on each instance. Specifies the Anypoint Platform approval model: AutoApproval, ManualApproval, or NoApproval. |
label within instances
|
Required instance name shown in API Catalog, distinct from the catalog-level label. |
uri |
Required uniform resource identifier (URI) for the instance. |
serviceRegistration |
Required reference from an instance to its related ExternalServiceRegistration component. |
endpointType |
Instance endpoint type: Callout or Discovery. |
apiInstanceDescriptor |
Instance-level API schema content, stored as a JSON string and separate from the catalog-level descriptor. |
Behavior and Constraints
Access state and approval model are separate. An instance's approvalType describes how access approval works in Anypoint Platform. It does not establish whether access is currently approved. Use accessStatus to read the recorded access state rather than inferring it from AutoApproval, ManualApproval, or NoApproval.
Each instance requires accessStatus, approvalType, label, uri, and serviceRegistration. Different entries in instances can carry different service registration references. The instance's uri identifies that instance, while endpointType distinguishes Callout from Discovery.
An omitted type does not mean the API has no type. Although the field is designated required, it is also nillable, and Salesforce derives the API type from descriptor when it is not specified. To interpret an entry without an explicit type, examine the descriptor content.
The two schema fields have different scopes. descriptor describes the API at the catalog level; apiInstanceDescriptor carries instance-level schema content. Both contain JSON strings.
Deployment and Retrieval
CatalogedApi components use the .catalogedApi suffix and reside in the catalogedApis folder. The component's inherited fullName is its metadata identity; neither its display label nor its external source ID substitutes for that identity.
Use Anypoint for providerType when deploying. The field uses a shared provider enumeration that exposes additional values, but those values do not establish deployment support for CatalogedApi. The ExternalServiceRegistration documentation describes the shared provider values.
When assessing a change, examine the serviceRegistration reference in every populated instance and the CatalogedApiVersion components that reference the catalog entry. These relationships do not, by themselves, establish automatic creation or deletion of related components, or a mandatory deployment sequence. Treat nested instances as part of the CatalogedApi component rather than as separately identified deployment components.
Relationships
The outgoing relationship is instance-specific: each instances entry carries its own service registration reference. The incoming relationship connects API version metadata to the catalog entry. These are the relevant connections to inspect for change impact.
References
-
ExternalServiceRegistration:serviceRegistrationwithininstances.
Referenced By
-
CatalogedApiVersion:catalogedApi.
Common Questions
Can I deploy CatalogedApi with a providerType other than Anypoint?
Only Anypoint is supported for deployment. Other values exposed by the shared provider enumeration are not evidence of deployment support for this type.
What happens if CatalogedApi has no explicit type?
Salesforce derives the API type from the catalog-level descriptor. The field is designated required but nillable, so inspect that JSON content when the explicit value is absent.
Does AutoApproval mean an API instance has approved access?
No. AutoApproval is an approval model recorded in approvalType. The separate accessStatus field records the instance's access state, including Approved, Pending, or Revoked.
Which dependencies should I inspect before changing a CatalogedApi?
Inspect each instance's serviceRegistration reference to ExternalServiceRegistration and any CatalogedApiVersion components whose catalogedApi references the entry. Those references alone do not establish automatic lifecycle actions or a required deployment order.