> ## 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.

# API reference overview

> Base URL, versioning, auth conventions, and the endpoint catalog.

## Base URL

```
https://api.permitcore.io
```

All endpoints are versioned under `/v1`. Breaking changes ship as `/v2` —
no surprise mutations.

## Auth

Every request must include:

```http theme={null}
Authorization: Bearer <your-api-key>
```

See [Authentication](https://docs.permitcore.io/authentication.md) for key formats + security guidance.

## Response format

JSON in, JSON out. All responses use UTF-8. Timestamps are ISO 8601 with
UTC offset (`Z`). Numeric IDs are strings to avoid 53-bit precision loss
in JavaScript.

```json theme={null}
{
  "as_of_utc": "2026-05-24T02:00:00Z",
  "total_target_permits": 3218856,
  "cohort_distribution": { "...": 0 }
}
```

## Errors

Every non-2xx response is [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457)
`application/problem+json`:

```json theme={null}
{
  "type": "https://docs.permitcore.io/errors/missing-credentials",
  "title": "Missing Credentials",
  "status": 401,
  "detail": "Missing Authorization: Bearer <key> header.",
  "instance": "/v1/permits",
  "request_id": "req_1f07fb45782b445e9f6312ba23921234"
}
```

Branch on `type` (a stable URI), not `title`/`detail`. See [Errors](https://docs.permitcore.io/errors.md)
for the full catalog + retry guidance.

## Endpoint catalog

> [card] [Cohort distribution](https://docs.permitcore.io/api-reference/jurisdictions/cohort-distribution.md)
>
> `GET /v1/jurisdictions/{slug}/cohorts/distribution` — per-jurisdiction
> breakdown across the canonical 23 cohorts. Cached 1 hour upstream.
> **Live today.**

> [card] [Permits (list + filter)](https://docs.permitcore.io/api-reference/permits.md)
>
> `GET /v1/permits?jurisdiction=&permit_type=&issued_after=…` — paginated
> permit rows with field-level DQ flags. Segment filtering is on the
> `/v1/permits/target` variant via `target_segment=`. **Live today.**

> [card] [Jurisdiction overview](https://docs.permitcore.io/api-reference/jurisdictions/overview.md)
>
> Resource overview + jurisdiction list endpoint contracts.

> [card] [Exports (bulk + warehouse)](https://docs.permitcore.io/api-reference/exports.md)
>
> `POST /v1/exports`, `GET /v1/exports`, `GET /v1/exports/{export_id}`, and
> `GET /v1/exports/warehouse/latest` — async CSV/XLSX exports plus
> warehouse-native Parquet delivery. **Live today.**

> [card] [API key management](https://docs.permitcore.io/api-reference/keys.md)
>
> `POST /v1/keys`, `DELETE /v1/keys/{prefix}`, `GET /v1/keys/{prefix}/usage`
> — programmatic key lifecycle. **Live today.**

## OpenAPI specification

The OpenAPI 3.1 schema is exposed at `https://api.permitcore.io/openapi.json`
— FastAPI-generated from the deployed code, so it always reflects the
authoritative request/response shapes. This reference page remains the
canonical narrative source.

## Support

Email [[kian@permitcore.io](mailto:kian@permitcore.io)](mailto:kian@permitcore.io) for
account, billing, or integration questions on any tier. Enterprise tier
includes a custom SLA on contact.

For incidents, watch the [changelog](https://docs.permitcore.io/changelog.md) — outage notes land
there in real time.


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