Schedchie Approvals API

Posts waiting for the workspace owner. Permission group `team`.

GitHub OpenAPI

Operations 3

GET /approvals List posts waiting for approval #
POST /posts/{id}/approve Approve a held post #
POST /posts/{id}/reject Reject a held post #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/schedchie-com:schedchie-com-approvals-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

schedchie-com-approvals-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Schedchie Approvals API
  version: 1.0.0
  summary: Schedule, review and measure social posts from your own code.
  description: 'The Schedchie API is a REST API over your workspace: posts, approvals, media,

    notes and analytics. It is included in the Ultra and Ultra+ plans.


    **Base URL:** `https://api.schedchie.com/v1`. The same routes also answer on

    `https://mcp.schedchie.com/v1`.


    **Authentication:** every request carries an API key as

    `Authorization: Bearer schedchie_api_…`. Keys are created in the Schedchie

    dashboard under AI assistants, shown once, and become available after the

    workspace''s first paid invoice. A key acts only in its own workspace and

    only within the permission groups it was granted; a read-only key is

    refused on every write.


    **Format:** JSON both ways (`application/json; charset=utf-8`), request

    bodies up to 8 MiB. Field names are camelCase. A single resource is the

    object itself; a list is `{ "data": [...], "nextCursor": "…" | null }`.

    Creates answer `201`.


    **Errors:** one envelope, `{ "error": { "status", "code", "message",

    "requestId" } }`, with `details` on a `422 validation_failed`. Every

    response carries `X-Request-Id`; quote it when you write to support.


    **Limits:** 120 calls a minute and 1,200 an hour per key, and the same

    numbers once more for the whole workspace, so more keys never mean more

    calls (Ultra+: 3,600 an hour). Every response carries `RateLimit-Limit`,

    `RateLimit-Remaining` and `RateLimit-Reset`; a `429` adds `Retry-After`.

    Live reads (the analytics overview and account routes, which reach a social

    platform) are cached for 300 s per workspace and counted against 60

    uncached reads an hour (Ultra+: 120); `X-Schedchie-Cache: hit` marks a

    cached answer.


    **Pagination:** `GET /posts` pages with `cursor` and `limit` (default 25,

    max 100) and answers `nextCursor` (`null` on the last page). The other

    lists return everything with `nextCursor: null`; `limit` is accepted and

    reserved so paging can be added without a version bump.


    **Idempotency:** `POST /posts` takes an `Idempotency-Key` header (1 to 255

    characters of your choice). A repeat with the same key and the same API

    key answers the post already made with `200` and

    `Idempotent-Replayed: true`, never a second post. Keys are unique forever

    per API key. No other route is idempotent by header; `DELETE` routes are

    naturally idempotent (the second call answers `404`).


    **Versioning:** the version is in the path. Additive changes (new routes,

    new optional fields, new enum values) do not bump it. A breaking change

    ships as `/v2`; `/v1` keeps answering for at least six months after `/v2`

    is announced, with `Deprecation` and `Sunset` headers (RFC 9745, RFC 8594)

    on every `/v1` response and a changelog entry. A single route marked

    `deprecated` in this document carries a `Deprecation` header from the day

    of the notice and is removed only in the next major version.


    **Destructive routes:** `DELETE` is the confirmation. There is no

    confirmation header on REST routes.


    **Advanced: calling a tool directly.** The same keys reach every MCP tool

    over HTTPS: `GET /v1/tools` lists the tools a key may call and

    `POST /v1/tools/{name}` runs one with its arguments as the JSON body. That

    surface is documented by the tool descriptions themselves and is the

    escape hatch for what this reference does not wrap. Destructive tools need

    `X-Confirm-Destructive: true` there.'
  termsOfService: https://www.schedchie.com/terms
  license:
    name: Schedchie terms of service
    url: https://www.schedchie.com/terms
  contact:
    name: Schedchie support
    url: https://www.schedchie.com/contact
    email: support@schedchie.com
servers:
- url: https://api.schedchie.com/v1
  description: Production
- url: https://mcp.schedchie.com/v1
  description: The same server on the MCP host (the CLI and SDK default)
security:
- apiKey: []
tags:
- name: Approvals
  description: Posts waiting for the workspace owner. Permission group `team`.
paths:
  /approvals:
    get:
      tags:
      - Approvals
      operationId: listApprovals
      summary: List posts waiting for approval
      description: 'Posts members scheduled that wait for the owner. Approve or reject

        each with `POST /posts/{id}/approve` or `/reject`. The whole list is

        returned; `nextCursor` is always `null` in v1.'
      x-schedchie-tool: list_pending_approvals
      x-schedchie-scope: team
      x-schedchie-read-only-key: true
      x-schedchie-live-read: false
      x-schedchie-idempotency: false
      x-schedchie-destructive: false
      parameters:
      - $ref: '#/components/parameters/ReservedLimit'
      responses:
        '200':
          description: The held posts.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/X-Request-Id'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApprovalList'
              examples:
                one-waiting:
                  value:
                    data:
                    - postId: 65c000000000000000000020
                      contentPreview: Needs a look
                      scheduledTime: '2026-12-10T10:00:00.000Z'
                      accounts:
                      - platform: instagram
                        name: brand.ig
                      mediaCount: 0
                      createdBy: ed@example.com
                      createdAt: '2026-11-01T00:00:00.000Z'
                    nextCursor: null
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '405':
          $ref: '#/components/responses/MethodNotAllowed'
        '422':
          $ref: '#/components/responses/ValidationFailed'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/Internal'
        '503':
          $ref: '#/components/responses/Unavailable'
        '504':
          $ref: '#/components/responses/Timeout'
  /posts/{id}/approve:
    parameters:
    - $ref: '#/components/parameters/PostId'
    post:
      tags:
      - Approvals
      operationId: approvePost
      summary: Approve a held post
      description: Releases the post to its scheduled time, or publishes it now when that time has passed.
      x-schedchie-tool: approve_post
      x-schedchie-scope: team
      x-schedchie-read-only-key: false
      x-schedchie-live-read: false
      x-schedchie-idempotency: false
      x-schedchie-destructive: false
      responses:
        '200':
          description: The post was approved.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/X-Request-Id'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApprovalDecision'
              examples:
                approved:
                  value:
                    ok: true
                    publishesImmediately: false
                    post:
                      _id: 65c000000000000000000020
                      universalContent: Needs a look
                      processingStatus: pending
                      isPublished: false
                      needsApproval: false
                      scheduledTime: '2026-12-10T10:00:00.000Z'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '405':
          $ref: '#/components/responses/MethodNotAllowed'
        '422':
          $ref: '#/components/responses/ValidationFailed'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/Internal'
        '503':
          $ref: '#/components/responses/Unavailable'
        '504':
          $ref: '#/components/responses/Timeout'
  /posts/{id}/reject:
    parameters:
    - $ref: '#/components/parameters/PostId'
    post:
      tags:
      - Approvals
      operationId: rejectPost
      summary: Reject a held post
      description: Sends the post back to the member who scheduled it, with an optional reason they will see.
      x-schedchie-tool: reject_post
      x-schedchie-scope: team
      x-schedchie-read-only-key: false
      x-schedchie-live-read: false
      x-schedchie-idempotency: false
      x-schedchie-destructive: false
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RejectPost'
            examples:
              with-reason:
                value:
                  reason: Off brand. Please use the approved product photo.
      responses:
        '200':
          description: The post was rejected.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/X-Request-Id'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            Deprecation:
              $ref: '#/components/headers/Deprecation'
            Sunset:
              $ref: '#/components/headers/Sunset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApprovalDecision'
              examples:
                rejected:
                  value:
                    ok: true
                    post:
                      _id: 65c000000000000000000020
                      universalContent: Needs a look
                      processingStatus: failed
                      isPublished: false
                      needsApproval: true
                      rejectionReason: Off brand. Please use the approved product photo.
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '405':
          $ref: '#/components/responses/MethodNotAllowed'
        '422':
          $ref: '#/components/responses/ValidationFailed'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/Internal'
        '503':
          $ref: '#/components/responses/Unavailable'
        '504':
          $ref: '#/components/responses/Timeout'
components:
  headers:
    Sunset:
      description: RFC 8594. Present with `Deprecation`, the date after which the route or version stops answering. Not set on v1 today.
      schema:
        type: string
    RateLimit-Limit:
      description: Calls allowed in the current minute for the ceiling that is closest to full (this key, or the workspace).
      schema:
        type: integer
    RateLimit-Reset:
      description: Seconds until the minute resets.
      schema:
        type: integer
    Retry-After:
      description: Seconds to wait before retrying.
      schema:
        type: integer
    X-Request-Id:
      description: The id of this request in Schedchie's logs. Quote it when writing to support.
      schema:
        type: string
    Deprecation:
      description: RFC 9745. Present on every response of a deprecated route or version, with the date the deprecation was announced. Not set on v1 today.
      schema:
        type: string
    RateLimit-Remaining:
      description: Calls left in the current minute.
      schema:
        type: integer
  responses:
    Timeout:
      description: '`504`. `timeout`: the call did not finish within 15 minutes and was stopped.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            timeout:
              value:
                error:
                  status: 504
                  code: timeout
                  message: The tool call did not finish within 15 minutes and was stopped.
                  requestId: 7f3c9a2e5b1d4e8f
    Forbidden:
      description: '`403`. `not_permitted`: the key was not granted this route''s group, is

        read only for it, or is bound to an employee seat that cannot use this

        route. `plan_required`: the workspace left the Ultra plan.

        '
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            read-only-key:
              value:
                error:
                  status: 403
                  code: not_permitted
                  message: This API key is read only for "Posts" (schedchie:posts), and schedule_post changes data. Create a key with Read and write for it.
                  requestId: 7f3c9a2e5b1d4e8f
    ValidationFailed:
      description: '`422`. `validation_failed`: the body or the query did not match this

        route''s schema; `details` names each field. `tool_error`: the request

        was well formed and Schedchie or the social platform refused it (a

        caption too long for a platform, an account that needs reconnecting,

        a file the platform does not accept).

        '
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            validation-failed:
              value:
                error:
                  status: 422
                  code: validation_failed
                  message: The request does not match the schema of POST /posts.
                  requestId: 7f3c9a2e5b1d4e8f
                  details:
                  - field: accountIds
                    message: '"accountIds" is a required property'
                  - field: scheduledTime
                    message: 12 is not of type "string"
            tool-error:
              value:
                error:
                  status: 422
                  code: tool_error
                  message: 'Instagram refused the post: a caption is limited to 2,200 characters.'
                  requestId: 7f3c9a2e5b1d4e8f
    MethodNotAllowed:
      description: '`405`. `method_not_allowed`: the path exists, the method does not. `Allow` lists the methods that do.'
      headers:
        Allow:
          schema:
            type: string
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            wrong-method:
              value:
                error:
                  status: 405
                  code: method_not_allowed
                  message: Use GET, POST on this route.
                  requestId: 7f3c9a2e5b1d4e8f
    Internal:
      description: '`500`. `internal`: something failed on our side; the message carries a reference for support.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            internal:
              value:
                error:
                  status: 500
                  code: internal
                  message: internal server error (ref 3f9c1b2a)
                  requestId: 7f3c9a2e5b1d4e8f
    Unavailable:
      description: '`503`. `unavailable`: Schedchie could not verify the key or reach its own API right now. Retry after `Retry-After` seconds.'
      headers:
        Retry-After:
          $ref: '#/components/headers/Retry-After'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            unavailable:
              value:
                error:
                  status: 503
                  code: unavailable
                  message: 'Schedchie could not verify this API key right now: retry shortly.'
                  requestId: 7f3c9a2e5b1d4e8f
    Unauthorized:
      description: '`401`. `missing_key`: no `Authorization: Bearer` header. `invalid_key`:

        not a Schedchie API key, or unknown or revoked. `key_refused`: the key

        was revoked during the call. The response carries

        `WWW-Authenticate: Bearer realm="schedchie-api"`.

        '
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            missing-key:
              value:
                error:
                  status: 401
                  code: missing_key
                  message: 'Send your API key as Authorization: Bearer schedchie_api_... Create one in Dashboard, AI assistants.'
                  requestId: 7f3c9a2e5b1d4e8f
    NotFound:
      description: '`404`. `not_found`: no resource with that id in this workspace, or no

        such route under `/v1`.

        '
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            no-such-post:
              value:
                error:
                  status: 404
                  code: not_found
                  message: No post with id 65c0000000000000000000ff in this workspace.
                  requestId: 7f3c9a2e5b1d4e8f
    BadRequest:
      description: '`400`. `invalid_json`: the body is not JSON. `invalid_arguments`: the

        tool behind the route refused the values (an unknown account id, a

        time in the wrong format, a caption over a platform''s limit).

        `workspace_not_allowed`: a `workspace` field named another workspace.

        '
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            invalid-arguments:
              value:
                error:
                  status: 400
                  code: invalid_arguments
                  message: 'Invalid arguments: `scheduledTime` must be an ISO 8601 date-time, got "tomorrow".'
                  requestId: 7f3c9a2e5b1d4e8f
    RateLimited:
      description: '`429`. `rate_limited`: over 120 calls this minute for this key or for

        the workspace''s keys together, or too many refused requests from one

        address. `budget_exhausted`: the hour''s calls are used up.

        `live_read_budget`: the workspace''s uncached live reads this hour are

        used up. `Retry-After` says how long to wait.

        '
      headers:
        Retry-After:
          $ref: '#/components/headers/Retry-After'
        RateLimit-Limit:
          $ref: '#/components/headers/RateLimit-Limit'
        RateLimit-Remaining:
          $ref: '#/components/headers/RateLimit-Remaining'
        RateLimit-Reset:
          $ref: '#/components/headers/RateLimit-Reset'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            minute:
              value:
                error:
                  status: 429
                  code: rate_limited
                  message: Too many calls this minute for this key (limit 120 a minute). Retry in 23 s.
                  requestId: 7f3c9a2e5b1d4e8f
  schemas:
    Approval:
      type: object
      description: A post waiting for the owner.
      required:
      - postId
      - contentPreview
      - accounts
      - mediaCount
      properties:
        postId:
          type: string
        contentPreview:
          type: string
        scheduledTime:
          type: string
          format: date-time
        accounts:
          type: array
          items:
            type: object
            properties:
              platform:
                type: string
              name:
                type: string
        mediaCount:
          type: integer
        createdBy:
          type:
          - string
          - 'null'
          description: The email of the member who scheduled it.
        createdAt:
          type: string
          format: date-time
    RejectPost:
      type: object
      additionalProperties: false
      properties:
        reason:
          type: string
          maxLength: 500
          description: Shown to the member who scheduled the post.
    Error:
      type: object
      description: The one error envelope.
      required:
      - error
      additionalProperties: false
      properties:
        error:
          type: object
          required:
          - status
          - code
          - message
          - requestId
          additionalProperties: false
          properties:
            status:
              type: integer
              description: The HTTP status, repeated.
            code:
              type: string
              description: A stable machine-readable code.
              enum:
              - invalid_json
              - invalid_arguments
              - workspace_not_allowed
              - missing_key
              - invalid_key
              - key_refused
              - plan_required
              - not_permitted
              - not_found
              - method_not_allowed
              - body_too_large
              - validation_failed
              - tool_error
              - rate_limited
              - budget_exhausted
              - live_read_budget
              - unavailable
              - timeout
              - internal
            message:
              type: string
              description: What went wrong and, where possible, how to fix it.
            requestId:
              type: string
              description: The same value as the `X-Request-Id` header.
            details:
              type: array
              description: On `validation_failed`, one entry per field that failed.
              items:
                $ref: '#/components/schemas/ErrorDetail'
    ErrorDetail:
      type: object
      required:
      - field
      - message
      additionalProperties: false
      properties:
        field:
          type: string
          description: The field's path in the body (`accountIds`, `media/0/url`) or the query parameter's name; `body` for the whole body.
        message:
          type: string
    ApprovalDecision:
      type: object
      required:
      - ok
      - post
      properties:
        ok:
          type: boolean
        post:
          $ref: '#/components/schemas/Post'
        publishesImmediately:
          type: boolean
          description: On approve, `true` when the scheduled time has passed and the post publishes now.
    Post:
      type: object
      description: 'The stored post. `_id` is the id used in paths. `publishResults` holds

        one entry per account with `success`, the platform''s `publicUrl` when

        it published, or `error` when it failed.

        '
      required:
      - _id
      properties:
        _id:
          type: string
        universalContent:
          type: string
          description: The text.
        universalHashtags:
          type: array
          items:
            type: string
        accountPlatformsAndNames:
          type: array
          items:
            type: object
            properties:
              accountId:
                type: string
              platform:
                type: string
              name:
                type: string
              username:
                type: string
        platformSpecificContent:
          type: object
          description: Per-account overrides keyed by `accountId`.
        media:
          type: array
          items:
            $ref: '#/components/schemas/MediaInputObject'
        publishResults:
          type: array
          items:
            type: object
            properties:
              accountId:
                type: string
              platform:
                type: string
              success:
                type: boolean
              publicUrl:
                type:
                - string
                - 'null'
              publicUrlNote:
                type: string
              error:
                type: string
              partial:
                type: boolean
        processingStatus:
          type: string
          description: '`pending`, `processing`, `completed`, `failed` or `pending_approval`.'
        isPublished:
          type: boolean
        scheduledTime:
          type: string
          format: date-time
        createdAt:
          type: string
          format: date-time
        needsApproval:
          type: boolean
        rejectionReason:
          type: string
        rejectionNote:
          type: string
        recurrence:
          type:
          - object
          - 'null'
        successCount:
          type: integer
        failureCount:
          type: integer
        partialDelivery:
          type: boolean
        partialDeliveryNote:
          type: string
        partialFailure:
          type: boolean
        partialFailureNote:
          type: string
        storedStatus:
          type: string
        storedIsPublished:
          type: boolean
        flagCorrected:
          type: boolean
        flagCorrectionNote:
          type: string
    ApprovalList:
      type: object
      required:
      - data
      - nextCursor
      additionalProperties: false
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/Approval'
        nextCursor:
          type: 'null'
    MediaInputObject:
      type: object
      description: A media object as returned by the media routes (`gcsObjectName` is the one field that matters).
      required:
      - gcsObjectName
      properties:
        gcsObjectName:
          type: string
        blobName:
          type: string
        url:
          type: string
        originalName:
          type: string
        mimeType:
          type: string
        size:
          type: integer
        type:
          type: string
          enum:
          - image
          - video
        finalUrlAfterProcessing:
          type: string
        cover:
          type: object
          description: A cover frame or image for a video.
          properties:
            gcsObjectName:
              type: string
            blobName:
              type: string
            offsetMs:
              type: integer
  parameters:
    PostId:
      name: id
      in: path
      required: true
      description: The post's id (`_id`, or `id` in list summaries).
      schema:
        type: string
        pattern: ^[0-9a-fA-F]{24}$
      example: 65c000000000000000000001
    ReservedLimit:
      name: limit
      in: query
      description: Accepted and reserved for paging; this route returns the whole list in v1.
      schema:
        type: integer
        minimum: 1
        maximum: 100
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      bearerFormat: schedchie_api_ followed by 64 hex characters
      description: 'An API key from the Schedchie dashboard (AI assistants). Keys exist on

        Ultra and Ultra+, after the first paid invoice; at most 5 active keys

        per workspace (Ultra+: 10). Each key is granted permission groups

        (`posts`, `media`, `analytics`, `team`, `library`, each read and write

        or read only) and acts only in its own workspace.

        '