# getProfilePhoto

Source: /openapi/thomas-federated.openapi.json

## Operation

| Method | URL |
|---|---|
| GET | https://dev-cxi-api.thomas.co/v1/colleagues/{id}/photo |

| Field | Value |
|---|---|
| operationId | getProfilePhoto |
| method | GET |
| server | https://dev-cxi-api.thomas.co/v1 |
| path | /colleagues/{id}/photo |
| tags | `Colleagues & Profiles` |
| summary | Get colleague profile photo (public) |
| badges | None |

## Request Parameters

| Name | In | Required | Schema | Description |
|---|---|---|---|---|
| id | path | true | string |  |

## Request Body

None.

## Responses

| Status | Description | Schema refs |
|---|---|---|
| 200 | Photo binary stream (image/jpeg) |  |
| 404 | No photo exists for this colleague | #/components/schemas/ApiErrorResponseDto |
| 429 | Rate limit exceeded. | #/components/schemas/ApiErrorResponseDto |

### Response 429 headers

| Name | Description | Schema |
|---|---|---|
| Retry-After | Seconds until the rate-limit block expires before retrying. | {"type":"integer","minimum":0} |
| RateLimit-Limit | Configured request limit for the active rate-limit window. | {"type":"integer"} |
| RateLimit-Remaining | Requests remaining in the active rate-limit window; zero when blocked. | {"type":"integer"} |
| RateLimit-Reset | Seconds until the rate-limit block expires. | {"type":"integer","minimum":0} |

## Artifact Examples

### Response 404 example

```json
{
  "statusCode": 404,
  "message": "Photo not found",
  "error": "PHOTO_NOT_FOUND"
}
```

### Response 429 example

```json
{
  "statusCode": 429,
  "message": "ThrottlerException: Too Many Requests",
  "error": "HTTP_TOO_MANY_REQUESTS"
}
```
