Skip to content

Other Endpoints

Miscellaneous live backend endpoints that do not fit the main auth/products/wallet groups.


GET /api/app-data

Public configuration bootstrap for clients.

  • Auth required: No
  • Roles: Public

Returned areas

Current response includes keys such as:

  • products.sort_by
  • products.media.max_mb_size
  • feedback.topics
  • affiliate.default_fee_percentage
  • currencies[]
  • features[]
  • settings[]

Success response example

json
{
  "success": true,
  "errors_message": null,
  "data": {
    "products": {
      "sort_by": ["newest", "most_earnings", "most_views", "collection"],
      "media": {
        "max_mb_size": 20480
      }
    },
    "feedback": {
      "topics": ["bug", "feature", "other"]
    },
    "affiliate": {
      "default_fee_percentage": 4
    },
    "currencies": [
      {
        "id": 1,
        "code": "USD",
        "symbol": "$",
        "bank_fields": ["account_number", "routing_number"]
      }
    ]
  }
}

GET /api/maps/autocomplete

Return raw Google Places autocomplete data for address input.

  • Auth required: No in current route definition
  • Roles: Public

Query parameters

ParameterTypeRequired
inputstringYes

Success response example

This endpoint currently returns the raw Google Maps service payload, not the standard Fangate wrapper.

json
{
  "predictions": [
    {
      "description": "123 Main Street, Paris, France"
    }
  ],
  "status": "OK"
}

POST /api/report

Submit a public report about content or a transaction.

  • Auth required: No
  • Roles: Public
  • Content type: application/json

Request body

FieldTypeRequiredNotes
reasonstringYesReport reason text.
emailstringYesReporter email.
transaction_idintegerYesMust exist in transactions.id.
media_idsstringNoComma-separated media ids.
commentstringNoAdditional context.

Success response example

Current controller returns an empty JSON object:

json
{}

Error example

json
{
  "success": false,
  "errors_message": "The transaction id field is required.",
  "data": null
}

POST /api/feedback

Submit authenticated feedback with optional attachments.

  • Auth required: Yes
  • Roles: Authenticated creator
  • Content type: multipart/form-data

Request fields

FieldTypeRequiredNotes
emailstringYesFeedback contact email.
messagestringYesFeedback body.
topicstringYesTopic name from app-data config.
attachments[]file[]NoOptional attachments.

Success response example

json
{
  "success": true,
  "errors_message": null,
  "data": "stored"
}

Side effects

  • attachments are stored on the public disk
  • backend dispatches SendFeedbackJob

Fangate backend developer documentation