Skip to main content
POST
Request Profile Image Upload URL

Endpoint

Base URL: http://localhost:3000/api/v1
This endpoint requires authentication and Job Seeker role.

Authentication

Include the access token in the Authorization header:

Description

Requests a presigned URL for uploading a job seeker profile image directly to Cloudflare R2. This is step 1 of the image upload flow:
  1. Request presigned upload URL from API
  2. Upload file directly to storage with PUT {uploadUrl}
  3. Confirm upload with the API

Request Body

fileName
string
required
Original image file name, for example avatar.png.
mimeType
string
required
Image MIME type. Supported values: image/jpeg, image/png, image/webp.

Request Shape

Request Example

Response

Success Response (200 OK)

Response Shape

Error Responses

400 Bad Request - Invalid MIME Type

401 Unauthorized

403 Forbidden

Next Steps

  1. Upload the raw file to uploadUrl using PUT (see Upload Profile Image File)
  2. Do not send a bearer token to the storage URL
  3. Confirm the upload using Confirm Profile Image Upload
The direct upload request goes to storage, not to the CareerK API. Use the returned uploadUrl exactly as-is.