Quickstart

Create a key, connect an account, publish a post and schedule the next one. Every step works from cURL, Node or Python, and each one is also available in the dashboard.
  1. Create an API key

    In the dashboard, open Developers, API keys and choose Create key. Give it a name, keep the default auto policy for now, and copy the key. It is shown only once and starts with kea_live_. Keep it in an environment variable or a secret manager, never in client side code.

    shell
    export POSTKEA_API_KEY="kea_live_..."

    Check the key. This call is free:

    curl "https://postkea.com/api/v1/me" \
      -H "Authorization: Bearer $POSTKEA_API_KEY"
  2. Connect an account

    The quickest way is the dashboard: Channels, Connect a channel. From the API, start an OAuth connection and send the person to the returned url. After they approve, they land on your redirectUrl with connected and account query parameters.

    curl -X POST "https://postkea.com/api/v1/connect/linkedin" \
      -H "Authorization: Bearer $POSTKEA_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
      "redirectUrl": "https://yourapp.com/connected"
    }'

    Bluesky, Mastodon, Telegram, Discord, Slack and custom webhooks connect with credentials instead of OAuth:

    curl -X POST "https://postkea.com/api/v1/connect/bluesky/credentials" \
      -H "Authorization: Bearer $POSTKEA_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
      "values": {
        "handle": "studiolumen.bsky.social",
        "appPassword": "xxxx-xxxx-xxxx-xxxx"
      }
    }'

    List the connected accounts and note the id of each one. You pass it as accountId when posting. See Accounts and connecting for profiles, connect links and your own OAuth apps.

    curl "https://postkea.com/api/v1/accounts" \
      -H "Authorization: Bearer $POSTKEA_API_KEY"
  3. Publish a post

    One request posts to every account in platforms. Each entry can override the text for its network.

    curl -X POST "https://postkea.com/api/v1/posts" \
      -H "Authorization: Bearer $POSTKEA_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
      "content": "We just shipped dark mode.",
      "platforms": [
        {
          "accountId": "acc_x_8f2k"
        },
        {
          "accountId": "acc_li_3m9q",
          "content": "Dark mode is now live for every workspace. Here is what changed and why."
        }
      ],
      "publishNow": true
    }'

    With publishNow the request waits up to 25 seconds for the networks to answer, so you usually get the final result straight away. Each platform reports its own status, URL and error.

    Response
    {
      "success": true,
      "data": {
        "post": {
          "id": "post_8f2k1x9q0m3v7n4b2c6d",
          "status": "published",
          "content": "We just shipped dark mode.",
          "scheduledFor": null,
          "platforms": [
            {
              "accountId": "acc_li_3m9q",
              "platform": "linkedin",
              "status": "published",
              "success": true,
              "platformPostUrl": "https://www.linkedin.com/feed/update/urn:li:share:7251",
              "error": null,
              "warnings": [],
              "creditsCharged": 1
            },
            {
              "accountId": "acc_x_8f2k",
              "platform": "x",
              "status": "published",
              "success": true,
              "platformPostUrl": "https://x.com/studiolumen/status/1849",
              "error": null,
              "warnings": [],
              "creditsCharged": 1
            }
          ]
        },
        "issues": []
      }
    }
    If one network fails, the post is marked partial, only the networks that published are charged, and POST /v1/posts/{id}/retry tries the failed ones again. Send wait: false to return immediately and follow progress with webhooks.
  4. Schedule the next one

    Replace publishNow with scheduledFor and a timezone. A time without an offset is read in that time zone, so 2026-11-03T09:00 in Europe/Berlin goes out at 9:00 Berlin time. The idempotencyKey makes it safe to retry the request.

    curl -X POST "https://postkea.com/api/v1/posts" \
      -H "Authorization: Bearer $POSTKEA_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
      "content": "Our spring workshop opens for booking today.",
      "platforms": [
        {
          "accountId": "acc_x_8f2k"
        },
        {
          "accountId": "acc_li_3m9q"
        }
      ],
      "scheduledFor": "2026-11-03T09:00",
      "timezone": "Europe/Berlin",
      "idempotencyKey": "workshop-launch-2026-11-03"
    }'

    Not sure the post fits every network? Send the same body to POST /v1/posts/validate (or add dryRun: true) to get each platform's errors and warnings without saving anything. Prefer a queue? Use addToQueue: true and each account's next free time slot is used, see Scheduling and queue.

  5. Next steps

    • Add images and videos with Media, and learn every per-network option in Posting.
    • Pull transcripts, comments and stats with Scraping.
    • Get told when posts publish or fail with Webhooks.
    • Let Claude, Codex or Cursor do all of this with the MCP server.