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

# Upload Agent Skill Icon



## OpenAPI

````yaml /openapi.json post /v1/interview-agents/skills/{skill_id}/icon
openapi: 3.1.0
info:
  title: Ontora API
  description: >-
    Ontora's public API. Covers interview campaigns, transcripts, synthesis
    reports, graph queries, webhooks, and workspace management. 


    **Authentication**: endpoints accept either a Clerk JWT (`Authorization:
    Bearer <token>`) or a workspace API key (`X-API-Key: ont_...`). Workspace
    keys are managed via `/v1/api-keys`.
  version: 0.1.0
servers: []
security:
  - ClerkJWT: []
  - WorkspaceApiKey: []
tags:
  - name: interviews
    description: Campaign CRUD, lifecycle, contacts, question sets.
  - name: campaign-insights
    description: Synthesis outputs — cartography, roadmap, personas, conversations.
  - name: interview-query
    description: Graph RAG query over campaign data.
  - name: campaign-reports
    description: Versioned synthesis Reports — manual regenerate, version history.
  - name: interview-export
    description: Markdown / ZIP exports of transcripts and reports.
  - name: api-keys
    description: Manage workspace-scoped API keys for programmatic access.
  - name: webhook-endpoints
    description: Outbound webhook endpoints for automation.
  - name: booking
    description: Public self-scheduling endpoints for interview participants.
  - name: join
    description: Public QR-code / share-link self-registration for campaign participants.
  - name: workspaces
    description: Workspace and membership management.
  - name: vaults
    description: Context vault management.
paths:
  /v1/interview-agents/skills/{skill_id}/icon:
    post:
      tags:
        - interview-agents
      summary: Upload Agent Skill Icon
      operationId: upload_agent_skill_icon_v1_interview_agents_skills__skill_id__icon_post
      parameters:
        - name: skill_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Skill Id
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              $ref: >-
                #/components/schemas/Body_upload_agent_skill_icon_v1_interview_agents_skills__skill_id__icon_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentSkillOut'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    Body_upload_agent_skill_icon_v1_interview_agents_skills__skill_id__icon_post:
      properties:
        file:
          type: string
          contentMediaType: application/octet-stream
          title: File
      type: object
      required:
        - file
      title: >-
        Body_upload_agent_skill_icon_v1_interview_agents_skills__skill_id__icon_post
    AgentSkillOut:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        workspace_id:
          type: string
          format: uuid
          title: Workspace Id
        name:
          type: string
          title: Name
        slug:
          type: string
          title: Slug
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        avatar_type:
          type: string
          title: Avatar Type
        avatar_emoji:
          anyOf:
            - type: string
            - type: 'null'
          title: Avatar Emoji
        avatar_storage_key:
          anyOf:
            - type: string
            - type: 'null'
          title: Avatar Storage Key
        avatar_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Avatar Url
        skill_type:
          type: string
          title: Skill Type
        body:
          type: string
          title: Body
        trigger_description:
          anyOf:
            - type: string
            - type: 'null'
          title: Trigger Description
        status:
          type: string
          title: Status
        default_enabled:
          type: boolean
          title: Default Enabled
        assigned_agent_ids:
          items:
            type: string
            format: uuid
          type: array
          title: Assigned Agent Ids
        documents:
          items:
            $ref: '#/components/schemas/AgentSkillDocumentOut'
          type: array
          title: Documents
        priority:
          type: integer
          title: Priority
        version_count:
          type: integer
          title: Version Count
          default: 0
        created_by:
          anyOf:
            - type: string
            - type: 'null'
          title: Created By
        created_by_email:
          anyOf:
            - type: string
            - type: 'null'
          title: Created By Email
        created_by_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Created By Name
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
      type: object
      required:
        - id
        - workspace_id
        - name
        - slug
        - avatar_type
        - skill_type
        - body
        - status
        - default_enabled
        - priority
        - created_at
        - updated_at
      title: AgentSkillOut
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    AgentSkillDocumentOut:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        document_id:
          type: string
          format: uuid
          title: Document Id
        title:
          anyOf:
            - type: string
            - type: 'null'
          title: Title
        extracted_summary:
          anyOf:
            - type: string
            - type: 'null'
          title: Extracted Summary
        status:
          type: string
          title: Status
          default: completed
        created_at:
          type: string
          format: date-time
          title: Created At
      type: object
      required:
        - id
        - document_id
        - created_at
      title: AgentSkillDocumentOut
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ClerkJWT:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Clerk-issued RS256 JWT.
    WorkspaceApiKey:
      type: apiKey
      in: header
      name: X-API-Key
      description: 'Workspace-scoped API key (prefix: `ont_`).'
    HTTPBearer:
      type: http
      scheme: bearer

````