> ## Documentation Index
> Fetch the complete documentation index at: https://docs.zavu.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Upload WhatsApp Business profile picture

> Upload a new profile picture for the WhatsApp Business profile. The image will be uploaded to Meta and set as the profile picture.



## OpenAPI

````yaml /openapi.json post /v1/senders/{senderId}/profile/picture
openapi: 3.0.3
info:
  title: Zavu Unified Messaging Layer API
  version: 0.2.0
  description: >
    Unified multi-channel messaging API for Zavu.


    Supported channels:

    - **SMS**: Simple text messages

    - **WhatsApp**: Rich messaging with media, buttons, lists, CTA URL buttons,
    and templates

    - **Telegram**: Bot messaging with text, media, and interactive elements

    - **Email**: Transactional emails via Amazon SES


    Design goals:

    - Simple `send()` entrypoint for developers

    - Project-level authentication via Bearer token

    - Support for all WhatsApp message types (text, image, video, audio,
    document, sticker, location, contact, buttons, list, cta_url, reaction,
    template)

    - If a non-text message type is sent, WhatsApp channel is used automatically

    - 24-hour WhatsApp conversation window enforcement

    - Universal `to` field accepts phone numbers (E.164), email addresses, or
    numeric chat IDs (Telegram/Instagram)
servers:
  - url: https://api.zavu.dev
security:
  - bearerAuth: []
paths:
  /v1/senders/{senderId}/profile/picture:
    post:
      summary: Upload WhatsApp Business profile picture
      description: >-
        Upload a new profile picture for the WhatsApp Business profile. The
        image will be uploaded to Meta and set as the profile picture.
      operationId: uploadSenderProfilePicture
      parameters:
        - $ref: '#/components/parameters/SenderIdParam'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WhatsAppBusinessProfilePictureRequest'
            example:
              imageUrl: https://example.com/profile.jpg
              mimeType: image/jpeg
      responses:
        '200':
          description: Profile picture uploaded successfully.
          content:
            application/json:
              schema:
                type: object
                required:
                  - success
                  - profile
                properties:
                  success:
                    type: boolean
                  profile:
                    $ref: '#/components/schemas/WhatsAppBusinessProfile'
        '400':
          description: >-
            Invalid request or sender does not have a WhatsApp Business Account
            connected.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Sender not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearerAuth: []
components:
  parameters:
    SenderIdParam:
      name: senderId
      in: path
      required: true
      schema:
        type: string
  schemas:
    WhatsAppBusinessProfilePictureRequest:
      type: object
      description: Request body to upload a profile picture.
      required:
        - imageUrl
        - mimeType
      properties:
        imageUrl:
          type: string
          format: uri
          description: URL of the image to upload.
        mimeType:
          type: string
          description: MIME type of the image.
          enum:
            - image/jpeg
            - image/png
    WhatsAppBusinessProfile:
      type: object
      description: WhatsApp Business profile information.
      properties:
        about:
          type: string
          description: Short description of the business (max 139 characters).
          maxLength: 139
          example: Succulent specialists!
        address:
          type: string
          description: Physical address of the business (max 256 characters).
          maxLength: 256
          example: 1 Hacker Way, Menlo Park, CA 94025
        description:
          type: string
          description: Extended description of the business (max 512 characters).
          maxLength: 512
          example: >-
            At Lucky Shrub, we specialize in providing a diverse range of
            high-quality succulents.
        email:
          type: string
          format: email
          description: Business email address.
          example: contact@example.com
        profilePictureUrl:
          type: string
          format: uri
          description: URL of the business profile picture.
          example: https://pps.whatsapp.net/v/t61.24...
        websites:
          type: array
          description: Business website URLs (maximum 2).
          maxItems: 2
          items:
            type: string
            format: uri
          example:
            - https://www.example.com/
        vertical:
          $ref: '#/components/schemas/WhatsAppBusinessProfileVertical'
    Error:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: string
          example: invalid_request
        message:
          type: string
          example: Phone number is invalid
        details:
          type: object
          additionalProperties: true
    WhatsAppBusinessProfileVertical:
      type: string
      description: Business category for WhatsApp Business profile.
      enum:
        - UNDEFINED
        - OTHER
        - AUTO
        - BEAUTY
        - APPAREL
        - EDU
        - ENTERTAIN
        - EVENT_PLAN
        - FINANCE
        - GROCERY
        - GOVT
        - HOTEL
        - HEALTH
        - NONPROFIT
        - PROF_SERVICES
        - RETAIL
        - TRAVEL
        - RESTAURANT
        - NOT_A_BIZ
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````