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

# Get workspace settings

> Read a workspace's name, time zone, posting times and what new posts start with.

> [!NOTE]
>
> Needs `workspaces:read`. Everyone in the workspace can read its settings. See [Permissions](https://docs.postsyncer.com/essentials/authentication.md#permissions).

Gives the workspace's settings, the ones on its settings pages in the app:

* `name`, `timezone` and `language`;
* `queue_slots`: the posting times, in time order. Each is a 24-hour `time_24` and `days`, seven true or false values from Monday to Sunday. A post scheduled without `schedule_for` goes at the next free one;
* `auto_repost`: whether posts made in the app repeat, and how often;
* `auto_plugs`: the saved auto-plugs, each a reply posted under a post once it reaches a number of likes, reposts, replies or views. Posts made in the app start with the one whose `is_default` is true;
* `comment_moderation`: the comment rules new posts start with.

Posts made through the API or MCP don't take the Auto-Repost or auto-plug defaults: send `repeatable` or `auto_plug` with the post. [Update workspace settings](https://docs.postsyncer.com/api-reference/workspaces/update-settings.md) takes this same shape.

## Errors

| Status | `error` | When | Retry? |
| - | - | - | - |
| 401 | | No API key, or not a valid one. | No: fix the key. |
| 403 | | The key lacks `workspaces:read`, or its user is inactive. | No: grant it in Settings → API. |
| 404 | | No workspace with that id among the ones the key's user owns or has joined. | No. |
| 429 | | More than 60 requests a minute. | Yes, after `Retry-After` seconds. |

## Related

* [Update workspace settings](https://docs.postsyncer.com/api-reference/workspaces/update-settings.md): change them.
* [List workspaces](https://docs.postsyncer.com/api-reference/workspaces/list.md): every workspace, with its accounts.


## OpenAPI

````yaml GET /workspaces/{workspace}/settings
openapi: 3.0.3
info:
  title: PostSyncer API
  description: >-
    Post to 12 social networks from your code: posts, media, comments,
    analytics, webhooks and more.
  version: 1.0.0
servers:
  - url: https://postsyncer.com/api/v1
security:
  - bearerAuth: []
tags:
  - name: Workspaces
    description: The workspaces the key can reach.
  - name: Accounts
    description: Connected social accounts, links to connect more, and disconnecting them.
  - name: Posts
    description: Drafts, scheduled and published posts, approvals and a post's history.
  - name: Post settings
    description: A post's auto-plug, comment moderation and contact collection.
  - name: Media
    description: >-
      The media library: file uploads, URL imports, and reading videos and
      social posts' files.
  - name: Folders
    description: Folders that organise the media library.
  - name: Comments
    description: >-
      Comments on your posts: reading, replying, editing, hiding, deleting and
      syncing them.
  - name: Reviews
    description: Google Business Profile reviews and your replies to them.
  - name: Analytics
    description: Workspace, account and post performance.
  - name: Brand
    description: >-
      A workspace's brand: identity, voice, look, accounts, competitors,
      learnings and rules.
  - name: Labels
    description: Labels used to tag posts.
  - name: Campaigns
    description: Campaigns used to group posts.
  - name: Snippets
    description: Saved snippets and hashtag groups to drop into posts.
  - name: Webhooks
    description: Signed webhook endpoints that get your notification events.
  - name: Billing
    description: >-
      The owner's plan, invoices and the links that pay for, change or cancel
      it.
  - name: Team
    description: A workspace's teammates and invitations, and their roles.
  - name: Notifications
    description: >-
      Your bell and notification settings, and the workspace's Slack, Discord
      and Telegram channels.
  - name: Blog-to-social
    description: Blog feeds that turn a workspace's new articles into posts.
  - name: Products
    description: Products the workspace's posts can promote.
  - name: Contacts
    description: People who commented on the workspace's posts, and the lists they are on.
  - name: Profile
    description: 'The key''s user: their name and sign-in email.'
  - name: API keys
    description: 'Your API keys: listing and deleting them.'
  - name: Agent sign-up
    description: >-
      An AI agent signs a person up with a code emailed to them, and gets their
      first key. No key needed.
paths:
  /workspaces/{workspace}/settings:
    get:
      tags:
        - Workspaces
      summary: Get workspace settings
      description: >-
        Needs `workspaces:read`. Everyone in the workspace can read them. Gives
        the workspace's name, time zone and language, its posting times
        (`queue_slots`), and what new posts start with: Auto-Repost
        (`auto_repost`), the saved auto-plugs (`auto_plugs`) and comment
        moderation (`comment_moderation`). [Update workspace
        settings](/api-reference/workspaces/update-settings) takes the same
        shape.
      operationId: getWorkspaceSettings
      parameters:
        - name: workspace
          in: path
          required: true
          description: >-
            The workspace's id, from [List
            workspaces](/api-reference/workspaces/list).
          schema:
            type: integer
      responses:
        '200':
          description: The settings.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkspaceSettings'
              examples:
                default:
                  summary: Halden Coffee
                  value:
                    name: Halden Coffee
                    timezone: Europe/London
                    language: en
                    queue_slots:
                      - time_24: '09:00'
                        days:
                          - true
                          - true
                          - true
                          - true
                          - true
                          - false
                          - false
                      - time_24: '17:30'
                        days:
                          - true
                          - true
                          - true
                          - true
                          - true
                          - false
                          - false
                    auto_repost:
                      enabled: false
                      settings:
                        repeatable_gap: 6
                        repeatable_gap_unit: hours
                        repeatable_times: 2
                    auto_plugs:
                      - id: 6f1c2a4e-8b3d-4c7a-9e21-5d0b7f3a1c88
                        name: Newsletter
                        is_default: true
                        reply_text: 'Get the weekly roast notes: haldencoffee.example/news'
                        likes:
                          enabled: true
                          count: 50
                        reposts:
                          enabled: false
                          count: 0
                        replies:
                          enabled: true
                          count: 10
                        views:
                          enabled: false
                          count: 0
                    comment_moderation:
                      enabled: true
                      settings:
                        remove_profanity: true
                        remove_negativity: false
                        remove_all_comments: false
                        remove_custom_topics: false
                        custom_topics_list: []
                        remove_urls: true
                        remove_emails: false
                        remove_phones: false
                        remove_mentions: false
                        mentions_list: []
                        remove_hashtags: false
                        hashtags_list: []
                        remove_keywords: true
                        keywords_list:
                          - giveaway
                          - crypto
                        ai_reply: false
                new_workspace:
                  summary: A new workspace
                  value:
                    name: Halden Roastery
                    timezone: Europe/London
                    language: en
                    queue_slots:
                      - time_24: '11:00'
                        days:
                          - true
                          - true
                          - true
                          - true
                          - true
                          - true
                          - false
                      - time_24: '19:00'
                        days:
                          - true
                          - true
                          - true
                          - true
                          - true
                          - true
                          - false
                    auto_repost:
                      enabled: false
                      settings:
                        repeatable_gap: 6
                        repeatable_gap_unit: hours
                        repeatable_times: 2
                    auto_plugs: []
                    comment_moderation:
                      enabled: false
                      settings:
                        remove_profanity: false
                        remove_negativity: false
                        remove_all_comments: false
                        remove_custom_topics: false
                        custom_topics_list: []
                        remove_urls: false
                        remove_emails: false
                        remove_phones: false
                        remove_mentions: false
                        mentions_list: []
                        remove_hashtags: false
                        hashtags_list: []
                        remove_keywords: false
                        keywords_list: []
                        ai_reply: false
        '401':
          $ref: '#/components/responses/Unauthorized401'
        '403':
          description: The key lacks `workspaces:read`, or its user is inactive.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                missing_permission:
                  summary: The key lacks workspaces:read
                  value:
                    message: >-
                      This API key does not have the "workspaces:read"
                      permission. Edit the key in PostSyncer under Settings →
                      API to grant it.
                inactive_account:
                  summary: The key's user is inactive
                  value:
                    message: Your account is inactive.
        '404':
          $ref: '#/components/responses/NotFound404'
        '429':
          $ref: '#/components/responses/RateLimited429'
components:
  schemas:
    WorkspaceSettings:
      type: object
      description: >-
        A workspace's settings: what [Get workspace
        settings](/api-reference/workspaces/get-settings) gives and [Update
        workspace settings](/api-reference/workspaces/update-settings) takes.
      required:
        - name
        - timezone
        - language
        - queue_slots
        - auto_repost
        - auto_plugs
        - comment_moderation
      properties:
        name:
          type: string
        timezone:
          type: string
          description: An IANA time zone, like `Europe/London`. Post times are in it.
        language:
          type: string
          description: The workspace's language, like `en`.
        queue_slots:
          type: array
          items:
            $ref: '#/components/schemas/WorkspaceQueueSlot'
          description: >-
            The posting times, in time order: the times "next free slot"
            scheduling uses.
        auto_repost:
          type: object
          description: 'Auto-Repost: whether posts made in the app repeat, and how.'
          required:
            - enabled
            - settings
          properties:
            enabled:
              type: boolean
              description: Whether posts made in the app repeat by default.
            settings:
              type: object
              required:
                - repeatable_gap
                - repeatable_gap_unit
                - repeatable_times
              properties:
                repeatable_gap:
                  type: integer
                  minimum: 1
                  description: The wait between repeats, in `repeatable_gap_unit`.
                repeatable_gap_unit:
                  type: string
                  enum:
                    - minutes
                    - hours
                    - days
                    - weeks
                    - months
                repeatable_times:
                  type: integer
                  minimum: 1
                  description: How many times a post goes out again.
        auto_plugs:
          type: array
          items:
            $ref: '#/components/schemas/WorkspaceAutoPlug'
          description: The saved auto-plugs. `[]` when there are none.
        comment_moderation:
          type: object
          description: The comment moderation new posts start with.
          required:
            - enabled
            - settings
          properties:
            enabled:
              type: boolean
              description: Whether new posts start with comment moderation on.
            settings:
              type: object
              description: >-
                The rules: each `remove_…` is true when that kind of comment is
                removed.
              properties:
                remove_profanity:
                  type: boolean
                remove_negativity:
                  type: boolean
                remove_all_comments:
                  type: boolean
                remove_custom_topics:
                  type: boolean
                custom_topics_list:
                  type: array
                  items:
                    type: string
                    maxLength: 255
                  description: >-
                    Topics to remove comments about, when `remove_custom_topics`
                    is on. A list sent replaces the saved one.
                remove_urls:
                  type: boolean
                remove_emails:
                  type: boolean
                remove_phones:
                  type: boolean
                remove_mentions:
                  type: boolean
                mentions_list:
                  type: array
                  items:
                    type: string
                    maxLength: 255
                  description: >-
                    Mentions to remove, when `remove_mentions` is on. A list
                    sent replaces the saved one.
                remove_hashtags:
                  type: boolean
                hashtags_list:
                  type: array
                  items:
                    type: string
                    maxLength: 255
                  description: >-
                    Hashtags to remove, when `remove_hashtags` is on. A list
                    sent replaces the saved one.
                remove_keywords:
                  type: boolean
                keywords_list:
                  type: array
                  items:
                    type: string
                    maxLength: 255
                  description: >-
                    Words to remove comments with, when `remove_keywords` is on.
                    A list sent replaces the saved one.
                ai_reply:
                  type: boolean
                  description: Whether AI replies to comments.
              required:
                - remove_profanity
                - remove_negativity
                - remove_all_comments
                - remove_custom_topics
                - custom_topics_list
                - remove_urls
                - remove_emails
                - remove_phones
                - remove_mentions
                - mentions_list
                - remove_hashtags
                - hashtags_list
                - remove_keywords
                - keywords_list
                - ai_reply
    Error:
      type: object
      description: >-
        An error answer. Every one has `message`, in plain words; some add an
        `error` code and fields of their own.
      required:
        - message
      properties:
        message:
          type: string
          description: What went wrong and what to do about it.
        error:
          type: string
          description: >-
            A code a few errors add, such as `rate_limited`. See [Handle
            errors](/essentials/error-handling#answers-with-an-error-code).
    WorkspaceQueueSlot:
      type: object
      description: A posting time.
      required:
        - time_24
        - days
      properties:
        time_24:
          type: string
          pattern: ^([01][0-9]|2[0-3]):[0-5][0-9]$
          description: >-
            The time on a 24-hour clock, `HH:MM`, like `09:30`. Each time is in
            the list once.
        days:
          type: array
          minItems: 7
          maxItems: 7
          items:
            type: boolean
          description: 'Seven entries, Monday first: true when the time is used that day.'
    WorkspaceAutoPlug:
      type: object
      description: >-
        A saved auto-plug: a reply posted under a post once any trigger that is
        on reaches its count.
      required:
        - name
        - is_default
        - reply_text
        - likes
        - reposts
        - replies
        - views
      properties:
        id:
          type: string
          maxLength: 255
          description: The plug's id. Leave it out for a new plug, and one is made.
        name:
          type: string
        is_default:
          type: boolean
          description: >-
            New posts made in the app start with this plug. At most one plug is
            the default.
        reply_text:
          type: string
          description: The reply posted.
        likes:
          $ref: '#/components/schemas/WorkspaceAutoPlugTrigger'
        reposts:
          $ref: '#/components/schemas/WorkspaceAutoPlugTrigger'
        replies:
          $ref: '#/components/schemas/WorkspaceAutoPlugTrigger'
        views:
          $ref: '#/components/schemas/WorkspaceAutoPlugTrigger'
    WorkspaceAutoPlugTrigger:
      type: object
      description: 'One trigger of an auto-plug: on, and the count that fires it.'
      properties:
        enabled:
          type: boolean
        count:
          type: integer
          minimum: 0
  responses:
    Unauthorized401:
      description: No API key, or not a valid one.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            unauthenticated:
              summary: No valid API key
              value:
                message: Unauthenticated.
    NotFound404:
      description: Nothing with that id in the workspaces the key can reach.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            not_found:
              summary: Not found
              value:
                message: Not found.
    RateLimited429:
      description: >-
        More than 60 requests in a minute from this key's user (the API and the
        MCP server share the count). Wait `Retry-After` seconds.
      headers:
        Retry-After:
          description: Seconds until requests are allowed again.
          schema:
            type: integer
        X-RateLimit-Limit:
          description: Requests allowed a minute.
          schema:
            type: integer
        X-RateLimit-Remaining:
          description: Requests left this minute.
          schema:
            type: integer
        X-RateLimit-Reset:
          description: When requests are allowed again, as a Unix timestamp.
          schema:
            type: integer
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            too_many_attempts:
              summary: Too many requests
              value:
                message: Too Many Attempts.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

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