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

# List skill drafts awaiting review

> Returns every draft on the account, pending and resolved (resolved drafts are trimmed over time). Subject: `microstrate.hub.get.coworker-skill-drafts`.



## OpenAPI

````yaml /api-reference/endpoint/abbie/openapi.json get /hub/coworker/skill-drafts
openapi: 3.1.0
info:
  title: Abbie API (beta)
  version: 1.0.0
  description: >
    **Beta.** This API is in beta: operations and fields may change without a
    deprecation period. Do not depend on undocumented fields. It covers the
    subset of Abbie's API used by the Quiva coworker MCP server: skills, todos,
    memory, profile, corrections, environment and models.


    HTTP surface of hub-service for Abbie/Coworker configuration, agent rapport
    & context, chat-session sharing, and MCP registration.


    ## Transport and response envelope


    Every operation here is a gateway mapping onto a Bellerophon/kraken subject
    of the form `microstrate.hub.<method>.<endpoint-slug>` (see
    `hub-service/service/service.go` and `docs/abbie-gateway-mappings.md`).
    Handlers reply on the mesh with an envelope `{"status_code": <int>, "body":
    <object>}`; the gateway unwraps it, so `status_code` becomes the HTTP status
    and `body` becomes the HTTP response body. **The schemas below describe the
    unwrapped `body`.**


    Errors are always `{"error": "<message>"}` with the matching HTTP status.


    ## Parameter conventions


    The gateway forwards URL parameters to the handler as request headers:


    - `x-param-query-<name>` — a query-string parameter (`?name=value`)

    - `x-param-<name>` — a path parameter


    Every parameter documented as `in: query` or `in: path` below corresponds to
    one of those headers, and the header suffix is named in each parameter's
    description where it is not obvious.


    ## Authentication


    All operations require the caller's bearer token; the account id, user id
    and user public key are always taken from the JWT and never from the URL or
    body. Endpoints that additionally require an account **admin** role are
    marked in their description — a failed role lookup answers **502**, never
    403 and never a pass.


    ## Two path notes


    - `PATCH /hub/agent-session-visibility/{session_id}` — the handler reads the
    path parameter as `x-param-session_id`, matching its sibling `PATCH
    /hub/agent-session/{session_id}`.

    - `GET|POST|PUT /hub/agent/user-context/{id}` — the handler requires the
    **agent id** as `x-param-id`; the frontend calls
    `/hub/agent/user-context/<agentId>`.
servers:
  - url: https://api.quiva.ai
    description: Production API server
security:
  - bearerAuth: []
  - apiKeyAuth: []
tags:
  - name: Skills
  - name: Todos
  - name: Memory
  - name: Profile and personality
  - name: Corrections
  - name: Environment
  - name: Models
paths:
  /hub/coworker/skill-drafts:
    get:
      tags:
        - Skills
      summary: List skill drafts awaiting review
      description: >-
        Returns every draft on the account, pending and resolved (resolved
        drafts are trimmed over time). Subject:
        `microstrate.hub.get.coworker-skill-drafts`.
      operationId: getCoworkerSkillDrafts
      responses:
        '200':
          description: Draft list
          content:
            application/json:
              schema:
                type: object
                properties:
                  drafts:
                    type: array
                    items:
                      $ref: '#/components/schemas/SkillDraft'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '502':
          $ref: '#/components/responses/UpstreamError'
components:
  schemas:
    SkillDraft:
      type: object
      description: A proposed skill awaiting human approval.
      properties:
        id:
          type: string
          description: Draft id — not the skill id. Empty mints a new draft.
        skill_id:
          type: string
          description: Set means this draft is an edit of an existing skill
        status:
          type: string
          enum:
            - pending
            - approved
            - rejected
            - expired
          description: >-
            Server-owned — always forced to `pending` on write. `expired` = aged
            out unanswered; a late approve or reject still lands, and a PUT
            re-opens it with a fresh review window.
          readOnly: true
        origin:
          type: string
          enum:
            - explicit
            - proactive
            - refinement
          description: Defaults to `explicit`
        name:
          type: string
        description:
          type: string
        instruction:
          type: string
        keywords:
          type: array
          items:
            type: string
        patterns:
          type: array
          items:
            type: string
        tool_ids:
          type: array
          items:
            type: string
        env:
          type: array
          items:
            $ref: '#/components/schemas/EnvDeclaration'
          description: >-
            A declaration only — approving the draft never creates an
            `approved_env` grant
        session_id:
          type: string
          description: Provenance
        created_by:
          type: string
          description: >-
            Stamped server-side where possible; immutable once set. Absent for
            unattended proactive proposals.
        created_at:
          type: string
          format: date-time
          description: >-
            Immutable while pending; re-stamped when a PUT re-opens a resolved
            draft (it is the expiry clock)
        pii_redactions:
          type: array
          items:
            type: string
          description: >-
            Redaction categories that fired while generating this draft. The
            only route by which the approving human learns the text was
            rewritten.
    EnvDeclaration:
      type: object
      description: >-
        One environment variable a skill or MCP server declares it needs. A
        declaration, never a grant — the approval is a separate human act
        recorded in `approved_env`.
      properties:
        name:
          type: string
          description: '`^[A-Z_][A-Z0-9_]*$`, not platform-reserved'
        description:
          type: string
        is_required:
          type: boolean
        is_secret:
          type: boolean
          description: >-
            When true, any `default` is dropped on write so a plaintext
            credential cannot ride in
        format:
          type: string
        default:
          type: string
      required:
        - name
    Error:
      type: object
      description: The unwrapped error body. The HTTP status carries the code.
      properties:
        error:
          type: string
      required:
        - error
  responses:
    Unauthorized:
      description: No account (or user) identity in the auth context
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    UpstreamError:
      description: >-
        A backend read or write failed — deliberately not degraded to an empty
        or default answer
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````

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