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

# Upload a worker's avatar

> Stores an image (`image_base64`: a PNG, JPEG, GIF or WebP of at most 1 MB) on Statisfy's CDN as the worker's avatar, and returns the worker with its new `avatar_url`. The image is cut to 512 x 512 at most and saved as a PNG, with no metadata. Another file type, a broken image, or one over 4096 x 4096 pixels in area is a 422. A 503 means the image could not be stored: retry.



## OpenAPI

````yaml /api/statisfy-api.openapi.json put /v1/digital_workers/{worker_id}/avatar
openapi: 3.1.0
info:
  description: >-
    The agent-first Statisfy API. Authenticate with an API key (`Authorization:
    Bearer stfy_live_…`), then call `GET /v1/meta/capabilities` to discover
    every operation and its schemas.
  title: Statisfy API
  version: 1.0.0
servers:
  - url: https://api.statisfy.com
    description: Production
security: []
paths:
  /v1/digital_workers/{worker_id}/avatar:
    put:
      tags:
        - digital_workers
      summary: Upload a worker's avatar
      description: >-
        Stores an image (`image_base64`: a PNG, JPEG, GIF or WebP of at most 1
        MB) on Statisfy's CDN as the worker's avatar, and returns the worker
        with its new `avatar_url`. The image is cut to 512 x 512 at most and
        saved as a PNG, with no metadata. Another file type, a broken image, or
        one over 4096 x 4096 pixels in area is a 422. A 503 means the image
        could not be stored: retry.
      operationId: digital_workers_upload_avatar
      parameters:
        - description: The worker's id, from GET /v1/digital_workers
          in: path
          name: worker_id
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: false
              properties:
                image_base64:
                  description: >-
                    The image file in standard base64, with no `data:` prefix: a
                    PNG, JPEG, GIF or WebP of at most 1 MB
                  maxLength: 1398104
                  minLength: 1
                  title: Image Base64
                  type: string
              required:
                - image_base64
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DigitalWorker'
          description: Successful Response
      security:
        - HTTPBearer: []
components:
  schemas:
    DigitalWorker:
      properties:
        accounts:
          $ref: '#/components/schemas/Accounts'
        assignment:
          $ref: '#/components/schemas/Assignment'
        autonomy:
          $ref: '#/components/schemas/Autonomy'
          description: Whether its replies wait for a person
        avatar_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Avatar Url
        built_in:
          description: Whether it is the workspace's own worker, which Statisfy set up
          title: Built In
          type: boolean
        channels:
          $ref: '#/components/schemas/Channels'
          description: Where it answers customers
        created_at:
          description: ISO 8601 UTC
          title: Created At
          type: string
        description:
          anyOf:
            - type: string
            - type: 'null'
          description: 'Its job, in plain words: every conversation it has opens with this'
          title: Description
        id:
          title: Id
          type: string
        kind:
          description: >-
            customer_success or support: a support worker answers customers'
            questions; any other is customer_success
          enum:
            - customer_success
            - support
          title: Kind
          type: string
        knowledge_bases:
          description: >-
            The knowledge bases it searches when it answers, in the order they
            were set
          items:
            $ref: '#/components/schemas/KnowledgeBaseRef'
          title: Knowledge Bases
          type: array
        name:
          title: Name
          type: string
        outreach:
          $ref: '#/components/schemas/Outreach'
          description: >-
            Who its outreach may write to, and how often: your settings over
            Statisfy's defaults
        outreach_enabled:
          description: >-
            Whether it does its proactive tasks (GET
            /v1/digital_workers/{worker_id}/tasks): they run while this is on
            and the worker isn't archived, a draft worker's too, and email
            customers within `outreach`. Turning it on, or changing `outreach`
            while it is on, needs digital_workers:activate and AI CSM
          title: Outreach Enabled
          type: boolean
        persona:
          $ref: '#/components/schemas/Persona'
        skills:
          description: The skills it can use when it answers, in the order they were set
          items:
            $ref: '#/components/schemas/WorkerSkill'
          title: Skills
          type: array
        status:
          description: >-
            draft, active or archived. Only an active worker answers or writes
            to customers; a draft or archived one answers nobody
          enum:
            - draft
            - active
            - archived
          title: Status
          type: string
        third_party_tools:
          $ref: '#/components/schemas/ThirdPartyTools'
          description: >-
            The MCP servers and API Tools vendors connected to your workspace
            that it may use, and which of their tools. Each one's approval
            policy is set in the app and kept as it is
        tools:
          anyOf:
            - items:
                $ref: '#/components/schemas/WorkerToolkit'
              type: array
            - type: 'null'
          description: >-
            The built-in tools it may use, by toolkit (GET
            /v1/digital_workers/toolkits). Null: every tool of every built-in
            toolkit
          title: Tools
        updated_at:
          description: ISO 8601 UTC
          title: Updated At
          type: string
      required:
        - id
        - name
        - description
        - kind
        - status
        - built_in
        - avatar_url
        - persona
        - channels
        - autonomy
        - accounts
        - assignment
        - knowledge_bases
        - skills
        - outreach_enabled
        - outreach
        - tools
        - third_party_tools
        - created_at
        - updated_at
      title: DigitalWorker
      type: object
    Accounts:
      properties:
        segment:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          description: >-
            The accounts it covers: an account segment, the JSON the app's
            account filter builder saves (`entity` 4, the account, and its
            `conditions`). Null covers none. GET
            /v1/digital_workers/{worker_id}/accounts lists what it selects
          title: Segment
      required:
        - segment
      title: Accounts
      type: object
    Assignment:
      properties:
        owner_field:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            An account field naming the account's owner, such as its CSM, from
            GET /v1/fields?object=account
          title: Owner Field
        people:
          description: Teammates' person ids
          items:
            type: string
          title: People
          type: array
        strategy:
          description: >-
            How it picks among `people`: smart (the one with the fewest open
            conversations), round_robin (in turn) or unassigned (left for anyone
            to take)
          enum:
            - smart
            - round_robin
            - unassigned
          title: Strategy
          type: string
        to:
          description: >-
            Who a conversation it hands to a person is assigned to:
            account_owner (the person in the account's `owner_field`) or people
            (one of `people`, picked by `strategy`)
          enum:
            - account_owner
            - people
          title: To
          type: string
        when_teammate_answers:
          description: >-
            Who owns a conversation once a teammate answers in it: keep_owner,
            take_if_unowned (the teammate, when nobody owns it) or take (the
            teammate)
          enum:
            - keep_owner
            - take_if_unowned
            - take
          title: When Teammate Answers
          type: string
      required:
        - to
        - owner_field
        - people
        - strategy
        - when_teammate_answers
      title: Assignment
      type: object
    Autonomy:
      properties:
        channels:
          additionalProperties:
            enum:
              - auto
              - review
            type: string
          description: Channels that don't follow `default`, and what they do instead
          propertyNames:
            enum:
              - portal
              - in_app_sdk
              - email
              - slack
              - teams
              - ticket
          title: Channels
          type: object
        default:
          description: >-
            auto sends on its own and holds a reply for a person when it judges
            one should look; review holds every reply for a person
          enum:
            - auto
            - review
          title: Default
          type: string
      required:
        - default
        - channels
      title: Autonomy
      type: object
    Channels:
      properties:
        email:
          $ref: '#/components/schemas/EmailChannel'
        in_app_sdk:
          $ref: '#/components/schemas/ChatChannel'
          description: The chat widget in your own product
        portal:
          $ref: '#/components/schemas/ChatChannel'
          description: Your customer portal's chat
        slack:
          $ref: '#/components/schemas/SlackChannel'
          description: Your shared Slack channels with customers
        teams:
          $ref: '#/components/schemas/TeamsChannel'
          description: Your Microsoft Teams chats with customers
        ticket:
          $ref: '#/components/schemas/TicketChannel'
          description: Your ticketing system's tickets (Zendesk, Salesforce cases)
      required:
        - portal
        - in_app_sdk
        - email
        - slack
        - teams
        - ticket
      title: Channels
      type: object
    KnowledgeBaseRef:
      properties:
        id:
          description: >-
            The knowledge base's id, from GET /v1/knowledge_bases. A worker
            saved in the app may also hold one an Agent Studio agent keeps for
            its own files, which that list leaves out; it can keep it, but not
            add it again once removed
          title: Id
          type: string
        name:
          title: Name
          type: string
      required:
        - id
        - name
      title: KnowledgeBaseRef
      type: object
    Outreach:
      properties:
        audiences:
          description: >-
            Who it writes to, in groups: each a contact segment (`entity` 10,
            the contact, and its `conditions`) with how it treats the people in
            it: sparing (only when it matters), working (its everyday contacts)
            or never. `key` is the audience's lasting id: rename `name` freely
          items:
            $ref: '#/components/schemas/OutreachAudience'
          title: Audiences
          type: array
        exclude_emails:
          description: Addresses it never writes to, lower case
          items:
            type: string
          title: Exclude Emails
          type: array
        max_cc:
          description: >-
            How many more of a customer's contacts it may copy on one email, 0
            to 10
          title: Max Cc
          type: integer
        quota:
          $ref: '#/components/schemas/OutreachQuota'
          description: >-
            Ceilings it never goes over: emails per customer a week and a month,
            to one person a week (counting every sender's email, campaigns too),
            and sends a minute, an hour and a day
        sender_email:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            The address its outreach is sent from: its
            `channels.email.company_address` or one of its
            `channels.email.addresses`. Null sends from the first of those that
            can send
          title: Sender Email
      required:
        - sender_email
        - audiences
        - exclude_emails
        - max_cc
        - quota
      title: Outreach
      type: object
    Persona:
      properties:
        ai_disclosure:
          anyOf:
            - enum:
                - transparent
                - branded
                - hybrid
              type: string
            - type: 'null'
          description: >-
            How it says it is an AI: transparent (the first time it writes to
            someone), branded (it uses its name, and says so only when asked) or
            hybrid (when it matters, such as before promising a follow-up)
          title: Ai Disclosure
        greeting:
          anyOf:
            - type: string
            - type: 'null'
          description: Its first message in the portal and the in-app chat
          title: Greeting
        guardrails:
          anyOf:
            - type: string
            - type: 'null'
          description: Rules it always follows, ahead of everything else it is told
          title: Guardrails
        voice:
          anyOf:
            - type: string
            - type: 'null'
          description: 'How it writes: its tone, and how it addresses people'
          title: Voice
      required:
        - voice
        - greeting
        - ai_disclosure
        - guardrails
      title: Persona
      type: object
    WorkerSkill:
      properties:
        enabled:
          description: >-
            Whether it is on in your workspace (`enabled` on GET /v1/skills):
            the worker skips one that is off, archived or gone
          title: Enabled
          type: boolean
        key:
          description: The skill's key, from GET /v1/skills
          title: Key
          type: string
        name:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            Null when the key names no skill your workspace has: the worker
            skips it
          title: Name
      required:
        - key
        - name
        - enabled
      title: WorkerSkill
      type: object
    ThirdPartyTools:
      properties:
        api_tools:
          items:
            $ref: '#/components/schemas/ThirdPartyVendor'
          title: Api Tools
          type: array
        mcp_servers:
          items:
            $ref: '#/components/schemas/ThirdPartyServer'
          title: Mcp Servers
          type: array
      required:
        - mcp_servers
        - api_tools
      title: ThirdPartyTools
      type: object
    WorkerToolkit:
      properties:
        excluded:
          description: Tools of the toolkit it may not use
          items:
            type: string
          title: Excluded
          type: array
        tool_settings:
          additionalProperties:
            additionalProperties: true
            type: object
          description: >-
            Settings of the tools that take them, by tool name, e.g.
            {"get_account_info": {"fields": [...]}}
          title: Tool Settings
          type: object
        toolkit:
          description: The toolkit's key, from GET /v1/digital_workers/toolkits
          title: Toolkit
          type: string
        tools:
          anyOf:
            - const: all
              type: string
            - items:
                type: string
              type: array
          description: '"all", or the names of the toolkit''s tools it may use'
          title: Tools
      required:
        - toolkit
        - tools
        - excluded
        - tool_settings
      title: WorkerToolkit
      type: object
    EmailChannel:
      properties:
        acknowledge:
          description: Whether it acknowledges an email whose reply waits for a person
          title: Acknowledge
          type: boolean
        acknowledgement:
          anyOf:
            - type: string
            - type: 'null'
          description: What it tells the customer when a reply waits for a person
          title: Acknowledgement
        addresses:
          description: >-
            The mailboxes it reads and sends from: each a Google Workspace or
            Microsoft 365 mailbox connected to Statisfy with read and send,
            which no other active worker claims
          items:
            type: string
          title: Addresses
          type: array
        company_address:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            The company mailbox that forwards to it. Its replies are sent as it,
            and copy it
          title: Company Address
        enabled:
          title: Enabled
          type: boolean
        forwarding:
          description: Whether it answers the mail your company mailbox forwards to it
          title: Forwarding
          type: boolean
        shared_mailboxes:
          description: >-
            Microsoft 365 shared mailboxes it reads through a teammate's
            delegated access
          items:
            type: string
          title: Shared Mailboxes
          type: array
        take_in_unknown_senders:
          description: >-
            Whether mail to it from a sender it can't place (no account, or an
            account no worker covers) shows on the board for a person to answer;
            it never answers that mail itself. Unset, it is on for a support
            worker and off for any other
          title: Take In Unknown Senders
          type: boolean
        watch_mailboxes:
          description: Whether it reads the mail that reaches `addresses`
          title: Watch Mailboxes
          type: boolean
      required:
        - enabled
        - addresses
        - shared_mailboxes
        - watch_mailboxes
        - forwarding
        - company_address
        - take_in_unknown_senders
        - acknowledge
        - acknowledgement
      title: EmailChannel
      type: object
    ChatChannel:
      properties:
        acknowledgement:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            What it tells the customer when a reply waits for a person; an
            enabled channel always sends it
          title: Acknowledgement
        enabled:
          title: Enabled
          type: boolean
      required:
        - enabled
        - acknowledgement
      title: ChatChannel
      type: object
    SlackChannel:
      properties:
        acknowledge:
          description: Whether it acknowledges a message whose reply waits for a person
          title: Acknowledge
          type: boolean
        acknowledgement:
          anyOf:
            - type: string
            - type: 'null'
          description: What it tells the customer when a reply waits for a person
          title: Acknowledgement
        enabled:
          title: Enabled
          type: boolean
        grouping:
          description: >-
            How its Slack messages become conversations: one per thread, or
            related messages grouped by topic
          enum:
            - thread
            - topic
          title: Grouping
          type: string
      required:
        - enabled
        - grouping
        - acknowledge
        - acknowledgement
      title: SlackChannel
      type: object
    TeamsChannel:
      properties:
        acknowledge:
          description: Whether it acknowledges a message whose reply waits for a person
          title: Acknowledge
          type: boolean
        acknowledgement:
          anyOf:
            - type: string
            - type: 'null'
          description: What it tells the customer when a reply waits for a person
          title: Acknowledgement
        enabled:
          title: Enabled
          type: boolean
      required:
        - enabled
        - acknowledge
        - acknowledgement
      title: TeamsChannel
      type: object
    TicketChannel:
      properties:
        create_tickets:
          additionalProperties:
            enum:
              - never
              - not_deflected
              - always
            type: string
          description: >-
            Which channels' conversations also get a ticket in the system:
            not_deflected when the worker hands the conversation to a person,
            always for every one. A channel left out (or never) gets none
          propertyNames:
            enum:
              - email
              - slack
              - teams
              - portal
              - in_app_sdk
          title: Create Tickets
          type: object
        enabled:
          description: Whether it answers tickets in your ticketing system
          title: Enabled
          type: boolean
        group_ids:
          description: >-
            It answers only tickets in these groups (Salesforce: queues), by id
            from the system's `groups`; empty is every group
          items:
            type: string
          title: Group Ids
          type: array
        system:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            The ticketing system it answers tickets in: zendesk or salesforce,
            one GET /v1/digital_workers/ticketing_options lists. One at a time;
            null while none is chosen
          title: System
        tags:
          description: >-
            It answers only tickets with one of these tags (not Salesforce);
            empty is every ticket
          items:
            type: string
          title: Tags
          type: array
      required:
        - enabled
        - system
        - group_ids
        - tags
        - create_tickets
      title: TicketChannel
      type: object
    OutreachAudience:
      properties:
        guidance:
          description: How to write to these people, in your words
          title: Guidance
          type: string
        key:
          description: 'Its lasting id: lower case letters, digits, - and _, up to 32'
          title: Key
          type: string
        name:
          title: Name
          type: string
        segment:
          additionalProperties: true
          description: 'The contacts in it: a contact segment (`entity` 10)'
          title: Segment
          type: object
        treatment:
          description: >-
            sparing (only when it matters), working (its everyday contacts) or
            never
          enum:
            - sparing
            - working
            - never
          title: Treatment
          type: string
      required:
        - key
        - name
        - treatment
        - segment
        - guidance
      title: OutreachAudience
      type: object
    OutreachQuota:
      properties:
        per_customer_per_month:
          title: Per Customer Per Month
          type: integer
        per_customer_per_week:
          title: Per Customer Per Week
          type: integer
        per_person_per_week:
          description: To one person, counting every sender's email (campaigns too)
          title: Per Person Per Week
          type: integer
        sends_per_day:
          title: Sends Per Day
          type: integer
        sends_per_hour:
          title: Sends Per Hour
          type: integer
        sends_per_minute:
          title: Sends Per Minute
          type: integer
      required:
        - per_customer_per_week
        - per_customer_per_month
        - per_person_per_week
        - sends_per_minute
        - sends_per_hour
        - sends_per_day
      title: OutreachQuota
      type: object
    ThirdPartyVendor:
      properties:
        guidance:
          anyOf:
            - type: string
            - type: 'null'
          description: What it is told about when and how to use this vendor
          title: Guidance
        tools:
          description: The vendor's actions it may call, by their own names
          items:
            type: string
          title: Tools
          type: array
        vendor:
          description: >-
            The API Tools vendor's key: its toolkit key in GET
            /v1/agents/toolkits, after api_tools__
          title: Vendor
          type: string
      required:
        - vendor
        - tools
        - guidance
      title: ThirdPartyVendor
      type: object
    ThirdPartyServer:
      properties:
        guidance:
          anyOf:
            - type: string
            - type: 'null'
          description: What it is told about when and how to use this server
          title: Guidance
        server:
          description: >-
            The MCP server's key: its toolkit key in GET /v1/agents/toolkits,
            after mcp_3p__
          title: Server
          type: string
        tools:
          description: The server's tools it may call, by their own names
          items:
            type: string
          title: Tools
          type: array
      required:
        - server
        - tools
        - guidance
      title: ThirdPartyServer
      type: object
  securitySchemes:
    HTTPBearer:
      scheme: bearer
      type: http
      description: >-
        An API key, sent as `Authorization: Bearer stfy_live_…`. See
        [Authentication](/rest-api/authentication) for how to get one and which
        scopes it needs.

````

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