---
title: "Copy the signed-in member's avatar into the private rep photo bucket"
description: "Copies bytes only. The public avatar stays public. A default color avatar has no bytes and returns 400. The response is a storage path. The browser writes that path onto rep_profiles with the user's own session so the change audit records them.\n"
---

> Documentation Index
> Fetch the complete documentation index at: https://developer.channelautomations.com/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Channel Automation API › Rep profiles

`POST /api/rep-profiles/me/photo-from-avatar`

Copies bytes only. The public avatar stays public. A default color avatar has no bytes and returns 400. The response is a storage path. The browser writes that path onto rep_profiles with the user's own session so the change audit records them.

## Header parameters

- `x-workspace-id` (`post/api/rep-profiles/me/photo-from-avatar.header.x-workspace-id`; string, optional)

## Code samples

### cURL

```bash
curl --request POST \
  --url https://api.channelautomation.com/api/rep-profiles/me/photo-from-avatar
```

### TypeScript

```typescript
const url = 'https://api.channelautomation.com/api/rep-profiles/me/photo-from-avatar';
const options = {method: 'POST'};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.channelautomation.com/api/rep-profiles/me/photo-from-avatar"

response = requests.post(url)

print(response.text)
```

## Responses

### 200

photo_path inside rep-profile-photos.

### 400

No usable https image, or the file is not an allowed type.

### 403

The caller is not a member of the workspace.

### 503

The private bucket is not available yet.


Source: https://developer.channelautomations.com/api/post-api-rep-profiles-me-photo-from-avatar/index.md
