Get Portfolio Analytics
Views for the last 30 days plus top referrer hosts. Returns all-zero data if the caller has never published.
Internal session cookie for local development.
In: cookie
Response Body
application/json
application/json
curl -X GET "https://example.com/api/v1/portfolios/analytics"{ "success": true, "message": "string", "data": { "totalViews": 0, "daily": [ { "date": "2019-08-24T14:15:22Z", "count": 0 } ], "referrers": [ { "host": "string", "count": 0 } ] }}Unpublish PortfolioPOST
Takes a published portfolio offline — status becomes `SUSPENDED` with reason `user_unpublished`, and the underlying document reverts to `PRIVATE` visibility. The document itself is not deleted, so the portfolio can be republished later. Idempotent: if the caller has never published, the call still succeeds and returns `data: null`. Session-authenticated only.
Portfolio Assets
Presigned image uploads for portfolio avatars, project covers, and social images.