RetailHardHat REST API: Endpoints, Keys and Schema Discovery

REST API

Build on your site development data.

A public REST API covering sites, deals, bids, permits, vendors and tasks — with schema discovery built in, so an integration can map your fields without guesswork.

In short

RetailHardHat has a public REST API for external integrations. Every endpoint lives under /api/v1/, returns JSON in a consistent envelope, and is authenticated with an API key your Admin generates.

What sets it apart is the metadata: endpoints that describe the schema itself, so a developer building an integration can read your field definitions, required fields and allowed values programmatically instead of hard-coding them.

Getting started

1

Get an API key

Generate a key in Settings > API Keys. Store it securely — it is only shown once.

2

Authenticate

Send the key in the Authorization header as Bearer YOUR_KEY. Keys are prefixed rhk_.

3

Make requests

All endpoints sit under /api/v1/ and return JSON.

Requests and responses

curl -H "Authorization: Bearer rhk_..." \ https://app.retailhardhat.com/api/v1/sites

Every response uses the same envelope — a data payload, a meta block carrying pagination, and an errors field that is null on success.

Pagination

List endpoints take page and limit query parameters, and return totalCount, pageCount, currentPage and perPage in meta. The default page size is 50.

Filtering

Filter by passing field values as query parameters, for example /api/v1/sites?status=active&state=TX or /api/v1/tasks?priority=high&status=todo.

Schema discovery and field mapping

Two endpoint groups exist so an integration can learn your data model rather than assume it.

Schema metadata

GET /api/v1/schema returns every available entity with field counts and detail URLs. GET /api/v1/schema/:entity returns full field definitions, including types, requirements and enum values.

Field mapping

GET /api/v1/fields lists all modules with field counts. GET /api/v1/fields/:module returns mapping-ready definitions: required fields, writable field counts, allowed enum values and foreign key relationships.

What the API reaches

Entities cover the full development lifecycle, from a deal in diligence through construction to handover.

Sites and construction

Sites, phases, milestones, daily logs, site documents, site vendors and team members.

Deals and pipeline

Deals, stages, history, budgets, spend forecasts, proformas, risk assessments and criteria profiles.

Procurement

Bids and line items, RFPs, RFIs, vendors, vendor workers and invoices.

Permits

Permits with their payments, documents, blockers and notes.

Work and approvals

Tasks, assignees, teams, dependencies, comments, change requests and approval flows.

Due diligence

Due diligence tabs, field definitions and field values.

Permissions, limits and errors

API keys carry either Read Only or Read & Write permissions. Read-only keys can use GET endpoints; read and write keys can also use POST, PATCH and DELETE.

Keys are limited to 1,000 requests per hour. Rate limit state is returned in the X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset headers, so an integration can back off before it is cut off.

401Invalid or missing API key
403Insufficient permissions
404Resource not found
429Rate limit exceeded

Where to go next

IntegrationsCarrier tracking, cross-product site sync and the apps RetailHardHat connects to.
Construction bid managementHow bids, RFPs and vendor comparisons work in the product.
Permit & license trackingPermits, inspections and renewals across every location.
Daily logs & progress reportingField progress captured day by day across sites.

Common questions

How do we get an API key?

An Admin generates one in Settings > API Keys. The key is shown once, so store it securely at that point — it cannot be retrieved later.

Can we give an integration read-only access?

Yes. Each key is either Read Only or Read & Write. A read-only key can call GET endpoints and is refused with a 403 if it attempts a write.

What are the rate limits?

1,000 requests per hour per key. Remaining quota and reset time come back in response headers, so an integration can pace itself rather than hitting a 429.

How do we know which fields to map?

Call the field mapping endpoints. They return required fields, writable fields, allowed enum values and foreign key relationships for each module, so mapping does not have to be guessed or maintained by hand.