Pixela API Document

API Document for Pixela ( https://pixe.la/ ) .

API Index


POST /v1/users - Create a user

PUT /v1/users/<username> - Update a user

DELETE /v1/users/<username> - Delete a user

User Profile

GET /@<username> - View user profile

PUT /@<username> - Update user profile


POST /v1/users/<username>/graphs - Create a graph

GET /v1/users/<username>/graphs - Get graph definitions

GET /v1/users/<username>/graphs/<graphID>/graph-def - Get a graph definition

GET /v1/users/<username>/graphs/<graphID> - Get a graph SVG

PUT /v1/users/<username>/graphs/<graphID> - Update a graph

DELETE /v1/users/<username>/graphs/<graphID> - Delete a graph

GET /v1/users/<username>/graphs/<graphID>.html - View a graph detail

GET /v1/users/<username>/graphs/<graphID>/pixels - Get graph pixels list

GET /v1/users/<username>/graphs/<graphID>/stats - Get a graph stats

GET /v1/users/<username>/graphs/<graphID>/latest - Get latest pixel


POST /v1/users/<username>/graphs/<graphID> - Post a pixel

POST /v1/users/<username>/graphs/<graphID>/pixels - Post multiple pixels

GET /v1/users/<username>/graphs/<graphID>/<yyyyMMdd> - Get a pixel

PUT /v1/users/<username>/graphs/<graphID>/<yyyyMMdd> - Update a pixel

DELETE /v1/users/<username>/graphs/<graphID>/<yyyyMMdd> - Delete a pixel


GET /v1/users/<username>/graphs/<graphID>/<yyyyMMdd>/retina - Displays the Pixel in a higher resolution

Instant recording

PUT /v1/users/<username>/graphs/<graphID>/increment - Increment a pixel

PUT /v1/users/<username>/graphs/<graphID>/decrement - Decrement a pixel

PUT /v1/users/<username>/graphs/<graphID>/add - Add to a pixel

PUT /v1/users/<username>/graphs/<graphID>/subtract - Subtract from a pixel

POST /v1/users/<username>/graphs/<graphID>/stopwatch - Measuring and recording time


POST /v1/users/<username>/webhooks - Create a webhook

GET /v1/users/<username>/webhooks - Get webhooks

POST /v1/users/<username>/webhooks/<webhookHash> - Invoke a webhook

DELETE /v1/users/<username>/webhooks/<webhookHash> - Delete a webhook