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

# AppendWorkstreamEventAPI mirrors erdo_append_workstream_event.




## OpenAPI

````yaml /api/openapi.json post /v1/workstreams/{workstreamSlug}/events
openapi: 3.0.0
info:
  title: Erdo API
  description: >-
    Erdo's REST API: query and write datasets, run agents, manage threads,
    integrations, pages, evals, workstreams, and experiments. Authenticate with
    a Bearer API key (erdo_api_...) or scoped token (erdo_token_...).
  version: '2026-07-25'
servers:
  - url: https://api.erdo.ai
    description: Production
security:
  - bearerAuth: []
paths:
  /v1/workstreams/{workstreamSlug}/events:
    post:
      summary: |
        AppendWorkstreamEventAPI mirrors erdo_append_workstream_event.
      operationId: POST:mcp.AppendWorkstreamEventAPI
      parameters:
        - allowEmptyValue: true
          explode: false
          in: path
          name: workstreamSlug
          required: true
          schema:
            type: string
          style: simple
      requestBody:
        content:
          application/json:
            schema:
              properties:
                body:
                  type: string
                workstream_slug:
                  type: string
              type: object
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  event:
                    $ref: '#/components/schemas/types.WorkstreamEvent'
                type: object
          description: Success response
        default:
          $ref: '#/components/responses/APIError'
components:
  schemas:
    types.WorkstreamEvent:
      description: >
        — a git-log-style record of what happened and what's next. Body is
        free-form; actor\_type/actor\_id is attribution (identity, not routing).
      properties:
        actor_id:
          format: uuid
          type: string
        actor_type:
          type: string
        body:
          type: string
        created_at:
          format: date-time
          type: string
        id:
          format: uuid
          type: string
        organization_id:
          format: uuid
          type: string
        workstream_id:
          format: uuid
          type: string
      title: >
        WorkstreamEvent is one entry in a workstream's append-only,
        chronological log
      type: object
  responses:
    APIError:
      content:
        application/json:
          schema:
            externalDocs:
              url: https://pkg.go.dev/encore.dev/beta/errs#Error
            properties:
              code:
                description: Error code
                example: not_found
                externalDocs:
                  url: https://pkg.go.dev/encore.dev/beta/errs#ErrCode
                type: string
              details:
                description: Error details
                type: object
              message:
                description: Error message
                type: string
            title: APIError
            type: object
      description: Error response
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: An Erdo API key (erdo_api_...) or scoped token (erdo_token_...).

````