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

# Call posts.plan_week

> Write ideas for one week of posts — 'plan next week', 'give me post ideas for the week of the 7th'. One idea per moment the workspace's posting rhythm plants, each with its subject, format and where and when it goes; it creates the week and nothing else, and nothing is drafted or posted until someone drafts it. Writing them is model work charged to the workspace, done by a job: the answer is its job_id. Not for one different idea on a week already planned — that is `posts.swap_idea`. Over the API it answers in two calls: without confirmation_id it proposes — says what would happen, returns a confirmation_id and changes, spends and sends nothing; the same arguments again with that confirmation_id, on a member's own API key, do it.

Every result names the workspace it ran in. Say which workspace the answer is about. When the account has more than one workspace and none is selected, this tool refuses with `workspace_ambiguous` and lists the choices — offer them, never pick one.



## OpenAPI

````yaml /openapi.json post /api/v1/tools/posts.plan_week
openapi: 3.1.0
info:
  title: Goosy Bear API
  version: 1.0.0-beta
  summary: Manage workspace content, projects, Data tables, Pages, library and credits.
  description: >-
    BETA. This API is in beta: paths, request shapes and response envelopes may
    change, and every response carries an `x-goosy-api: beta` header for as long
    as that is true. A change is additive, or it is deprecated first: a response
    to a call that uses a deprecated feature carries `Deprecation` and `Sunset`
    headers, and nothing is removed until at least 90 days after its
    deprecation. Pin the OpenAPI document you generated against and re-generate
    when it changes.
servers:
  - url: https://app.goosybear.ai
    description: Production
security:
  - tenantApiKey: []
paths:
  /api/v1/tools/posts.plan_week:
    post:
      tags:
        - posts
      summary: Call posts.plan_week
      description: >-
        Write ideas for one week of posts — 'plan next week', 'give me post
        ideas for the week of the 7th'. One idea per moment the workspace's
        posting rhythm plants, each with its subject, format and where and when
        it goes; it creates the week and nothing else, and nothing is drafted or
        posted until someone drafts it. Writing them is model work charged to
        the workspace, done by a job: the answer is its job_id. Not for one
        different idea on a week already planned — that is `posts.swap_idea`.
        Over the API it answers in two calls: without confirmation_id it
        proposes — says what would happen, returns a confirmation_id and
        changes, spends and sends nothing; the same arguments again with that
        confirmation_id, on a member's own API key, do it.


        Every result names the workspace it ran in. Say which workspace the
        answer is about. When the account has more than one workspace and none
        is selected, this tool refuses with `workspace_ambiguous` and lists the
        choices — offer them, never pick one.
      operationId: call_posts_plan_week
      parameters:
        - name: x-request-id
          in: header
          required: false
          description: >-
            Your own id for this request, echoed back and recorded on the audit
            trail. 1–128 characters from `A–Z a–z 0–9 . _ : -`, starting with a
            letter or digit; anything else is replaced by a generated id.
          schema:
            type: string
            maxLength: 128
        - name: Idempotency-Key
          in: header
          required: true
          description: >-
            Your key for this write: send the same key when you retry and the
            first result comes back instead of a second action. Keys are
            honoured for at least 24 hours. 1–200 visible ASCII characters.
            Replaces the `idempotency_key` body field, which still works until
            2026-12-31; this action needs a key on one of the two, and the
            header is the one to send.
          schema:
            type: string
            maxLength: 200
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                week_start:
                  type: string
                  pattern: ^\d{4}-\d{2}-\d{2}$
                  description: The Monday of the week to plan, as YYYY-MM-DD.
                idea_count:
                  description: >-
                    This week only: how many ideas, when they ask for more or
                    fewer than their rhythm plants ("make it eight ideas"); null
                    puts the week back on their rhythm's count. Leave it out to
                    keep what the week already has.
                  anyOf:
                    - type: integer
                      exclusiveMinimum: 0
                    - type: 'null'
                post_count:
                  description: >-
                    This week only: how many posts, when they count in posts
                    ("give me 10 posts this week"). Planned as the nearest
                    number of ideas across their platforms. Pass this or
                    `idea_count`, not both.
                  type: integer
                  exclusiveMinimum: 0
                platforms_off:
                  description: >-
                    This week only: the platforms to leave out, by their own key
                    ("skip LinkedIn" is `linkedin`). Leave it out to keep what
                    the week already has; an empty list switches every platform
                    back on.
                  maxItems: 20
                  type: array
                  items:
                    type: string
                    minLength: 1
                    maxLength: 40
                story_count:
                  description: >-
                    This week only: how many stories ("just two stories this
                    week"), 0 for none, null back to their rhythm’s. Leave it
                    out to keep what the week already has.
                  anyOf:
                    - type: integer
                      minimum: 0
                    - type: 'null'
                short_count:
                  description: >-
                    This week only: how many shorts ("one short this week"), 0
                    for none, null back to their rhythm’s. Leave it out to keep
                    what the week already has.
                  anyOf:
                    - type: integer
                      minimum: 0
                    - type: 'null'
                more_ideas:
                  description: >-
                    New ideas for the ones they set aside, keeping the ones they
                    ticked ("more ideas", "different post ideas"): `all`, or
                    only `posts`, `stories` or `shorts`. Leave it out to plan
                    the week.
                  type: string
                  enum:
                    - all
                    - posts
                    - stories
                    - shorts
                idempotency_key:
                  type: string
                  minLength: 1
                  maxLength: 200
                  description: >-
                    Deprecated on REST: send the `Idempotency-Key` header
                    instead. Still accepted until 2026-12-31; if both are sent
                    they must match.
                confirmation_id:
                  description: >-
                    Omit to propose: the first call says what would happen,
                    returns a confirmation_id and changes nothing. To go ahead,
                    send the same arguments again with that confirmation_id, on
                    a member's own API key; a service account's key can propose
                    but never confirm.
                  type: string
                  format: uuid
                  pattern: >-
                    ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
                workspace:
                  description: >-
                    Which workspace to run in — its slug. Omit to use your
                    default. With more than one reachable workspace and no
                    default, the call is refused and the choices are listed.
                  type: string
                  minLength: 1
              required:
                - week_start
              additionalProperties: false
      responses:
        '200':
          description: >-
            The call was admitted and dispatched. `ok` says whether the tool
            succeeded — a refusal the tool itself produced is still a 200,
            exactly as it is a successful JSON-RPC result over MCP.
          headers:
            x-goosy-api:
              description: Present while this API is in beta; the value is `beta`.
              schema:
                type: string
                const: beta
            x-request-id:
              description: >-
                This request's id: the `x-request-id` you sent when it was well
                formed, otherwise one generated for you. Quote it to support; it
                is recorded on every audit row the call wrote.
              schema:
                type: string
            RateLimit-Limit:
              description: Requests this key may make in a rolling minute.
              schema:
                type: integer
                minimum: 1
            RateLimit-Remaining:
              description: Requests left in the current rolling minute.
              schema:
                type: integer
                minimum: 0
            RateLimit-Reset:
              description: Whole seconds until the window frees more requests.
              schema:
                type: integer
                minimum: 1
            x-goosy-tool-error:
              description: >-
                `true` when a boundary step refused the call — workspace
                resolution failed or could not be read. A tool that ran and
                returned its own typed `ok: false` reports `false` here.
                **Branch on `ok` in the body for the outcome; this header is the
                transport-level hint.**
              schema:
                type: string
                enum:
                  - 'true'
                  - 'false'
          content:
            application/json:
              schema:
                oneOf:
                  - type: object
                    description: The tool ran and answered.
                    properties:
                      ok:
                        type: boolean
                        const: true
                      state:
                        anyOf:
                          - type: string
                            const: confirmation_required
                          - type: string
                            enum:
                              - in_flight
                              - planned
                              - failed
                            description: >-
                              'in_flight' while the ideas are being written; the
                              done state once they are, with the answer beside
                              it; 'failed' when the job could not write them
                              (error_code says why), and a fresh idempotency_key
                              asks again.
                      confirmation_id:
                        type: string
                        format: uuid
                        pattern: >-
                          ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$
                      expires_in_seconds:
                        type: integer
                        exclusiveMinimum: 0
                      request_summary:
                        type: string
                        description: >-
                          What will happen, in one sentence, for a person to
                          approve before confirming.
                      job_id:
                        type: string
                        description: >-
                          The job writing the ideas: follow it with `jobs.read`
                          (or the job webhook) until it is done, then send this
                          same call again with the same idempotency_key to read
                          what was written.
                      plan:
                        type: object
                        properties:
                          week_start:
                            type: string
                          href:
                            type: string
                          idea_count:
                            type: integer
                            minimum: 0
                          ideas:
                            type: array
                            items:
                              type: object
                              properties:
                                idea_ref:
                                  type: string
                                  description: >-
                                    The idea's handle: pass it as the piece's
                                    `idea_ref` on posts.create_pieces to draft
                                    this idea with the plan's format,
                                    destinations and time.
                                tag:
                                  type: string
                                title:
                                  type: string
                                line:
                                  type: string
                                who:
                                  type: string
                                why:
                                  type: string
                                when:
                                  type: string
                                  description: Where and when it goes, in plain words.
                                piece_format:
                                  type: string
                                  enum:
                                    - posts
                                    - stories
                                  description: >-
                                    What it is drafted as: pass it as the
                                    piece's `piece_format` on
                                    posts.create_pieces.
                                departures:
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      platform:
                                        type: string
                                      scheduled_for:
                                        type: string
                                        description: >-
                                          When this destination's version goes
                                          out, the member's local
                                          `YYYY-MM-DDTHH:MM`, the form
                                          posts.create_pieces takes.
                                    required:
                                      - platform
                                      - scheduled_for
                                    additionalProperties: false
                                  description: >-
                                    Where and when the plan sends it, first
                                    departure first: the times the rhythm
                                    planted. Empty when the rhythm has no moment
                                    for it.
                              required:
                                - idea_ref
                                - tag
                                - title
                                - line
                                - who
                                - why
                                - when
                                - piece_format
                                - departures
                              additionalProperties: false
                          question:
                            type:
                              - string
                              - 'null'
                          best_hours_proposal:
                            anyOf:
                              - type: object
                                properties:
                                  platform:
                                    type: string
                                  from:
                                    type: string
                                    description: The hour the plan departs at now, HH:MM.
                                  to:
                                    type: string
                                    description: The learned hour it would move to, HH:MM.
                                  why:
                                    type: string
                                    description: Goosy's one sentence. Say it as it reads.
                                required:
                                  - platform
                                  - from
                                  - to
                                  - why
                                additionalProperties: false
                              - type: 'null'
                          week_override:
                            anyOf:
                              - type: object
                                properties:
                                  idea_count:
                                    type:
                                      - integer
                                      - 'null'
                                  platforms_off:
                                    type: array
                                    items:
                                      type: string
                                  ideas:
                                    type: integer
                                    minimum: 0
                                  posts:
                                    type: integer
                                    minimum: 0
                                  stories:
                                    type: integer
                                    minimum: 0
                                  story_count:
                                    type: integer
                                    minimum: 0
                                  short_count:
                                    type: integer
                                    minimum: 0
                                  shorts:
                                    type: integer
                                    minimum: 0
                                required:
                                  - idea_count
                                  - platforms_off
                                  - ideas
                                  - posts
                                  - stories
                                additionalProperties: false
                              - type: 'null'
                            description: >-
                              What this week changes from the rhythm, as saved;
                              `null` when the week follows the rhythm as it is.
                        required:
                          - week_start
                          - href
                          - idea_count
                          - ideas
                          - question
                          - best_hours_proposal
                          - week_override
                        description: The week's ideas, as the plan draws them.
                        additionalProperties: false
                      error_code:
                        type: string
                      replayed:
                        type: boolean
                        description: >-
                          True when this is the first result of an earlier call
                          with the same idempotency_key, returned without
                          running anything again.
                      workspace:
                        type: string
                        description: The slug of the workspace this call ran in.
                      working_in:
                        type: object
                        properties:
                          label:
                            type: string
                            description: 'The chip words — e.g. "working in: Acme Main".'
                          note:
                            type: string
                            description: >-
                              Why this workspace — e.g. "your default", "this
                              call only".
                          workspace:
                            type: string
                            description: The resolved workspace's slug.
                          source:
                            type: string
                            enum:
                              - call-override
                              - key-pin
                              - stored-default
                              - sole-reachable
                            description: >-
                              Why this workspace was chosen: the call named it
                              (`call-override`), the key is pinned to it
                              (`key-pin`), it is your default
                              (`stored-default`), or it is the only one the key
                              reaches (`sole-reachable`).
                        required:
                          - label
                          - note
                          - workspace
                          - source
                        description: >-
                          Which workspace this call ran in, and how that was
                          decided. Present on every workspace-scoped result.
                        additionalProperties: false
                    required:
                      - ok
                      - state
                      - working_in
                      - workspace
                  - $ref: '#/components/schemas/ToolRefusal'
        '400':
          description: >-
            The request could not be used: the body is present but not a JSON
            object (`tenant_api.malformed_body`); it is a top-level array
            carrying more messages than this endpoint accepts
            (`tenant_mcp.batch_too_large`); or the `Idempotency-Key` header is
            malformed (`tenant_api.idempotency_key_invalid`), disagrees with the
            body's `idempotency_key` (`tenant_api.idempotency_key_conflict`), or
            was sent to an action that cannot replay a retry
            (`tenant_api.idempotency_unsupported`). Nothing ran.
          headers:
            x-goosy-api:
              description: Present while this API is in beta; the value is `beta`.
              schema:
                type: string
                const: beta
            x-request-id:
              description: >-
                This request's id: the `x-request-id` you sent when it was well
                formed, otherwise one generated for you. Quote it to support; it
                is recorded on every audit row the call wrote.
              schema:
                type: string
            Deprecation:
              description: >-
                RFC 9745: this refusal's nested `error` object is deprecated,
                since this instant (`@<unix seconds>`).
              schema:
                type: string
            Sunset:
              description: >-
                RFC 8594: the nested `error` object may be removed after this
                date (2026-12-31).
              schema:
                type: string
            Link:
              description: The page that says what to read instead (`rel="deprecation"`).
              schema:
                type: string
            RateLimit-Limit:
              description: Requests this key may make in a rolling minute.
              schema:
                type: integer
                minimum: 1
            RateLimit-Remaining:
              description: Requests left in the current rolling minute.
              schema:
                type: integer
                minimum: 0
            RateLimit-Reset:
              description: Whole seconds until the window frees more requests.
              schema:
                type: integer
                minimum: 1
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: >-
            No bearer credential, or one that did not resolve. Deliberately ONE
            undifferentiated answer for absent / unknown / revoked / expired, so
            the endpoint is never an oracle over the key space.
          headers:
            x-goosy-api:
              description: Present while this API is in beta; the value is `beta`.
              schema:
                type: string
                const: beta
            x-request-id:
              description: >-
                This request's id: the `x-request-id` you sent when it was well
                formed, otherwise one generated for you. Quote it to support; it
                is recorded on every audit row the call wrote.
              schema:
                type: string
            Deprecation:
              description: >-
                RFC 9745: this refusal's nested `error` object is deprecated,
                since this instant (`@<unix seconds>`).
              schema:
                type: string
            Sunset:
              description: >-
                RFC 8594: the nested `error` object may be removed after this
                date (2026-12-31).
              schema:
                type: string
            Link:
              description: The page that says what to read instead (`rel="deprecation"`).
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >-
            The credential is good but the surface is not open to it — the
            platform or account API switch is off, or the holder lacks the
            `api.access` capability. The `code` says which.
          headers:
            x-goosy-api:
              description: Present while this API is in beta; the value is `beta`.
              schema:
                type: string
                const: beta
            x-request-id:
              description: >-
                This request's id: the `x-request-id` you sent when it was well
                formed, otherwise one generated for you. Quote it to support; it
                is recorded on every audit row the call wrote.
              schema:
                type: string
            Deprecation:
              description: >-
                RFC 9745: this refusal's nested `error` object is deprecated,
                since this instant (`@<unix seconds>`).
              schema:
                type: string
            Sunset:
              description: >-
                RFC 8594: the nested `error` object may be removed after this
                date (2026-12-31).
              schema:
                type: string
            Link:
              description: The page that says what to read instead (`rel="deprecation"`).
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: >-
            No such tool. The body names no tool and is identical for every
            unrecognised name.
          headers:
            x-goosy-api:
              description: Present while this API is in beta; the value is `beta`.
              schema:
                type: string
                const: beta
            x-request-id:
              description: >-
                This request's id: the `x-request-id` you sent when it was well
                formed, otherwise one generated for you. Quote it to support; it
                is recorded on every audit row the call wrote.
              schema:
                type: string
            Deprecation:
              description: >-
                RFC 9745: this refusal's nested `error` object is deprecated,
                since this instant (`@<unix seconds>`).
              schema:
                type: string
            Sunset:
              description: >-
                RFC 8594: the nested `error` object may be removed after this
                date (2026-12-31).
              schema:
                type: string
            Link:
              description: The page that says what to read instead (`rel="deprecation"`).
              schema:
                type: string
            RateLimit-Limit:
              description: Requests this key may make in a rolling minute.
              schema:
                type: integer
                minimum: 1
            RateLimit-Remaining:
              description: Requests left in the current rolling minute.
              schema:
                type: integer
                minimum: 0
            RateLimit-Reset:
              description: Whole seconds until the window frees more requests.
              schema:
                type: integer
                minimum: 1
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: >-
            Over this key's per-minute cap. Carries `Retry-After` and
            `error.retry_after_seconds`.
          headers:
            x-goosy-api:
              description: Present while this API is in beta; the value is `beta`.
              schema:
                type: string
                const: beta
            x-request-id:
              description: >-
                This request's id: the `x-request-id` you sent when it was well
                formed, otherwise one generated for you. Quote it to support; it
                is recorded on every audit row the call wrote.
              schema:
                type: string
            Deprecation:
              description: >-
                RFC 9745: this refusal's nested `error` object is deprecated,
                since this instant (`@<unix seconds>`).
              schema:
                type: string
            Sunset:
              description: >-
                RFC 8594: the nested `error` object may be removed after this
                date (2026-12-31).
              schema:
                type: string
            Link:
              description: The page that says what to read instead (`rel="deprecation"`).
              schema:
                type: string
            RateLimit-Limit:
              description: Requests this key may make in a rolling minute.
              schema:
                type: integer
                minimum: 1
            RateLimit-Remaining:
              description: Requests left in the current rolling minute.
              schema:
                type: integer
                minimum: 0
            RateLimit-Reset:
              description: Whole seconds until the window frees more requests.
              schema:
                type: integer
                minimum: 1
            Retry-After:
              description: Whole seconds to wait before retrying.
              schema:
                type: integer
                minimum: 1
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    ToolRefusal:
      type: object
      properties:
        ok:
          type: boolean
          const: false
        code:
          type: string
          description: >-
            The typed reason — e.g. `workspace_ambiguous`, `invalid_arguments`,
            or the tool's own failure code.
        message:
          type: string
          description: A sentence a person can act on.
        workspaces:
          description: 'On a workspace refusal: the slugs this key may pass as `workspace`.'
          type: array
          items:
            type: string
        issues:
          description: 'On `invalid_arguments`: which fields failed, and why.'
          type: array
          items:
            type: object
            properties:
              path:
                type: string
              message:
                type: string
            required:
              - path
              - message
            additionalProperties: false
        path:
          description: >-
            On an authoring refusal: where in your call's input it points, e.g.
            `steps.<key>.params.<field>`.
          type: string
        fix:
          description: 'On an authoring refusal: the change to your call that would pass.'
          type: string
        instruction:
          description: 'On an authoring refusal: what to do next with it.'
          type: string
      required:
        - ok
        - code
        - message
      description: A call that was admitted and dispatched, and did not succeed.
      additionalProperties: false
    Error:
      type: object
      properties:
        ok:
          type: boolean
          const: false
        code:
          type: string
          description: >-
            The typed refusal code — e.g. `tenant_mcp.rate_limited`,
            `tenant_api.unknown_tool`.
        message:
          type: string
          description: A sentence a person can act on.
        retry_after_seconds:
          description: 'On a 429: whole seconds to wait. Mirrors `Retry-After`.'
          type: number
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
            retry_after_seconds:
              type: number
          required:
            - code
            - message
          description: >-
            Deprecated: the same values as the top-level fields, kept until
            2026-12-31. Read `code` and `message` at the top level.
          additionalProperties: false
      required:
        - ok
        - code
        - message
        - error
      description: >-
        A request the boundary refused before dispatching anything. The same
        shape the MCP endpoint answers its own refusals with, and the same
        top-level fields a dispatched call's refusal carries, so one client
        branch covers both.
      additionalProperties: false
  securitySchemes:
    tenantApiKey:
      type: http
      scheme: bearer
      description: >-
        An API key minted at Settings › API & MCP. Send it as `Authorization:
        Bearer <key>`. A key carries its holder's own permissions, resolved on
        every call — revoking a membership closes the key's reach immediately.
        Keep it in an environment variable (`GOOSY_API_KEY`), never in a
        committed file.

````

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