> For the complete documentation index, see [llms.txt](https://docs.fastn.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fastn.ai/connectors/catalog/ecommerce/packagex.md). Agents can also search and read this documentation through its [MCP server](https://docs.fastn.ai/~gitbook/mcp).

# PackageX

PackageX is a logistics and mailroom platform. Create shipments, contacts, locations and users, and autocomplete addresses.

![PackageX logo](https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-61aa3bf5a3b98d16e535a57a234f1414fcd8e4e7%2Fpackagex.png?alt=media)

|                    |                                                                          |
| ------------------ | ------------------------------------------------------------------------ |
| **Category**       | [E-commerce](https://docs.fastn.ai/connectors/catalog/ecommerce.md)      |
| **Website**        | [packagex.io](https://packagex.io)                                       |
| **Authentication** | API key                                                                  |
| **Slug**           | `packagex`                                                               |
| **On fastn.ai**    | [Embed PackageX in your product](https://fastn.ai/integrations/packagex) |

## Setup

Your customers enter their API key for PackageX when they connect. Nothing else needs setting up.

## Connect in Fastn

Your customers connect PackageX from your widget. To connect an account yourself:

1. Go to **Build → Integrations → Connectors** and search for **PackageX**.
2. Select **Connect** on the PackageX card.

   <figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-586dd03cdc0c6904263f58928d7a531eae2f85df%2Fconnect-search.png?alt=media" alt="The Connectors page in Fastn with ServiceNow typed in the search box and the ServiceNow card showing a Connect button"><figcaption><p>Search for the connector, then select Connect on its card. ServiceNow is shown here.</p></figcaption></figure>
3. Fill in the fields the form asks for, using the values from [Setup](#setup) above. Then select **Connect**.

   <figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-51fb88ef328c525b5b11f8d7094bab11efc333b8%2Fconnect-credentials.png?alt=media" alt="The Connect ServiceNow dialog with an optional account name and the Instance, Username and Password fields, and Cancel and Connect buttons"><figcaption><p>A connect form that asks for credentials. Each connector asks for its own fields.</p></figcaption></figure>
4. Check that the connection appears under **Operate → Connections** with the status `Active`. Your workflows can now use PackageX's actions.

For more detail, see [Connect an app](https://docs.fastn.ai/build/integrations/connectors/connect-an-app.md).

## Actions

<table><thead><tr><th width="240">Action</th><th width="260">Slug</th><th>What it does</th></tr></thead><tbody><tr><td>Autocomplete Address</td><td><code>autocompleteAddress</code></td><td>Returns up to five address completions for a partial address string, powered by Google Maps Places. Optionally restrict results to a specific country using a two-letter region code.</td></tr><tr><td>Create API Key</td><td><code>createApiKey</code></td><td>Creates a new PackageX API key scoped to the given resources, optionally with an expiration date. The full key value is returned only once, at creation time.</td></tr><tr><td>Create Contact</td><td><code>createContact</code></td><td>Creates a new contact with name, contact details, and address information for use as a sender or recipient on deliveries and shipments.</td></tr><tr><td>Create Group</td><td><code>createGroup</code></td><td>Creates a group used to organize contacts or locations, optionally scoped to a location and pre-populated with member contact ids.</td></tr><tr><td>Create Location</td><td><code>createLocation</code></td><td>Creates a new physical location for your organization from a name and address. Operating hours, notification settings, and a default layout are generated automatically.</td></tr><tr><td>Create Shipment</td><td><code>createShipment</code></td><td>Creates an outbound shipment with sender and recipient details and one or more parcels. Generates shipping rates and, depending on options, a shipping label.</td></tr><tr><td>Create User</td><td><code>createUser</code></td><td>Creates a new user in your organization with a name, email, and role. A role_id is required by the API.</td></tr><tr><td>Delete API Key</td><td><code>deleteApiKey</code></td><td>Permanently deletes a single API key by its id, immediately revoking its access.</td></tr><tr><td>Delete Contact</td><td><code>deleteContact</code></td><td>Permanently deletes a contact by its id.</td></tr><tr><td>Delete Group</td><td><code>deleteGroup</code></td><td>Permanently deletes a group by its id.</td></tr></tbody></table>

<details>

<summary>View 25 more actions</summary>

<table><thead><tr><th width="240">Action</th><th width="260">Slug</th><th>What it does</th></tr></thead><tbody><tr><td>Delete Location</td><td><code>deleteLocation</code></td><td>Permanently deletes a physical location by its id.</td></tr><tr><td>Delete User</td><td><code>deleteUser</code></td><td>Permanently removes a user from your organization by their id.</td></tr><tr><td>Geocode Address</td><td><code>geocodeAddress</code></td><td>Converts an address, or the id of an existing address or location, into geographical coordinates (latitude and longitude).</td></tr><tr><td>Get API Key</td><td><code>getApiKey</code></td><td>Retrieves a single API key by its id.</td></tr><tr><td>Get Contact</td><td><code>getContact</code></td><td>Retrieves a single contact by its id.</td></tr><tr><td>Get Delivery</td><td><code>getDelivery</code></td><td>Retrieves detailed information about a single delivery by its id, including tracking updates and addresses.</td></tr><tr><td>Get Group</td><td><code>getGroup</code></td><td>Retrieves a single group by its id.</td></tr><tr><td>Get Location</td><td><code>getLocation</code></td><td>Retrieves a single physical location by its id.</td></tr><tr><td>Get Organization</td><td><code>getOrganization</code></td><td>Retrieves comprehensive information about an organization, including configuration settings, carrier credentials, and tenant relationships.</td></tr><tr><td>Get Shipment</td><td><code>getShipment</code></td><td>Retrieves detailed information about a single outbound shipment by its id.</td></tr><tr><td>Get Tracker</td><td><code>getTracker</code></td><td>Retrieves detailed information about a specific tracker by its id, including its shipments, destination details, and tracking updates.</td></tr><tr><td>Get User</td><td><code>getUser</code></td><td>Retrieves a single user by its id.</td></tr><tr><td>List API Keys</td><td><code>listApiKeys</code></td><td>Retrieves the API keys associated with your organization, with an optional filter by key type.</td></tr><tr><td>List Contacts</td><td><code>listContacts</code></td><td>Retrieves the contacts belonging to your organization, with pagination.</td></tr><tr><td>List Deliveries</td><td><code>listDeliveries</code></td><td>Retrieves multiple deliveries with comprehensive filtering, sorting, and search capabilities. Returns an array of delivery records with a pagination object, even when no deliveries match.</td></tr><tr><td>List Groups</td><td><code>listGroups</code></td><td>Retrieves the groups belonging to your organization, with pagination. Groups are used to organize contacts, locations, and other resources.</td></tr><tr><td>List Locations</td><td><code>listLocations</code></td><td>Retrieves the physical locations belonging to your organization, with pagination.</td></tr><tr><td>List Shipments</td><td><code>listShipments</code></td><td>Retrieves outbound shipments belonging to your organization, with filtering, sorting, and pagination.</td></tr><tr><td>List Trackers</td><td><code>listTrackers</code></td><td>Retrieves the trackers belonging to your organization, with pagination. A tracker represents the end-to-end journey of a shipment, potentially spanning multiple hops.</td></tr><tr><td>List Users</td><td><code>listUsers</code></td><td>Retrieves the users belonging to your organization, with pagination.</td></tr><tr><td>Parse Address</td><td><code>parseAddress</code></td><td>Validates, normalizes, and standardizes a free-text or structured address into the PackageX address model, with optional USPS CASS validation for US addresses.</td></tr><tr><td>Update API Key</td><td><code>updateApiKey</code></td><td>Updates the name or scopes of an existing API key.</td></tr><tr><td>Update Contact</td><td><code>updateContact</code></td><td>Updates an existing contact's name, contact details, or address.</td></tr><tr><td>Update Group</td><td><code>updateGroup</code></td><td>Updates a group's name, or adds, removes, or replaces its member contact ids.</td></tr><tr><td>Update Location</td><td><code>updateLocation</code></td><td>Updates an existing location's attributes such as name, code, contact info, address, or provider instructions.</td></tr></tbody></table>

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.fastn.ai/connectors/catalog/ecommerce/packagex.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
