REST APIAdmin API
Admin API
A map of the /api/v1/admin endpoints. The admin panel is a client of this API, so anything it does you can script.
All endpoints below require a credential (see Authentication), respect roles and permissions, and use the same envelope and error format as the public API. Writes use optimistic concurrency: send the record's current version and expect 409 if it changed.
This page is an orientation, not the contract. The authoritative description is the OpenAPI document: read
docs/api/ in the repository or generate a client with hydro sdk generate.Identity and account
| Path | Description |
|---|---|
GET /api/v1/admin/me | Current user, role, permissions, permission catalog, CSRF token. |
PUT /api/v1/admin/account/locale | Set the signed-in user's admin interface language. |
GET / POST /api/v1/admin/account/tokens | List or create personal tokens. DELETE .../{id} revokes. |
POST /api/v1/admin/account/mfa/enroll, enable, disable | Manage TOTP for your own account. |
GET /api/v1/admin/i18n/{locale} | UI translations for the admin panel (en, tr). |
Content
| Path | Description |
|---|---|
/api/v1/admin/pages | List, create, bulk actions, import, read, update, publish, translate, revisions (/{id}/revisions, .../restore), presence and preview-link. |
/api/v1/admin/news | List, create, read, update, taxonomy (categories and tags). |
/api/v1/admin/media | Upload, list, edit and delete media. |
/api/v1/admin/members | Member management. |
/api/v1/admin/content-types | List, create and delete content type definitions. |
/api/v1/admin/content/{type} | Records of a content type: list with search, sort, filter[f], status and locale; create; read; update; delete; workflow; revisions; per-locale values. |
BASH
# publish a page with a Bearer token
curl -X POST https://cms.example.com/api/v1/admin/pages/PAGE_ID/publish \
-H 'Authorization: Bearer hyd_…'
# list drafts of a content type
curl 'https://cms.example.com/api/v1/admin/content/faq?status=draft&limit=50' \
-H 'Authorization: Bearer hyd_…'Site
| Path | Description |
|---|---|
/api/v1/admin/site/settings, business-profile, social-links, maintenance, staff-notice | Read with GET, change with PUT. |
/api/v1/admin/site/navigation/{locale} | Menus per locale. |
/api/v1/admin/site/redirects | CRUD plus POST .../import, and site/not-found to turn 404s into redirects. |
/api/v1/admin/site/forms, site/inbox | Forms and submissions, with CSV and XLSX export. |
/api/v1/admin/site/translations/{locale} | Site-level translation strings. |
People and security
| Path | Description |
|---|---|
/api/v1/admin/users | List and read users; POST .../invites, .../{id}/role, .../permissions, .../disable, .../password-reset-link. |
/api/v1/admin/api-keys | List, create and revoke API keys. |
/api/v1/admin/audit | Search the audit trail. |
/api/v1/admin/security/ip-bans | List, add and remove IP bans. |
System
| Path | Description |
|---|---|
GET /api/v1/admin/dashboard | Counts and recent activity for the dashboard. |
GET /api/v1/admin/system/health, info, metrics | Runtime status. |
/api/v1/admin/backups | List and trigger backups. |
GET /api/v1/admin/search | Global admin search. |
GET /api/v1/admin/reports, notifications, schema, permissions | Reports, in-app notifications, the schema that drives generic screens, the permission catalog. |