---
schema_version: "1"
id: 0d4a1e66b9edf7a4bac18a0f85e56af56bc63eb4f811bcdb1bbe6d03845a2363
title: MetadataPackage
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/api_tooling/tooling_api_objects_metadatapackage.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/tooling_api_objects_metadatapackage.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: c9c9b6c0dc6b0bb0c274b5be3f06115d20fb3fa2f9d74042db1da5101a68d6e1
description: Represents a package that has been developed in the org you’re logged in to. Applies to unlocked, unmanaged, first-generation, and second-generation managed packages. Available in Tooling API version 38.0 and later.
---
# MetadataPackage

Represents a package that has been developed in the org you’re logged in to. Applies to unlocked, unmanaged, first-generation, and second-generation managed packages. Available in Tooling API version 38.0 and later.

## Supported SOAP Calls

query(), retrieve()

## Supported REST HTTP Methods

GET

## Fields

| Field | Details |
| --- | --- |
| Name | 
Type

string

Properties

Filter, Group, idLookup, Sort

Description

The name of the package.



 |
| NamespacePrefix | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

For first-generation and second-generation managed packages, and unlocked packages with namespaces, this field is the namespace prefix assigned to the package. For unmanaged packages, or no-namespace unlocked packages, this field is blank.



 |
| PackageCategory | 

Type

picklist

Properties

Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort

Description

The type of package. Valid values are:

- Application (internal use only)
- Module (internal use only)
- Package—Represents either an unmanaged package or a first-generation managed package.
- Package2—Represents either an unlocked package or a second-generation managed package.

The default value is Package.

This field is available in API version 49.0 and later.





 |