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

# Quickstart

> Sign up, grab a key, make your first request. Five minutes.

## 1. Sign up for an API key

Magic-link signup at [permitcore.io/signup](https://permitcore.io/signup).
No credit card required for the free tier.

After signing in, your API key lives at [Account → API Keys](https://permitcore.io/account/api-keys).

Keys can be created and rotated via either the
[account dashboard](https://permitcore.io/account/api-keys) or
the [programmatic key endpoints](https://docs.permitcore.io/api-reference/keys.md).

## 2. Set up your environment

Export your key. Never commit it — treat it like a database password.

```bash theme={null}
export PERMITCORE_API_KEY=pk_...
```

## 3. Make your first request

Your first call is `/v1/permits` — the core listing endpoint. Fetch recent New
York City permits. (To filter to a buyer segment, use the
[`/v1/permits/target`](https://docs.permitcore.io/api-reference/permits) endpoint with
`&target_segment=<segment>` — `/v1/permits` itself has no `cohort` query
parameter.)

```bash curl theme={null}
curl "https://api.permitcore.io/v1/permits?jurisdiction=nyc&per_page=10" \
  -H "Authorization: Bearer $PERMITCORE_API_KEY" \
  -H "Accept: application/json"
```

```js Node.js theme={null}
const res = await fetch(
  "https://api.permitcore.io/v1/permits?jurisdiction=nyc&per_page=10",
  {
    headers: {
      Authorization: `Bearer ${process.env.PERMITCORE_API_KEY}`,
      Accept: "application/json",
    },
  },
);
const data = await res.json();
console.log(data.items);
```

```python Python theme={null}
import os
import httpx

r = httpx.get(
    "https://api.permitcore.io/v1/permits",
    params={"jurisdiction": "nyc", "per_page": 10},
    headers={
        "Authorization": f"Bearer {os.environ['PERMITCORE_API_KEY']}",
        "Accept": "application/json",
    },
)
r.raise_for_status()
print(r.json()["items"])
```

## 4. Read the response

You'll get back a page of permits in `items`, plus `pagination`:

```json theme={null}
{
  "items": [
    {
      "canonical_uid": "1:BT-202601090",
      "jurisdiction_slug": "nyc",
      "address_full": "82 ASP 1ST FLOOR, Manhattan, NY 10009",
      "permit_type_normalized": "alteration",
      "work_class": "alteration_minor",
      "cohort": "commercial_alteration",
      "valuation_usd": 18400,
      "issued_date": "2026-05-27"
    }
  ],
  "pagination": { "page": 1, "per_page": 10, "has_more": true }
}
```

Each permit carries a rich, structured record — address + geocode,
classification (`cohort`, `work_class`, `permit_type_normalized`), scope,
valuation, contractor, dates, data-quality flags, and enrichment. See
[GET /v1/permits](https://docs.permitcore.io/api-reference/permits.md) for the full field list and every
query parameter. To filter to a buyer segment, call
[`GET /v1/permits/target?jurisdiction=nyc&target_segment=<segment>`](https://docs.permitcore.io/api-reference/permits);
paginate either endpoint with `&page=` (or, on `/v1/permits`, an opaque
`&cursor=` for deep paging).

Want the per-segment counts for a jurisdiction instead of the permit rows? Use
[GET /v1/jurisdictions/{slug}/cohorts/distribution](https://docs.permitcore.io/api-reference/jurisdictions/cohort-distribution.md).

## 5. What next

> [card] [Cohort taxonomy](https://docs.permitcore.io/concepts/cohorts.md)
>
> The canonical 23 segments + what each one covers.

> [card] [Authentication](https://docs.permitcore.io/authentication.md)
>
> Key formats, header conventions, security best practices.

> [card] [Rate limits](https://docs.permitcore.io/concepts/rate-limits.md)
>
> Per-tier quotas + how to handle 429 responses.

> [card] [Data licensing](https://docs.permitcore.io/concepts/data-licensing.md)
>
> Commercial-use terms + attribution for paid tiers.

> [card] [API reference](https://docs.permitcore.io/api-reference/introduction.md)
>
> Full endpoint catalog with request/response shapes.

## Need help

* Open the [API reference](https://docs.permitcore.io/api-reference/introduction.md) for endpoint
  shapes + the [errors page](https://docs.permitcore.io/errors.md) for retry semantics.
* For account, billing, or integration support, email
  [[kian@permitcore.io](mailto:kian@permitcore.io)](mailto:kian@permitcore.io) — include
  your key prefix (first 12 characters) and the `x-request-id`
  from the failing response for fastest triage.


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