---
title: "Upload profile image"
method: POST
path: "/accounts/profile-image"
tags: ["User Management"]
---

# Upload profile image

`POST /accounts/profile-image`

## Request

- Base URL: `https://api.quiva.ai`
- URL: `https://api.quiva.ai/accounts/profile-image`
- Auth: one of:
  - HTTP bearer
  - API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/quivaworks/apis/quiva-ai-gateway/docs/accounts/profile-image/post.ts> (a function with typed inputs; its response is checked against the schema)

Uploads a profile image for the user

## Request body

- ProfileImageUploadRequest
  - `file_name` string, required: File name
  - `file` string, byte, required: Base64 encoded file content
  - `content_type` string, required: Content type
  - `is_chunk` boolean: Whether the file is being uploaded in chunks
  - `chunk_index` integer: Current chunk index
  - `total_chunks` integer: Total number of chunks

## Response `200`

Profile image uploaded successfully

- SuccessResponse
  - `message` string

## Other responses

- `400`: Bad request
- `401`: Unauthorized

---

[API](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway.md) - [All operations](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway/llms.txt) - [OpenAPI document](https://skmtc.dev/quivaworks/apis/quiva-ai-gateway/revisions/700eb1ace61a?raw)
