---
title: "Upload the authenticated account profile photo"
method: POST
path: "/api/v1/me/photo"
tags: ["Account"]
---

# Upload the authenticated account profile photo

`POST /api/v1/me/photo`

## Request

- Base URL: `https://spoonjoy.app`
- URL: `https://spoonjoy.app/api/v1/me/photo`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `__session`
  - OAuth 2 (authorization code, authorization URL `https://spoonjoy.app/oauth/authorize`, token URL `https://spoonjoy.app/oauth/token`, scopes: `account:write`)

## Headers

- `X-Request-Id` string

## Response `200`

Success

- AccountProfileMutationEnvelope
  - `ok` unknown, required
  - `requestId` string, required
  - `data` AccountProfileMutationData, required
    - `id` string, required
    - `email` string, email, required
    - `username` string, required
    - `photoUrl` string, nullable, required: Absolute /photos URL, data URL in local mode, or null.
    - `hasPassword` boolean, required
    - `oauthAccounts` LinkedAuthProvider[], required
      - `provider` 'apple' | 'github' | 'google', required
      - `providerUsername` string, required
    - `passkeys` PasskeySummary[], required
      - `id` string, required
      - `name` string, required
      - `transports` string, nullable, required
      - `createdAt` string, date-time, nullable, required
    - `mutation` MutationMetadata, required
      - `clientMutationId` string, required
      - `replayed` boolean, required

## Other responses

- `400`: Errors: validation_error
- `401`: Errors: authentication_required, invalid_token
- `403`: Errors: insufficient_scope
- `404`: Errors: not_found
- `405`: Errors: method_not_allowed
- `409`: Errors: idempotency_conflict, idempotency_in_progress
- `429`: Errors: rate_limited
- `500`: Errors: internal_error
- `503`: Errors: temporarily_unavailable

---

[API](https://skmtc.dev/spoonjoy/apis/spoonjoy-api.md) · [All operations](https://skmtc.dev/spoonjoy/apis/spoonjoy-api/llms.txt) · [OpenAPI document](https://skmtc.dev/spoonjoy/apis/spoonjoy-api/revisions/b96eb5d4697d?raw)
