Products API Reference

Complete API reference for managing products programmatically.

Base URL
https://wapify.me/api/products
Authentication

All requests require Bearer token authentication. Include the token in the Authorization header:

Authorization: Bearer YOUR_API_TOKEN
Available Endpoints
Quick Navigation
GET List Products
https://wapify.me/api/products

Retrieve a paginated list of products.

Query Parameters
Parameter Tipo Descripción
page integer Page number (default: 1)
per_page integer Items per page (default: 20)
status boolean Filter by status (true for active, false for inactive)
category_id integer Filter by category ID
whatsapp_enabled boolean Filter by WhatsApp enabled status
Example Request
curl -X GET "https://wapify.me/api/products?status=true&category_id=1" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Accept: application/json"
Response
{
  "success": true,
  "data": {
    "current_page": 1,
    "data": [
      {
        "id": 1,
        "name": "Product Name",
        "description": "Product description",
        "price": 99.99,
        "currency": {
          "id": 840,
          "code": "USD"
        },
        "category": {
          "id": 1,
          "name": "Category Name"
        },
        "status": true,
        "whatsapp_enabled": true,
        "created_at": "2024-01-15T10:30:00Z"
      }
    ],
    "per_page": 20,
    "total": 50,
    "last_page": 3
  },
  "team": {
    "id": 1,
    "name": "My Team"
  },
  "user": {
    "id": 1,
    "name": "John Doe",
    "email": "john@example.com",
    "role": "admin"
  }
}
GET Get Product
https://wapify.me/api/products/{id}

Retrieve a single product by ID.

Example Request
curl -X GET "https://wapify.me/api/products/1" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Accept: application/json"