Đặc tả API integration an toàn
Chuyển mục tiêu tích hợp thành auth scope, endpoints, retry và dữ liệu tối thiểu cần trao đổi. Output: Integration contract + security/test matrix.
Hãy viết integration contract cho [INTEGRATION] phục vụ flow [USER FLOW]. Endpoints cần dùng: [METHOD + PATH]. Auth hiện có: [OAUTH/API KEY/SESSION]. Payload tối thiểu: [FIELDS]. Rate limit/timeout: [CONSTRAINT]. Data sensitivity: [PUBLIC / INTERNAL / PERSONAL]. Xuất bảng: endpoint, request tối thiểu, response fields, error mapping, retry/idempotency, permission check và test cases. Không log secret, không gửi field ngoài scope và không thiết kế endpoint chưa cần cho flow.