認証
すべてのAPIリクエストにはAuthorizationヘッダーにAPIキーが必要です。キーの生成は Authorization 設定 → APIキー.
curl https://portplate.com/api/designs \ -H "Authorization: Bearer pp_your_api_key_here"
ベースURL
https://portplate.com/api
エンドポイント
デザイン
GET
/api/designsデザイン一覧を取得(ページネーション対応)
POST
/api/designs新しいデザインを作成
GET
/api/designs/:idIDでデザインを取得
PATCH
/api/designs/:idタイトル、タグ、公開設定を更新
DELETE
/api/designs/:idデザインをゴミ箱に移動
エクスポート
POST
/api/exportsPNG/PDFエクスポートをキューに追加
GET
/api/exports/:idエクスポート状況とダウンロードURLを確認
テンプレート
GET
/api/templates公開テンプレート一覧を取得
GET
/api/templates/:idテンプレート詳細を取得
例: デザイン一覧の取得
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
}例: テンプレートからデザインを作成
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"
}'レート制限
Free60 requests / minute
Pro300 requests / minute
Max1,000 requests / minute
レート制限の状態はX-RateLimit-*ヘッダーで返されます。