---
title: "Get presigned URLs to upload user profile picture"
method: POST
path: "/public/get-presigned-url-for-user-profile-photo"
tags: ["User"]
---

# Get presigned URLs to upload user profile picture

`POST /public/get-presigned-url-for-user-profile-photo`

Get URL to upload a user's profile photo. You have to make a PUT request on the "presignedUrl" to upload the picture, then call the "update-user-profile-data" api endpoint to set the user's profile picture url to the "regularUrl" returned by this resolver.

Authentication with the "FERMION-API-KEY" header is required to use this endpoint.

Rate limit: Maximum 60 requests in a window of 1m.

## Request body

- object
  - `data` object[], required
    - `data` object, required
      - `userId` string — Internal userId you have been using for the user in your database
      - `userEmail` string, email — Email of the user

## Response `200`

API Response Body

- object[]
  - `output` union, required
    - object
      - `status` 'ok', required
      - `data` object, required
        - `presignedUrl` string, uri, required — This is the URL you have to make the PUT request to.
        - `regularUrl` string, uri, required — This is the URL you have to provide to the update api endpoint.
    - object
      - `status` 'error', required
      - `errorMessage` string, required

---

[API](https://skmtc.net/fermion/apis/fermion-backend-api.md) · [All operations](https://skmtc.net/fermion/apis/fermion-backend-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/fermion/fermion-backend-api/revisions/7ce364c8820b/schema)
