Posterly Identity API

Authenticated user and workspace context

GitHub OpenAPI

Operations 2

GET /api/v1/whoami Get authenticated user and workspace context #
GET /api/v1/status Get posterly publishing status #

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/poster-ly:poster-ly-identity-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

poster-ly-identity-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: posterly Identity API
  version: 1.0.0
  description: 'REST API for scheduling and managing social posts in posterly. ### Get your API key

    1. Go to `Dashboard -> API & MCP` in posterly. 2. Click **Generate API key**. 3. Copy the key and use it as `Authorization: Bearer pst_live_...`. Agents can create additional scoped API keys with `POST /api/v1/api-keys` and revoke user-created keys with `DELETE /api/v1/api-keys/{id}` after explicit confirmation. Both actions require a dashboard-created API key; OAuth-issued and managed assistant tokens cannot manage API keys. Agents can start a new API signup with `POST /api/v1/signup`. It starts a 7-day free trial of posterly with API and MCP access: a card is required, you are charged on day 8 unless you start the paid plan sooner, and API and MCP are limited during the trial. This returns a poll URL and a browser Checkout link. It never returns an API key before the card is saved and access is active. API page: `https://www.poster.ly/dashboard/api`


    ### Quickstart

    ```bash

    curl -H "Authorization: Bearer pst_live_xxx" \

    https://www.poster.ly/api/v1/accounts

    ```


    ```bash

    curl -X POST https://www.poster.ly/api/v1/posts \

    -H "Authorization: Bearer pst_live_xxx" \

    -H "Content-Type: application/json" \

    -d ''{

    "account_id":"123",

    "platform":"instagram",

    "caption":"Launching soon",

    "post_type":"image",

    "media_urls":["https://assets.poster.ly/users/123/post.jpg"],

    "settings":{"__type":"instagram","post_type":"post"}

    }''

    ```


    Use `POST /api/v1/posts/batch` to create up to 25 posts in a single request. ### X posting limits

    - posterly-managed X posting is limited per workspace monthly X posting cycle. - X posts containing URLs are currently blocked in the API, including bare domains like `poster.ly`. - X thread segments count toward the monthly X allowance one post per tweet segment. - Use `GET /api/v1/x-posting/quota` to inspect the current X allowance before creating posts. ### Rate limits and errors

    - `POST /api/v1/posts` and `POST /api/v1/posts/batch`: 100 requests/hour per API key. - Post creation is also capped at 1,000 created post items/hour per user across all API keys; a batch of 25 counts as 25 items. - `POST /api/v1/media/*`: 120 requests/hour per API key. A signed upload batch (`files`) counts one request per file. - Read endpoints: 300 requests/hour per API key. - Authenticated API traffic is capped at 2,000 requests/hour per user across all API keys. - Each workspace also has a shared hourly budget for every API key and AI app acting in it (owner and teammates together), set by the workspace owner plan: Starter 500 calls and 100 post creates, Pro 1,000 and 200, Power 2,000 and 300, Agency 4,000 and 600. The `429` message names the cap. - Pre-authenticated requests are IP-limited before API key lookup to protect against invalid-token floods. - Every authenticated response includes `X-Request-Id`, `X-RateLimit-Limit`, `X-RateLimit-Remaining`, and `X-RateLimit-Reset` headers. - If rate-limited, the API returns `429` with `retry_after`, `limit`, `remaining`, `reset`, and a `Retry-After` header. ### Teammates and API access

    - A workspace owner with the API add-on can turn on API and AI app access for a teammate (Team settings, or `PATCH /api/v1/workspaces/{workspaceId}/members/{memberId}` with `api_access`). It is off by default, and nobody can change their own. - The teammate then uses their own API keys and AI app connections in that workspace, with their own role and brand limits. Usage, AI credits and quotas count against the workspace owner plan. Viewers get read-only API access: AI generation and media upload endpoints answer `403 insufficient_workspace_permissions` for them. - A `workspace_id` the key may not use through the API answers `403 insufficient_workspace_permissions` before rate limits run. Post creates count against the workspace each post lands in; a batch spanning several workspaces counts once against each. - A key only reaches the workspaces it is allowed to use.'
servers:
- url: https://www.poster.ly
security:
- bearerAuth: []
tags:
- name: Identity
  description: Authenticated user and workspace context
paths:
  /api/v1/whoami:
    get:
      tags:
      - Identity
      summary: Get authenticated user and workspace context
      operationId: whoami
      responses:
        '200':
          description: Identity fetched successfully
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            X-RateLimit-Limit:
              $ref: '#/components/headers/XRateLimitLimit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/XRateLimitRemaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/XRateLimitReset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WhoamiResponse'
        '401':
          $ref: '#/components/responses/UnauthorizedError'
        '429':
          $ref: '#/components/responses/RateLimitError'
  /api/v1/status:
    get:
      tags:
      - Identity
      summary: Get posterly publishing status
      description: 'Return posterly own publishing health for agents deciding whether to schedule: overall state from the last 4 hours of publishing success, active incidents, and per-platform state with 7-day success rates and publish counts. Anonymous aggregates only, with no post ids, user data or raw errors. When fewer than 10 posts were counted in the last 4 hours and no incident is active, `state` is `unknown` and `insufficient_data` is true: not enough recent activity to judge. Failures caused by content or account problems are excluded from the rates and reported as `customer_side_failures_7d`. Requires the `accounts:read` scope. Bypasses the API add-on paywall. Figures are cached for about a minute. Returns 503 `status_unavailable` if the status cannot be built.'
      operationId: getPosterlyStatus
      responses:
        '200':
          description: Publishing status fetched successfully.
          headers:
            X-Request-Id:
              $ref: '#/components/headers/XRequestId'
            X-RateLimit-Limit:
              $ref: '#/components/headers/XRateLimitLimit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/XRateLimitRemaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/XRateLimitReset'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PosterlyStatusResponse'
        '401':
          $ref: '#/components/responses/UnauthorizedError'
        '403':
          $ref: '#/components/responses/ForbiddenError'
        '429':
          $ref: '#/components/responses/RateLimitError'
        '503':
          $ref: '#/components/responses/ServiceUnavailableError'
components:
  schemas:
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
        code:
          type: string
          nullable: true
        request_id:
          type: string
          nullable: true
        retry_after:
          type: number
          nullable: true
        upgrade_url:
          type: string
          nullable: true
          description: Where to start the paid plan. Present on free-trial limit errors.
        trial_limit:
          type: boolean
          nullable: true
          description: True when the error is a free-trial limit rather than a plan or rate limit.
        required_plan_code:
          type: string
          nullable: true
          enum:
          - individual_api
          - agency_api
          - enterprise_api
          - null
          description: 'Present on a 403 that blocks API access because of the API and MCP add-on: the add-on plan the account needs.'
        required_plan_name:
          type: string
          nullable: true
          description: Display name of `required_plan_code`.
        required_price_usd:
          type: number
          nullable: true
          description: 'Price of the SELF-SERVE STANDALONE purchase of `required_plan_code` (3 for Starter and legacy plans, 4 for Pro, 5 for Power, 29 for Agency), read with `required_price_interval`. It does not describe the upgrade a paid combined subscription gets: that is a swap of the add-on item on the same subscription, quoted by `addon_swap_offer` on `GET /api/subscription/api-addon`.'
        required_price_interval:
          type: string
          nullable: true
          enum:
          - month
          - year
          - null
          description: 'Billing cadence of `required_price_usd`. Always `month`: the standalone add-on is monthly. A seat on a yearly plan (free trial add-on, or the combined-subscription upgrade) is priced yearly instead (Starter $29, Pro $38, Power $48, Agency $278 a year); the dashboard shows that price, and the upgrade shows an exact quote (`addon_swap_offer`: `amount_due_now_cents`, `renewal_price_usd`, `interval`, `proration_date`) that must be confirmed with its amount and `proration_date` before the saved card is charged (409 `quote_changed` when the amount or date no longer holds; 409 `api_addon_tier_mismatch` when support must fix the plan). The 403 does not quote it.'
        validation_errors:
          type: array
          items:
            $ref: '#/components/schemas/ValidationErrorItem'
          nullable: true
      required:
      - error
      additionalProperties: true
      example:
        error: Invalid request
        code: validation_error
    ValidationErrorItem:
      type: object
      properties:
        field:
          type: string
        code:
          type: string
        message:
          type: string
      required:
      - field
      - code
      - message
      additionalProperties: true
    PosterlyStatusResponse:
      type: object
      description: posterly publishing health as anonymous aggregates. Every figure names its window. Customer-side failures (content or account problems) are excluded from the rates.
      required:
      - state
      - state_basis
      - insufficient_data
      - counted_4h
      - as_of
      - incidents
      - platforms
      - upcoming_scheduled_posts
      - notes
      properties:
        state:
          type: string
          enum:
          - operational
          - degraded
          - partial_outage
          - major_outage
          - unknown
          description: 'Overall publishing health from the last 4 hours. `unknown` when fewer than 10 posts were counted in 4 hours and no incident is active: not enough recent activity to judge. An active incident outranks insufficient data, which outranks the 95 / 85 / 70 percent thresholds.'
        state_basis:
          type: string
          example: publishing success, last 4 hours
        insufficient_data:
          type: boolean
          description: True only when "not enough activity" is the deciding reason (false when an incident overrides it).
        counted_4h:
          type: integer
          description: 'Posts counted in the success rate over the last 4 hours: published posts plus failures on posterly side or in a platform-wide problem. Failures caused by content or the account are not counted. Always the real number.'
        as_of:
          type: string
          format: date-time
          description: When the figures were computed.
        incidents:
          type: array
          items:
            type: object
            required:
            - platform
            - state
            - message
            properties:
              platform:
                type: string
              state:
                type: string
                enum:
                - degraded
                - partial_outage
                - major_outage
              message:
                type: string
        platforms:
          type: array
          items:
            type: object
            required:
            - platform
            - state
            - success_rate_7d
            - publishes_7d
            - customer_side_failures_7d
            properties:
              platform:
                type: string
              state:
                type: string
                enum:
                - operational
                - degraded
                - outage
                - low_volume
                - no_data
                description: low_volume is under 20 publishes in 7 days.
              success_rate_7d:
                type: number
                nullable: true
                description: Percent over 7 days. Null for low_volume and no_data.
              publishes_7d:
                type: integer
                description: Posts counted in the last 7 days (customer-side failures not included).
              customer_side_failures_7d:
                type: integer
                description: Failures in the last 7 days caused by content or the account, such as an expired connection or a content limit.
        upcoming_scheduled_posts:
          type: integer
          description: Posts across posterly that are scheduled and still in the future.
        notes:
          type: string
    WhoamiResponse:
      type: object
      properties:
        user:
          type: object
          properties:
            id:
              type: string
            email:
              type: string
              nullable: true
          required:
          - id
          additionalProperties: true
        api_key:
          type: object
          properties:
            id:
              type: string
            scopes:
              type: array
              items:
                type: string
            brand_id:
              type: string
              format: uuid
              nullable: true
              description: Set when this key is limited to one brand. Null for a workspace-wide key.
          required:
          - id
          - scopes
          additionalProperties: true
        default_workspace:
          allOf:
          - $ref: '#/components/schemas/Workspace'
          nullable: true
          description: Where unscoped calls act. Null when the key can act in several workspaces and none is the default (see workspace_id_required).
        workspace_id_required:
          type: boolean
          description: True when calls that need a workspace must pass workspace_id.
        workspaces:
          type: array
          items:
            $ref: '#/components/schemas/Workspace'
        workspaces_without_api_access:
          type: array
          description: Workspaces you belong to but cannot use through the API right now.
          items:
            type: object
            properties:
              id:
                type: string
              role:
                type: string
              is_personal:
                type: boolean
              reason:
                type: string
                enum:
                - own_api_addon_required
                - api_access_off
                - owner_api_addon_inactive
                - owner_on_trial
                nullable: true
      required:
      - user
      - api_key
      - default_workspace
      - workspaces
      example:
        user:
          id: user_123
          email: founder@example.com
        api_key:
          id: key_123
          scopes:
          - accounts:read
          - accounts:write
          - posts:write
        default_workspace:
          id: 2d0a6d4c-9eef-4ee2-9026-2ca0dc29c8d6
          name: Grassroots
          is_personal: false
        workspaces:
        - id: 2d0a6d4c-9eef-4ee2-9026-2ca0dc29c8d6
          name: Grassroots
          is_personal: false
    Workspace:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        slug:
          type: string
          nullable: true
        is_personal:
          type: boolean
        timezone:
          type: string
          nullable: true
        role:
          type: string
          nullable: true
        api_access:
          type: boolean
          description: 'whoami only: whether this key can act in the workspace through the API.'
        api_access_source:
          type: string
          enum:
          - own
          - inherited
          nullable: true
          description: 'whoami only: own means your own API add-on; inherited means the workspace owner turned on API access for you.'
        brand_access:
          type: string
          enum:
          - all
          - selected
          description: 'whoami only: whether your seat sees every brand or only selected ones.'
        brand_ids:
          type: array
          items:
            type: string
          nullable: true
          description: 'whoami only: the brands your seat can reach; null means every brand.'
      required:
      - id
      - name
      - is_personal
      additionalProperties: true
      example:
        id: 2d0a6d4c-9eef-4ee2-9026-2ca0dc29c8d6
        name: Grassroots
        slug: grassroots
        is_personal: false
        timezone: Asia/Dubai
        role: owner
  headers:
    XRateLimitRemaining:
      description: Requests remaining in the current window.
      schema:
        type: integer
      example: 119
    XRequestId:
      description: Request correlation ID to share with support.
      schema:
        type: string
      example: req_018f7bbd-1d2e-4b60-a795-0c1b21a99db2
    XRateLimitReset:
      description: Unix timestamp (seconds) when the rate limit window resets.
      schema:
        type: integer
      example: 1760000100
    RetryAfter:
      description: Seconds to wait before retrying.
      schema:
        type: integer
      example: 60
    XRateLimitLimit:
      description: Maximum requests allowed in the current window.
      schema:
        type: integer
      example: 120
  responses:
    ServiceUnavailableError:
      description: Temporarily unavailable. Retry, or fall back to the documented alternative.
      headers:
        Retry-After:
          $ref: '#/components/headers/RetryAfter'
        X-Request-Id:
          $ref: '#/components/headers/XRequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            unavailable:
              value:
                error: Client portal sign-in links are not available yet. Use the permanent review page link for now.
                code: portal_links_unavailable
            trialLimitsUnavailable:
              summary: Free-trial usage limits temporarily unavailable
              description: While the workspace owner is on the free trial, the trial limits need the usage counter. If it is briefly unreachable the request answers 503 `trial_limits_unavailable` with Retry-After (not a cap or rate-limit error). Retry shortly.
              value:
                error: Trial usage limits are temporarily unavailable. Please retry shortly.
                code: trial_limits_unavailable
                upgrade_url: https://www.poster.ly/dashboard/account/billing
                trial_limit: true
                request_id: req_01
    RateLimitError:
      description: Too many requests
      headers:
        Retry-After:
          $ref: '#/components/headers/RetryAfter'
        X-Request-Id:
          $ref: '#/components/headers/XRequestId'
        X-RateLimit-Limit:
          $ref: '#/components/headers/XRateLimitLimit'
        X-RateLimit-Remaining:
          $ref: '#/components/headers/XRateLimitRemaining'
        X-RateLimit-Reset:
          $ref: '#/components/headers/XRateLimitReset'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            throttled:
              value:
                error: Rate limit exceeded
                code: rate_limited
                retry_after: 60
                limit: 100
                remaining: 0
                reset: 1780480800
            trialThrottled:
              summary: Free-trial hourly limit
              description: 'While the workspace owner is on the free trial: 20 write requests and 100 read requests per hour (separate buckets). The message leads with starting the paid plan. The wait is a later sentence. reset_at is the reset time as an ISO string.'
              value:
                error: Starting the paid plan ends the trial today and charges $19.00 today (Pro plan $15.00 + AI agent access $4.00). Ask the human which plan they want, call manage_plan with action list, then manage_plan with action confirm_link (omit tier and interval to start the current plan), and send them the confirm link. You cannot charge the card yourself. The free trial also allows only 20 write requests per hour. You can also wait until 25 Oct 2026 at 15:04 UTC, when this hourly limit resets. https://www.poster.ly/dashboard/account/billing
                code: rate_limited
                retry_after: 1800
                limit: 20
                remaining: 0
                reset: 1780480800
                reset_at: '2026-10-25T15:04:00.000Z'
                upgrade_url: https://www.poster.ly/dashboard/account/billing
                trial_limit: true
    ForbiddenError:
      description: Request is authenticated but not allowed
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            forbidden:
              value:
                error: API key is scoped to a different workspace
                code: forbidden
            trialFeatureLocked:
              summary: Locked during the free trial
              description: Batch posting, AI video, webhooks and OAuth clients answer 403 `trial_feature_locked` while the workspace owner is on the free trial. Starting the paid plan unlocks them. Retrying does not help.
              value:
                error: Webhooks cannot be used during the free trial. Starting the paid plan ends the trial today and charges $19.00 today (Pro plan $15.00 + AI agent access $4.00). Ask the human which plan they want, call manage_plan with action list, then manage_plan with action confirm_link (omit tier and interval to start the current plan), and send them the confirm link. You cannot charge the card yourself. Retrying will not help until the paid plan is started. https://www.poster.ly/dashboard/account/billing
                code: trial_feature_locked
                upgrade_url: https://www.poster.ly/dashboard/account/billing
                trial_limit: true
                request_id: req_01
            apiAddonRequired:
              summary: API and MCP add-on needed
              description: 'Blocked by the API and MCP add-on (`api_addon_required`, `paid_base_subscription_required`, `agency_api_plan_required` or `api_trial_requires_checkout`). `required_price_usd` is read with `required_price_interval`, which is always `month` (the standalone purchase). A yearly add-on you already hold is reported as `price_usd` with `price_interval: "year"` by `GET /api/subscription/api-addon`, so a yearly $29 add-on is not mistaken for Agency monthly $29.'
              value:
                error: Agency API access requires the Agency API & MCP add-on. Upgrade it at https://www.poster.ly/dashboard/api
                code: agency_api_plan_required
                request_id: req_01
                required_plan_code: agency_api
                required_plan_name: Agency API & MCP
                required_price_usd: 29
                required_price_interval: month
            trialPostCapReached:
              summary: Free-trial post cap reached
              description: 'The free trial allows 25 posts created through the API and MCP in total. Dry runs, idempotent replays and failed creates do not count. No Retry-After header: the cap does not reset.'
              value:
                error: 'Free trial limit reached: the trial allows 25 posts created through the API and MCP. Starting the paid plan ends the trial today and charges $19.00 today (Pro plan $15.00 + AI agent access $4.00). Ask the human which plan they want, call manage_plan with action list, then manage_plan with action confirm_link (omit tier and interval to start the current plan), and send them the confirm link. You cannot charge the card yourself. Retrying will not help until the paid plan is started. https://www.poster.ly/dashboard/account/billing'
                code: trial_post_cap_reached
                upgrade_url: https://www.poster.ly/dashboard/account/billing
                trial_limit: true
                request_id: req_01
    UnauthorizedError:
      description: Invalid or missing API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            unauthorized:
              summary: Missing bearer token
              value:
                error: Unauthorized
                code: unauthorized
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: Use an API key generated on the posterly API & MCP page.