← Back to Documentation Index

API Reference

API Documentation

Overview

This API is built using Laravel with JSON:API specification. It provides a comprehensive set of endpoints for managing content, users, and various resources in a multi-tenant application.

API Versioning

The API is versioned using URL prefix /v1/. All endpoints are prefixed with this version number.

Authentication

The API uses Laravel Sanctum for authentication. Most endpoints require authentication using a Bearer token.

Authentication Endpoints

Main Resources

The API provides the following main resources:

Content Management

User Management

App Management

Media & Uploads

Monetization

Webhooks

JSON:API Implementation

The API follows the JSON:API specification for:

For detailed information about each resource schema, including available fields, relationships, and filtering capabilities, see the API Schemas Documentation.

Page Templates Configuration

Page templates now support a structured configuration system with parameters and form fields. This allows for dynamic customization of templates through a standardized interface.

Key endpoints:

For detailed information about the page template configuration system, see the Page Template Configuration Documentation.

Development Tools

Error Handling

The API uses standard HTTP status codes and JSON:API error format for error responses.

Rate Limiting

Rate limiting is implemented for certain endpoints to prevent abuse.

Caching

Response caching is implemented where appropriate, with the ability to bypass cache using the cache.ignore middleware.

Security

Best Practices

  1. Always use HTTPS
  2. Include proper authentication headers
  3. Handle rate limits appropriately
  4. Implement proper error handling
  5. Use appropriate HTTP methods
  6. Follow JSON:API specification for requests and responses

Testing

The API includes comprehensive test coverage with:

Deployment

The API can be deployed using:

Monitoring