Playground API Logo
Playground API
v1.0
Sandbox Active
๐Ÿ“š Dev Portal ๐Ÿฅ Health

Custom Resource Documentation

Dynamic custom resource collections engine (/custom/:collection) allowing developers to create arbitrary collections on the fly (products, orders, notes, leads) with 1-click domain templates.

GET /custom

curl -X
  GET 'http://playground-api-xi.vercel.app/custom' \
 -H 'Content-Type: application/json' \
 -b "pg_identity=your_cookie_uuid" 

Response Schema Example

{
  "totalCollections": 2,
  "collections": [
    {
      "name": "products",
      "endpoint": "/custom/products",
      "count": 3,
      "lastUpdated": "2026-08-02T23:30:00.000Z"
    },
    {
      "name": "orders",
      "endpoint": "/custom/orders",
      "count": 2,
      "lastUpdated": "2026-08-02T23:30:00.000Z"
    }
  ]
}
โšก Try it out โ€” Test endpoint live Test now
POST /custom/seed

Request Parameters
Name Type Required Location Description
template String (Query) Optional
curl -X POST 'http://playground-api-xi.vercel.app/custom/seed' \
 -H 'Content-Type: application/json'
  \
 -b "pg_identity=your_cookie_uuid" \
 -d '{
  "template": "ecommerce"
}' 

Request Payload Example

{
  "template": "ecommerce"
}

Response Schema Example

{
  "message": "Seeded 5 records across custom collections: products, orders.",
  "template": "ecommerce",
  "collections": [
    "products",
    "orders"
  ],
  "totalSeeded": 5
}
โšก Try it out โ€” Test endpoint live Test now
GET /custom/:collection

Request Parameters
Name Type Required Location Description
collection String (Path) Optional
page Integer (Query) Optional
limit Integer (Query) Optional
q String (Query) Optional
_sort String (Query) Optional
curl -X
  GET 'http://playground-api-xi.vercel.app/custom/:collection' \
 -H 'Content-Type: application/json' \
 -b "pg_identity=your_cookie_uuid" 

Response Schema Example

{
  "data": [
    {
      "id": "local-a1b2c3d4",
      "name": "MacBook Pro M3",
      "price": 2499,
      "category": "Laptops",
      "createdAt": "2026-08-02T23:30:00.000Z",
      "_sandbox": "created"
    }
  ],
  "pagination": {
    "page": 1,
    "limit": 10,
    "total": 1,
    "totalPages": 1,
    "hasNextPage": false,
    "hasPrevPage": false
  }
}
โšก Try it out โ€” Test endpoint live Test now
POST /custom/:collection

Request Parameters
Name Type Required Location Description
collection String (Path) Optional
curl -X POST 'http://playground-api-xi.vercel.app/custom/:collection' \
 -H 'Content-Type: application/json'
  \
 -b "pg_identity=your_cookie_uuid" \
 -d '{
  "name": "Custom Product Item",
  "price": 99.99,
  "inStock": true
}' 

Request Payload Example

{
  "name": "Custom Product Item",
  "price": 99.99,
  "inStock": true
}

Response Schema Example

{
  "id": "local-f9e8d7c6-5432-10ab",
  "name": "Custom Product Item",
  "price": 99.99,
  "inStock": true,
  "createdAt": "2026-08-02T23:30:00.000Z",
  "updatedAt": "2026-08-02T23:30:00.000Z",
  "_sandbox": "created"
}
โšก Try it out โ€” Test endpoint live Test now
DELETE /custom/:collection/:id

Request Parameters
Name Type Required Location Description
collection String (Path) Optional
id String (Path) Optional
curl -X DELETE 'http://playground-api-xi.vercel.app/custom/:collection/:id' \
 -H 'Content-Type: application/json' \

  -b "pg_identity=your_cookie_uuid" 

Response Schema Example

{
  "message": "Record 'local-f9e8d7c6' removed from custom collection 'products'"
}
โšก Try it out โ€” Test endpoint live Test now