canonical: https://jentic.com/apis/rescuetime.com/rescuetime-analytic-data-api

# RescueTime Analytic Data API

The RescueTime API provides access to activity data, productivity metrics, daily summaries, alerts, highlights, focus sessions, and offline time. The API exposes 8 endpoints secured with apiKey, oauth2 authentication.

## For AI agents

Programmatically get analytic data, daily summary feed. Covers 8 operations with apiKey, oauth2 authentication.

## Scope

Does not handle payments, communications, or crm - use for identity and authentication only.

## Capabilities

- Get Analytic Data
- Daily Summary Feed
- Alerts Feed
- Post a Daily Highlight
- Start Focus Session
- Focus Session Feed

## Use cases

### Identity and Authentication Operations

Use the RescueTime Analytic Data API to perform identity auth operations programmatically. The API provides 8 endpoints covering core functionality including get analytic data, daily summary feed, alerts feed.

Example prompt: Call GET `/anapi/data` to get analytic data

### Automated Alerts Management

Automate alerts operations by combining multiple RescueTime Analytic Data API endpoints. Agents can daily summary feed and then alerts feed in a single workflow.

Example prompt: Call GET `/anapi/daily_summary_feed` to daily summary feed, then verify the result

### AI Agent Integration via Jentic

AI agents discover and call RescueTime Analytic Data 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, oauth2 tokens manually.

Example prompt: Search Jentic for 'get analytic data', load the operation schema, and execute with Jentic-managed credentials

## Key endpoints

| Method | Path | Description |
| --- | --- | --- |
| GET | `/anapi/data` | Get Analytic Data |
| GET | `/anapi/daily_summary_feed` | Daily Summary Feed |
| GET | `/anapi/alerts_feed` | Alerts Feed |
| GET | `/anapi/highlights_feed` | Daily Highlights Feed |
| POST | `/anapi/highlights_post` | Post a Daily Highlight |
| POST | `/anapi/start_focustime` | Start Focus Session |
| GET | `/anapi/focustime_feed` | Focus Session Feed |
| POST | `/anapi/offline_time_post` | Post Offline Time |

## Key resources

- **Alerts** — Operations related to Alerts
- **Analytics** — Operations related to Analytics
- **FocusSessions** — Operations related to FocusSessions
- **Highlights** — Operations related to Highlights
- **OfflineTime** — Operations related to OfflineTime

## Why Jentic

- **Setup:** Wiring the RescueTime Analytic Data API by hand means choosing between its query-string API key and the OAuth2 flow, then constructing the /anapi feeds against the www.rescuetime.com host yourself. Through Jentic you install once, import the RescueTime Analytic Data API from the API Directory, store the credential once, and your agent calls it.
- **Permission scoping:** The RescueTime Analytic Data API addresses its feeds through operations rather than a resource id in the path, so limit the agent to the operations it needs, such as getting analytic data or the highlights feed. You choose that set, so a write operation like posting offline time is not included unless you add it.
- **Credential handling:** Your RescueTime API key or OAuth credentials are stored once, encrypted, by your own Jentic One instance and injected at execution time. They never enter the agent's prompt, logs, or context.
- **Discovery method:** Agents search Jentic by intent such as 'get analytic data' or 'start a FocusTime session', and Jentic returns the matching RescueTime Analytic Data API operation with its input schema so the agent calls the right endpoint without browsing the reference docs.

## Related APIs

- **Auth0** — Alternative identity auth API
- **Okta** — Alternative identity auth API

## FAQ

### What authentication does the RescueTime Analytic Data API use?

The RescueTime Analytic Data API uses apiKey, oauth2 authentication. 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 get analytic data with the RescueTime Analytic Data API?

Yes. Use the GET `/anapi/data` endpoint. The API returns structured JSON responses that agents can parse and act on directly.

### What are the rate limits for the RescueTime Analytic Data 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 get analytic data through Jentic?

Install the Jentic SDK with pip install jentic, authenticate through Jentic One, the self-hosted execution layer, then search for 'get analytic data'. Jentic returns the matching RescueTime Analytic Data API operation with its input schema. Load the schema and execute the call - credentials are injected automatically.

### How many endpoints does the RescueTime Analytic Data API have?

The RescueTime Analytic Data API exposes 8 endpoints covering alerts, analytics, focussessions operations.

### Can I limit what my agent is allowed to do with the RescueTime Analytic Data API?

Yes. Because you run Jentic One yourself, you decide which RescueTime operations your agent may call, and it can reach nothing outside that set. Since this API addresses its feeds through separate operations rather than a resource id in the path, you can allow only read calls like getting analytic data, the daily summary feed, or the highlights feed while excluding write calls such as posting offline time or starting a focus session. Your stored RescueTime API key or OAuth credentials are injected at execution time under those same rules, so the agent uses them only for the operations you permit.
