Upload Single Image (Cloudinary)
Uploads a single image to Cloudinary storage and returns its secure URL, public ID, dimensions, and metadata. Used by the driver and user mobile apps to upload avatar images and KYC verification documents before passing URLs to profile or document endpoints.
Endpoint Overview
-
Method:
POST -
Route:
/api/v1/upload/single -
Authentication:
None (Public) -
Content-Type:
multipart/form-data
Request Headers
Request Body Schema (multipart/form-data)
Response Body Schema (201 Created)
image Object Fields
Response Examples
1. 201 Created — Image Uploaded Successfully
2. 400 Bad Request — Missing File Field
When the form-data field image is not provided:
3. 400 Bad Request — File Exceeds Size Limit (Max 10MB)
4. 400 Bad Request — Unsupported MIME Type
5. 502 Bad Gateway — Cloudinary Upload Failure
Status Codes Reference
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.