canonical: https://jentic.com/apis/pixe.la/pixe

# Pixela API

API for recording and tracking habits or effort, routines. Pixela provides graph-based tracking of daily activities with SVG visualizations. The API exposes 26 endpoints secured with apiKey authentication.

## For AI agents

Programmatically create a new user, update a user. Covers 26 operations with apiKey authentication.

## Scope

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

## Capabilities

- Create a new user
- Update a user
- Delete a user
- View user profile
- Get all graph definitions

## Use cases

### Analytics Operations

Use the Pixela API to perform analytics operations programmatically. The API provides 26 endpoints covering core functionality including create a new user, update a user, delete a user.

Example prompt: Call POST `/v1/users` to create a new user

### Automated Users Management

Automate users operations by combining multiple Pixela API endpoints. Agents can update a user and then delete a user in a single workflow.

Example prompt: Call PUT `/v1/users/{username}` to update a user, then verify the result

### AI Agent Integration via Jentic

AI agents discover and call Pixela 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 'create a new user', load the operation schema, and execute with Jentic-managed credentials

## Key endpoints

| Method | Path | Description |
| --- | --- | --- |
| POST | `/v1/users` | Create a new user |
| PUT | `/v1/users/{username}` | Update a user |
| DELETE | `/v1/users/{username}` | Delete a user |
| GET | `/@{username}` | View user profile |
| PUT | `/@{username}` | Update user profile |
| POST | `/v1/users/{username}/graphs` | Create a graph definition |
| GET | `/v1/users/{username}/graphs` | Get all graph definitions |
| GET | `/v1/users/{username}/graphs/{graphID}` | Get graph SVG |

## Key resources

- **Users** — User account management
- **Profiles** — User profile operations
- **Graphs** — Graph definition and management
- **Pixels** — Pixel (data point) operations
- **Instant** — Instant recording operations (increment/decrement)

## Why Jentic

- **Setup:** Wiring Pixela by hand means sending its X-USER-TOKEN header on every call, threading the username through each path, and handling retries yourself. Through Jentic you install once, import Pixela from the API Directory, store the token once, and your agent calls it.
- **Permission scoping:** Pixela puts the username and graph id in the URL path (`/v1/users/{username}/graphs/{graphID}`), so a rule can pin your agent to one user and its graphs. You choose the operations it may call, so deleting a user is not included unless you add it.
- **Credential handling:** Your Pixela user token is stored once, encrypted, by your own Jentic One instance and injected as the X-USER-TOKEN header at execution time. It never enters the agent's prompt, logs, or context.
- **Discovery method:** Agents search Jentic by intent such as 'create a pixel graph' or 'record today's value', and Jentic returns the matching Pixela operation with its input schema so the agent calls the right endpoint without browsing the reference docs.

## Related APIs

- **Mixpanel** — Alternative analytics API
- **Amplitude** — Alternative analytics API
- **Segment** — Complementary analytics API
- **Pendo** — Complementary analytics API

## FAQ

### What authentication does the Pixela API use?

The Pixela API uses an API key passed in the `X-USER-TOKEN` header. 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 create a new user with the Pixela API?

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

### What are the rate limits for the Pixela 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 create a new user through Jentic?

Install the Jentic SDK with pip install jentic, authenticate through Jentic One, the self-hosted execution layer, then search for 'create a new user'. Jentic returns the matching Pixela API operation with its input schema. Load the schema and execute the call - credentials are injected automatically.

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

The Pixela API exposes 26 endpoints covering users, profiles, graphs operations.

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

Yes. Because you run Jentic One yourself, your own rules decide which Pixela operations and credentials the agent may use. Since Pixela carries the username and graph id in the URL path, such as `/v1/users/{username}/graphs/{graphID}`, you can pin the agent to a single user and its graphs. You also choose the exact operations it may call, so a destructive action like deleting a user stays off the list unless you add it.
