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

# Get a member picture

> Read the picture of a member who has replied in this conversation; the bytes are base64 because the visitor credential cannot travel on an image request. Authorization and resource ownership are evaluated on every request.



## OpenAPI

````yaml /openapi/widget.json get /api/v1/chat/visitor/avatars/{userID}
openapi: 3.1.0
info:
  title: Widget API
  version: 1.0.0
  description: >-
    Embed Writine chat on your own site. These endpoints need no Writine
    account: the widget routes are authorised by your site origin allowlist, and
    the visitor routes by a token issued when a conversation starts.
servers:
  - url: https://api.writine.com
    description: Production
security: []
paths:
  /api/v1/chat/visitor/avatars/{userID}:
    get:
      summary: Get a member picture
      description: >-
        Read the picture of a member who has replied in this conversation; the
        bytes are base64 because the visitor credential cannot travel on an
        image request. Authorization and resource ownership are evaluated on
        every request.
      operationId: chat_get__api_v1_chat_visitor_avatars__userID_
      parameters:
        - in: path
          name: userID
          required: true
          schema:
            type: string
            maxLength: 100
        - in: header
          name: Origin
          required: true
          schema:
            type: string
            format: uri
          description: >-
            Must exactly match the website's allowlist. Visitor tokens are bound
            to this origin.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  result:
                    type: object
                    properties:
                      content_type:
                        type: string
                        maxLength: 100
                      bytes:
                        type: string
                        maxLength: 256
                      tag:
                        type: string
                        maxLength: 100
                    required:
                      - content_type
                      - bytes
                      - tag
                    additionalProperties: false
                  message:
                    type: string
                    maxLength: 256
                required:
                  - success
                  - result
                  - message
                additionalProperties: false
        '400':
          description: Typed error envelope
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  result:
                    type: object
                    properties:
                      code:
                        type: string
                        maxLength: 256
                    required:
                      - code
                    additionalProperties: false
                  message:
                    type: string
                    maxLength: 256
                required:
                  - success
                  - result
                  - message
                additionalProperties: false
        '401':
          description: Typed error envelope
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  result:
                    type: object
                    properties:
                      code:
                        type: string
                        maxLength: 256
                    required:
                      - code
                    additionalProperties: false
                  message:
                    type: string
                    maxLength: 256
                required:
                  - success
                  - result
                  - message
                additionalProperties: false
        '403':
          description: Typed error envelope
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  result:
                    type: object
                    properties:
                      code:
                        type: string
                        maxLength: 256
                    required:
                      - code
                    additionalProperties: false
                  message:
                    type: string
                    maxLength: 256
                required:
                  - success
                  - result
                  - message
                additionalProperties: false
        '404':
          description: Typed error envelope
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  result:
                    type: object
                    properties:
                      code:
                        type: string
                        maxLength: 256
                    required:
                      - code
                    additionalProperties: false
                  message:
                    type: string
                    maxLength: 256
                required:
                  - success
                  - result
                  - message
                additionalProperties: false
        '409':
          description: Typed error envelope
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  result:
                    type: object
                    properties:
                      code:
                        type: string
                        maxLength: 256
                    required:
                      - code
                    additionalProperties: false
                  message:
                    type: string
                    maxLength: 256
                required:
                  - success
                  - result
                  - message
                additionalProperties: false
        '429':
          description: Typed error envelope
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  result:
                    type: object
                    properties:
                      code:
                        type: string
                        maxLength: 256
                    required:
                      - code
                    additionalProperties: false
                  message:
                    type: string
                    maxLength: 256
                required:
                  - success
                  - result
                  - message
                additionalProperties: false
        '500':
          description: Typed error envelope
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  result:
                    type: object
                    properties:
                      code:
                        type: string
                        maxLength: 256
                    required:
                      - code
                    additionalProperties: false
                  message:
                    type: string
                    maxLength: 256
                required:
                  - success
                  - result
                  - message
                additionalProperties: false
        '503':
          description: Typed error envelope
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  result:
                    type: object
                    properties:
                      code:
                        type: string
                        maxLength: 256
                    required:
                      - code
                    additionalProperties: false
                  message:
                    type: string
                    maxLength: 256
                required:
                  - success
                  - result
                  - message
                additionalProperties: false
      security:
        - Visitor token: []
components:
  securitySchemes:
    Visitor token:
      type: http
      scheme: bearer
      description: Opaque, 24-hour, conversation-scoped visitor credential

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.