canonical: https://jentic.com/apis/stathatcom/stathatcom

# Stathatcom StatHat API

Send stats and export data from StatHat. Supports the EZ API for easy stat creation on the fly and the Classic API for tamper-resistant posting with signed keys. Both APIs support POST and GET methods. The API exposes 6 endpoints secured with apiKey authentication.

## For AI agents

Programmatically post stat via ez API, post stat via ez API (get method). Covers 6 operations with apiKey authentication.

## Scope

Does not handle payments, communications, or developer tools - use for crm only.

## Capabilities

- Post stat via EZ API
- Manage crm data programmatically
- Integrate StatHat API into automated workflows
- Query and filter StatHat API records by parameters
- Monitor StatHat API operational status and events

## Use cases

### CRM Operations

Use the StatHat API to perform crm operations programmatically. The API provides 6 endpoints covering core functionality including post stat via ez API, post stat via ez API (get method), post counter stat via classic API.

Example prompt: Call POST /ez to post stat via ez API

### Automated C Management

Automate c operations by combining multiple StatHat API endpoints. Agents can post stat via ez API (get method) and then post counter stat via classic API in a single workflow.

Example prompt: Call GET /ez to post stat via ez API (get method), then verify the result

### AI Agent Integration via Jentic

AI agents discover and call StatHat API endpoints through Jentic without managing credentials directly. An agent searches for the required operation by intent, receives the matching endpoint schema, and executes the call with Jentic-managed authentication. This eliminates the need to read API documentation or handle apiKey tokens manually.

Example prompt: Search Jentic for 'post stat via ez API', load the operation schema, and execute with Jentic-managed credentials

## Key endpoints

| Method | Path | Description |
| --- | --- | --- |
| POST | `/ez` | Post stat via EZ API |
| GET | `/ez` | Post stat via EZ API (GET method) |
| POST | `/c` | Post counter stat via Classic API |
| GET | `/c` | Post counter stat via Classic API (GET method) |
| POST | `/v` | Post value stat via Classic API |
| GET | `/v` | Post value stat via Classic API (GET method) |

## Key resources

- **C** — Operations for c
- **Ez** — Operations for ez
- **V** — Operations for v

## AI readiness

This API is usable in Jentic One now. Its AI-readiness score against Jentic's framework shows where it stands today and where improvements would make it even easier for agents to use.

- **Score:** 50 / 100
- **Maturity:** Foundational
- **Dimensions:**
  - Foundational Compliance: 100 / 100
  - Developer Experience & Jentic Compatibility: 61 / 100
  - AI-Readiness & Agent Experience: 59 / 100
  - Agent Usability: 94 / 100
  - Security: 15 / 100
  - AI Discoverability: 75 / 100
- **View full report:** https://jentic.com/apis/stathatcom/stathatcom/scorecard
- **How the score is calculated:** https://docs.jentic.com/reference/api-readiness-framework/overview/
- **More about the dimensions:** https://docs.jentic.com/reference/api-readiness-framework/specification/#dimensional-model-overview

### Score it yourself

Every API in the directory is allowlisted, so you can re-score it with no key required.

- **Score your own API:** https://jentic.com/scorecard.md
- **Scoring CLI agent skill:** https://github.com/jentic/jentic-api-scorecard/blob/main/skills/jentic-api-scorecard/SKILL.md

```sh
npx @jentic/api-scorecard-cli score <openapi-url>
```

## Why Jentic

- **Setup:** Wiring the StatHat API by hand means passing its ezkey as a query parameter, learning the EZ, counter and value endpoints, and shaping each stat post yourself. Through Jentic you install once, import the StatHat API from the API Directory, store the key once, and your agent calls it.
- **Permission scoping:** You limit the agent to the operations it needs, such as posting a counter or a value stat, so it only sends the metrics you intend. Because the stat name and value travel in the request body, scope the agent by operation rather than by a single stat.
- **Credential handling:** Your StatHat key is stored once, encrypted, by your own Jentic One instance and injected at execution time. It never enters the agent's prompt, logs, or context.
- **Discovery method:** Agents search Jentic by intent such as 'post a stat via the EZ API' or 'increment a counter', and Jentic returns the matching StatHat API operation with its input schema so the agent calls the right endpoint without browsing the reference docs.

## Related APIs

- **Hubspot** — Alternative crm API
- **Salesforce** — Alternative crm API
- **Pipedrive** — Complementary crm API
- **Zoho** — Complementary crm API

## FAQ

### What authentication does the StatHat API use?

The StatHat API uses an API key passed in the `ezkey` query. Through Jentic, these credentials are stored encrypted in your Jentic One instance and injected at execution time, so raw secrets never enter the agent context.

### Can I post stat via ez API with the StatHat API?

Yes. Use the POST /ez endpoint. The API returns structured JSON responses that agents can parse and act on directly.

### What are the rate limits for the StatHat API?

Rate limits are not specified in the OpenAPI spec. Check the vendor documentation for current limits. Through Jentic, rate limiting is handled automatically with retry logic built into the execution layer.

### How do I post stat via ez API through Jentic?

Install the Jentic SDK with pip install jentic, authenticate through Jentic One, the self-hosted execution layer, then search for 'post stat via ez API'. Jentic returns the matching StatHat API operation with its input schema. Load the schema and execute the call - credentials are injected automatically.

### How many endpoints does the StatHat API have?

The StatHat API exposes 6 endpoints covering c, ez, v operations.

### Can I limit what my agent is allowed to do with the StatHat API?

Yes. Because Jentic One is self-hosted, you set the rules that decide which StatHat operations your agent can call and which credentials it may use. You can allow only the endpoints you need, such as posting a counter stat via POST /c or a value stat via POST /v, while withholding the others. Since each stat name and value travels in the request body, scope the agent by operation rather than by a single stat.
