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

# Introduction

> Learn how to use the Smart Send REST API

Use the Smart Send API to automate every aspect of your shipping workflows, from booking shipments to tracking and returns. The API powers all official Smart Send integrations, so anything our Shopify and WooCommerce apps can do, you can do too.

If you are looking for a ready-made solution for your webshop, explore our e-commerce integrations instead:

> [card] [WooCommerce plugin](https://docs.smartsend.io/integrations/woocommerce/introduction.md)

> [card] [Shopify App](https://docs.smartsend.io/integrations/shopify/introduction.md)

## Base URL

All API requests are made against the following base URL:

```bash theme={null}
https://app.smartsend.io/api
```

## OpenAPI specification

The full API is described in machine-readable OpenAPI specifications. Use them to generate client libraries, import the API into tools like Postman, or explore the available endpoints and schemas.

> [card] [API v1 specification](https://docs.smartsend.io/openapi-v1.json)
>
> Download the OpenAPI spec for the stable v1 API.

> [card] [API v2 specification](https://docs.smartsend.io/openapi-v2beta.json)
>
> Download the OpenAPI spec for v2 and beta endpoints.

## Integrations

The Smart Send API is the same API that powers our official integrations. If you are building on top of an existing platform, you can often save time by starting from one of our open-source integrations rather than calling the API directly:

> [card] [WooCommerce plugin](https://docs.smartsend.io/integrations/woocommerce/introduction.md)

> [card] [Shopify App](https://docs.smartsend.io/integrations/shopify/introduction.md)

## Authentication

The Smart Send API uses bearer tokens for authentication. Generate a token in the Smart Send platform and include it in the `Authorization` header of every request.

> [card] [Authentication](https://docs.smartsend.io/api-reference/authentication.md)
>
> Learn how to generate, use, and revoke API tokens.

## Make your first request

Once you have an API token, you can verify your setup with a simple request. The example below lists the carrier agents available in Denmark:

```bash theme={null}
curl https://app.smartsend.io/api/v2/agents/dk \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Accept: application/json"
```

If your token is valid, the API responds with a JSON payload describing the available carrier agents. From here, you can start exploring the rest of the API.

## Next steps

> [card] [Review authentication](https://docs.smartsend.io/api-reference/authentication.md)
>
> Generate, rotate, and revoke API tokens.

> [card] [Review debugging](https://docs.smartsend.io/api-reference/debugging.md)
>
> Use headers like `User-Agent` and `Request-ID` to trace requests.

> [card] [Browse the endpoint reference](https://docs.smartsend.io/api-reference/agents/list-carrier-agents-in-country.md)
>
> Browse the API sidebar to see available resources and request schemas.


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