---
title: Quickstart
summary: From no token to a confirmed sale in four calls.
group: Get started
order: 10
---

This walks one sale from your CRM into Sequifi and confirms it landed. It takes about ten minutes once you have a token.

## 1. Get a token

An admin in your Sequifi company creates it: **Admin > Tools > API Credentials**, choose **Create Credentials**, name it after the integration, then **Generate Credentials**. Copy the access token before you choose **I've saved these tokens**: it is shown once. Keep it somewhere safe, like a secrets manager. It lasts 60 days. See [Authentication](https://apidocs.sequifi.com/guides/authentication.md) for rotation.

Put it in an environment variable so it never lands in your code:

```bash
export SEQUIFI_TOKEN="paste-your-token-here"
```

## 2. Check the token works

```bash
curl "https://marketplace-api.sequifi.com/v1/users?per_page=1" \
  -H "Authorization: Bearer $SEQUIFI_TOKEN"
```

A `200` with one user in `data.users` means you are connected. A `401` with `{"message":"Unauthorized"}` means the token is missing, mistyped or expired.

Every response from the API itself has the same envelope:

```json
{
  "status": 200,
  "message": "success",
  "data": { "current_page": 1, "per_page": 1, "total": 148, "last_page": 148, "users": [ { "id": 4821, "first_name": "Alex", "last_name": "Morgan" } ] }
}
```

## 3. Look up the ids a sale needs

A sale points at a product and at the people who sold it. Look those up once and cache them:

- [`GET /v1/products`](https://apidocs.sequifi.com/reference/list-products.md): your product catalog. Match your CRM's product to a Sequifi product `id`; `product_codes` lists the codes a sale can send instead.
- [`GET /v1/users`](https://apidocs.sequifi.com/reference/list-users.md): your reps. Match by email and keep each rep's Sequifi `id`.
- [`GET /v1/milestones`](https://apidocs.sequifi.com/reference/list-milestone-schemas.md): only if you send milestone dates.

## 4. Post the sale

```bash
curl -X POST "https://marketplace-api.sequifi.com/v1/sales" \
  -H "Authorization: Bearer $SEQUIFI_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "data": [{
      "pid": "SALE-10482",
      "customer_name": "Riley Chen",
      "customer_signoff": "2026-10-01",
      "rep_id": 4821,
      "sale_product_name": "Solar 6kW",
      "kw": 6,
      "customer_state": "AZ",
      "location_code": "AZ"
    }]
  }'
```

`pid` is your own id for the sale. Sending the same `pid` again updates that sale; it never creates a second one. Which other fields are required depends on your company's vertical: see [Vertical Labels](https://apidocs.sequifi.com/guides/vertical-labels.md).

A `201` means the sale passed validation and is **queued**. It is not on the sale list yet.

## 5. Confirm it landed

```bash
curl "https://marketplace-api.sequifi.com/v1/sales/SALE-10482" \
  -H "Authorization: Bearer $SEQUIFI_TOKEN"
```

A `404` right after posting is normal: processing usually finishes within minutes. Poll every minute or two. Once you get a `200`, check the values you sent.

## Next

- [Posting Sales](https://apidocs.sequifi.com/guides/posting-sales.md): batching, pacing and retries for a real sync.
- [Conventions](https://apidocs.sequifi.com/guides/conventions.md): paging, dates, numbers and the envelope.
- [Errors and retries](https://apidocs.sequifi.com/guides/errors.md): what each status means and which calls are safe to repeat.
