> ## Documentation Index
> Fetch the complete documentation index at: https://docs.eazecustoms.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Getting Started

> Make your first Public API requests and learn which IDs you'll need for the next steps.

## What you can do

Verify your API credentials, select a client, and find the right integration to continue with.

## Before you start

Make sure you have your Eaze Customs API credentials. All API paths in this documentation start with `/public/v1`. The host is specified separately and is not part of the API path.

**Staging – For integration testing:**

`https://staging.api.eazecustoms.com`

**Test your connection:**

```text theme={null}
https://staging.api.eazecustoms.com/public/v1/me
```

The older `/v1` routes are not part of this API.

Background import is available only in environments where Eaze Customs has enabled it. If you receive an HTTP 503 response indicating that processing is not enabled, contact support and include the `requestId`.

## Steps

**1. Call Get Credential Details**

Send `GET /public/v1/me` with your bearer credential. Do not send `X-Eaze-Client-Ref` on this call.

The response shows the credential name, the last four characters of the secret, the modules in `scopes`, and `clientSelectionRequired`. For a broker credential that value is `true`.

**2. List your clients**

Send `GET /public/v1/clients`. Copy `clientRef` exactly. That value is the `X-Eaze-Client-Ref` header on later requests.

`enabledModules` repeats the modules on your credential. It is not a different module list for each client.

**3. Choose the workflow**

Use the module on your credential to decide where to go.

* `import` or `export`: [Shipments](https://docs.eazecustoms.com/implementation/shipments.md)
* `ncts`: [NCTS](https://docs.eazecustoms.com/implementation/ncts-overview.md)
* `rto`: [RTO](https://docs.eazecustoms.com/implementation/rto.md)

## Working example

```bash theme={null}
curl https://staging.api.eazecustoms.com/public/v1/me \
  --header 'Authorization: Bearer EZ_11111111-1111-4111-8111-111111111111_exampleSecretValueNotReal'
```

```json theme={null}
{
  "credential": {
    "id": "11111111-1111-4111-8111-111111111111",
    "name": "Warehouse integration",
    "lastFour": "k9Qm",
    "expiresAt": null
  },
  "ownerType": "broker",
  "scopes": ["import", "rto"],
  "clientSelectionRequired": true
}
```

```bash theme={null}
curl 'https://staging.api.eazecustoms.com/public/v1/clients?limit=20' \
  --header 'Authorization: Bearer EZ_11111111-1111-4111-8111-111111111111_exampleSecretValueNotReal'
```

```json theme={null}
{
  "data": [
    {
      "clientRef": "ACME-AMS",
      "name": "Acme Logistics Amsterdam",
      "enabledModules": ["import", "rto"]
    }
  ],
  "pagination": { "limit": 20, "hasMore": false, "nextCursor": null }
}
```

## Identifiers

Use public IDs. Never send an internal database number.

| You receive | Where it comes from | Where you use it |
| - | - | - |
| `clientRef` | List Clients | `X-Eaze-Client-Ref` |
| Shipment `id` | Create Shipment or List Shipments | Shipment, import, declaration, document, and movement routes |
| `shipmentNumber` | The value you sent at creation | Your own reference. It is not the Shipment ID. |
| `clientReference` | Optional value you sent | Your own reference. It is not `clientRef`. |
| Declaration `id` | List Declarations | Get Declaration, goods items, and documents |
| LRN | Declaration or Transit Declaration response | Your copy of the local reference. You do not send it as an ID. |
| MRN | Customs, or your Arrival request | Read it on the record. Supply it only when creating an Arrival. |
| `manifestTemplateId` | List Manifest Templates | Import Manifest |
| `declarationTemplateIds` | List Declaration Templates | Optional on Import Manifest |
| Transit Declaration `id` | Create Transit Declaration | NCTS reads, import, and documents |
| NCTS `templateId` | List NCTS Templates | Optional when creating a Transit Declaration |
| House Consignment `id` | List House Consignments | Get House Consignment and its goods items |
| `rtoConfigurationId` | List RTO Configurations | Create Shipment when RTO is enabled |
| `uploadId` | Create Upload | Import Manifest or Import Departure Details, after the upload is available |
| `operationId` | An accepted import | Get Operation |
| Document `id` | A document list | Download Document |
| Idempotency key | You generate it | The same write request, or a retry of that exact request |

A portal session token does not authenticate `/public/v1`.

Webhook endpoints and deliveries are managed in the portal, not with Public API routes. See [Set Up Webhooks](https://docs.eazecustoms.com/webhooks/setup.md) and [Deliveries & Retries](https://docs.eazecustoms.com/webhooks/retries.md).

## Statuses and errors

HTTP 401 means the credential is missing, malformed, expired, revoked, or blocked by an IP restriction. HTTP 403 means the credential does not have the module, or the client is not yours.

Quote `requestId` when you contact support. See [Errors & Troubleshooting](https://docs.eazecustoms.com/implementation/errors.md).

Next: [Authentication & Clients](https://docs.eazecustoms.com/implementation/authentication.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.