Skip to main content
HydroGo
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

PathDescription
GET /api/v1/admin/meCurrent user, role, permissions, permission catalog, CSRF token.
PUT /api/v1/admin/account/localeSet the signed-in user's admin interface language.
GET / POST /api/v1/admin/account/tokensList or create personal tokens. DELETE .../{id} revokes.
POST /api/v1/admin/account/mfa/enroll, enable, disableManage TOTP for your own account.
GET /api/v1/admin/i18n/{locale}UI translations for the admin panel (en, tr).

Content

PathDescription
/api/v1/admin/pagesList, create, bulk actions, import, read, update, publish, translate, revisions (/{id}/revisions, .../restore), presence and preview-link.
/api/v1/admin/newsList, create, read, update, taxonomy (categories and tags).
/api/v1/admin/mediaUpload, list, edit and delete media.
/api/v1/admin/membersMember management.
/api/v1/admin/content-typesList, 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

PathDescription
/api/v1/admin/site/settings, business-profile, social-links, maintenance, staff-noticeRead with GET, change with PUT.
/api/v1/admin/site/navigation/{locale}Menus per locale.
/api/v1/admin/site/redirectsCRUD plus POST .../import, and site/not-found to turn 404s into redirects.
/api/v1/admin/site/forms, site/inboxForms and submissions, with CSV and XLSX export.
/api/v1/admin/site/translations/{locale}Site-level translation strings.

People and security

PathDescription
/api/v1/admin/usersList and read users; POST .../invites, .../{id}/role, .../permissions, .../disable, .../password-reset-link.
/api/v1/admin/api-keysList, create and revoke API keys.
/api/v1/admin/auditSearch the audit trail.
/api/v1/admin/security/ip-bansList, add and remove IP bans.

System

PathDescription
GET /api/v1/admin/dashboardCounts and recent activity for the dashboard.
GET /api/v1/admin/system/health, info, metricsRuntime status.
/api/v1/admin/backupsList and trigger backups.
GET /api/v1/admin/searchGlobal admin search.
GET /api/v1/admin/reports, notifications, schema, permissionsReports, in-app notifications, the schema that drives generic screens, the permission catalog.