---
title: One-click apps API
description: "Your n8n and PostgreSQL one-click apps via the API — list, access details, start/stop/restart and logs"
sidebar:
  order: 10.5
  badge:
    text: New
    variant: success
---

All endpoints live on `https://api.hostino.ai` and use an OAuth (Bearer) token or an API token. For now they cover **n8n** and **PostgreSQL** apps. Only your own apps are reachable; another account's app answers `404` (`app_not_found`). The MCP equivalents are in [n8n and PostgreSQL with AI](/en/ai-mcp/oneclick-apps/).

| Endpoint | Scope | What it does |
|---|---|---|
| `GET /v1/apps` | `apps:read` | Your apps: `app_id`, `app`, `status`, `health`, plan (CPU/RAM), `url`, `created_at` |
| `GET /v1/apps/:id/access?include_password=` | `apps:read` | n8n `url`, or PostgreSQL `host`, `port`, `database`, `user`; `password` and `connection_string` only with `include_password=true` |
| `POST /v1/apps/:id/start` · `stop` · `restart` | `apps:write` | Lifecycle |
| `GET /v1/apps/:id/logs?lines=` | `apps:read` | Last 10–500 lines (default 100), secrets masked |

```bash
curl -s https://api.hostino.ai/v1/apps -H "Authorization: Bearer $TOKEN"
curl -s -X POST https://api.hostino.ai/v1/apps/n8nabc123/restart -H "Authorization: Bearer $TOKEN"
```

Ordering, changing the plan, rebuilding and deleting an app are done in the panel (Services → Applications).
