PWA Image Generator API

RESTful API with JWT Authentication

v1.0.0
API Online

Base URL

All API requests should be made to:

https://api.pwa-gen.uteek.net/api

Authentication

Include JWT token in the Authorization header:

Authorization: Bearer <token>

Response Format

All responses are returned in JSON format:

{"success": true, "message": "...", "data": {...}}

Authentication Endpoints

POST /api/register

Register a new user account and receive a JWT token.

POST /api/login

Authenticate user credentials and receive a JWT token.

POST /api/logout Protected

Invalidate the current JWT token and log out.

POST /api/refresh Protected

Refresh an existing JWT token to extend the session.

GET /api/me Protected

Get the currently authenticated user's information.

Project Endpoints

GET /api/projects Protected

Get a paginated list of all user's projects.

POST /api/projects Protected

Create a new project with name, sizes, and filename.

GET /api/projects/{id} Protected

Get details of a specific project by ID.

PUT /api/projects/{id} Protected

Update an existing project's name or sizes.

DELETE /api/projects/{id} Protected

Soft delete a project (can be restored later).

POST /api/projects/{id}/restore Protected

Restore a previously deleted project.