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

# Get a post's publishing schedule

> Returns the post's current schedule with the state of every destination, or null when nothing is scheduled.



## OpenAPI

````yaml https://api.usenotra.com/openapi.json get /v1/posts/{postId}/schedule
openapi: 3.1.1
info:
  title: Notra API
  version: 1.0.0
  description: >-
    OpenAPI schema for Notra content endpoints. Use GET /v1/status for public
    reachability. Error responses include recovery guidance.
servers:
  - url: https://api.usenotra.com
    description: Production
security:
  - BearerAuth: []
tags:
  - name: Webhooks
    description: Manage outbound webhook subscriptions and delivery history.
  - name: Discovery
    description: Public API status and authenticated workspace discovery.
  - name: Content
    description: >-
      Manage posts, brand identities, and GitHub or Linear integrations, and
      queue content generation. Organization is inferred from the API key
      (identity.externalId).
  - name: Schedules
    description: >-
      Manage scheduled content generation. Organization is inferred from the API
      key (identity.externalId).
  - name: Event Triggers
    description: >-
      Manage event-based content generation triggered by GitHub webhooks.
      Organization is inferred from the API key (identity.externalId).
  - name: Chats
    description: >-
      Manage chat sessions. Organization is inferred from the API key
      (identity.externalId).
  - name: Skills
    description: >-
      Manage reusable writing skills. Organization is inferred from the API key
      (identity.externalId).
  - name: Feedback
    description: >-
      Collect and triage feedback submitted by AI agents. Agents post to the
      organization's feedback URL without credentials; reading and triage
      require an API key with feedback.read or feedback.write.
  - name: GEO
    description: >-
      Manage generative engine optimization: projects, tracking settings,
      prompts, prompt sequences, competitors, scans, visibility reads, content
      gaps and briefs, agent readiness and AI traffic. Project-scoped endpoints
      require the GEO plan entitlement in addition to their scope;
      organization-level ingest endpoints require only the traffic scope.
paths:
  /v1/posts/{postId}/schedule:
    get:
      tags:
        - Content
      summary: Get a post's publishing schedule
      description: >-
        Returns the post's current schedule with the state of every destination,
        or null when nothing is scheduled.
      operationId: getPostSchedule
      parameters:
        - schema:
            type: string
            minLength: 1
            pattern: ^[A-Za-z0-9_-]{1,100}$
            example: post_123
          required: true
          in: path
          name: postId
      responses:
        '200':
          description: Schedule fetched successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostScheduleResponse'
        '400':
          description: Invalid path params
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Organization or post not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '503':
          description: Authentication service unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    PostScheduleResponse:
      type: object
      properties:
        organization:
          type: object
          properties:
            id:
              type: string
            slug:
              type: string
            name:
              type: string
            logo:
              type:
                - string
                - 'null'
          required:
            - id
            - slug
            - name
            - logo
        schedule:
          $ref: '#/components/schemas/PostSchedule'
      required:
        - organization
        - schedule
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
        code:
          type: string
        recovery:
          type: string
      required:
        - error
    PostSchedule:
      type:
        - object
        - 'null'
      properties:
        postId:
          type: string
        scheduledAt:
          type: string
          format: date-time
        timeZone:
          type: string
        publications:
          type: array
          items:
            $ref: '#/components/schemas/ScheduledPublication'
      required:
        - postId
        - scheduledAt
        - timeZone
        - publications
    ScheduledPublication:
      type: object
      properties:
        id:
          type: string
        destination:
          type: string
          enum:
            - notra
            - github
            - social
        config:
          oneOf:
            - type: object
              properties:
                destination:
                  type: string
                  enum:
                    - notra
              required:
                - destination
            - type: object
              properties:
                destination:
                  type: string
                  enum:
                    - github
                repositoryId:
                  type: string
                merge:
                  type: boolean
              required:
                - destination
                - repositoryId
                - merge
            - type: object
              properties:
                destination:
                  type: string
                  enum:
                    - social
                accountId:
                  type: string
              required:
                - destination
                - accountId
        status:
          type: string
          enum:
            - scheduled
            - publishing
            - published
            - failed
            - canceled
          description: >-
            scheduled → publishing → published or failed. Failed destinations
            are retried automatically for transient errors before they end up
            failed.
        scheduledAt:
          type: string
          format: date-time
        timeZone:
          type: string
        attempts:
          type: integer
        errorCode:
          type:
            - string
            - 'null'
        lastError:
          type:
            - string
            - 'null'
        resultUrl:
          type:
            - string
            - 'null'
          description: Pull request or social post URL once published.
        publishedAt:
          type:
            - string
            - 'null'
          format: date-time
      required:
        - id
        - destination
        - config
        - status
        - scheduledAt
        - timeZone
        - attempts
        - errorCode
        - lastError
        - resultUrl
        - publishedAt
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: Send your API key in the Authorization header as Bearer API_KEY.

````

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