Skip to content

HTTP API Reference

This document provides a comprehensive reference for all HTTP endpoints available in the AIOHM platform.

API Structure

The platform exposes three types of routes:

  • Central Routes (routes/web.php): These are for global actions like authentication and asset serving, and are not tied to a specific tenant.
  • Tenant Routes (routes/tenant.php): These routes are active only on a tenant's specific domain and handle tenant-level functionality.
  • API Routes (routes/api.php): These are the primary data-interchange endpoints. They are typically prefixed with /api and may include versioning (e.g., /api/v1/...).

Central Routes

Defined in routes/web.php. These handle global application concerns.

MethodURINameController Action
GET, HEAD/auth/google/logingoogle.loginApp\Http\Controllers\Auth\GoogleLoginController@redirectToGoogle
GET, HEAD/auth/google/login/callbackgoogle.login.callbackApp\Http\Controllers\Auth\GoogleLoginController@handleGoogleCallback
GET, HEAD/auth/google/finishgoogle.login.finishApp\Http\Controllers\Auth\GoogleFinishController@finish
GET, HEAD/tenancy/assets/{path?}stancl.tenancy.assetClosure
POST/livewire/updatedefault.livewire.updateClosure
GET, HEAD/registerfilament.admin.auth.registerClosure
POST/filament/admin/logoutfilament.admin.auth.logoutClosure
GET, HEAD/filament/admin/loginfilament.admin.auth.loginClosure
GET, HEAD/docs/{path}Closure
GET, HEAD/gallery/{path}Closure
POST/demo/reset-dataClosure
GET, HEAD/connections/google-drive/connectdrive.connectApp\Http\Controllers\GoogleDriveController@redirectToDriveConnect
GET, HEAD/connections/google-drive/callbackdrive.callbackApp\Http\Controllers\GoogleDriveController@handleDriveCallback
GET, HEAD/auth/google/analytics/authgoogle.analytics.authApp\Http\Controllers\GoogleOAuthController@redirect
GET, HEAD/auth/google/analytics/callbackgoogle.analytics.callbackApp\Http\Controllers\GoogleOAuthController@callback

Tenant Routes

Defined in routes/tenant.php. These are active on tenant-specific domains.

MethodURINameController Action
GET, HEAD/tenant-infoClosure
GET, HEAD/loginuser.loginApp\Http\Controllers\Auth\UserLoginController@show
POST/loginuser.login.postApp\Http\Controllers\Auth\UserLoginController@authenticate
GET, HEAD/registeruser.registerApp\Http\Controllers\Auth\UserLoginController@showRegister
POST/registeruser.register.postApp\Http\Controllers\Auth\UserLoginController@register
POST/logoutuser.logoutApp\Http\Controllers\Auth\UserLoginController@logout
GET, HEAD/demo-loginClosure

API Routes

Defined in routes/api.php and routes/api/v1.php.

Unversioned API

MethodURINameController Action
POSTapi/templates/uploadtemplates.uploadApp\Http\Controllers\Api\TemplateController@upload
DELETEapi/templates/{id}templates.deleteApp\Http\Controllers\Api\TemplateController@delete
POSTapi/wp/content/generatewp.content.generateApp\Http\Controllers\Api\WordPress\ContentController@generate
GET, HEADapi/postiz/auto-login/execute/{token}postiz.auto-login.executeApp\Http\Controllers\Api\PostizAutoLoginController@executeAutoLogin
GET, HEADapi/wp/post-typeswp.post-types.indexApp\Http\Controllers\Api\WordPress\PostTypeController@index
POSTapi/webhooks/mauticwebhooks.mauticApp\Http\Controllers\Webhooks\MauticWebhookController@handle
POSTapi/webhooks/postizwebhooks.postizApp\Http\Controllers\Webhooks\PostizWebhookController@handle

Sanctum Authenticated API

These endpoints require authentication via Sanctum.

MethodURINameController Action
GET, HEADapi/postiz/auto-login/datapostiz.auto-login.dataApp\Http\Controllers\Api\PostizAutoLoginController@getAutoLoginData
POSTapi/postiz/auto-login/tokenpostiz.auto-login.tokenApp\Http\Controllers\Api\PostizAutoLoginController@generateAutoLoginToken

Version 1 API (/api/v1)

The following routes are defined for the V1 API but are currently commented out in the code, pending implementation.

MethodURI
POSTapi/v1/ai/chat
POSTapi/v1/ai/image
POSTapi/v1/wordpress/posts/sync
POSTapi/v1/wordpress/media/upload
GET, HEADapi/v1/connections

MCP Routes (AI Agent/Tooling)

Defined in routes/ai.php. These are not traditional REST APIs but are endpoints for the Model Context Protocol.

MethodURIServer Class
ANY/mcp/knowledgebaseApp\Mcp\Servers\KnowledgebaseServer
ANY/mcp/boostLaravel\Boost\Mcp\Boost

Released under the MIT License.