Skip to main content
POST
/
accounts
/
profile-image
Upload profile image
curl --request POST \
  --url https://api.quiva.ai/accounts/profile-image \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "file_name": "<string>",
  "file": "aSDinaTvuI8gbWludGxpZnk=",
  "content_type": "<string>",
  "is_chunk": true,
  "chunk_index": 123,
  "total_chunks": 123
}
'
{
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
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

Profile image uploaded successfully

message
string