Storage API
Upload a file and get a URL you can display.
Base URL: https://storage-api.pcampus.co
How to connect
POST https://storage-api.pcampus.co/v1/upload
Authorization: Bearer pip_YOUR_API_KEY
x-tenant-id: your-tenant-idExample — upload from your server
curl https://storage-api.pcampus.co/v1/upload \
-H "Authorization: Bearer pip_YOUR_API_KEY" \
-H "x-tenant-id: your-tenant-id" \
-F "file=@photo.jpg"Sample response
{
"objectId": "obj_001",
"url": "https://cdn.pcampus.co/your-tenant-id/photo.jpg"
}| Status | When |
|---|---|
201 / 200 | Upload succeeded |
401 | Invalid token |
400 | Missing file or unsupported type |