Portplate API
สร้างแอปกับ Portplate
เชื่อมต่อแอปของคุณผ่าน Portplate REST API จัดการ Design, export อัตโนมัติ, สร้าง workflow ตามต้องการ
รับ API key ของคุณAuthentication
ทุก request ต้องส่ง API key ใน Authorization header สร้าง key ได้ที่ Authorization ตั้งค่า → API Keys.
curl https://portplate.com/api/designs \ -H "Authorization: Bearer pp_your_api_key_here"
Base URL
https://portplate.com/api
Endpoints
Designs
GET
/api/designsดูรายการ Design ของคุณ (แบ่งหน้า, ?limit=20&offset=0)
POST
/api/designsสร้าง Design ใหม่
GET
/api/designs/:idดู Design ตาม ID
PATCH
/api/designs/:idแก้ไขชื่อ, tag, หรือการมองเห็น
DELETE
/api/designs/:idย้าย Design ไปถังขยะ
Exports
POST
/api/exportsสั่ง export PNG/PDF สำหรับ Design
GET
/api/exports/:idดูสถานะ export และลิงก์ดาวน์โหลด
Templates
GET
/api/templatesดูรายการ template สาธารณะ (?q=&category=)
GET
/api/templates/:idดูรายละเอียด template
ตัวอย่าง: ดูรายการ Design
curl "https://portplate.com/api/designs?limit=5" \
-H "Authorization: Bearer pp_your_key"
# Response
{
"designs": [
{
"_id": "64ab1234...",
"title": "My Design",
"width": 1080,
"height": 1080,
"updatedAt": "2026-04-01T10:00:00Z"
}
],
"total": 42
}ตัวอย่าง: สร้าง Design จาก template
curl -X POST "https://portplate.com/api/designs" \
-H "Authorization: Bearer pp_your_key" \
-H "Content-Type: application/json" \
-d '{
"title": "Product Promo",
"width": 1080,
"height": 1080,
"fromTemplate": "TEMPLATE_ID"
}'Rate limits
Free60 requests / minute
Pro300 requests / minute
Max1,000 requests / minute
สถานะ rate limit จะอยู่ใน X-RateLimit-* headers