{"info":{"name":"LuftSocial Developer API","description":"The LuftSocial Developer API publishes to your customers' connected social accounts: Instagram, Facebook, LinkedIn, TikTok, YouTube, and X.\n\n> **Every publish is real.** There are no test keys and no sandbox. Requests that publish, upload, charge, or delete are blocked in this collection until you set the `allowWrites` variable to `true`. Use **Check a post before publishing** (preflight) to validate a post without publishing it.\n\n## Getting started\n\n1. **Get access.** Create an API key in the LuftSocial developer console. The raw key is shown once. Keys start with `ls_sk_` (keys made earlier start with `ls_live_` and keep working).\n2. **Configure Postman.** Import the environment template, set `apiKey`, and keep `baseUrl` at `https://platform.luftsocial.com`.\n3. **Check connectivity.** Send **Status → List open platform incidents**. A `200` means your key works.\n4. **Pick a client.** Your own accounts are on the `self` client. To act for a customer, create a client (**Clients → Create a client**) and set the `clientId` variable; it is sent as `X-Client-Id`.\n5. **Connect an account.** **Channels → Start connecting a channel** returns a link for your customer. Once connected, **List channels** shows it and stores the first `channelId`.\n6. **Add media** if the network needs it (Instagram, TikTok, and YouTube never take text-only posts). See the **Media** folder.\n7. **Check, then publish.** Run **Check a post before publishing**, then set `allowWrites` to `true` and **Publish or schedule a post**.\n8. **Follow the result.** **Get a post** shows the status; webhooks tell you without polling.\n9. **When something fails,** read `error.code` and `error.suggestedAction`, and look the call up in **Requests** by its `requestId`.\n\n## Base URL and versioning\n\n| Environment | Base URL |\n| --- | --- |\n| Production | `https://platform.luftsocial.com` |\n| QA | `https://platform-qa.luftsocial.com` |\n| Local (LuftSocial engineers) | `http://localhost:3101` |\n\nEvery route starts with `/v1`.\n\n## Authentication\n\nSend your key as a bearer token on every request:\n\n```\nAuthorization: Bearer ls_sk_…\n```\n\nThis collection does that from the `apiKey` variable. The scheme is case-insensitive (`bearer` works). Keys go in the header only: a key in the query string (`?api_key=`) is refused with `401 API_KEY_INVALID`. Keep keys on your server.\n\n| Code | HTTP | Meaning |\n| --- | --- | --- |\n| `API_KEY_MISSING` | 401 | No `Authorization` header. |\n| `API_KEY_INVALID` | 401 | Unknown or revoked key, a scheme other than `Bearer`, or a key in the query string. |\n| `API_KEY_EXPIRED` | 401 | The key's expiry has passed. |\n| `ACCOUNT_SUSPENDED` | 403 | The workspace was deleted. |\n| `PLAN_REQUIRED` | 403 | The workspace cannot use the API. |\n\nRevoking a key in the console takes effect immediately. To rotate, create the new key, deploy it, then revoke the old one.\n\n## Permissions and client isolation\n\nEach key has a permission, chosen when it is created:\n\n- `read`: every `GET` route and `POST /v1/posts/preflight`. Anything else is `403 PERMISSION_REQUIRED`.\n- `write`: everything.\n\nEach key works for all clients or for selected clients. A key for selected clients can act only for those (`403 CLIENT_NOT_ALLOWED`) and cannot call account-wide routes: applications, actions, creating or deleting clients, storing X credentials, billing, webhooks, requests, and issues.\n\n`X-Client-Id` picks the client a request acts for. Without it, a request uses the key's default client, else `self`. A client outside your workspace is `404 CLIENT_NOT_FOUND`. Another workspace's ids always look like missing ids (`404`).\n\n## Request and response conventions\n\n- JSON in and out. Send `Content-Type: application/json` on bodies, at most 1 MB (`413 PAYLOAD_TOO_LARGE`).\n- Unknown fields are rejected with `400 VALIDATION_FAILED`.\n- Treat ids as opaque strings. Many carry a prefix, such as `post_`, `cli_`, `whe_`, `evt_`, `req_`, and `app_`.\n- Times are ISO 8601 in UTC.\n- Every response has an `X-Request-Id` header, including errors, unknown routes, and malformed bodies. Send your own `X-Request-Id` (up to 128 characters, `[A-Za-z0-9_-]`) to trace a call end to end; otherwise one is generated.\n\n## Pagination\n\nLists that can grow take `limit` (default 20, at most 100) and `cursor`:\n\n```json\n{ \"data\": [ … ], \"meta\": { \"cursor\": \"whe_01J…\", \"limit\": 20 } }\n```\n\nPass `meta.cursor` as `cursor` to get the next page. `null` means there are no more rows. A full last page can still return a cursor; the page after it is empty. Short lists (channels, clients, applications) return `meta.count` and no cursor.\n\nList parameters are strict. `limit` must be a whole number from 1; above 100 it is capped at 100. An unknown filter value (for example `status=done`) or a malformed `cursor` is `400 VALIDATION_FAILED` naming the parameter, never silently ignored.\n\n## Idempotency and retries\n\n`POST /v1/posts`, `POST /v1/media/uploads`, `POST /v1/media/import`, and `POST /v1/webhooks` require an `Idempotency-Key` header: 1–255 characters, `[A-Za-z0-9_-]`. This collection generates a fresh UUID per send; in your code, generate the key **before** the call and reuse it on every retry of that call.\n\n| Same key, and… | Result |\n| --- | --- |\n| the same body | The original result, with `Idempotent-Replayed: true`. |\n| a different body | `409 IDEMPOTENCY_KEY_REUSED`. |\n| a post on another client, or one this key cannot use | `409 IDEMPOTENCY_KEY_REUSED`, whatever the body. |\n\nKeys are scoped to your application. A post's key is kept for the life of the post; a webhook endpoint's key for 24 hours. `X-Request-Id` traces a call; it does not deduplicate anything.\n\nRetry only what the error allows. `error.retryable` says whether the same request can succeed later. When `Retry-After` is present, wait that many seconds. Retry a timed-out `POST /v1/posts` with the same key, never a new one.\n\n## Rate limits\n\n| Limit | Value | Error |\n| --- | --- | --- |\n| Burst, per key | 60 requests per fixed one-minute window | `429 RATE_LIMITED` |\n| Failed key checks, per IP | 30 per minute | `429 RATE_LIMITED` |\n| Monthly calls, Developer plan | Your plan's allowance | `429 MONTHLY_QUOTA_EXCEEDED` |\n| Per channel, under each network's limits | Network budgets | `PLATFORM_RATE_LIMITED` on the post |\n\nEvery response to a request with a valid key carries the burst state, so you can pace yourself before a `429`:\n\n| Header | Meaning |\n| --- | --- |\n| `RateLimit-Limit` | Requests allowed per window (60). |\n| `RateLimit-Remaining` | Requests left in the current window. |\n| `RateLimit-Reset` | Seconds until the window resets. |\n\nA burst `429 RATE_LIMITED` sends `Retry-After` (seconds). The per-IP limit on failed key checks sends no `Retry-After`: wait for the next minute.\n\n## Errors\n\nEvery error has the same body, and `error.httpStatus` equals the HTTP status:\n\n```json\n{\n  \"error\": {\n    \"code\": \"IDEMPOTENCY_KEY_REUSED\",\n    \"message\": \"…\",\n    \"category\": \"CONFLICT\",\n    \"httpStatus\": 409,\n    \"retryable\": false,\n    \"suggestedAction\": \"…\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/IDEMPOTENCY_KEY_REUSED\",\n    \"details\": {}\n  }\n}\n```\n\nBranch on `code`, which is stable. `category` is one of `AUTHENTICATION`, `PERMISSION`, `VALIDATION`, `CONFLICT`, `NOT_FOUND`, `PLAN`, `RATE_LIMIT`, `UPSTREAM`, `INTERNAL`. `details` holds facts about this failure, such as `errors: [{ field, message }]` for a validation failure. Each request in this collection lists the codes it can return and has an example of each. Every code has a page at `https://platform.luftsocial.com/errors/{code}`.\n\n## Publishing lifecycle\n\n`queued` → (`scheduled`) → `publishing` → `published`, `partially_published`, or `failed`. `cancelled` is possible while `queued` or `scheduled`. See the **Posts** folder for each state, and **Webhooks** for the events.\n\n## Usage and billing\n\n- Channel slots: the plan includes some channels; more need paid slots (**Billing**).\n- X: your own X app, or LuftSocial's X app paid from prepaid X credit. No automatic fallback.\n- Monthly API calls on the Developer plan count every call that passes the key and burst checks, including calls that then fail. An idempotent replay (`Idempotent-Replayed: true`) is not counted.\n\n## Troubleshooting\n\n| Symptom | Check |\n| --- | --- |\n| `401` | `apiKey` is set in the active environment, and the key is not revoked or expired. |\n| `403 PERMISSION_REQUIRED` | The key is `read`; use a `write` key. |\n| `403 CLIENT_NOT_ALLOWED` | The key is limited to selected clients, or the route is account-wide. |\n| `404 CHANNEL_NOT_FOUND` on publish | The channel is on another client than `X-Client-Id` or the key's default. |\n| Post stays `queued` | Normal for a short time; check **Status** for an incident on that network. |\n| `400 VALIDATION_FAILED` | `error.details.errors` names each field or query parameter. |\n| `405 METHOD_NOT_ALLOWED` | The path exists with other methods; the `Allow` header lists them. |\n| `429 RATE_LIMITED` | Wait `Retry-After` seconds; watch `RateLimit-Remaining` to avoid it. |\n| A request here says \"blocked\" | Set `allowWrites` to `true` to send requests that change data. |\n\n## Support\n\nInclude the `requestId` (from `X-Request-Id` or `error.requestId`) when you contact LuftSocial support. Reference: [API reference](https://platform.luftsocial.com/docs) · [Error codes](https://platform.luftsocial.com/errors) · [Media issues](https://platform.luftsocial.com/media-issues).","schema":"https://schema.getpostman.com/json/collection/v2.1.0/collection.json"},"auth":{"type":"bearer","bearer":[{"key":"token","value":"{{apiKey}}","type":"string"}]},"event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["// Requests that change data run only when allowWrites is \"true\".","// Every publish is real: there is no sandbox.","const readOnly = [\"Check a post before publishing\"];","const name = pm.info.requestName || '';","const safe = pm.request.method === 'GET' ||","  name.startsWith('Negative: ') ||","  readOnly.includes(name);","if (!safe && String(pm.variables.get('allowWrites')) !== 'true') {","  const message = 'Blocked \"' + name + '\": it changes data. Set allowWrites to true to send it.';","  console.warn(message);","  if (pm.execution && typeof pm.execution.skipRequest === 'function') {","    pm.execution.skipRequest();","  } else {","    throw new Error(message);","  }","}"]}},{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('Has an X-Request-Id header', () => {","  pm.response.to.have.header('X-Request-Id');","});","if (pm.response.code >= 400) {","  pm.test('Error body follows the error contract', () => {","    const body = pm.response.json();","    pm.expect(body).to.have.property('error');","    ['code', 'message', 'category', 'httpStatus', 'retryable', 'suggestedAction', 'requestId', 'docUrl', 'details']","      .forEach((key) => pm.expect(body.error).to.have.property(key));","    pm.expect(body.error.httpStatus).to.eql(pm.response.code);","    pm.expect(body.error.requestId).to.eql(pm.response.headers.get('X-Request-Id'));","  });","}"]}}],"variable":[{"key":"baseUrl","value":"https://platform.luftsocial.com","description":"API origin, without /v1."},{"key":"apiKey","value":"","description":"Your secret API key (ls_sk_…). Set it in your environment, not here."},{"key":"clientId","value":"","description":"X-Client-Id to act for (cli_…). Empty: the key’s default client, else self."},{"key":"allowWrites","value":"false","description":"Set to true to let requests that publish, upload, charge, or delete run. Every publish is real."},{"key":"postId","value":"","description":"Set by Publish or schedule a post, or List posts (the newest)."},{"key":"assetId","value":"","description":"Set by Reserve a media upload or Import media from a URL."},{"key":"uploadUrl","value":"","description":"Presigned PUT URL, set by Reserve a media upload."},{"key":"channelId","value":"","description":"Set by List channels (the first channel)."},{"key":"sessionId","value":"","description":"Set by Start connecting a channel."},{"key":"webhookId","value":"","description":"Set by Create a webhook endpoint or List webhook endpoints."},{"key":"createdClientId","value":"","description":"Set by Create a client. Used by Delete a client."},{"key":"requestId","value":"","description":"Set by List requests (the newest row)."}],"item":[{"name":"Channels","description":"Connected social accounts: list, connect, disconnect, and X app credentials.\n\n**Connecting an account (hosted connect)**\n\n1. `POST /v1/channels/connect/{platform}` returns `url` and `sessionId`. The link is single use and expires at `expiresAt`.\n2. Send your customer to `url`. They approve on the network with no LuftSocial login, then return to `redirectUrl`.\n3. Learn the outcome from the `channel.connected` or `connect.failed` webhook, or poll `GET /v1/connect/sessions/{sessionId}` until `status` is `completed`, `failed`, or `expired`.\n4. `GET /v1/channels` lists the new channel. Use its `id` in post destinations.\n\nA channel with `connectionStatus: needs_reconnection` needs a new link: send its `channelId` in the body of step 1.\n\n## Connect an X account\n\nDo this once for the workspace. Posts go out through your X app.\n\n1. Open [developer.x.com](https://developer.x.com) and create an app, or open the app you already have.\n2. Open **User authentication settings** and choose **Set up**. Set the app type to **Web App**, so X gives you a client secret.\n3. Set the callback URL to the environment you connect from. It has to match exactly.\n   - Production: `https://luftsocial.com/dashboard/social`\n   - QA: `https://qa.luftsocial.com/dashboard/social`\n   Set the website URL to `https://luftsocial.com` or `https://qa.luftsocial.com`.\n4. Turn on `tweet.read`, `tweet.write`, `users.read`, `offline.access`, `media.write`, `dm.read`, and `dm.write`.\n5. Copy the OAuth 2.0 Client ID and Client Secret.\n6. `POST /v1/channels/x/credentials` with `appId` and `appSecret`. We ask X to accept them before anything is stored. If X rejects them, nothing is saved. The secret is encrypted and is not returned. Posting again with the same `appId` replaces the stored secret after a fresh verify (upsert). A different `appId` becomes the active app and deactivates the previous one: X accounts connected through the previous app must reconnect before they post again, and `affectedCount` in the response says how many (`affectedChannels` is the same number under its old name, deprecated).\n7. Connect the X account from the dashboard. X sends the person back to that callback URL.","item":[{"name":"List connected channels","request":{"method":"GET","description":"Channel ids from this list are the channelId values on POST /v1/posts. With X-Client-Id, only that client’s channels (403 CLIENT_NOT_ALLOWED for a client outside the key). The key’s default client does not filter the list.\n\nWorks with a `read` or `write` key.\n\n### Parameters\n\n| Name | In | Required | Type | Description |\n| --- | --- | --- | --- | --- |\n| `X-Client-Id` | header | no | string | Client id (cli_…). When set, the client must belong to this workspace. |\n\n### Response: 200 OK\n\n| Field | Type | Description |\n| --- | --- | --- |\n| `data` | array of object |  |\n| `data[].id` | string |  |\n| `data[].name` | string |  |\n| `data[].platform` | string | X is returned as x. |\n| `data[].clientId` | string |  |\n| `data[].billable` | boolean |  |\n| `data[].connectionStatus` | string | connected, needs_reconnection or plan_locked. On needs_reconnection, ask for a link with this channelId. |\n| `data[].reconnectReason` | enum, nullable | Why the channel needs reconnecting: x_app_replaced (the workspace replaced its X app; reconnect through the current one) or token (the network no longer accepts its token). Null when it is connected or the reason is unknown. One of: `x_app_replaced`, `token` |\n| `meta` | object |  |\n| `meta.count` | number |  |\n\n### Errors\n\nEvery error uses the shared error body. Each code below has an example on this request.\n\n| Code | HTTP | Retryable | Meaning |\n| --- | --- | --- | --- |\n| `API_KEY_MISSING` | 401 | no | No Authorization header was provided. Include your API key as a Bearer token in the Authorization header. |\n| `API_KEY_INVALID` | 401 | no | The API key is unknown, revoked, or supplied as a query parameter. Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL. |\n| `API_KEY_EXPIRED` | 401 | no | The API key has passed its expiry time. Create a new key in the dashboard and replace this one. |\n| `ACCOUNT_SUSPENDED` | 403 | no | API access for this workspace is not active. Ask the workspace owner to restore the workspace, or contact LuftSocial support. |\n| `PERMISSION_REQUIRED` | 403 | no | This API key is read-only. This operation changes data and needs a write key. Use a write key, or create one in the dashboard. |\n| `CLIENT_NOT_ALLOWED` | 403 | no | This API key is limited to other clients, or the operation covers the whole account. Use a key for this client, or a key for all clients for account-wide routes. |\n| `PLAN_REQUIRED` | 403 | no | Your workspace plan does not permit API access. Upgrade your plan to enable API access. |\n| `CLIENT_NOT_FOUND` | 404 | no | Client not found or not accessible to this workspace. Check the X-Client-Id header value. |\n| `RATE_LIMITED` | 429 | yes | Too many requests. Slow down and retry after the Retry-After interval. Wait for the Retry-After header value before retrying. |\n| `MONTHLY_QUOTA_EXCEEDED` | 429 | no | Your monthly API call quota has been reached. Wait until the quota resets at the start of next month, or upgrade your plan. |\n| `UPSTREAM_UNAVAILABLE` | 502 | yes | An upstream service is temporarily unavailable. Retry after the Retry-After interval. Retry after the Retry-After interval. |\n| `INTERNAL` | 500 | yes | An unexpected error occurred. Retry with backoff. If it keeps failing, contact support with the requestId. |\n| `SERVICE_OVERLOADED` | 503 | yes | The API is at capacity and refused this request before doing any work. Retry after the Retry-After interval, with backoff. Nothing was changed. |","header":[{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). When set, the client must belong to this workspace.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/channels","host":["{{baseUrl}}"],"path":["v1","channels"]}},"response":[{"name":"200 OK","originalRequest":{"method":"GET","header":[{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). When set, the client must belong to this workspace.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/channels","host":["{{baseUrl}}"],"path":["v1","channels"]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"data\": [\n    {\n      \"id\": \"ch_instagram\",\n      \"name\": \"Ada Instagram\",\n      \"platform\": \"instagram\",\n      \"clientId\": \"cli_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n      \"billable\": true,\n      \"connectionStatus\": \"connected\",\n      \"reconnectReason\": null\n    }\n  ],\n  \"meta\": {\n    \"count\": 1\n  }\n}"},{"name":"401 API_KEY_MISSING","originalRequest":{"method":"GET","header":[{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). When set, the client must belong to this workspace.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/channels","host":["{{baseUrl}}"],"path":["v1","channels"]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_MISSING\",\n    \"message\": \"No Authorization header was provided.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Include your API key as a Bearer token in the Authorization header.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_MISSING\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_INVALID","originalRequest":{"method":"GET","header":[{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). When set, the client must belong to this workspace.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/channels","host":["{{baseUrl}}"],"path":["v1","channels"]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_INVALID\",\n    \"message\": \"The API key is unknown, revoked, or supplied as a query parameter.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_INVALID\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_EXPIRED","originalRequest":{"method":"GET","header":[{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). When set, the client must belong to this workspace.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/channels","host":["{{baseUrl}}"],"path":["v1","channels"]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_EXPIRED\",\n    \"message\": \"The API key has passed its expiry time.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Create a new key in the dashboard and replace this one.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_EXPIRED\",\n    \"details\": {\n      \"expiredAt\": \"2027-01-01T00:00:00.000Z\"\n    }\n  }\n}"},{"name":"403 ACCOUNT_SUSPENDED","originalRequest":{"method":"GET","header":[{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). When set, the client must belong to this workspace.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/channels","host":["{{baseUrl}}"],"path":["v1","channels"]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"ACCOUNT_SUSPENDED\",\n    \"message\": \"API access for this workspace is not active.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Ask the workspace owner to restore the workspace, or contact LuftSocial support.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/ACCOUNT_SUSPENDED\",\n    \"details\": {}\n  }\n}"},{"name":"403 PERMISSION_REQUIRED","originalRequest":{"method":"GET","header":[{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). When set, the client must belong to this workspace.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/channels","host":["{{baseUrl}}"],"path":["v1","channels"]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PERMISSION_REQUIRED\",\n    \"message\": \"This API key is read-only. This operation changes data and needs a write key.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a write key, or create one in the dashboard.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PERMISSION_REQUIRED\",\n    \"details\": {\n      \"requiredPermission\": \"write\"\n    }\n  }\n}"},{"name":"403 CLIENT_NOT_ALLOWED","originalRequest":{"method":"GET","header":[{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). When set, the client must belong to this workspace.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/channels","host":["{{baseUrl}}"],"path":["v1","channels"]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"CLIENT_NOT_ALLOWED\",\n    \"message\": \"This API key is limited to other clients, or the operation covers the whole account.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a key for this client, or a key for all clients for account-wide routes.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/CLIENT_NOT_ALLOWED\",\n    \"details\": {\n      \"clientId\": \"cli_01abc\"\n    }\n  }\n}"},{"name":"403 PLAN_REQUIRED","originalRequest":{"method":"GET","header":[{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). When set, the client must belong to this workspace.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/channels","host":["{{baseUrl}}"],"path":["v1","channels"]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PLAN_REQUIRED\",\n    \"message\": \"Your workspace plan does not permit API access.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Upgrade your plan to enable API access.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PLAN_REQUIRED\",\n    \"details\": {\n      \"plan\": \"starter\"\n    }\n  }\n}"},{"name":"404 CLIENT_NOT_FOUND","originalRequest":{"method":"GET","header":[{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). When set, the client must belong to this workspace.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/channels","host":["{{baseUrl}}"],"path":["v1","channels"]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"CLIENT_NOT_FOUND\",\n    \"message\": \"Client not found or not accessible to this workspace.\",\n    \"category\": \"NOT_FOUND\",\n    \"httpStatus\": 404,\n    \"retryable\": false,\n    \"suggestedAction\": \"Check the X-Client-Id header value.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/CLIENT_NOT_FOUND\",\n    \"details\": {\n      \"clientId\": \"cli_01abc\"\n    }\n  }\n}"},{"name":"429 RATE_LIMITED","originalRequest":{"method":"GET","header":[{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). When set, the client must belong to this workspace.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/channels","host":["{{baseUrl}}"],"path":["v1","channels"]}},"status":"Too Many Requests","code":429,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"RATE_LIMITED\",\n    \"message\": \"Too many requests. Slow down and retry after the Retry-After interval.\",\n    \"category\": \"RATE_LIMIT\",\n    \"httpStatus\": 429,\n    \"retryable\": true,\n    \"suggestedAction\": \"Wait for the Retry-After header value before retrying.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/RATE_LIMITED\",\n    \"details\": {\n      \"limit\": 60,\n      \"remaining\": 0\n    }\n  }\n}"},{"name":"429 MONTHLY_QUOTA_EXCEEDED","originalRequest":{"method":"GET","header":[{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). When set, the client must belong to this workspace.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/channels","host":["{{baseUrl}}"],"path":["v1","channels"]}},"status":"Too Many Requests","code":429,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"MONTHLY_QUOTA_EXCEEDED\",\n    \"message\": \"Your monthly API call quota has been reached.\",\n    \"category\": \"RATE_LIMIT\",\n    \"httpStatus\": 429,\n    \"retryable\": false,\n    \"suggestedAction\": \"Wait until the quota resets at the start of next month, or upgrade your plan.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/MONTHLY_QUOTA_EXCEEDED\",\n    \"details\": {\n      \"limit\": 25000,\n      \"remaining\": 0\n    }\n  }\n}"},{"name":"502 UPSTREAM_UNAVAILABLE","originalRequest":{"method":"GET","header":[{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). When set, the client must belong to this workspace.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/channels","host":["{{baseUrl}}"],"path":["v1","channels"]}},"status":"Bad Gateway","code":502,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"UPSTREAM_UNAVAILABLE\",\n    \"message\": \"An upstream service is temporarily unavailable. Retry after the Retry-After interval.\",\n    \"category\": \"UPSTREAM\",\n    \"httpStatus\": 502,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry after the Retry-After interval.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/UPSTREAM_UNAVAILABLE\",\n    \"details\": {}\n  }\n}"},{"name":"500 INTERNAL","originalRequest":{"method":"GET","header":[{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). When set, the client must belong to this workspace.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/channels","host":["{{baseUrl}}"],"path":["v1","channels"]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"INTERNAL\",\n    \"message\": \"An unexpected error occurred.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 500,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry with backoff. If it keeps failing, contact support with the requestId.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/INTERNAL\",\n    \"details\": {}\n  }\n}"},{"name":"503 SERVICE_OVERLOADED","originalRequest":{"method":"GET","header":[{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). When set, the client must belong to this workspace.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/channels","host":["{{baseUrl}}"],"path":["v1","channels"]}},"status":"Service Unavailable","code":503,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"SERVICE_OVERLOADED\",\n    \"message\": \"The API is at capacity and refused this request before doing any work.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 503,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry after the Retry-After interval, with backoff. Nothing was changed.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/SERVICE_OVERLOADED\",\n    \"details\": {}\n  }\n}"}],"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('Returns 200 OK', () => {","  pm.response.to.have.status(200);","});","if (pm.response.code === 200) {","  const schema = {\"type\":\"object\",\"properties\":{\"data\":{\"type\":\"array\",\"items\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\"},\"name\":{\"type\":\"string\"},\"platform\":{\"type\":\"string\"},\"clientId\":{\"type\":\"string\"},\"billable\":{\"type\":\"boolean\"},\"connectionStatus\":{\"type\":\"string\"},\"reconnectReason\":{\"type\":[\"string\",\"null\"],\"enum\":[\"x_app_replaced\",\"token\",null]}},\"required\":[\"id\",\"name\",\"platform\",\"clientId\",\"billable\",\"connectionStatus\",\"reconnectReason\"]}},\"meta\":{\"type\":\"object\",\"properties\":{\"count\":{\"type\":\"number\"}}}},\"required\":[\"data\",\"meta\"]};","  pm.test('Body matches the documented schema', () => {","    pm.response.to.have.jsonSchema(schema);","  });","  const next_channelId = \"data.0.id\".split('.').reduce((value, key) => (value == null ? undefined : value[key]), pm.response.json());","  if (typeof next_channelId === 'string' && next_channelId) {","    pm.collectionVariables.set('channelId', next_channelId);","  } else {","    console.warn('channelId not set: data.0.id is missing from the response.');","  }","}"]}}]},{"name":"Get a hosted connect link","request":{"method":"POST","description":"> **Changes data.** Creates a single-use connect link. Nothing is connected until your customer finishes it; a new channel can then need a paid slot. In this collection it runs only when `allowWrites` is `true`.\n\nReturns a LuftSocial link for the client’s customer (or you, for self). They approve on the network with no LuftSocial login, and return to redirectUrl. Follow it with channel.connected or connect.failed, or GET /v1/connect/sessions/{sessionId}. Send channelId to reconnect that channel.\n\nNeeds a `write` key.\n\n### Parameters\n\n| Name | In | Required | Type | Description |\n| --- | --- | --- | --- | --- |\n| `platform` | path | yes | enum | The network to connect. One of: `facebook`, `instagram`, `threads`, `tiktok`, `linkedin`, `youtube`, `pinterest`, `x` |\n| `X-Client-Id` | header | no | string | Client the account is for. Omitted: the key’s default client, else self. |\n\n### Request body\n\n`Content-Type: application/json`. Fields not listed here are rejected with `400 VALIDATION_FAILED`.\n\n| Field | Type | Required | Description |\n| --- | --- | --- | --- |\n| `redirectUrl` | string (uri) | no | Where the customer goes when they finish. Must exactly match one of the application’s redirect URLs. Omit to show a done page. max length 2000 |\n| `channelId` | string | no | Reconnect this channel instead of adding one. The customer must approve the same account. |\n\n### Response: 200 OK\n\n| Field | Type | Description |\n| --- | --- | --- |\n| `url` | string | Send your customer here. Single use, and stops working at expiresAt. |\n| `sessionId` | string (uuid) |  |\n| `expiresAt` | string (date-time) |  |\n\n### Errors\n\nEvery error uses the shared error body. Each code below has an example on this request.\n\n| Code | HTTP | Retryable | Meaning |\n| --- | --- | --- | --- |\n| `API_KEY_MISSING` | 401 | no | No Authorization header was provided. Include your API key as a Bearer token in the Authorization header. |\n| `API_KEY_INVALID` | 401 | no | The API key is unknown, revoked, or supplied as a query parameter. Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL. |\n| `API_KEY_EXPIRED` | 401 | no | The API key has passed its expiry time. Create a new key in the dashboard and replace this one. |\n| `ACCOUNT_SUSPENDED` | 403 | no | API access for this workspace is not active. Ask the workspace owner to restore the workspace, or contact LuftSocial support. |\n| `PERMISSION_REQUIRED` | 403 | no | This API key is read-only. This operation changes data and needs a write key. Use a write key, or create one in the dashboard. |\n| `CLIENT_NOT_ALLOWED` | 403 | no | This API key is limited to other clients, or the operation covers the whole account. Use a key for this client, or a key for all clients for account-wide routes. |\n| `PLAN_REQUIRED` | 403 | no | Your workspace plan does not permit API access. Upgrade your plan to enable API access. |\n| `CLIENT_NOT_FOUND` | 404 | no | Client not found or not accessible to this workspace. Check the X-Client-Id header value. |\n| `CHANNEL_NOT_FOUND` | 404 | no | Channel not found or not accessible to this workspace. Check the channel ID and that it belongs to this workspace. |\n| `CHANNEL_FREE_ALLOWANCE_EXCEEDED` | 402 | no | You have used your free channel allowance. Add a payment method to connect more channels. Add a payment method in the billing settings and retry. |\n| `SLOT_LIMIT_REACHED` | 402 | no | You have reached your channel slot limit. Purchase more slots to connect additional channels. Buy more channel slots from the billing dashboard, then retry. |\n| `X_CREDENTIALS_REQUIRED` | 422 | no | This X channel uses your own X app, and those credentials are missing, inactive, or not verified by X. Submit your X app credentials via POST /v1/channels/x/credentials, or connect X on LuftSocial's X app with paid X credit. |\n| `REDIRECT_URL_NOT_ALLOWED` | 400 | no | redirectUrl is not one of this application's redirect URLs. Add the exact URL to the application's redirect URLs in the developer console, or omit redirectUrl. |\n| `X_RECONNECT_REQUIRED` | 422 | no | This X channel was connected through an X app that is no longer the one it can publish with. The workspace's X app was replaced or removed, its credentials are no longer active and verified, or the connection predates app tracking. Reconnect the channel with POST /v1/channels/connect/x. It then uses your current X app, or LuftSocial's X app with paid X credit when no X app is stored. |\n| `X_ALLOWANCE_REQUIRED` | 402 | no | Connecting or posting to X on LuftSocial's X app requires paid X credit. Pay for X credit, or connect X with your own X app credentials. |\n| `X_CREDIT_SHORTFALL_LIMIT_REACHED` | 402 | no | An earlier X call used more than your remaining X credit, and that shortfall (at most $1.00) is unpaid. X on LuftSocial's X app is blocked until you top up. Top up your X credit wallet in the developer billing console. The top-up clears the shortfall first. |\n| `VALIDATION_FAILED` | 400 | no | One or more request fields failed validation. Fix the fields listed in details.errors and retry. |\n| `RATE_LIMITED` | 429 | yes | Too many requests. Slow down and retry after the Retry-After interval. Wait for the Retry-After header value before retrying. |\n| `UPSTREAM_UNAVAILABLE` | 502 | yes | An upstream service is temporarily unavailable. Retry after the Retry-After interval. Retry after the Retry-After interval. |\n| `INTERNAL` | 500 | yes | An unexpected error occurred. Retry with backoff. If it keeps failing, contact support with the requestId. |\n| `SERVICE_OVERLOADED` | 503 | yes | The API is at capacity and refused this request before doing any work. Retry after the Retry-After interval, with backoff. Nothing was changed. |","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client the account is for. Omitted: the key’s default client, else self.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/channels/connect/:platform","host":["{{baseUrl}}"],"path":["v1","channels","connect",":platform"],"variable":[{"key":"platform","value":"","description":"The network to connect."}]},"body":{"mode":"raw","raw":"{\n  \"redirectUrl\": \"https://app.postpilot.io/connected\",\n  \"channelId\": \"ch_instagram\"\n}","options":{"raw":{"language":"json"}}}},"response":[{"name":"200 OK","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client the account is for. Omitted: the key’s default client, else self.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/channels/connect/:platform","host":["{{baseUrl}}"],"path":["v1","channels","connect",":platform"],"variable":[{"key":"platform","value":"","description":"The network to connect."}]},"body":{"mode":"raw","raw":"{\n  \"redirectUrl\": \"https://app.postpilot.io/connected\",\n  \"channelId\": \"ch_instagram\"\n}","options":{"raw":{"language":"json"}}}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"url\": \"https://luftsocial.com/connect/2Yx…\",\n  \"sessionId\": \"9a1f0c2e-5b7d-4e8a-9c3f-1d2e3f4a5b6c\",\n  \"expiresAt\": \"2026-11-12T09:30:00.000Z\"\n}"},{"name":"401 API_KEY_MISSING","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client the account is for. Omitted: the key’s default client, else self.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/channels/connect/:platform","host":["{{baseUrl}}"],"path":["v1","channels","connect",":platform"],"variable":[{"key":"platform","value":"","description":"The network to connect."}]},"body":{"mode":"raw","raw":"{\n  \"redirectUrl\": \"https://app.postpilot.io/connected\",\n  \"channelId\": \"ch_instagram\"\n}","options":{"raw":{"language":"json"}}}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_MISSING\",\n    \"message\": \"No Authorization header was provided.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Include your API key as a Bearer token in the Authorization header.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_MISSING\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_INVALID","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client the account is for. Omitted: the key’s default client, else self.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/channels/connect/:platform","host":["{{baseUrl}}"],"path":["v1","channels","connect",":platform"],"variable":[{"key":"platform","value":"","description":"The network to connect."}]},"body":{"mode":"raw","raw":"{\n  \"redirectUrl\": \"https://app.postpilot.io/connected\",\n  \"channelId\": \"ch_instagram\"\n}","options":{"raw":{"language":"json"}}}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_INVALID\",\n    \"message\": \"The API key is unknown, revoked, or supplied as a query parameter.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_INVALID\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_EXPIRED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client the account is for. Omitted: the key’s default client, else self.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/channels/connect/:platform","host":["{{baseUrl}}"],"path":["v1","channels","connect",":platform"],"variable":[{"key":"platform","value":"","description":"The network to connect."}]},"body":{"mode":"raw","raw":"{\n  \"redirectUrl\": \"https://app.postpilot.io/connected\",\n  \"channelId\": \"ch_instagram\"\n}","options":{"raw":{"language":"json"}}}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_EXPIRED\",\n    \"message\": \"The API key has passed its expiry time.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Create a new key in the dashboard and replace this one.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_EXPIRED\",\n    \"details\": {\n      \"expiredAt\": \"2027-01-01T00:00:00.000Z\"\n    }\n  }\n}"},{"name":"403 ACCOUNT_SUSPENDED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client the account is for. Omitted: the key’s default client, else self.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/channels/connect/:platform","host":["{{baseUrl}}"],"path":["v1","channels","connect",":platform"],"variable":[{"key":"platform","value":"","description":"The network to connect."}]},"body":{"mode":"raw","raw":"{\n  \"redirectUrl\": \"https://app.postpilot.io/connected\",\n  \"channelId\": \"ch_instagram\"\n}","options":{"raw":{"language":"json"}}}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"ACCOUNT_SUSPENDED\",\n    \"message\": \"API access for this workspace is not active.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Ask the workspace owner to restore the workspace, or contact LuftSocial support.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/ACCOUNT_SUSPENDED\",\n    \"details\": {}\n  }\n}"},{"name":"403 PERMISSION_REQUIRED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client the account is for. Omitted: the key’s default client, else self.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/channels/connect/:platform","host":["{{baseUrl}}"],"path":["v1","channels","connect",":platform"],"variable":[{"key":"platform","value":"","description":"The network to connect."}]},"body":{"mode":"raw","raw":"{\n  \"redirectUrl\": \"https://app.postpilot.io/connected\",\n  \"channelId\": \"ch_instagram\"\n}","options":{"raw":{"language":"json"}}}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PERMISSION_REQUIRED\",\n    \"message\": \"This API key is read-only. This operation changes data and needs a write key.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a write key, or create one in the dashboard.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PERMISSION_REQUIRED\",\n    \"details\": {\n      \"requiredPermission\": \"write\"\n    }\n  }\n}"},{"name":"403 CLIENT_NOT_ALLOWED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client the account is for. Omitted: the key’s default client, else self.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/channels/connect/:platform","host":["{{baseUrl}}"],"path":["v1","channels","connect",":platform"],"variable":[{"key":"platform","value":"","description":"The network to connect."}]},"body":{"mode":"raw","raw":"{\n  \"redirectUrl\": \"https://app.postpilot.io/connected\",\n  \"channelId\": \"ch_instagram\"\n}","options":{"raw":{"language":"json"}}}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"CLIENT_NOT_ALLOWED\",\n    \"message\": \"This API key is limited to other clients, or the operation covers the whole account.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a key for this client, or a key for all clients for account-wide routes.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/CLIENT_NOT_ALLOWED\",\n    \"details\": {\n      \"clientId\": \"cli_01abc\"\n    }\n  }\n}"},{"name":"403 PLAN_REQUIRED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client the account is for. Omitted: the key’s default client, else self.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/channels/connect/:platform","host":["{{baseUrl}}"],"path":["v1","channels","connect",":platform"],"variable":[{"key":"platform","value":"","description":"The network to connect."}]},"body":{"mode":"raw","raw":"{\n  \"redirectUrl\": \"https://app.postpilot.io/connected\",\n  \"channelId\": \"ch_instagram\"\n}","options":{"raw":{"language":"json"}}}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PLAN_REQUIRED\",\n    \"message\": \"Your workspace plan does not permit API access.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Upgrade your plan to enable API access.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PLAN_REQUIRED\",\n    \"details\": {\n      \"plan\": \"starter\"\n    }\n  }\n}"},{"name":"404 CLIENT_NOT_FOUND","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client the account is for. Omitted: the key’s default client, else self.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/channels/connect/:platform","host":["{{baseUrl}}"],"path":["v1","channels","connect",":platform"],"variable":[{"key":"platform","value":"","description":"The network to connect."}]},"body":{"mode":"raw","raw":"{\n  \"redirectUrl\": \"https://app.postpilot.io/connected\",\n  \"channelId\": \"ch_instagram\"\n}","options":{"raw":{"language":"json"}}}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"CLIENT_NOT_FOUND\",\n    \"message\": \"Client not found or not accessible to this workspace.\",\n    \"category\": \"NOT_FOUND\",\n    \"httpStatus\": 404,\n    \"retryable\": false,\n    \"suggestedAction\": \"Check the X-Client-Id header value.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/CLIENT_NOT_FOUND\",\n    \"details\": {\n      \"clientId\": \"cli_01abc\"\n    }\n  }\n}"},{"name":"404 CHANNEL_NOT_FOUND","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client the account is for. Omitted: the key’s default client, else self.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/channels/connect/:platform","host":["{{baseUrl}}"],"path":["v1","channels","connect",":platform"],"variable":[{"key":"platform","value":"","description":"The network to connect."}]},"body":{"mode":"raw","raw":"{\n  \"redirectUrl\": \"https://app.postpilot.io/connected\",\n  \"channelId\": \"ch_instagram\"\n}","options":{"raw":{"language":"json"}}}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"CHANNEL_NOT_FOUND\",\n    \"message\": \"Channel not found or not accessible to this workspace.\",\n    \"category\": \"NOT_FOUND\",\n    \"httpStatus\": 404,\n    \"retryable\": false,\n    \"suggestedAction\": \"Check the channel ID and that it belongs to this workspace.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/CHANNEL_NOT_FOUND\",\n    \"details\": {\n      \"channelId\": \"ch_01abc\"\n    }\n  }\n}"},{"name":"402 CHANNEL_FREE_ALLOWANCE_EXCEEDED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client the account is for. Omitted: the key’s default client, else self.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/channels/connect/:platform","host":["{{baseUrl}}"],"path":["v1","channels","connect",":platform"],"variable":[{"key":"platform","value":"","description":"The network to connect."}]},"body":{"mode":"raw","raw":"{\n  \"redirectUrl\": \"https://app.postpilot.io/connected\",\n  \"channelId\": \"ch_instagram\"\n}","options":{"raw":{"language":"json"}}}},"status":"Payment Required","code":402,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"CHANNEL_FREE_ALLOWANCE_EXCEEDED\",\n    \"message\": \"You have used your free channel allowance. Add a payment method to connect more channels.\",\n    \"category\": \"PLAN\",\n    \"httpStatus\": 402,\n    \"retryable\": false,\n    \"suggestedAction\": \"Add a payment method in the billing settings and retry.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/CHANNEL_FREE_ALLOWANCE_EXCEEDED\",\n    \"details\": {\n      \"limit\": 2,\n      \"remaining\": 0\n    }\n  }\n}"},{"name":"402 SLOT_LIMIT_REACHED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client the account is for. Omitted: the key’s default client, else self.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/channels/connect/:platform","host":["{{baseUrl}}"],"path":["v1","channels","connect",":platform"],"variable":[{"key":"platform","value":"","description":"The network to connect."}]},"body":{"mode":"raw","raw":"{\n  \"redirectUrl\": \"https://app.postpilot.io/connected\",\n  \"channelId\": \"ch_instagram\"\n}","options":{"raw":{"language":"json"}}}},"status":"Payment Required","code":402,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"SLOT_LIMIT_REACHED\",\n    \"message\": \"You have reached your channel slot limit. Purchase more slots to connect additional channels.\",\n    \"category\": \"PLAN\",\n    \"httpStatus\": 402,\n    \"retryable\": false,\n    \"suggestedAction\": \"Buy more channel slots from the billing dashboard, then retry.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/SLOT_LIMIT_REACHED\",\n    \"details\": {\n      \"slotsAllocated\": 5,\n      \"freeChannels\": 2,\n      \"channelsConnected\": 7\n    }\n  }\n}"},{"name":"422 X_CREDENTIALS_REQUIRED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client the account is for. Omitted: the key’s default client, else self.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/channels/connect/:platform","host":["{{baseUrl}}"],"path":["v1","channels","connect",":platform"],"variable":[{"key":"platform","value":"","description":"The network to connect."}]},"body":{"mode":"raw","raw":"{\n  \"redirectUrl\": \"https://app.postpilot.io/connected\",\n  \"channelId\": \"ch_instagram\"\n}","options":{"raw":{"language":"json"}}}},"status":"Unprocessable Entity","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"X_CREDENTIALS_REQUIRED\",\n    \"message\": \"This X channel uses your own X app, and those credentials are missing, inactive, or not verified by X.\",\n    \"category\": \"VALIDATION\",\n    \"httpStatus\": 422,\n    \"retryable\": false,\n    \"suggestedAction\": \"Submit your X app credentials via POST /v1/channels/x/credentials, or connect X on LuftSocial's X app with paid X credit.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/X_CREDENTIALS_REQUIRED\",\n    \"details\": {}\n  }\n}"},{"name":"400 REDIRECT_URL_NOT_ALLOWED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client the account is for. Omitted: the key’s default client, else self.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/channels/connect/:platform","host":["{{baseUrl}}"],"path":["v1","channels","connect",":platform"],"variable":[{"key":"platform","value":"","description":"The network to connect."}]},"body":{"mode":"raw","raw":"{\n  \"redirectUrl\": \"https://app.postpilot.io/connected\",\n  \"channelId\": \"ch_instagram\"\n}","options":{"raw":{"language":"json"}}}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"REDIRECT_URL_NOT_ALLOWED\",\n    \"message\": \"redirectUrl is not one of this application's redirect URLs.\",\n    \"category\": \"VALIDATION\",\n    \"httpStatus\": 400,\n    \"retryable\": false,\n    \"suggestedAction\": \"Add the exact URL to the application's redirect URLs in the developer console, or omit redirectUrl.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/REDIRECT_URL_NOT_ALLOWED\",\n    \"details\": {\n      \"redirectUrl\": \"https://app.example.com/connected\"\n    }\n  }\n}"},{"name":"422 X_RECONNECT_REQUIRED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client the account is for. Omitted: the key’s default client, else self.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/channels/connect/:platform","host":["{{baseUrl}}"],"path":["v1","channels","connect",":platform"],"variable":[{"key":"platform","value":"","description":"The network to connect."}]},"body":{"mode":"raw","raw":"{\n  \"redirectUrl\": \"https://app.postpilot.io/connected\",\n  \"channelId\": \"ch_instagram\"\n}","options":{"raw":{"language":"json"}}}},"status":"Unprocessable Entity","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"X_RECONNECT_REQUIRED\",\n    \"message\": \"This X channel was connected through an X app that is no longer the one it can publish with. The workspace's X app was replaced or removed, its credentials are no longer active and verified, or the connection predates app tracking.\",\n    \"category\": \"VALIDATION\",\n    \"httpStatus\": 422,\n    \"retryable\": false,\n    \"suggestedAction\": \"Reconnect the channel with POST /v1/channels/connect/x. It then uses your current X app, or LuftSocial's X app with paid X credit when no X app is stored.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/X_RECONNECT_REQUIRED\",\n    \"details\": {\n      \"channelId\": \"ch_x\"\n    }\n  }\n}"},{"name":"402 X_ALLOWANCE_REQUIRED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client the account is for. Omitted: the key’s default client, else self.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/channels/connect/:platform","host":["{{baseUrl}}"],"path":["v1","channels","connect",":platform"],"variable":[{"key":"platform","value":"","description":"The network to connect."}]},"body":{"mode":"raw","raw":"{\n  \"redirectUrl\": \"https://app.postpilot.io/connected\",\n  \"channelId\": \"ch_instagram\"\n}","options":{"raw":{"language":"json"}}}},"status":"Payment Required","code":402,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"X_ALLOWANCE_REQUIRED\",\n    \"message\": \"Connecting or posting to X on LuftSocial's X app requires paid X credit.\",\n    \"category\": \"PLAN\",\n    \"httpStatus\": 402,\n    \"retryable\": false,\n    \"suggestedAction\": \"Pay for X credit, or connect X with your own X app credentials.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/X_ALLOWANCE_REQUIRED\",\n    \"details\": {}\n  }\n}"},{"name":"402 X_CREDIT_SHORTFALL_LIMIT_REACHED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client the account is for. Omitted: the key’s default client, else self.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/channels/connect/:platform","host":["{{baseUrl}}"],"path":["v1","channels","connect",":platform"],"variable":[{"key":"platform","value":"","description":"The network to connect."}]},"body":{"mode":"raw","raw":"{\n  \"redirectUrl\": \"https://app.postpilot.io/connected\",\n  \"channelId\": \"ch_instagram\"\n}","options":{"raw":{"language":"json"}}}},"status":"Payment Required","code":402,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"X_CREDIT_SHORTFALL_LIMIT_REACHED\",\n    \"message\": \"An earlier X call used more than your remaining X credit, and that shortfall (at most $1.00) is unpaid. X on LuftSocial's X app is blocked until you top up.\",\n    \"category\": \"PLAN\",\n    \"httpStatus\": 402,\n    \"retryable\": false,\n    \"suggestedAction\": \"Top up your X credit wallet in the developer billing console. The top-up clears the shortfall first.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/X_CREDIT_SHORTFALL_LIMIT_REACHED\",\n    \"details\": {}\n  }\n}"},{"name":"400 VALIDATION_FAILED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client the account is for. Omitted: the key’s default client, else self.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/channels/connect/:platform","host":["{{baseUrl}}"],"path":["v1","channels","connect",":platform"],"variable":[{"key":"platform","value":"","description":"The network to connect."}]},"body":{"mode":"raw","raw":"{\n  \"redirectUrl\": \"https://app.postpilot.io/connected\",\n  \"channelId\": \"ch_instagram\"\n}","options":{"raw":{"language":"json"}}}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"VALIDATION_FAILED\",\n    \"message\": \"One or more request fields failed validation.\",\n    \"category\": \"VALIDATION\",\n    \"httpStatus\": 400,\n    \"retryable\": false,\n    \"suggestedAction\": \"Fix the fields listed in details.errors and retry.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/VALIDATION_FAILED\",\n    \"details\": {\n      \"errors\": [\n        {\n          \"field\": \"scheduledAt\",\n          \"message\": \"Must be an ISO 8601 datetime in the future.\"\n        }\n      ]\n    }\n  }\n}"},{"name":"429 RATE_LIMITED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client the account is for. Omitted: the key’s default client, else self.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/channels/connect/:platform","host":["{{baseUrl}}"],"path":["v1","channels","connect",":platform"],"variable":[{"key":"platform","value":"","description":"The network to connect."}]},"body":{"mode":"raw","raw":"{\n  \"redirectUrl\": \"https://app.postpilot.io/connected\",\n  \"channelId\": \"ch_instagram\"\n}","options":{"raw":{"language":"json"}}}},"status":"Too Many Requests","code":429,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"RATE_LIMITED\",\n    \"message\": \"Too many requests. Slow down and retry after the Retry-After interval.\",\n    \"category\": \"RATE_LIMIT\",\n    \"httpStatus\": 429,\n    \"retryable\": true,\n    \"suggestedAction\": \"Wait for the Retry-After header value before retrying.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/RATE_LIMITED\",\n    \"details\": {\n      \"limit\": 60,\n      \"remaining\": 0\n    }\n  }\n}"},{"name":"502 UPSTREAM_UNAVAILABLE","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client the account is for. Omitted: the key’s default client, else self.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/channels/connect/:platform","host":["{{baseUrl}}"],"path":["v1","channels","connect",":platform"],"variable":[{"key":"platform","value":"","description":"The network to connect."}]},"body":{"mode":"raw","raw":"{\n  \"redirectUrl\": \"https://app.postpilot.io/connected\",\n  \"channelId\": \"ch_instagram\"\n}","options":{"raw":{"language":"json"}}}},"status":"Bad Gateway","code":502,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"UPSTREAM_UNAVAILABLE\",\n    \"message\": \"An upstream service is temporarily unavailable. Retry after the Retry-After interval.\",\n    \"category\": \"UPSTREAM\",\n    \"httpStatus\": 502,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry after the Retry-After interval.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/UPSTREAM_UNAVAILABLE\",\n    \"details\": {}\n  }\n}"},{"name":"500 INTERNAL","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client the account is for. Omitted: the key’s default client, else self.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/channels/connect/:platform","host":["{{baseUrl}}"],"path":["v1","channels","connect",":platform"],"variable":[{"key":"platform","value":"","description":"The network to connect."}]},"body":{"mode":"raw","raw":"{\n  \"redirectUrl\": \"https://app.postpilot.io/connected\",\n  \"channelId\": \"ch_instagram\"\n}","options":{"raw":{"language":"json"}}}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"INTERNAL\",\n    \"message\": \"An unexpected error occurred.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 500,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry with backoff. If it keeps failing, contact support with the requestId.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/INTERNAL\",\n    \"details\": {}\n  }\n}"},{"name":"503 SERVICE_OVERLOADED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client the account is for. Omitted: the key’s default client, else self.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/channels/connect/:platform","host":["{{baseUrl}}"],"path":["v1","channels","connect",":platform"],"variable":[{"key":"platform","value":"","description":"The network to connect."}]},"body":{"mode":"raw","raw":"{\n  \"redirectUrl\": \"https://app.postpilot.io/connected\",\n  \"channelId\": \"ch_instagram\"\n}","options":{"raw":{"language":"json"}}}},"status":"Service Unavailable","code":503,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"SERVICE_OVERLOADED\",\n    \"message\": \"The API is at capacity and refused this request before doing any work.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 503,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry after the Retry-After interval, with backoff. Nothing was changed.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/SERVICE_OVERLOADED\",\n    \"details\": {}\n  }\n}"}],"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('Returns 200 OK', () => {","  pm.response.to.have.status(200);","});","if (pm.response.code === 200) {","  const schema = {\"type\":\"object\",\"properties\":{\"url\":{\"type\":\"string\"},\"sessionId\":{\"type\":\"string\"},\"expiresAt\":{\"type\":\"string\"}},\"required\":[\"url\",\"sessionId\",\"expiresAt\"]};","  pm.test('Body matches the documented schema', () => {","    pm.response.to.have.jsonSchema(schema);","  });","  const next_sessionId = \"sessionId\".split('.').reduce((value, key) => (value == null ? undefined : value[key]), pm.response.json());","  if (typeof next_sessionId === 'string' && next_sessionId) {","    pm.collectionVariables.set('sessionId', next_sessionId);","  } else {","    console.warn('sessionId not set: sessionId is missing from the response.');","  }","}"]}}]},{"name":"Store X app credentials","request":{"method":"POST","description":"> **Changes data.** Verifies and stores X app credentials. A different `appId` replaces the active X app, and X channels on the previous app must reconnect. In this collection it runs only when `allowWrites` is `true`.\n\n## Connect an X account\n\nDo this once for the workspace. Posts go out through your X app.\n\n1. Open [developer.x.com](https://developer.x.com) and create an app, or open the app you already have.\n2. Open **User authentication settings** and choose **Set up**. Set the app type to **Web App**, so X gives you a client secret.\n3. Set the callback URL to the environment you connect from. It has to match exactly.\n   - Production: `https://luftsocial.com/dashboard/social`\n   - QA: `https://qa.luftsocial.com/dashboard/social`\n   Set the website URL to `https://luftsocial.com` or `https://qa.luftsocial.com`.\n4. Turn on `tweet.read`, `tweet.write`, `users.read`, `offline.access`, `media.write`, `dm.read`, and `dm.write`.\n5. Copy the OAuth 2.0 Client ID and Client Secret.\n6. `POST /v1/channels/x/credentials` with `appId` and `appSecret`. We ask X to accept them before anything is stored. If X rejects them, nothing is saved. The secret is encrypted and is not returned. Posting again with the same `appId` replaces the stored secret after a fresh verify (upsert). A different `appId` becomes the active app and deactivates the previous one: X accounts connected through the previous app must reconnect before they post again, and `affectedCount` in the response says how many (`affectedChannels` is the same number under its old name, deprecated).\n7. Connect the X account from the dashboard. X sends the person back to that callback URL.\n\nNeeds a `write` key.\n\n### Request body\n\n`Content-Type: application/json`. Fields not listed here are rejected with `400 VALIDATION_FAILED`.\n\n| Field | Type | Required | Description |\n| --- | --- | --- | --- |\n| `appId` | string | yes | X app id. Not a secret. min length 1; max length 200 |\n| `appSecret` | string | yes | X app secret. Stored encrypted. Never returned and never logged. min length 1; max length 2000 |\n| `confirmReplace` | boolean | no | Set to true to confirm replacing your current X app with a different one. X channels connected through the current app must reconnect before they publish again. Only checked when replacement confirmation is enforced for the workspace; see 409 X_APP_REPLACEMENT_UNCONFIRMED. |\n\n### Response: 201 Created\n\n| Field | Type | Description |\n| --- | --- | --- |\n| `id` | string |  |\n| `appId` | string |  |\n| `verifiedAt` | string (date-time), nullable |  |\n| `isActive` | boolean |  |\n| `affectedCount` | number, nullable | How many X channels this store marked as needing reconnect: those connected through the X app it replaced. 0 for a first store or a secret rotation of the same app. Null when not reported. |\n| `affectedChannels` | number, nullable | Deprecated: the same number as affectedCount, under its old name. Read affectedCount. deprecated |\n\n### Errors\n\nEvery error uses the shared error body. Each code below has an example on this request.\n\n| Code | HTTP | Retryable | Meaning |\n| --- | --- | --- | --- |\n| `API_KEY_MISSING` | 401 | no | No Authorization header was provided. Include your API key as a Bearer token in the Authorization header. |\n| `API_KEY_INVALID` | 401 | no | The API key is unknown, revoked, or supplied as a query parameter. Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL. |\n| `API_KEY_EXPIRED` | 401 | no | The API key has passed its expiry time. Create a new key in the dashboard and replace this one. |\n| `ACCOUNT_SUSPENDED` | 403 | no | API access for this workspace is not active. Ask the workspace owner to restore the workspace, or contact LuftSocial support. |\n| `PERMISSION_REQUIRED` | 403 | no | This API key is read-only. This operation changes data and needs a write key. Use a write key, or create one in the dashboard. |\n| `CLIENT_NOT_ALLOWED` | 403 | no | This API key is limited to other clients, or the operation covers the whole account. Use a key for this client, or a key for all clients for account-wide routes. |\n| `PLAN_REQUIRED` | 403 | no | Your workspace plan does not permit API access. Upgrade your plan to enable API access. |\n| `VALIDATION_FAILED` | 400 | no | One or more request fields failed validation. Fix the fields listed in details.errors and retry. |\n| `X_APP_REPLACEMENT_UNCONFIRMED` | 409 | no | Storing this X app would replace your current one, and X channels connected through the current app would have to reconnect before they publish again. Resend with confirmReplace: true to replace the app, then reconnect the affected channels with POST /v1/channels/connect/x. To keep them working, store your current app again instead. |\n| `CLIENT_NOT_FOUND` | 404 | no | Client not found or not accessible to this workspace. Check the X-Client-Id header value. |\n| `RATE_LIMITED` | 429 | yes | Too many requests. Slow down and retry after the Retry-After interval. Wait for the Retry-After header value before retrying. |\n| `UPSTREAM_UNAVAILABLE` | 502 | yes | An upstream service is temporarily unavailable. Retry after the Retry-After interval. Retry after the Retry-After interval. |\n| `INTERNAL` | 500 | yes | An unexpected error occurred. Retry with backoff. If it keeps failing, contact support with the requestId. |\n| `SERVICE_OVERLOADED` | 503 | yes | The API is at capacity and refused this request before doing any work. Retry after the Retry-After interval, with backoff. Nothing was changed. |","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/channels/x/credentials","host":["{{baseUrl}}"],"path":["v1","channels","x","credentials"]},"body":{"mode":"raw","raw":"{\n  \"appId\": \"1234567890\",\n  \"appSecret\": \"your-x-app-secret\",\n  \"confirmReplace\": true\n}","options":{"raw":{"language":"json"}}}},"response":[{"name":"201 Created","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/channels/x/credentials","host":["{{baseUrl}}"],"path":["v1","channels","x","credentials"]},"body":{"mode":"raw","raw":"{\n  \"appId\": \"1234567890\",\n  \"appSecret\": \"your-x-app-secret\",\n  \"confirmReplace\": true\n}","options":{"raw":{"language":"json"}}}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"id\": \"xcr_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n  \"appId\": \"1234567890\",\n  \"verifiedAt\": null,\n  \"isActive\": true,\n  \"affectedCount\": 0,\n  \"affectedChannels\": 0\n}"},{"name":"401 API_KEY_MISSING","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/channels/x/credentials","host":["{{baseUrl}}"],"path":["v1","channels","x","credentials"]},"body":{"mode":"raw","raw":"{\n  \"appId\": \"1234567890\",\n  \"appSecret\": \"your-x-app-secret\",\n  \"confirmReplace\": true\n}","options":{"raw":{"language":"json"}}}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_MISSING\",\n    \"message\": \"No Authorization header was provided.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Include your API key as a Bearer token in the Authorization header.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_MISSING\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_INVALID","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/channels/x/credentials","host":["{{baseUrl}}"],"path":["v1","channels","x","credentials"]},"body":{"mode":"raw","raw":"{\n  \"appId\": \"1234567890\",\n  \"appSecret\": \"your-x-app-secret\",\n  \"confirmReplace\": true\n}","options":{"raw":{"language":"json"}}}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_INVALID\",\n    \"message\": \"The API key is unknown, revoked, or supplied as a query parameter.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_INVALID\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_EXPIRED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/channels/x/credentials","host":["{{baseUrl}}"],"path":["v1","channels","x","credentials"]},"body":{"mode":"raw","raw":"{\n  \"appId\": \"1234567890\",\n  \"appSecret\": \"your-x-app-secret\",\n  \"confirmReplace\": true\n}","options":{"raw":{"language":"json"}}}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_EXPIRED\",\n    \"message\": \"The API key has passed its expiry time.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Create a new key in the dashboard and replace this one.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_EXPIRED\",\n    \"details\": {\n      \"expiredAt\": \"2027-01-01T00:00:00.000Z\"\n    }\n  }\n}"},{"name":"403 ACCOUNT_SUSPENDED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/channels/x/credentials","host":["{{baseUrl}}"],"path":["v1","channels","x","credentials"]},"body":{"mode":"raw","raw":"{\n  \"appId\": \"1234567890\",\n  \"appSecret\": \"your-x-app-secret\",\n  \"confirmReplace\": true\n}","options":{"raw":{"language":"json"}}}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"ACCOUNT_SUSPENDED\",\n    \"message\": \"API access for this workspace is not active.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Ask the workspace owner to restore the workspace, or contact LuftSocial support.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/ACCOUNT_SUSPENDED\",\n    \"details\": {}\n  }\n}"},{"name":"403 PERMISSION_REQUIRED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/channels/x/credentials","host":["{{baseUrl}}"],"path":["v1","channels","x","credentials"]},"body":{"mode":"raw","raw":"{\n  \"appId\": \"1234567890\",\n  \"appSecret\": \"your-x-app-secret\",\n  \"confirmReplace\": true\n}","options":{"raw":{"language":"json"}}}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PERMISSION_REQUIRED\",\n    \"message\": \"This API key is read-only. This operation changes data and needs a write key.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a write key, or create one in the dashboard.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PERMISSION_REQUIRED\",\n    \"details\": {\n      \"requiredPermission\": \"write\"\n    }\n  }\n}"},{"name":"403 CLIENT_NOT_ALLOWED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/channels/x/credentials","host":["{{baseUrl}}"],"path":["v1","channels","x","credentials"]},"body":{"mode":"raw","raw":"{\n  \"appId\": \"1234567890\",\n  \"appSecret\": \"your-x-app-secret\",\n  \"confirmReplace\": true\n}","options":{"raw":{"language":"json"}}}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"CLIENT_NOT_ALLOWED\",\n    \"message\": \"This API key is limited to other clients, or the operation covers the whole account.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a key for this client, or a key for all clients for account-wide routes.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/CLIENT_NOT_ALLOWED\",\n    \"details\": {\n      \"clientId\": \"cli_01abc\"\n    }\n  }\n}"},{"name":"403 PLAN_REQUIRED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/channels/x/credentials","host":["{{baseUrl}}"],"path":["v1","channels","x","credentials"]},"body":{"mode":"raw","raw":"{\n  \"appId\": \"1234567890\",\n  \"appSecret\": \"your-x-app-secret\",\n  \"confirmReplace\": true\n}","options":{"raw":{"language":"json"}}}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PLAN_REQUIRED\",\n    \"message\": \"Your workspace plan does not permit API access.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Upgrade your plan to enable API access.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PLAN_REQUIRED\",\n    \"details\": {\n      \"plan\": \"starter\"\n    }\n  }\n}"},{"name":"400 VALIDATION_FAILED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/channels/x/credentials","host":["{{baseUrl}}"],"path":["v1","channels","x","credentials"]},"body":{"mode":"raw","raw":"{\n  \"appId\": \"1234567890\",\n  \"appSecret\": \"your-x-app-secret\",\n  \"confirmReplace\": true\n}","options":{"raw":{"language":"json"}}}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"VALIDATION_FAILED\",\n    \"message\": \"One or more request fields failed validation.\",\n    \"category\": \"VALIDATION\",\n    \"httpStatus\": 400,\n    \"retryable\": false,\n    \"suggestedAction\": \"Fix the fields listed in details.errors and retry.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/VALIDATION_FAILED\",\n    \"details\": {\n      \"errors\": [\n        {\n          \"field\": \"scheduledAt\",\n          \"message\": \"Must be an ISO 8601 datetime in the future.\"\n        }\n      ]\n    }\n  }\n}"},{"name":"409 X_APP_REPLACEMENT_UNCONFIRMED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/channels/x/credentials","host":["{{baseUrl}}"],"path":["v1","channels","x","credentials"]},"body":{"mode":"raw","raw":"{\n  \"appId\": \"1234567890\",\n  \"appSecret\": \"your-x-app-secret\",\n  \"confirmReplace\": true\n}","options":{"raw":{"language":"json"}}}},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"X_APP_REPLACEMENT_UNCONFIRMED\",\n    \"message\": \"Storing this X app would replace your current one, and X channels connected through the current app would have to reconnect before they publish again.\",\n    \"category\": \"CONFLICT\",\n    \"httpStatus\": 409,\n    \"retryable\": false,\n    \"suggestedAction\": \"Resend with confirmReplace: true to replace the app, then reconnect the affected channels with POST /v1/channels/connect/x. To keep them working, store your current app again instead.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/X_APP_REPLACEMENT_UNCONFIRMED\",\n    \"details\": {\n      \"currentAppId\": \"1234567890\",\n      \"affectedCount\": 3,\n      \"affectedChannels\": 3\n    }\n  }\n}"},{"name":"404 CLIENT_NOT_FOUND","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/channels/x/credentials","host":["{{baseUrl}}"],"path":["v1","channels","x","credentials"]},"body":{"mode":"raw","raw":"{\n  \"appId\": \"1234567890\",\n  \"appSecret\": \"your-x-app-secret\",\n  \"confirmReplace\": true\n}","options":{"raw":{"language":"json"}}}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"CLIENT_NOT_FOUND\",\n    \"message\": \"Client not found or not accessible to this workspace.\",\n    \"category\": \"NOT_FOUND\",\n    \"httpStatus\": 404,\n    \"retryable\": false,\n    \"suggestedAction\": \"Check the X-Client-Id header value.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/CLIENT_NOT_FOUND\",\n    \"details\": {\n      \"clientId\": \"cli_01abc\"\n    }\n  }\n}"},{"name":"429 RATE_LIMITED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/channels/x/credentials","host":["{{baseUrl}}"],"path":["v1","channels","x","credentials"]},"body":{"mode":"raw","raw":"{\n  \"appId\": \"1234567890\",\n  \"appSecret\": \"your-x-app-secret\",\n  \"confirmReplace\": true\n}","options":{"raw":{"language":"json"}}}},"status":"Too Many Requests","code":429,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"RATE_LIMITED\",\n    \"message\": \"Too many requests. Slow down and retry after the Retry-After interval.\",\n    \"category\": \"RATE_LIMIT\",\n    \"httpStatus\": 429,\n    \"retryable\": true,\n    \"suggestedAction\": \"Wait for the Retry-After header value before retrying.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/RATE_LIMITED\",\n    \"details\": {\n      \"limit\": 60,\n      \"remaining\": 0\n    }\n  }\n}"},{"name":"502 UPSTREAM_UNAVAILABLE","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/channels/x/credentials","host":["{{baseUrl}}"],"path":["v1","channels","x","credentials"]},"body":{"mode":"raw","raw":"{\n  \"appId\": \"1234567890\",\n  \"appSecret\": \"your-x-app-secret\",\n  \"confirmReplace\": true\n}","options":{"raw":{"language":"json"}}}},"status":"Bad Gateway","code":502,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"UPSTREAM_UNAVAILABLE\",\n    \"message\": \"An upstream service is temporarily unavailable. Retry after the Retry-After interval.\",\n    \"category\": \"UPSTREAM\",\n    \"httpStatus\": 502,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry after the Retry-After interval.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/UPSTREAM_UNAVAILABLE\",\n    \"details\": {}\n  }\n}"},{"name":"500 INTERNAL","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/channels/x/credentials","host":["{{baseUrl}}"],"path":["v1","channels","x","credentials"]},"body":{"mode":"raw","raw":"{\n  \"appId\": \"1234567890\",\n  \"appSecret\": \"your-x-app-secret\",\n  \"confirmReplace\": true\n}","options":{"raw":{"language":"json"}}}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"INTERNAL\",\n    \"message\": \"An unexpected error occurred.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 500,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry with backoff. If it keeps failing, contact support with the requestId.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/INTERNAL\",\n    \"details\": {}\n  }\n}"},{"name":"503 SERVICE_OVERLOADED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/channels/x/credentials","host":["{{baseUrl}}"],"path":["v1","channels","x","credentials"]},"body":{"mode":"raw","raw":"{\n  \"appId\": \"1234567890\",\n  \"appSecret\": \"your-x-app-secret\",\n  \"confirmReplace\": true\n}","options":{"raw":{"language":"json"}}}},"status":"Service Unavailable","code":503,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"SERVICE_OVERLOADED\",\n    \"message\": \"The API is at capacity and refused this request before doing any work.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 503,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry after the Retry-After interval, with backoff. Nothing was changed.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/SERVICE_OVERLOADED\",\n    \"details\": {}\n  }\n}"}],"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('Returns 201 Created', () => {","  pm.response.to.have.status(201);","});","if (pm.response.code === 201) {","  const schema = {\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\"},\"appId\":{\"type\":\"string\"},\"verifiedAt\":{\"type\":[\"string\",\"null\"]},\"isActive\":{\"type\":\"boolean\"},\"affectedCount\":{\"type\":[\"number\",\"null\"]},\"affectedChannels\":{\"type\":[\"number\",\"null\"]}},\"required\":[\"id\",\"appId\",\"verifiedAt\",\"isActive\",\"affectedCount\",\"affectedChannels\"]};","  pm.test('Body matches the documented schema', () => {","    pm.response.to.have.jsonSchema(schema);","  });","}"]}}]},{"name":"List a Pinterest channel's boards","request":{"method":"GET","description":"The boardId values a Pinterest destination may send in platformSpecificParams.boardId (and additionalBoards). Boards come from a 15-minute cache; send refresh=true after creating a board on Pinterest.\n\nWorks with a `read` or `write` key.\n\n### Parameters\n\n| Name | In | Required | Type | Description |\n| --- | --- | --- | --- | --- |\n| `channelId` | path | yes | string |  |\n| `refresh` | query | no | boolean |  |\n\n### Response: 200 OK\n\n| Field | Type | Description |\n| --- | --- | --- |\n| `data` | array of object |  |\n| `data[].boardId` | string | Send as platformSpecificParams.boardId. |\n| `data[].name` | string |  |\n| `data[].privacy` | string, nullable |  |\n| `meta` | object |  |\n| `meta.count` | number |  |\n\n### Errors\n\nEvery error uses the shared error body. Each code below has an example on this request.\n\n| Code | HTTP | Retryable | Meaning |\n| --- | --- | --- | --- |\n| `API_KEY_MISSING` | 401 | no | No Authorization header was provided. Include your API key as a Bearer token in the Authorization header. |\n| `API_KEY_INVALID` | 401 | no | The API key is unknown, revoked, or supplied as a query parameter. Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL. |\n| `API_KEY_EXPIRED` | 401 | no | The API key has passed its expiry time. Create a new key in the dashboard and replace this one. |\n| `ACCOUNT_SUSPENDED` | 403 | no | API access for this workspace is not active. Ask the workspace owner to restore the workspace, or contact LuftSocial support. |\n| `PERMISSION_REQUIRED` | 403 | no | This API key is read-only. This operation changes data and needs a write key. Use a write key, or create one in the dashboard. |\n| `CLIENT_NOT_ALLOWED` | 403 | no | This API key is limited to other clients, or the operation covers the whole account. Use a key for this client, or a key for all clients for account-wide routes. |\n| `PLAN_REQUIRED` | 403 | no | Your workspace plan does not permit API access. Upgrade your plan to enable API access. |\n| `CHANNEL_NOT_FOUND` | 404 | no | Channel not found or not accessible to this workspace. Check the channel ID and that it belongs to this workspace. |\n| `CHANNEL_NOT_CONNECTED` | 409 | no | This channel is disconnected or needs to be reconnected. Connect the account again with POST /v1/channels/connect/{platform} (send channelId when GET /v1/channels still lists the channel), then retry. |\n| `VALIDATION_FAILED` | 400 | no | One or more request fields failed validation. Fix the fields listed in details.errors and retry. |\n| `RATE_LIMITED` | 429 | yes | Too many requests. Slow down and retry after the Retry-After interval. Wait for the Retry-After header value before retrying. |\n| `MONTHLY_QUOTA_EXCEEDED` | 429 | no | Your monthly API call quota has been reached. Wait until the quota resets at the start of next month, or upgrade your plan. |\n| `UPSTREAM_UNAVAILABLE` | 502 | yes | An upstream service is temporarily unavailable. Retry after the Retry-After interval. Retry after the Retry-After interval. |\n| `INTERNAL` | 500 | yes | An unexpected error occurred. Retry with backoff. If it keeps failing, contact support with the requestId. |\n| `SERVICE_OVERLOADED` | 503 | yes | The API is at capacity and refused this request before doing any work. Retry after the Retry-After interval, with backoff. Nothing was changed. |","header":[],"url":{"raw":"{{baseUrl}}/v1/channels/:channelId/boards","host":["{{baseUrl}}"],"path":["v1","channels",":channelId","boards"],"query":[{"key":"refresh","value":"","disabled":true}],"variable":[{"key":"channelId","value":"{{channelId}}"}]}},"response":[{"name":"200 OK","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/channels/:channelId/boards","host":["{{baseUrl}}"],"path":["v1","channels",":channelId","boards"],"query":[{"key":"refresh","value":"","disabled":true}],"variable":[{"key":"channelId","value":"{{channelId}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"data\": [\n    {\n      \"boardId\": \"1029384756\",\n      \"name\": \"Recipes\",\n      \"privacy\": \"PUBLIC\"\n    }\n  ],\n  \"meta\": {\n    \"count\": 1\n  }\n}"},{"name":"401 API_KEY_MISSING","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/channels/:channelId/boards","host":["{{baseUrl}}"],"path":["v1","channels",":channelId","boards"],"query":[{"key":"refresh","value":"","disabled":true}],"variable":[{"key":"channelId","value":"{{channelId}}"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_MISSING\",\n    \"message\": \"No Authorization header was provided.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Include your API key as a Bearer token in the Authorization header.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_MISSING\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_INVALID","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/channels/:channelId/boards","host":["{{baseUrl}}"],"path":["v1","channels",":channelId","boards"],"query":[{"key":"refresh","value":"","disabled":true}],"variable":[{"key":"channelId","value":"{{channelId}}"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_INVALID\",\n    \"message\": \"The API key is unknown, revoked, or supplied as a query parameter.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_INVALID\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_EXPIRED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/channels/:channelId/boards","host":["{{baseUrl}}"],"path":["v1","channels",":channelId","boards"],"query":[{"key":"refresh","value":"","disabled":true}],"variable":[{"key":"channelId","value":"{{channelId}}"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_EXPIRED\",\n    \"message\": \"The API key has passed its expiry time.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Create a new key in the dashboard and replace this one.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_EXPIRED\",\n    \"details\": {\n      \"expiredAt\": \"2027-01-01T00:00:00.000Z\"\n    }\n  }\n}"},{"name":"403 ACCOUNT_SUSPENDED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/channels/:channelId/boards","host":["{{baseUrl}}"],"path":["v1","channels",":channelId","boards"],"query":[{"key":"refresh","value":"","disabled":true}],"variable":[{"key":"channelId","value":"{{channelId}}"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"ACCOUNT_SUSPENDED\",\n    \"message\": \"API access for this workspace is not active.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Ask the workspace owner to restore the workspace, or contact LuftSocial support.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/ACCOUNT_SUSPENDED\",\n    \"details\": {}\n  }\n}"},{"name":"403 PERMISSION_REQUIRED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/channels/:channelId/boards","host":["{{baseUrl}}"],"path":["v1","channels",":channelId","boards"],"query":[{"key":"refresh","value":"","disabled":true}],"variable":[{"key":"channelId","value":"{{channelId}}"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PERMISSION_REQUIRED\",\n    \"message\": \"This API key is read-only. This operation changes data and needs a write key.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a write key, or create one in the dashboard.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PERMISSION_REQUIRED\",\n    \"details\": {\n      \"requiredPermission\": \"write\"\n    }\n  }\n}"},{"name":"403 CLIENT_NOT_ALLOWED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/channels/:channelId/boards","host":["{{baseUrl}}"],"path":["v1","channels",":channelId","boards"],"query":[{"key":"refresh","value":"","disabled":true}],"variable":[{"key":"channelId","value":"{{channelId}}"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"CLIENT_NOT_ALLOWED\",\n    \"message\": \"This API key is limited to other clients, or the operation covers the whole account.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a key for this client, or a key for all clients for account-wide routes.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/CLIENT_NOT_ALLOWED\",\n    \"details\": {\n      \"clientId\": \"cli_01abc\"\n    }\n  }\n}"},{"name":"403 PLAN_REQUIRED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/channels/:channelId/boards","host":["{{baseUrl}}"],"path":["v1","channels",":channelId","boards"],"query":[{"key":"refresh","value":"","disabled":true}],"variable":[{"key":"channelId","value":"{{channelId}}"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PLAN_REQUIRED\",\n    \"message\": \"Your workspace plan does not permit API access.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Upgrade your plan to enable API access.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PLAN_REQUIRED\",\n    \"details\": {\n      \"plan\": \"starter\"\n    }\n  }\n}"},{"name":"404 CHANNEL_NOT_FOUND","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/channels/:channelId/boards","host":["{{baseUrl}}"],"path":["v1","channels",":channelId","boards"],"query":[{"key":"refresh","value":"","disabled":true}],"variable":[{"key":"channelId","value":"{{channelId}}"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"CHANNEL_NOT_FOUND\",\n    \"message\": \"Channel not found or not accessible to this workspace.\",\n    \"category\": \"NOT_FOUND\",\n    \"httpStatus\": 404,\n    \"retryable\": false,\n    \"suggestedAction\": \"Check the channel ID and that it belongs to this workspace.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/CHANNEL_NOT_FOUND\",\n    \"details\": {\n      \"channelId\": \"ch_01abc\"\n    }\n  }\n}"},{"name":"409 CHANNEL_NOT_CONNECTED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/channels/:channelId/boards","host":["{{baseUrl}}"],"path":["v1","channels",":channelId","boards"],"query":[{"key":"refresh","value":"","disabled":true}],"variable":[{"key":"channelId","value":"{{channelId}}"}]}},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"CHANNEL_NOT_CONNECTED\",\n    \"message\": \"This channel is disconnected or needs to be reconnected.\",\n    \"category\": \"CONFLICT\",\n    \"httpStatus\": 409,\n    \"retryable\": false,\n    \"suggestedAction\": \"Connect the account again with POST /v1/channels/connect/{platform} (send channelId when GET /v1/channels still lists the channel), then retry.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/CHANNEL_NOT_CONNECTED\",\n    \"details\": {\n      \"channelId\": \"ch_01abc\"\n    }\n  }\n}"},{"name":"400 VALIDATION_FAILED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/channels/:channelId/boards","host":["{{baseUrl}}"],"path":["v1","channels",":channelId","boards"],"query":[{"key":"refresh","value":"","disabled":true}],"variable":[{"key":"channelId","value":"{{channelId}}"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"VALIDATION_FAILED\",\n    \"message\": \"One or more request fields failed validation.\",\n    \"category\": \"VALIDATION\",\n    \"httpStatus\": 400,\n    \"retryable\": false,\n    \"suggestedAction\": \"Fix the fields listed in details.errors and retry.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/VALIDATION_FAILED\",\n    \"details\": {\n      \"errors\": [\n        {\n          \"field\": \"scheduledAt\",\n          \"message\": \"Must be an ISO 8601 datetime in the future.\"\n        }\n      ]\n    }\n  }\n}"},{"name":"429 RATE_LIMITED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/channels/:channelId/boards","host":["{{baseUrl}}"],"path":["v1","channels",":channelId","boards"],"query":[{"key":"refresh","value":"","disabled":true}],"variable":[{"key":"channelId","value":"{{channelId}}"}]}},"status":"Too Many Requests","code":429,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"RATE_LIMITED\",\n    \"message\": \"Too many requests. Slow down and retry after the Retry-After interval.\",\n    \"category\": \"RATE_LIMIT\",\n    \"httpStatus\": 429,\n    \"retryable\": true,\n    \"suggestedAction\": \"Wait for the Retry-After header value before retrying.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/RATE_LIMITED\",\n    \"details\": {\n      \"limit\": 60,\n      \"remaining\": 0\n    }\n  }\n}"},{"name":"429 MONTHLY_QUOTA_EXCEEDED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/channels/:channelId/boards","host":["{{baseUrl}}"],"path":["v1","channels",":channelId","boards"],"query":[{"key":"refresh","value":"","disabled":true}],"variable":[{"key":"channelId","value":"{{channelId}}"}]}},"status":"Too Many Requests","code":429,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"MONTHLY_QUOTA_EXCEEDED\",\n    \"message\": \"Your monthly API call quota has been reached.\",\n    \"category\": \"RATE_LIMIT\",\n    \"httpStatus\": 429,\n    \"retryable\": false,\n    \"suggestedAction\": \"Wait until the quota resets at the start of next month, or upgrade your plan.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/MONTHLY_QUOTA_EXCEEDED\",\n    \"details\": {\n      \"limit\": 25000,\n      \"remaining\": 0\n    }\n  }\n}"},{"name":"502 UPSTREAM_UNAVAILABLE","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/channels/:channelId/boards","host":["{{baseUrl}}"],"path":["v1","channels",":channelId","boards"],"query":[{"key":"refresh","value":"","disabled":true}],"variable":[{"key":"channelId","value":"{{channelId}}"}]}},"status":"Bad Gateway","code":502,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"UPSTREAM_UNAVAILABLE\",\n    \"message\": \"An upstream service is temporarily unavailable. Retry after the Retry-After interval.\",\n    \"category\": \"UPSTREAM\",\n    \"httpStatus\": 502,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry after the Retry-After interval.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/UPSTREAM_UNAVAILABLE\",\n    \"details\": {}\n  }\n}"},{"name":"500 INTERNAL","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/channels/:channelId/boards","host":["{{baseUrl}}"],"path":["v1","channels",":channelId","boards"],"query":[{"key":"refresh","value":"","disabled":true}],"variable":[{"key":"channelId","value":"{{channelId}}"}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"INTERNAL\",\n    \"message\": \"An unexpected error occurred.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 500,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry with backoff. If it keeps failing, contact support with the requestId.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/INTERNAL\",\n    \"details\": {}\n  }\n}"},{"name":"503 SERVICE_OVERLOADED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/channels/:channelId/boards","host":["{{baseUrl}}"],"path":["v1","channels",":channelId","boards"],"query":[{"key":"refresh","value":"","disabled":true}],"variable":[{"key":"channelId","value":"{{channelId}}"}]}},"status":"Service Unavailable","code":503,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"SERVICE_OVERLOADED\",\n    \"message\": \"The API is at capacity and refused this request before doing any work.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 503,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry after the Retry-After interval, with backoff. Nothing was changed.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/SERVICE_OVERLOADED\",\n    \"details\": {}\n  }\n}"}],"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('Returns 200 OK', () => {","  pm.response.to.have.status(200);","});","if (pm.response.code === 200) {","  const schema = {\"type\":\"object\",\"properties\":{\"data\":{\"type\":\"array\",\"items\":{\"type\":\"object\",\"properties\":{\"boardId\":{\"type\":\"string\"},\"name\":{\"type\":\"string\"},\"privacy\":{\"type\":[\"string\",\"null\"]}},\"required\":[\"boardId\",\"name\",\"privacy\"]}},\"meta\":{\"type\":\"object\",\"properties\":{\"count\":{\"type\":\"number\"}}}},\"required\":[\"data\",\"meta\"]};","  pm.test('Body matches the documented schema', () => {","    pm.response.to.have.jsonSchema(schema);","  });","}"]}}]},{"name":"Disconnect a channel","request":{"method":"DELETE","description":"> **Changes data.** Disconnects the channel from LuftSocial. In this collection it runs only when `allowWrites` is `true`.\n\nNeeds a `write` key.\n\n### Parameters\n\n| Name | In | Required | Type | Description |\n| --- | --- | --- | --- | --- |\n| `channelId` | path | yes | string |  |\n\n### Response: 200 OK\n\n| Field | Type | Description |\n| --- | --- | --- |\n| `status` | string |  |\n\n### Errors\n\nEvery error uses the shared error body. Each code below has an example on this request.\n\n| Code | HTTP | Retryable | Meaning |\n| --- | --- | --- | --- |\n| `API_KEY_MISSING` | 401 | no | No Authorization header was provided. Include your API key as a Bearer token in the Authorization header. |\n| `API_KEY_INVALID` | 401 | no | The API key is unknown, revoked, or supplied as a query parameter. Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL. |\n| `API_KEY_EXPIRED` | 401 | no | The API key has passed its expiry time. Create a new key in the dashboard and replace this one. |\n| `ACCOUNT_SUSPENDED` | 403 | no | API access for this workspace is not active. Ask the workspace owner to restore the workspace, or contact LuftSocial support. |\n| `PERMISSION_REQUIRED` | 403 | no | This API key is read-only. This operation changes data and needs a write key. Use a write key, or create one in the dashboard. |\n| `CLIENT_NOT_ALLOWED` | 403 | no | This API key is limited to other clients, or the operation covers the whole account. Use a key for this client, or a key for all clients for account-wide routes. |\n| `PLAN_REQUIRED` | 403 | no | Your workspace plan does not permit API access. Upgrade your plan to enable API access. |\n| `CLIENT_NOT_FOUND` | 404 | no | Client not found or not accessible to this workspace. Check the X-Client-Id header value. |\n| `CHANNEL_NOT_FOUND` | 404 | no | Channel not found or not accessible to this workspace. Check the channel ID and that it belongs to this workspace. |\n| `RATE_LIMITED` | 429 | yes | Too many requests. Slow down and retry after the Retry-After interval. Wait for the Retry-After header value before retrying. |\n| `UPSTREAM_UNAVAILABLE` | 502 | yes | An upstream service is temporarily unavailable. Retry after the Retry-After interval. Retry after the Retry-After interval. |\n| `INTERNAL` | 500 | yes | An unexpected error occurred. Retry with backoff. If it keeps failing, contact support with the requestId. |\n| `SERVICE_OVERLOADED` | 503 | yes | The API is at capacity and refused this request before doing any work. Retry after the Retry-After interval, with backoff. Nothing was changed. |","header":[],"url":{"raw":"{{baseUrl}}/v1/channels/:channelId","host":["{{baseUrl}}"],"path":["v1","channels",":channelId"],"variable":[{"key":"channelId","value":"{{channelId}}"}]}},"response":[{"name":"200 OK","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{baseUrl}}/v1/channels/:channelId","host":["{{baseUrl}}"],"path":["v1","channels",":channelId"],"variable":[{"key":"channelId","value":"{{channelId}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"status\": \"disconnected\"\n}"},{"name":"401 API_KEY_MISSING","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{baseUrl}}/v1/channels/:channelId","host":["{{baseUrl}}"],"path":["v1","channels",":channelId"],"variable":[{"key":"channelId","value":"{{channelId}}"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_MISSING\",\n    \"message\": \"No Authorization header was provided.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Include your API key as a Bearer token in the Authorization header.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_MISSING\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_INVALID","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{baseUrl}}/v1/channels/:channelId","host":["{{baseUrl}}"],"path":["v1","channels",":channelId"],"variable":[{"key":"channelId","value":"{{channelId}}"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_INVALID\",\n    \"message\": \"The API key is unknown, revoked, or supplied as a query parameter.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_INVALID\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_EXPIRED","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{baseUrl}}/v1/channels/:channelId","host":["{{baseUrl}}"],"path":["v1","channels",":channelId"],"variable":[{"key":"channelId","value":"{{channelId}}"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_EXPIRED\",\n    \"message\": \"The API key has passed its expiry time.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Create a new key in the dashboard and replace this one.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_EXPIRED\",\n    \"details\": {\n      \"expiredAt\": \"2027-01-01T00:00:00.000Z\"\n    }\n  }\n}"},{"name":"403 ACCOUNT_SUSPENDED","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{baseUrl}}/v1/channels/:channelId","host":["{{baseUrl}}"],"path":["v1","channels",":channelId"],"variable":[{"key":"channelId","value":"{{channelId}}"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"ACCOUNT_SUSPENDED\",\n    \"message\": \"API access for this workspace is not active.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Ask the workspace owner to restore the workspace, or contact LuftSocial support.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/ACCOUNT_SUSPENDED\",\n    \"details\": {}\n  }\n}"},{"name":"403 PERMISSION_REQUIRED","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{baseUrl}}/v1/channels/:channelId","host":["{{baseUrl}}"],"path":["v1","channels",":channelId"],"variable":[{"key":"channelId","value":"{{channelId}}"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PERMISSION_REQUIRED\",\n    \"message\": \"This API key is read-only. This operation changes data and needs a write key.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a write key, or create one in the dashboard.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PERMISSION_REQUIRED\",\n    \"details\": {\n      \"requiredPermission\": \"write\"\n    }\n  }\n}"},{"name":"403 CLIENT_NOT_ALLOWED","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{baseUrl}}/v1/channels/:channelId","host":["{{baseUrl}}"],"path":["v1","channels",":channelId"],"variable":[{"key":"channelId","value":"{{channelId}}"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"CLIENT_NOT_ALLOWED\",\n    \"message\": \"This API key is limited to other clients, or the operation covers the whole account.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a key for this client, or a key for all clients for account-wide routes.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/CLIENT_NOT_ALLOWED\",\n    \"details\": {\n      \"clientId\": \"cli_01abc\"\n    }\n  }\n}"},{"name":"403 PLAN_REQUIRED","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{baseUrl}}/v1/channels/:channelId","host":["{{baseUrl}}"],"path":["v1","channels",":channelId"],"variable":[{"key":"channelId","value":"{{channelId}}"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PLAN_REQUIRED\",\n    \"message\": \"Your workspace plan does not permit API access.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Upgrade your plan to enable API access.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PLAN_REQUIRED\",\n    \"details\": {\n      \"plan\": \"starter\"\n    }\n  }\n}"},{"name":"404 CLIENT_NOT_FOUND","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{baseUrl}}/v1/channels/:channelId","host":["{{baseUrl}}"],"path":["v1","channels",":channelId"],"variable":[{"key":"channelId","value":"{{channelId}}"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"CLIENT_NOT_FOUND\",\n    \"message\": \"Client not found or not accessible to this workspace.\",\n    \"category\": \"NOT_FOUND\",\n    \"httpStatus\": 404,\n    \"retryable\": false,\n    \"suggestedAction\": \"Check the X-Client-Id header value.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/CLIENT_NOT_FOUND\",\n    \"details\": {\n      \"clientId\": \"cli_01abc\"\n    }\n  }\n}"},{"name":"404 CHANNEL_NOT_FOUND","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{baseUrl}}/v1/channels/:channelId","host":["{{baseUrl}}"],"path":["v1","channels",":channelId"],"variable":[{"key":"channelId","value":"{{channelId}}"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"CHANNEL_NOT_FOUND\",\n    \"message\": \"Channel not found or not accessible to this workspace.\",\n    \"category\": \"NOT_FOUND\",\n    \"httpStatus\": 404,\n    \"retryable\": false,\n    \"suggestedAction\": \"Check the channel ID and that it belongs to this workspace.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/CHANNEL_NOT_FOUND\",\n    \"details\": {\n      \"channelId\": \"ch_01abc\"\n    }\n  }\n}"},{"name":"429 RATE_LIMITED","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{baseUrl}}/v1/channels/:channelId","host":["{{baseUrl}}"],"path":["v1","channels",":channelId"],"variable":[{"key":"channelId","value":"{{channelId}}"}]}},"status":"Too Many Requests","code":429,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"RATE_LIMITED\",\n    \"message\": \"Too many requests. Slow down and retry after the Retry-After interval.\",\n    \"category\": \"RATE_LIMIT\",\n    \"httpStatus\": 429,\n    \"retryable\": true,\n    \"suggestedAction\": \"Wait for the Retry-After header value before retrying.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/RATE_LIMITED\",\n    \"details\": {\n      \"limit\": 60,\n      \"remaining\": 0\n    }\n  }\n}"},{"name":"502 UPSTREAM_UNAVAILABLE","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{baseUrl}}/v1/channels/:channelId","host":["{{baseUrl}}"],"path":["v1","channels",":channelId"],"variable":[{"key":"channelId","value":"{{channelId}}"}]}},"status":"Bad Gateway","code":502,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"UPSTREAM_UNAVAILABLE\",\n    \"message\": \"An upstream service is temporarily unavailable. Retry after the Retry-After interval.\",\n    \"category\": \"UPSTREAM\",\n    \"httpStatus\": 502,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry after the Retry-After interval.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/UPSTREAM_UNAVAILABLE\",\n    \"details\": {}\n  }\n}"},{"name":"500 INTERNAL","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{baseUrl}}/v1/channels/:channelId","host":["{{baseUrl}}"],"path":["v1","channels",":channelId"],"variable":[{"key":"channelId","value":"{{channelId}}"}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"INTERNAL\",\n    \"message\": \"An unexpected error occurred.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 500,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry with backoff. If it keeps failing, contact support with the requestId.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/INTERNAL\",\n    \"details\": {}\n  }\n}"},{"name":"503 SERVICE_OVERLOADED","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{baseUrl}}/v1/channels/:channelId","host":["{{baseUrl}}"],"path":["v1","channels",":channelId"],"variable":[{"key":"channelId","value":"{{channelId}}"}]}},"status":"Service Unavailable","code":503,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"SERVICE_OVERLOADED\",\n    \"message\": \"The API is at capacity and refused this request before doing any work.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 503,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry after the Retry-After interval, with backoff. Nothing was changed.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/SERVICE_OVERLOADED\",\n    \"details\": {}\n  }\n}"}],"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('Returns 200 OK', () => {","  pm.response.to.have.status(200);","});","if (pm.response.code === 200) {","  const schema = {\"type\":\"object\",\"properties\":{\"status\":{\"type\":\"string\"}},\"required\":[\"status\"]};","  pm.test('Body matches the documented schema', () => {","    pm.response.to.have.jsonSchema(schema);","  });","}"]}}]},{"name":"Get a connect session","request":{"method":"GET","description":"How a hosted connect link ended, or where it is. The channel id is set once it completes.\n\nWorks with a `read` or `write` key.\n\n### Parameters\n\n| Name | In | Required | Type | Description |\n| --- | --- | --- | --- | --- |\n| `sessionId` | path | yes | string |  |\n\n### Response: 200 OK\n\n| Field | Type | Description |\n| --- | --- | --- |\n| `id` | string (uuid) |  |\n| `status` | enum | pending: link not opened yet. started: the customer is on the network. completed, failed, expired: final. One of: `pending`, `started`, `completed`, `failed`, `expired` |\n| `platform` | string |  |\n| `clientId` | string |  |\n| `channelId` | string, nullable |  |\n| `errorCode` | string, nullable | When failed: denied, expired, SLOT_LIMIT_REACHED, ACCOUNT_ALREADY_CONNECTED, ACCOUNT_ON_ANOTHER_CLIENT (the account is already connected for another of your clients), RECONNECT_ACCOUNT_MISMATCH, INSTAGRAM_NO_PAGE (the Instagram account is not a professional account linked to a Facebook Page, or the Page was not shared), X_RATE_LIMITED (X is limiting requests; send a new link in a few minutes), X_OAUTH_CLIENT_CHANGED (your X app changed during the connect; start a new link) or provider_error. |\n| `expiresAt` | string (date-time) |  |\n| `createdAt` | string (date-time) |  |\n| `completedAt` | string (date-time), nullable |  |\n\n### Errors\n\nEvery error uses the shared error body. Each code below has an example on this request.\n\n| Code | HTTP | Retryable | Meaning |\n| --- | --- | --- | --- |\n| `API_KEY_MISSING` | 401 | no | No Authorization header was provided. Include your API key as a Bearer token in the Authorization header. |\n| `API_KEY_INVALID` | 401 | no | The API key is unknown, revoked, or supplied as a query parameter. Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL. |\n| `API_KEY_EXPIRED` | 401 | no | The API key has passed its expiry time. Create a new key in the dashboard and replace this one. |\n| `PERMISSION_REQUIRED` | 403 | no | This API key is read-only. This operation changes data and needs a write key. Use a write key, or create one in the dashboard. |\n| `CLIENT_NOT_ALLOWED` | 403 | no | This API key is limited to other clients, or the operation covers the whole account. Use a key for this client, or a key for all clients for account-wide routes. |\n| `PLAN_REQUIRED` | 403 | no | Your workspace plan does not permit API access. Upgrade your plan to enable API access. |\n| `CONNECT_SESSION_NOT_FOUND` | 404 | no | Connect session not found or not accessible to this key. Use the sessionId returned by POST /v1/channels/connect/{platform}. |\n| `RATE_LIMITED` | 429 | yes | Too many requests. Slow down and retry after the Retry-After interval. Wait for the Retry-After header value before retrying. |\n| `UPSTREAM_UNAVAILABLE` | 502 | yes | An upstream service is temporarily unavailable. Retry after the Retry-After interval. Retry after the Retry-After interval. |\n| `INTERNAL` | 500 | yes | An unexpected error occurred. Retry with backoff. If it keeps failing, contact support with the requestId. |\n| `SERVICE_OVERLOADED` | 503 | yes | The API is at capacity and refused this request before doing any work. Retry after the Retry-After interval, with backoff. Nothing was changed. |","header":[],"url":{"raw":"{{baseUrl}}/v1/connect/sessions/:sessionId","host":["{{baseUrl}}"],"path":["v1","connect","sessions",":sessionId"],"variable":[{"key":"sessionId","value":"{{sessionId}}"}]}},"response":[{"name":"200 OK","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/connect/sessions/:sessionId","host":["{{baseUrl}}"],"path":["v1","connect","sessions",":sessionId"],"variable":[{"key":"sessionId","value":"{{sessionId}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"id\": \"9a1f0c2e-5b7d-4e8a-9c3f-1d2e3f4a5b6c\",\n  \"status\": \"pending\",\n  \"platform\": \"instagram\",\n  \"clientId\": \"cli_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n  \"channelId\": \"ch_instagram\",\n  \"errorCode\": null,\n  \"expiresAt\": \"2026-11-12T09:30:00.000Z\",\n  \"createdAt\": \"2026-11-12T09:30:00.000Z\",\n  \"completedAt\": null\n}"},{"name":"401 API_KEY_MISSING","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/connect/sessions/:sessionId","host":["{{baseUrl}}"],"path":["v1","connect","sessions",":sessionId"],"variable":[{"key":"sessionId","value":"{{sessionId}}"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_MISSING\",\n    \"message\": \"No Authorization header was provided.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Include your API key as a Bearer token in the Authorization header.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_MISSING\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_INVALID","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/connect/sessions/:sessionId","host":["{{baseUrl}}"],"path":["v1","connect","sessions",":sessionId"],"variable":[{"key":"sessionId","value":"{{sessionId}}"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_INVALID\",\n    \"message\": \"The API key is unknown, revoked, or supplied as a query parameter.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_INVALID\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_EXPIRED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/connect/sessions/:sessionId","host":["{{baseUrl}}"],"path":["v1","connect","sessions",":sessionId"],"variable":[{"key":"sessionId","value":"{{sessionId}}"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_EXPIRED\",\n    \"message\": \"The API key has passed its expiry time.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Create a new key in the dashboard and replace this one.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_EXPIRED\",\n    \"details\": {\n      \"expiredAt\": \"2027-01-01T00:00:00.000Z\"\n    }\n  }\n}"},{"name":"403 PERMISSION_REQUIRED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/connect/sessions/:sessionId","host":["{{baseUrl}}"],"path":["v1","connect","sessions",":sessionId"],"variable":[{"key":"sessionId","value":"{{sessionId}}"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PERMISSION_REQUIRED\",\n    \"message\": \"This API key is read-only. This operation changes data and needs a write key.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a write key, or create one in the dashboard.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PERMISSION_REQUIRED\",\n    \"details\": {\n      \"requiredPermission\": \"write\"\n    }\n  }\n}"},{"name":"403 CLIENT_NOT_ALLOWED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/connect/sessions/:sessionId","host":["{{baseUrl}}"],"path":["v1","connect","sessions",":sessionId"],"variable":[{"key":"sessionId","value":"{{sessionId}}"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"CLIENT_NOT_ALLOWED\",\n    \"message\": \"This API key is limited to other clients, or the operation covers the whole account.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a key for this client, or a key for all clients for account-wide routes.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/CLIENT_NOT_ALLOWED\",\n    \"details\": {\n      \"clientId\": \"cli_01abc\"\n    }\n  }\n}"},{"name":"403 PLAN_REQUIRED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/connect/sessions/:sessionId","host":["{{baseUrl}}"],"path":["v1","connect","sessions",":sessionId"],"variable":[{"key":"sessionId","value":"{{sessionId}}"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PLAN_REQUIRED\",\n    \"message\": \"Your workspace plan does not permit API access.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Upgrade your plan to enable API access.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PLAN_REQUIRED\",\n    \"details\": {\n      \"plan\": \"starter\"\n    }\n  }\n}"},{"name":"404 CONNECT_SESSION_NOT_FOUND","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/connect/sessions/:sessionId","host":["{{baseUrl}}"],"path":["v1","connect","sessions",":sessionId"],"variable":[{"key":"sessionId","value":"{{sessionId}}"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"CONNECT_SESSION_NOT_FOUND\",\n    \"message\": \"Connect session not found or not accessible to this key.\",\n    \"category\": \"NOT_FOUND\",\n    \"httpStatus\": 404,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use the sessionId returned by POST /v1/channels/connect/{platform}.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/CONNECT_SESSION_NOT_FOUND\",\n    \"details\": {\n      \"sessionId\": \"9a1f0c2e-5b7d-4e8a-9c3f-1d2e3f4a5b6c\"\n    }\n  }\n}"},{"name":"429 RATE_LIMITED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/connect/sessions/:sessionId","host":["{{baseUrl}}"],"path":["v1","connect","sessions",":sessionId"],"variable":[{"key":"sessionId","value":"{{sessionId}}"}]}},"status":"Too Many Requests","code":429,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"RATE_LIMITED\",\n    \"message\": \"Too many requests. Slow down and retry after the Retry-After interval.\",\n    \"category\": \"RATE_LIMIT\",\n    \"httpStatus\": 429,\n    \"retryable\": true,\n    \"suggestedAction\": \"Wait for the Retry-After header value before retrying.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/RATE_LIMITED\",\n    \"details\": {\n      \"limit\": 60,\n      \"remaining\": 0\n    }\n  }\n}"},{"name":"502 UPSTREAM_UNAVAILABLE","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/connect/sessions/:sessionId","host":["{{baseUrl}}"],"path":["v1","connect","sessions",":sessionId"],"variable":[{"key":"sessionId","value":"{{sessionId}}"}]}},"status":"Bad Gateway","code":502,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"UPSTREAM_UNAVAILABLE\",\n    \"message\": \"An upstream service is temporarily unavailable. Retry after the Retry-After interval.\",\n    \"category\": \"UPSTREAM\",\n    \"httpStatus\": 502,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry after the Retry-After interval.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/UPSTREAM_UNAVAILABLE\",\n    \"details\": {}\n  }\n}"},{"name":"500 INTERNAL","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/connect/sessions/:sessionId","host":["{{baseUrl}}"],"path":["v1","connect","sessions",":sessionId"],"variable":[{"key":"sessionId","value":"{{sessionId}}"}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"INTERNAL\",\n    \"message\": \"An unexpected error occurred.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 500,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry with backoff. If it keeps failing, contact support with the requestId.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/INTERNAL\",\n    \"details\": {}\n  }\n}"},{"name":"503 SERVICE_OVERLOADED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/connect/sessions/:sessionId","host":["{{baseUrl}}"],"path":["v1","connect","sessions",":sessionId"],"variable":[{"key":"sessionId","value":"{{sessionId}}"}]}},"status":"Service Unavailable","code":503,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"SERVICE_OVERLOADED\",\n    \"message\": \"The API is at capacity and refused this request before doing any work.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 503,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry after the Retry-After interval, with backoff. Nothing was changed.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/SERVICE_OVERLOADED\",\n    \"details\": {}\n  }\n}"}],"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('Returns 200 OK', () => {","  pm.response.to.have.status(200);","});","if (pm.response.code === 200) {","  const schema = {\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\"},\"status\":{\"type\":\"string\",\"enum\":[\"pending\",\"started\",\"completed\",\"failed\",\"expired\"]},\"platform\":{\"type\":\"string\"},\"clientId\":{\"type\":\"string\"},\"channelId\":{\"type\":[\"string\",\"null\"]},\"errorCode\":{\"type\":[\"string\",\"null\"]},\"expiresAt\":{\"type\":\"string\"},\"createdAt\":{\"type\":\"string\"},\"completedAt\":{\"type\":[\"string\",\"null\"]}},\"required\":[\"id\",\"status\",\"platform\",\"clientId\",\"channelId\",\"errorCode\",\"expiresAt\",\"createdAt\",\"completedAt\"]};","  pm.test('Body matches the documented schema', () => {","    pm.response.to.have.jsonSchema(schema);","  });","}"]}}]}]},{"name":"Clients","description":"Your customers. Each client has its own channels, media, and posts. Your own accounts are on self.","item":[{"name":"List clients","request":{"method":"GET","description":"Works with a `read` or `write` key.\n\n### Response: 200 OK\n\n| Field | Type | Description |\n| --- | --- | --- |\n| `data` | array of object |  |\n| `data[].id` | string |  |\n| `data[].name` | string |  |\n| `data[].slug` | string |  |\n| `meta` | object |  |\n| `meta.count` | number |  |\n\n### Errors\n\nEvery error uses the shared error body. Each code below has an example on this request.\n\n| Code | HTTP | Retryable | Meaning |\n| --- | --- | --- | --- |\n| `API_KEY_MISSING` | 401 | no | No Authorization header was provided. Include your API key as a Bearer token in the Authorization header. |\n| `API_KEY_INVALID` | 401 | no | The API key is unknown, revoked, or supplied as a query parameter. Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL. |\n| `API_KEY_EXPIRED` | 401 | no | The API key has passed its expiry time. Create a new key in the dashboard and replace this one. |\n| `ACCOUNT_SUSPENDED` | 403 | no | API access for this workspace is not active. Ask the workspace owner to restore the workspace, or contact LuftSocial support. |\n| `PERMISSION_REQUIRED` | 403 | no | This API key is read-only. This operation changes data and needs a write key. Use a write key, or create one in the dashboard. |\n| `CLIENT_NOT_ALLOWED` | 403 | no | This API key is limited to other clients, or the operation covers the whole account. Use a key for this client, or a key for all clients for account-wide routes. |\n| `PLAN_REQUIRED` | 403 | no | Your workspace plan does not permit API access. Upgrade your plan to enable API access. |\n| `RATE_LIMITED` | 429 | yes | Too many requests. Slow down and retry after the Retry-After interval. Wait for the Retry-After header value before retrying. |\n| `MONTHLY_QUOTA_EXCEEDED` | 429 | no | Your monthly API call quota has been reached. Wait until the quota resets at the start of next month, or upgrade your plan. |\n| `INTERNAL` | 500 | yes | An unexpected error occurred. Retry with backoff. If it keeps failing, contact support with the requestId. |\n| `SERVICE_OVERLOADED` | 503 | yes | The API is at capacity and refused this request before doing any work. Retry after the Retry-After interval, with backoff. Nothing was changed. |","header":[],"url":{"raw":"{{baseUrl}}/v1/clients","host":["{{baseUrl}}"],"path":["v1","clients"]}},"response":[{"name":"200 OK","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/clients","host":["{{baseUrl}}"],"path":["v1","clients"]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"data\": [\n    {\n      \"id\": \"cli_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n      \"name\": \"Ada Ltd\",\n      \"slug\": \"ada\"\n    }\n  ],\n  \"meta\": {\n    \"count\": 1\n  }\n}"},{"name":"401 API_KEY_MISSING","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/clients","host":["{{baseUrl}}"],"path":["v1","clients"]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_MISSING\",\n    \"message\": \"No Authorization header was provided.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Include your API key as a Bearer token in the Authorization header.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_MISSING\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_INVALID","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/clients","host":["{{baseUrl}}"],"path":["v1","clients"]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_INVALID\",\n    \"message\": \"The API key is unknown, revoked, or supplied as a query parameter.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_INVALID\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_EXPIRED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/clients","host":["{{baseUrl}}"],"path":["v1","clients"]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_EXPIRED\",\n    \"message\": \"The API key has passed its expiry time.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Create a new key in the dashboard and replace this one.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_EXPIRED\",\n    \"details\": {\n      \"expiredAt\": \"2027-01-01T00:00:00.000Z\"\n    }\n  }\n}"},{"name":"403 ACCOUNT_SUSPENDED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/clients","host":["{{baseUrl}}"],"path":["v1","clients"]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"ACCOUNT_SUSPENDED\",\n    \"message\": \"API access for this workspace is not active.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Ask the workspace owner to restore the workspace, or contact LuftSocial support.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/ACCOUNT_SUSPENDED\",\n    \"details\": {}\n  }\n}"},{"name":"403 PERMISSION_REQUIRED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/clients","host":["{{baseUrl}}"],"path":["v1","clients"]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PERMISSION_REQUIRED\",\n    \"message\": \"This API key is read-only. This operation changes data and needs a write key.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a write key, or create one in the dashboard.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PERMISSION_REQUIRED\",\n    \"details\": {\n      \"requiredPermission\": \"write\"\n    }\n  }\n}"},{"name":"403 CLIENT_NOT_ALLOWED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/clients","host":["{{baseUrl}}"],"path":["v1","clients"]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"CLIENT_NOT_ALLOWED\",\n    \"message\": \"This API key is limited to other clients, or the operation covers the whole account.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a key for this client, or a key for all clients for account-wide routes.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/CLIENT_NOT_ALLOWED\",\n    \"details\": {\n      \"clientId\": \"cli_01abc\"\n    }\n  }\n}"},{"name":"403 PLAN_REQUIRED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/clients","host":["{{baseUrl}}"],"path":["v1","clients"]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PLAN_REQUIRED\",\n    \"message\": \"Your workspace plan does not permit API access.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Upgrade your plan to enable API access.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PLAN_REQUIRED\",\n    \"details\": {\n      \"plan\": \"starter\"\n    }\n  }\n}"},{"name":"429 RATE_LIMITED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/clients","host":["{{baseUrl}}"],"path":["v1","clients"]}},"status":"Too Many Requests","code":429,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"RATE_LIMITED\",\n    \"message\": \"Too many requests. Slow down and retry after the Retry-After interval.\",\n    \"category\": \"RATE_LIMIT\",\n    \"httpStatus\": 429,\n    \"retryable\": true,\n    \"suggestedAction\": \"Wait for the Retry-After header value before retrying.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/RATE_LIMITED\",\n    \"details\": {\n      \"limit\": 60,\n      \"remaining\": 0\n    }\n  }\n}"},{"name":"429 MONTHLY_QUOTA_EXCEEDED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/clients","host":["{{baseUrl}}"],"path":["v1","clients"]}},"status":"Too Many Requests","code":429,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"MONTHLY_QUOTA_EXCEEDED\",\n    \"message\": \"Your monthly API call quota has been reached.\",\n    \"category\": \"RATE_LIMIT\",\n    \"httpStatus\": 429,\n    \"retryable\": false,\n    \"suggestedAction\": \"Wait until the quota resets at the start of next month, or upgrade your plan.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/MONTHLY_QUOTA_EXCEEDED\",\n    \"details\": {\n      \"limit\": 25000,\n      \"remaining\": 0\n    }\n  }\n}"},{"name":"500 INTERNAL","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/clients","host":["{{baseUrl}}"],"path":["v1","clients"]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"INTERNAL\",\n    \"message\": \"An unexpected error occurred.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 500,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry with backoff. If it keeps failing, contact support with the requestId.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/INTERNAL\",\n    \"details\": {}\n  }\n}"},{"name":"503 SERVICE_OVERLOADED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/clients","host":["{{baseUrl}}"],"path":["v1","clients"]}},"status":"Service Unavailable","code":503,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"SERVICE_OVERLOADED\",\n    \"message\": \"The API is at capacity and refused this request before doing any work.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 503,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry after the Retry-After interval, with backoff. Nothing was changed.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/SERVICE_OVERLOADED\",\n    \"details\": {}\n  }\n}"}],"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('Returns 200 OK', () => {","  pm.response.to.have.status(200);","});","if (pm.response.code === 200) {","  const schema = {\"type\":\"object\",\"properties\":{\"data\":{\"type\":\"array\",\"items\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\"},\"name\":{\"type\":\"string\"},\"slug\":{\"type\":\"string\"}},\"required\":[\"id\",\"name\",\"slug\"]}},\"meta\":{\"type\":\"object\",\"properties\":{\"count\":{\"type\":\"number\"}}}},\"required\":[\"data\",\"meta\"]};","  pm.test('Body matches the documented schema', () => {","    pm.response.to.have.jsonSchema(schema);","  });","}"]}}]},{"name":"Create a client","request":{"method":"POST","description":"> **Changes data.** Creates a client. In this collection it runs only when `allowWrites` is `true`.\n\nA client is one of your customers. Their channels, media, and posts stay separate from other clients. Your own accounts are on the `self` client, which every account has. Send `X-Client-Id` with the returned id to act for this client.\n\nNeeds a `write` key.\n\n### Request body\n\n`Content-Type: application/json`. Fields not listed here are rejected with `400 VALIDATION_FAILED`.\n\n| Field | Type | Required | Description |\n| --- | --- | --- | --- |\n| `slug` | string | yes | Your id for this customer: lowercase letters, digits, - and _. Unique per account. self is reserved. min length 1; max length 64; pattern `^[a-z0-9][a-z0-9_-]*$` |\n| `displayName` | string | no | max length 200 |\n\n### Response: 201 Created\n\n| Field | Type | Description |\n| --- | --- | --- |\n| `id` | string |  |\n| `name` | string |  |\n| `slug` | string |  |\n\n### Errors\n\nEvery error uses the shared error body. Each code below has an example on this request.\n\n| Code | HTTP | Retryable | Meaning |\n| --- | --- | --- | --- |\n| `API_KEY_MISSING` | 401 | no | No Authorization header was provided. Include your API key as a Bearer token in the Authorization header. |\n| `API_KEY_INVALID` | 401 | no | The API key is unknown, revoked, or supplied as a query parameter. Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL. |\n| `API_KEY_EXPIRED` | 401 | no | The API key has passed its expiry time. Create a new key in the dashboard and replace this one. |\n| `ACCOUNT_SUSPENDED` | 403 | no | API access for this workspace is not active. Ask the workspace owner to restore the workspace, or contact LuftSocial support. |\n| `PERMISSION_REQUIRED` | 403 | no | This API key is read-only. This operation changes data and needs a write key. Use a write key, or create one in the dashboard. |\n| `CLIENT_NOT_ALLOWED` | 403 | no | This API key is limited to other clients, or the operation covers the whole account. Use a key for this client, or a key for all clients for account-wide routes. |\n| `PLAN_REQUIRED` | 403 | no | Your workspace plan does not permit API access. Upgrade your plan to enable API access. |\n| `VALIDATION_FAILED` | 400 | no | One or more request fields failed validation. Fix the fields listed in details.errors and retry. |\n| `CLIENT_SLUG_TAKEN` | 409 | no | This slug is already used in this workspace. Pick another slug, or use the existing client from GET /v1/clients. |\n| `CLIENT_LIMIT_REACHED` | 422 | no | Your plan's client limit has been reached. Upgrade your plan or delete a client you no longer serve. |\n| `RATE_LIMITED` | 429 | yes | Too many requests. Slow down and retry after the Retry-After interval. Wait for the Retry-After header value before retrying. |\n| `UPSTREAM_UNAVAILABLE` | 502 | yes | An upstream service is temporarily unavailable. Retry after the Retry-After interval. Retry after the Retry-After interval. |\n| `INTERNAL` | 500 | yes | An unexpected error occurred. Retry with backoff. If it keeps failing, contact support with the requestId. |\n| `SERVICE_OVERLOADED` | 503 | yes | The API is at capacity and refused this request before doing any work. Retry after the Retry-After interval, with backoff. Nothing was changed. |","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/clients","host":["{{baseUrl}}"],"path":["v1","clients"]},"body":{"mode":"raw","raw":"{\n  \"slug\": \"ada\",\n  \"displayName\": \"Ada Ltd\"\n}","options":{"raw":{"language":"json"}}}},"response":[{"name":"201 Created","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/clients","host":["{{baseUrl}}"],"path":["v1","clients"]},"body":{"mode":"raw","raw":"{\n  \"slug\": \"ada\",\n  \"displayName\": \"Ada Ltd\"\n}","options":{"raw":{"language":"json"}}}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"id\": \"cli_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n  \"name\": \"Ada Ltd\",\n  \"slug\": \"ada\"\n}"},{"name":"401 API_KEY_MISSING","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/clients","host":["{{baseUrl}}"],"path":["v1","clients"]},"body":{"mode":"raw","raw":"{\n  \"slug\": \"ada\",\n  \"displayName\": \"Ada Ltd\"\n}","options":{"raw":{"language":"json"}}}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_MISSING\",\n    \"message\": \"No Authorization header was provided.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Include your API key as a Bearer token in the Authorization header.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_MISSING\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_INVALID","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/clients","host":["{{baseUrl}}"],"path":["v1","clients"]},"body":{"mode":"raw","raw":"{\n  \"slug\": \"ada\",\n  \"displayName\": \"Ada Ltd\"\n}","options":{"raw":{"language":"json"}}}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_INVALID\",\n    \"message\": \"The API key is unknown, revoked, or supplied as a query parameter.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_INVALID\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_EXPIRED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/clients","host":["{{baseUrl}}"],"path":["v1","clients"]},"body":{"mode":"raw","raw":"{\n  \"slug\": \"ada\",\n  \"displayName\": \"Ada Ltd\"\n}","options":{"raw":{"language":"json"}}}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_EXPIRED\",\n    \"message\": \"The API key has passed its expiry time.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Create a new key in the dashboard and replace this one.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_EXPIRED\",\n    \"details\": {\n      \"expiredAt\": \"2027-01-01T00:00:00.000Z\"\n    }\n  }\n}"},{"name":"403 ACCOUNT_SUSPENDED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/clients","host":["{{baseUrl}}"],"path":["v1","clients"]},"body":{"mode":"raw","raw":"{\n  \"slug\": \"ada\",\n  \"displayName\": \"Ada Ltd\"\n}","options":{"raw":{"language":"json"}}}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"ACCOUNT_SUSPENDED\",\n    \"message\": \"API access for this workspace is not active.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Ask the workspace owner to restore the workspace, or contact LuftSocial support.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/ACCOUNT_SUSPENDED\",\n    \"details\": {}\n  }\n}"},{"name":"403 PERMISSION_REQUIRED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/clients","host":["{{baseUrl}}"],"path":["v1","clients"]},"body":{"mode":"raw","raw":"{\n  \"slug\": \"ada\",\n  \"displayName\": \"Ada Ltd\"\n}","options":{"raw":{"language":"json"}}}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PERMISSION_REQUIRED\",\n    \"message\": \"This API key is read-only. This operation changes data and needs a write key.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a write key, or create one in the dashboard.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PERMISSION_REQUIRED\",\n    \"details\": {\n      \"requiredPermission\": \"write\"\n    }\n  }\n}"},{"name":"403 CLIENT_NOT_ALLOWED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/clients","host":["{{baseUrl}}"],"path":["v1","clients"]},"body":{"mode":"raw","raw":"{\n  \"slug\": \"ada\",\n  \"displayName\": \"Ada Ltd\"\n}","options":{"raw":{"language":"json"}}}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"CLIENT_NOT_ALLOWED\",\n    \"message\": \"This API key is limited to other clients, or the operation covers the whole account.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a key for this client, or a key for all clients for account-wide routes.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/CLIENT_NOT_ALLOWED\",\n    \"details\": {\n      \"clientId\": \"cli_01abc\"\n    }\n  }\n}"},{"name":"403 PLAN_REQUIRED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/clients","host":["{{baseUrl}}"],"path":["v1","clients"]},"body":{"mode":"raw","raw":"{\n  \"slug\": \"ada\",\n  \"displayName\": \"Ada Ltd\"\n}","options":{"raw":{"language":"json"}}}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PLAN_REQUIRED\",\n    \"message\": \"Your workspace plan does not permit API access.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Upgrade your plan to enable API access.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PLAN_REQUIRED\",\n    \"details\": {\n      \"plan\": \"starter\"\n    }\n  }\n}"},{"name":"400 VALIDATION_FAILED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/clients","host":["{{baseUrl}}"],"path":["v1","clients"]},"body":{"mode":"raw","raw":"{\n  \"slug\": \"ada\",\n  \"displayName\": \"Ada Ltd\"\n}","options":{"raw":{"language":"json"}}}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"VALIDATION_FAILED\",\n    \"message\": \"One or more request fields failed validation.\",\n    \"category\": \"VALIDATION\",\n    \"httpStatus\": 400,\n    \"retryable\": false,\n    \"suggestedAction\": \"Fix the fields listed in details.errors and retry.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/VALIDATION_FAILED\",\n    \"details\": {\n      \"errors\": [\n        {\n          \"field\": \"scheduledAt\",\n          \"message\": \"Must be an ISO 8601 datetime in the future.\"\n        }\n      ]\n    }\n  }\n}"},{"name":"409 CLIENT_SLUG_TAKEN","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/clients","host":["{{baseUrl}}"],"path":["v1","clients"]},"body":{"mode":"raw","raw":"{\n  \"slug\": \"ada\",\n  \"displayName\": \"Ada Ltd\"\n}","options":{"raw":{"language":"json"}}}},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"CLIENT_SLUG_TAKEN\",\n    \"message\": \"This slug is already used in this workspace.\",\n    \"category\": \"CONFLICT\",\n    \"httpStatus\": 409,\n    \"retryable\": false,\n    \"suggestedAction\": \"Pick another slug, or use the existing client from GET /v1/clients.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/CLIENT_SLUG_TAKEN\",\n    \"details\": {\n      \"slug\": \"ada\"\n    }\n  }\n}"},{"name":"422 CLIENT_LIMIT_REACHED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/clients","host":["{{baseUrl}}"],"path":["v1","clients"]},"body":{"mode":"raw","raw":"{\n  \"slug\": \"ada\",\n  \"displayName\": \"Ada Ltd\"\n}","options":{"raw":{"language":"json"}}}},"status":"Unprocessable Entity","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"CLIENT_LIMIT_REACHED\",\n    \"message\": \"Your plan's client limit has been reached.\",\n    \"category\": \"PLAN\",\n    \"httpStatus\": 422,\n    \"retryable\": false,\n    \"suggestedAction\": \"Upgrade your plan or delete a client you no longer serve.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/CLIENT_LIMIT_REACHED\",\n    \"details\": {}\n  }\n}"},{"name":"429 RATE_LIMITED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/clients","host":["{{baseUrl}}"],"path":["v1","clients"]},"body":{"mode":"raw","raw":"{\n  \"slug\": \"ada\",\n  \"displayName\": \"Ada Ltd\"\n}","options":{"raw":{"language":"json"}}}},"status":"Too Many Requests","code":429,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"RATE_LIMITED\",\n    \"message\": \"Too many requests. Slow down and retry after the Retry-After interval.\",\n    \"category\": \"RATE_LIMIT\",\n    \"httpStatus\": 429,\n    \"retryable\": true,\n    \"suggestedAction\": \"Wait for the Retry-After header value before retrying.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/RATE_LIMITED\",\n    \"details\": {\n      \"limit\": 60,\n      \"remaining\": 0\n    }\n  }\n}"},{"name":"502 UPSTREAM_UNAVAILABLE","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/clients","host":["{{baseUrl}}"],"path":["v1","clients"]},"body":{"mode":"raw","raw":"{\n  \"slug\": \"ada\",\n  \"displayName\": \"Ada Ltd\"\n}","options":{"raw":{"language":"json"}}}},"status":"Bad Gateway","code":502,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"UPSTREAM_UNAVAILABLE\",\n    \"message\": \"An upstream service is temporarily unavailable. Retry after the Retry-After interval.\",\n    \"category\": \"UPSTREAM\",\n    \"httpStatus\": 502,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry after the Retry-After interval.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/UPSTREAM_UNAVAILABLE\",\n    \"details\": {}\n  }\n}"},{"name":"500 INTERNAL","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/clients","host":["{{baseUrl}}"],"path":["v1","clients"]},"body":{"mode":"raw","raw":"{\n  \"slug\": \"ada\",\n  \"displayName\": \"Ada Ltd\"\n}","options":{"raw":{"language":"json"}}}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"INTERNAL\",\n    \"message\": \"An unexpected error occurred.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 500,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry with backoff. If it keeps failing, contact support with the requestId.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/INTERNAL\",\n    \"details\": {}\n  }\n}"},{"name":"503 SERVICE_OVERLOADED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/clients","host":["{{baseUrl}}"],"path":["v1","clients"]},"body":{"mode":"raw","raw":"{\n  \"slug\": \"ada\",\n  \"displayName\": \"Ada Ltd\"\n}","options":{"raw":{"language":"json"}}}},"status":"Service Unavailable","code":503,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"SERVICE_OVERLOADED\",\n    \"message\": \"The API is at capacity and refused this request before doing any work.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 503,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry after the Retry-After interval, with backoff. Nothing was changed.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/SERVICE_OVERLOADED\",\n    \"details\": {}\n  }\n}"}],"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('Returns 201 Created', () => {","  pm.response.to.have.status(201);","});","if (pm.response.code === 201) {","  const schema = {\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\"},\"name\":{\"type\":\"string\"},\"slug\":{\"type\":\"string\"}},\"required\":[\"id\",\"name\",\"slug\"]};","  pm.test('Body matches the documented schema', () => {","    pm.response.to.have.jsonSchema(schema);","  });","  const next_createdClientId = \"id\".split('.').reduce((value, key) => (value == null ? undefined : value[key]), pm.response.json());","  if (typeof next_createdClientId === 'string' && next_createdClientId) {","    pm.collectionVariables.set('createdClientId', next_createdClientId);","  } else {","    console.warn('createdClientId not set: id is missing from the response.');","  }","}"]}}]},{"name":"Delete a client","request":{"method":"DELETE","description":"> **Changes data.** Deletes a client. It must have no channels. In this collection it runs only when `allowWrites` is `true`.\n\nRefused with 409 CLIENT_HAS_CHANNELS while the client has connected channels. The self client cannot be deleted. Needs a key for all clients, like creating one. Keys limited to this client can act for no client afterwards.\n\nNeeds a `write` key.\n\n### Parameters\n\n| Name | In | Required | Type | Description |\n| --- | --- | --- | --- | --- |\n| `clientId` | path | yes | string |  |\n\n### Response: 204 No Content\n\nClient deleted.\n\nNo body.\n\n### Errors\n\nEvery error uses the shared error body. Each code below has an example on this request.\n\n| Code | HTTP | Retryable | Meaning |\n| --- | --- | --- | --- |\n| `API_KEY_MISSING` | 401 | no | No Authorization header was provided. Include your API key as a Bearer token in the Authorization header. |\n| `API_KEY_INVALID` | 401 | no | The API key is unknown, revoked, or supplied as a query parameter. Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL. |\n| `API_KEY_EXPIRED` | 401 | no | The API key has passed its expiry time. Create a new key in the dashboard and replace this one. |\n| `ACCOUNT_SUSPENDED` | 403 | no | API access for this workspace is not active. Ask the workspace owner to restore the workspace, or contact LuftSocial support. |\n| `PERMISSION_REQUIRED` | 403 | no | This API key is read-only. This operation changes data and needs a write key. Use a write key, or create one in the dashboard. |\n| `CLIENT_NOT_ALLOWED` | 403 | no | This API key is limited to other clients, or the operation covers the whole account. Use a key for this client, or a key for all clients for account-wide routes. |\n| `PLAN_REQUIRED` | 403 | no | Your workspace plan does not permit API access. Upgrade your plan to enable API access. |\n| `CLIENT_NOT_FOUND` | 404 | no | Client not found or not accessible to this workspace. Check the X-Client-Id header value. |\n| `CLIENT_SELF_PROTECTED` | 400 | no | The self client holds your own accounts and can't be deleted. Delete a customer client instead. |\n| `CLIENT_HAS_CHANNELS` | 409 | no | This client still has connected channels. Disconnect them before deleting the client. Disconnect the client's channels with DELETE /v1/channels/{channelId}, then retry. |\n| `RATE_LIMITED` | 429 | yes | Too many requests. Slow down and retry after the Retry-After interval. Wait for the Retry-After header value before retrying. |\n| `UPSTREAM_UNAVAILABLE` | 502 | yes | An upstream service is temporarily unavailable. Retry after the Retry-After interval. Retry after the Retry-After interval. |\n| `INTERNAL` | 500 | yes | An unexpected error occurred. Retry with backoff. If it keeps failing, contact support with the requestId. |\n| `SERVICE_OVERLOADED` | 503 | yes | The API is at capacity and refused this request before doing any work. Retry after the Retry-After interval, with backoff. Nothing was changed. |","header":[],"url":{"raw":"{{baseUrl}}/v1/clients/:clientId","host":["{{baseUrl}}"],"path":["v1","clients",":clientId"],"variable":[{"key":"clientId","value":"{{createdClientId}}"}]}},"response":[{"name":"204 No Content","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{baseUrl}}/v1/clients/:clientId","host":["{{baseUrl}}"],"path":["v1","clients",":clientId"],"variable":[{"key":"clientId","value":"{{createdClientId}}"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"json","header":[{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":""},{"name":"401 API_KEY_MISSING","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{baseUrl}}/v1/clients/:clientId","host":["{{baseUrl}}"],"path":["v1","clients",":clientId"],"variable":[{"key":"clientId","value":"{{createdClientId}}"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_MISSING\",\n    \"message\": \"No Authorization header was provided.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Include your API key as a Bearer token in the Authorization header.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_MISSING\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_INVALID","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{baseUrl}}/v1/clients/:clientId","host":["{{baseUrl}}"],"path":["v1","clients",":clientId"],"variable":[{"key":"clientId","value":"{{createdClientId}}"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_INVALID\",\n    \"message\": \"The API key is unknown, revoked, or supplied as a query parameter.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_INVALID\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_EXPIRED","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{baseUrl}}/v1/clients/:clientId","host":["{{baseUrl}}"],"path":["v1","clients",":clientId"],"variable":[{"key":"clientId","value":"{{createdClientId}}"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_EXPIRED\",\n    \"message\": \"The API key has passed its expiry time.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Create a new key in the dashboard and replace this one.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_EXPIRED\",\n    \"details\": {\n      \"expiredAt\": \"2027-01-01T00:00:00.000Z\"\n    }\n  }\n}"},{"name":"403 ACCOUNT_SUSPENDED","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{baseUrl}}/v1/clients/:clientId","host":["{{baseUrl}}"],"path":["v1","clients",":clientId"],"variable":[{"key":"clientId","value":"{{createdClientId}}"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"ACCOUNT_SUSPENDED\",\n    \"message\": \"API access for this workspace is not active.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Ask the workspace owner to restore the workspace, or contact LuftSocial support.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/ACCOUNT_SUSPENDED\",\n    \"details\": {}\n  }\n}"},{"name":"403 PERMISSION_REQUIRED","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{baseUrl}}/v1/clients/:clientId","host":["{{baseUrl}}"],"path":["v1","clients",":clientId"],"variable":[{"key":"clientId","value":"{{createdClientId}}"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PERMISSION_REQUIRED\",\n    \"message\": \"This API key is read-only. This operation changes data and needs a write key.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a write key, or create one in the dashboard.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PERMISSION_REQUIRED\",\n    \"details\": {\n      \"requiredPermission\": \"write\"\n    }\n  }\n}"},{"name":"403 CLIENT_NOT_ALLOWED","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{baseUrl}}/v1/clients/:clientId","host":["{{baseUrl}}"],"path":["v1","clients",":clientId"],"variable":[{"key":"clientId","value":"{{createdClientId}}"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"CLIENT_NOT_ALLOWED\",\n    \"message\": \"This API key is limited to other clients, or the operation covers the whole account.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a key for this client, or a key for all clients for account-wide routes.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/CLIENT_NOT_ALLOWED\",\n    \"details\": {\n      \"clientId\": \"cli_01abc\"\n    }\n  }\n}"},{"name":"403 PLAN_REQUIRED","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{baseUrl}}/v1/clients/:clientId","host":["{{baseUrl}}"],"path":["v1","clients",":clientId"],"variable":[{"key":"clientId","value":"{{createdClientId}}"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PLAN_REQUIRED\",\n    \"message\": \"Your workspace plan does not permit API access.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Upgrade your plan to enable API access.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PLAN_REQUIRED\",\n    \"details\": {\n      \"plan\": \"starter\"\n    }\n  }\n}"},{"name":"404 CLIENT_NOT_FOUND","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{baseUrl}}/v1/clients/:clientId","host":["{{baseUrl}}"],"path":["v1","clients",":clientId"],"variable":[{"key":"clientId","value":"{{createdClientId}}"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"CLIENT_NOT_FOUND\",\n    \"message\": \"Client not found or not accessible to this workspace.\",\n    \"category\": \"NOT_FOUND\",\n    \"httpStatus\": 404,\n    \"retryable\": false,\n    \"suggestedAction\": \"Check the X-Client-Id header value.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/CLIENT_NOT_FOUND\",\n    \"details\": {\n      \"clientId\": \"cli_01abc\"\n    }\n  }\n}"},{"name":"400 CLIENT_SELF_PROTECTED","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{baseUrl}}/v1/clients/:clientId","host":["{{baseUrl}}"],"path":["v1","clients",":clientId"],"variable":[{"key":"clientId","value":"{{createdClientId}}"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"CLIENT_SELF_PROTECTED\",\n    \"message\": \"The self client holds your own accounts and can't be deleted.\",\n    \"category\": \"VALIDATION\",\n    \"httpStatus\": 400,\n    \"retryable\": false,\n    \"suggestedAction\": \"Delete a customer client instead.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/CLIENT_SELF_PROTECTED\",\n    \"details\": {\n      \"clientId\": \"cli_01abc\"\n    }\n  }\n}"},{"name":"409 CLIENT_HAS_CHANNELS","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{baseUrl}}/v1/clients/:clientId","host":["{{baseUrl}}"],"path":["v1","clients",":clientId"],"variable":[{"key":"clientId","value":"{{createdClientId}}"}]}},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"CLIENT_HAS_CHANNELS\",\n    \"message\": \"This client still has connected channels. Disconnect them before deleting the client.\",\n    \"category\": \"CONFLICT\",\n    \"httpStatus\": 409,\n    \"retryable\": false,\n    \"suggestedAction\": \"Disconnect the client's channels with DELETE /v1/channels/{channelId}, then retry.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/CLIENT_HAS_CHANNELS\",\n    \"details\": {\n      \"clientId\": \"cli_01abc\"\n    }\n  }\n}"},{"name":"429 RATE_LIMITED","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{baseUrl}}/v1/clients/:clientId","host":["{{baseUrl}}"],"path":["v1","clients",":clientId"],"variable":[{"key":"clientId","value":"{{createdClientId}}"}]}},"status":"Too Many Requests","code":429,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"RATE_LIMITED\",\n    \"message\": \"Too many requests. Slow down and retry after the Retry-After interval.\",\n    \"category\": \"RATE_LIMIT\",\n    \"httpStatus\": 429,\n    \"retryable\": true,\n    \"suggestedAction\": \"Wait for the Retry-After header value before retrying.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/RATE_LIMITED\",\n    \"details\": {\n      \"limit\": 60,\n      \"remaining\": 0\n    }\n  }\n}"},{"name":"502 UPSTREAM_UNAVAILABLE","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{baseUrl}}/v1/clients/:clientId","host":["{{baseUrl}}"],"path":["v1","clients",":clientId"],"variable":[{"key":"clientId","value":"{{createdClientId}}"}]}},"status":"Bad Gateway","code":502,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"UPSTREAM_UNAVAILABLE\",\n    \"message\": \"An upstream service is temporarily unavailable. Retry after the Retry-After interval.\",\n    \"category\": \"UPSTREAM\",\n    \"httpStatus\": 502,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry after the Retry-After interval.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/UPSTREAM_UNAVAILABLE\",\n    \"details\": {}\n  }\n}"},{"name":"500 INTERNAL","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{baseUrl}}/v1/clients/:clientId","host":["{{baseUrl}}"],"path":["v1","clients",":clientId"],"variable":[{"key":"clientId","value":"{{createdClientId}}"}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"INTERNAL\",\n    \"message\": \"An unexpected error occurred.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 500,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry with backoff. If it keeps failing, contact support with the requestId.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/INTERNAL\",\n    \"details\": {}\n  }\n}"},{"name":"503 SERVICE_OVERLOADED","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{baseUrl}}/v1/clients/:clientId","host":["{{baseUrl}}"],"path":["v1","clients",":clientId"],"variable":[{"key":"clientId","value":"{{createdClientId}}"}]}},"status":"Service Unavailable","code":503,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"SERVICE_OVERLOADED\",\n    \"message\": \"The API is at capacity and refused this request before doing any work.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 503,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry after the Retry-After interval, with backoff. Nothing was changed.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/SERVICE_OVERLOADED\",\n    \"details\": {}\n  }\n}"}],"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('Returns 204 No Content', () => {","  pm.response.to.have.status(204);","});"]}}]}]},{"name":"Media","item":[{"name":"Start a media upload","request":{"method":"POST","description":"> **Changes data.** Reserves a media asset and counts toward the workspace storage pool once the file is uploaded. In this collection it runs only when `allowWrites` is `true`.\n\nReserves a media asset for the client and returns a presigned uploadUrl. Then:\n\n1. PUT the file to uploadUrl as the raw body, with uploadHeaders exactly as given. fileSize must match.\n\n2. Call POST /v1/media/{assetId}/complete.\n\n3. Use assetId in mediaAssetIds on POST /v1/posts.\n\nWhen status is ready the client already has the same file (send fileHash to get this) and you skip steps 1 and 2.\n\nFiles count toward the workspace storage pool. Up to 1 GB per file.\n\nNeeds a `write` key.\n\n### Parameters\n\n| Name | In | Required | Type | Description |\n| --- | --- | --- | --- | --- |\n| `X-Client-Id` | header | no | string | Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self. |\n| `Idempotency-Key` | header | yes | string | Caller-generated id for this upload. Send the same value on retry to get the same asset back. 1–255 characters, [A-Za-z0-9_-]. min length 1; max length 255; pattern `^[A-Za-z0-9_-]+$` |\n\n### Request body\n\n`Content-Type: application/json`. Fields not listed here are rejected with `400 VALIDATION_FAILED`.\n\n| Field | Type | Required | Description |\n| --- | --- | --- | --- |\n| `fileName` | string | yes | min length 1; max length 255 |\n| `mimeType` | string | yes | image/*, video/*, or application/pdf (LinkedIn documents). pattern `^(image\\/[a-z0-9.+-]+\\|video\\/[a-z0-9.+-]+\\|application\\/pdf)$` |\n| `fileSize` | number | yes | Exact size in bytes. The upload URL only accepts a file of this size. min 1; max 1073741824 |\n| `fileHash` | string | no | SHA-256 of the file, hex. When the client already has the same file, the response is status ready and you skip the upload. pattern `^[a-f0-9]{64}$` |\n\n### Response: 201 Created\n\n| Field | Type | Description |\n| --- | --- | --- |\n| `media` | object |  |\n| `media.assetId` | string | Use it in mediaAssetIds once status is ready. |\n| `media.status` | enum | pending: PUT the file to uploadUrl, then call complete. ready: the client already has this file; use assetId now. One of: `pending`, `ready` |\n| `media.uploadUrl` | string, nullable | Presigned URL. Send one PUT with the file as the body. |\n| `media.uploadHeaders` | object, nullable | Send these headers on the PUT, exactly as given. |\n| `media.expiresAt` | string (date-time), nullable | uploadUrl stops working at this time. Resend the same request with the same Idempotency-Key for a fresh one. |\n\n### Errors\n\nEvery error uses the shared error body. Each code below has an example on this request.\n\n| Code | HTTP | Retryable | Meaning |\n| --- | --- | --- | --- |\n| `API_KEY_MISSING` | 401 | no | No Authorization header was provided. Include your API key as a Bearer token in the Authorization header. |\n| `API_KEY_INVALID` | 401 | no | The API key is unknown, revoked, or supplied as a query parameter. Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL. |\n| `API_KEY_EXPIRED` | 401 | no | The API key has passed its expiry time. Create a new key in the dashboard and replace this one. |\n| `ACCOUNT_SUSPENDED` | 403 | no | API access for this workspace is not active. Ask the workspace owner to restore the workspace, or contact LuftSocial support. |\n| `PERMISSION_REQUIRED` | 403 | no | This API key is read-only. This operation changes data and needs a write key. Use a write key, or create one in the dashboard. |\n| `CLIENT_NOT_ALLOWED` | 403 | no | This API key is limited to other clients, or the operation covers the whole account. Use a key for this client, or a key for all clients for account-wide routes. |\n| `PLAN_REQUIRED` | 403 | no | Your workspace plan does not permit API access. Upgrade your plan to enable API access. |\n| `CLIENT_NOT_FOUND` | 404 | no | Client not found or not accessible to this workspace. Check the X-Client-Id header value. |\n| `VALIDATION_FAILED` | 400 | no | One or more request fields failed validation. Fix the fields listed in details.errors and retry. |\n| `MEDIA_TOO_LARGE` | 413 | no | The media file is larger than the upload limit. Compress or trim the file to under details.limit bytes, then upload it again. |\n| `STORAGE_QUOTA_EXCEEDED` | 403 | no | This upload would exceed the workspace storage pool. Delete unused media. Each extra non-X channel adds 2 GB. |\n| `IDEMPOTENCY_KEY_REUSED` | 409 | no | An earlier request used this Idempotency-Key with a different body. Use a new Idempotency-Key for this request, or resend the original body to replay the first result. |\n| `IDEMPOTENCY_REQUEST_IN_PROGRESS` | 409 | yes | The first request with this Idempotency-Key is still running. Wait a second and resend the same request with the same Idempotency-Key. |\n| `IDEMPOTENCY_OUTCOME_UNKNOWN` | 409 | no | An earlier request with this Idempotency-Key may have completed, but its result can't be confirmed. Check GET /v1/media/{assetId} if you have the id; otherwise retry with a new Idempotency-Key. The earlier attempt may have stored a file. |\n| `RATE_LIMITED` | 429 | yes | Too many requests. Slow down and retry after the Retry-After interval. Wait for the Retry-After header value before retrying. |\n| `MONTHLY_QUOTA_EXCEEDED` | 429 | no | Your monthly API call quota has been reached. Wait until the quota resets at the start of next month, or upgrade your plan. |\n| `UPSTREAM_UNAVAILABLE` | 502 | yes | An upstream service is temporarily unavailable. Retry after the Retry-After interval. Retry after the Retry-After interval. |\n| `INTERNAL` | 500 | yes | An unexpected error occurred. Retry with backoff. If it keeps failing, contact support with the requestId. |\n| `SERVICE_OVERLOADED` | 503 | yes | The API is at capacity and refused this request before doing any work. Retry after the Retry-After interval, with backoff. Nothing was changed. |","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true},{"key":"Idempotency-Key","value":"{{$guid}}","description":"Caller-generated id for this upload. Send the same value on retry to get the same asset back. 1–255 characters, [A-Za-z0-9_-].","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/media/uploads","host":["{{baseUrl}}"],"path":["v1","media","uploads"]},"body":{"mode":"raw","raw":"{\n  \"fileName\": \"launch-reel.mp4\",\n  \"mimeType\": \"video/mp4\",\n  \"fileSize\": 18874368,\n  \"fileHash\": \"9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08\"\n}","options":{"raw":{"language":"json"}}}},"response":[{"name":"201 Created","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true},{"key":"Idempotency-Key","value":"{{$guid}}","description":"Caller-generated id for this upload. Send the same value on retry to get the same asset back. 1–255 characters, [A-Za-z0-9_-].","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/media/uploads","host":["{{baseUrl}}"],"path":["v1","media","uploads"]},"body":{"mode":"raw","raw":"{\n  \"fileName\": \"launch-reel.mp4\",\n  \"mimeType\": \"video/mp4\",\n  \"fileSize\": 18874368,\n  \"fileHash\": \"9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08\"\n}","options":{"raw":{"language":"json"}}}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"media\": {\n    \"assetId\": \"6f1c2a90-7b14-4e2a-9c31-0a6e8d4b91f2\",\n    \"status\": \"pending\",\n    \"uploadUrl\": \"https://media.luftsocial.com/…?X-Amz-Signature=…\",\n    \"uploadHeaders\": {\n      \"content-type\": \"video/mp4\",\n      \"x-amz-meta-cdnurl\": \"https://cdn.luftsocial.com/…\"\n    },\n    \"expiresAt\": \"2026-10-20T13:00:00.000Z\"\n  }\n}"},{"name":"401 API_KEY_MISSING","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true},{"key":"Idempotency-Key","value":"{{$guid}}","description":"Caller-generated id for this upload. Send the same value on retry to get the same asset back. 1–255 characters, [A-Za-z0-9_-].","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/media/uploads","host":["{{baseUrl}}"],"path":["v1","media","uploads"]},"body":{"mode":"raw","raw":"{\n  \"fileName\": \"launch-reel.mp4\",\n  \"mimeType\": \"video/mp4\",\n  \"fileSize\": 18874368,\n  \"fileHash\": \"9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08\"\n}","options":{"raw":{"language":"json"}}}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_MISSING\",\n    \"message\": \"No Authorization header was provided.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Include your API key as a Bearer token in the Authorization header.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_MISSING\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_INVALID","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true},{"key":"Idempotency-Key","value":"{{$guid}}","description":"Caller-generated id for this upload. Send the same value on retry to get the same asset back. 1–255 characters, [A-Za-z0-9_-].","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/media/uploads","host":["{{baseUrl}}"],"path":["v1","media","uploads"]},"body":{"mode":"raw","raw":"{\n  \"fileName\": \"launch-reel.mp4\",\n  \"mimeType\": \"video/mp4\",\n  \"fileSize\": 18874368,\n  \"fileHash\": \"9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08\"\n}","options":{"raw":{"language":"json"}}}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_INVALID\",\n    \"message\": \"The API key is unknown, revoked, or supplied as a query parameter.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_INVALID\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_EXPIRED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true},{"key":"Idempotency-Key","value":"{{$guid}}","description":"Caller-generated id for this upload. Send the same value on retry to get the same asset back. 1–255 characters, [A-Za-z0-9_-].","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/media/uploads","host":["{{baseUrl}}"],"path":["v1","media","uploads"]},"body":{"mode":"raw","raw":"{\n  \"fileName\": \"launch-reel.mp4\",\n  \"mimeType\": \"video/mp4\",\n  \"fileSize\": 18874368,\n  \"fileHash\": \"9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08\"\n}","options":{"raw":{"language":"json"}}}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_EXPIRED\",\n    \"message\": \"The API key has passed its expiry time.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Create a new key in the dashboard and replace this one.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_EXPIRED\",\n    \"details\": {\n      \"expiredAt\": \"2027-01-01T00:00:00.000Z\"\n    }\n  }\n}"},{"name":"403 ACCOUNT_SUSPENDED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true},{"key":"Idempotency-Key","value":"{{$guid}}","description":"Caller-generated id for this upload. Send the same value on retry to get the same asset back. 1–255 characters, [A-Za-z0-9_-].","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/media/uploads","host":["{{baseUrl}}"],"path":["v1","media","uploads"]},"body":{"mode":"raw","raw":"{\n  \"fileName\": \"launch-reel.mp4\",\n  \"mimeType\": \"video/mp4\",\n  \"fileSize\": 18874368,\n  \"fileHash\": \"9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08\"\n}","options":{"raw":{"language":"json"}}}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"ACCOUNT_SUSPENDED\",\n    \"message\": \"API access for this workspace is not active.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Ask the workspace owner to restore the workspace, or contact LuftSocial support.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/ACCOUNT_SUSPENDED\",\n    \"details\": {}\n  }\n}"},{"name":"403 PERMISSION_REQUIRED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true},{"key":"Idempotency-Key","value":"{{$guid}}","description":"Caller-generated id for this upload. Send the same value on retry to get the same asset back. 1–255 characters, [A-Za-z0-9_-].","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/media/uploads","host":["{{baseUrl}}"],"path":["v1","media","uploads"]},"body":{"mode":"raw","raw":"{\n  \"fileName\": \"launch-reel.mp4\",\n  \"mimeType\": \"video/mp4\",\n  \"fileSize\": 18874368,\n  \"fileHash\": \"9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08\"\n}","options":{"raw":{"language":"json"}}}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PERMISSION_REQUIRED\",\n    \"message\": \"This API key is read-only. This operation changes data and needs a write key.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a write key, or create one in the dashboard.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PERMISSION_REQUIRED\",\n    \"details\": {\n      \"requiredPermission\": \"write\"\n    }\n  }\n}"},{"name":"403 CLIENT_NOT_ALLOWED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true},{"key":"Idempotency-Key","value":"{{$guid}}","description":"Caller-generated id for this upload. Send the same value on retry to get the same asset back. 1–255 characters, [A-Za-z0-9_-].","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/media/uploads","host":["{{baseUrl}}"],"path":["v1","media","uploads"]},"body":{"mode":"raw","raw":"{\n  \"fileName\": \"launch-reel.mp4\",\n  \"mimeType\": \"video/mp4\",\n  \"fileSize\": 18874368,\n  \"fileHash\": \"9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08\"\n}","options":{"raw":{"language":"json"}}}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"CLIENT_NOT_ALLOWED\",\n    \"message\": \"This API key is limited to other clients, or the operation covers the whole account.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a key for this client, or a key for all clients for account-wide routes.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/CLIENT_NOT_ALLOWED\",\n    \"details\": {\n      \"clientId\": \"cli_01abc\"\n    }\n  }\n}"},{"name":"403 PLAN_REQUIRED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true},{"key":"Idempotency-Key","value":"{{$guid}}","description":"Caller-generated id for this upload. Send the same value on retry to get the same asset back. 1–255 characters, [A-Za-z0-9_-].","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/media/uploads","host":["{{baseUrl}}"],"path":["v1","media","uploads"]},"body":{"mode":"raw","raw":"{\n  \"fileName\": \"launch-reel.mp4\",\n  \"mimeType\": \"video/mp4\",\n  \"fileSize\": 18874368,\n  \"fileHash\": \"9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08\"\n}","options":{"raw":{"language":"json"}}}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PLAN_REQUIRED\",\n    \"message\": \"Your workspace plan does not permit API access.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Upgrade your plan to enable API access.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PLAN_REQUIRED\",\n    \"details\": {\n      \"plan\": \"starter\"\n    }\n  }\n}"},{"name":"404 CLIENT_NOT_FOUND","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true},{"key":"Idempotency-Key","value":"{{$guid}}","description":"Caller-generated id for this upload. Send the same value on retry to get the same asset back. 1–255 characters, [A-Za-z0-9_-].","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/media/uploads","host":["{{baseUrl}}"],"path":["v1","media","uploads"]},"body":{"mode":"raw","raw":"{\n  \"fileName\": \"launch-reel.mp4\",\n  \"mimeType\": \"video/mp4\",\n  \"fileSize\": 18874368,\n  \"fileHash\": \"9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08\"\n}","options":{"raw":{"language":"json"}}}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"CLIENT_NOT_FOUND\",\n    \"message\": \"Client not found or not accessible to this workspace.\",\n    \"category\": \"NOT_FOUND\",\n    \"httpStatus\": 404,\n    \"retryable\": false,\n    \"suggestedAction\": \"Check the X-Client-Id header value.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/CLIENT_NOT_FOUND\",\n    \"details\": {\n      \"clientId\": \"cli_01abc\"\n    }\n  }\n}"},{"name":"400 VALIDATION_FAILED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true},{"key":"Idempotency-Key","value":"{{$guid}}","description":"Caller-generated id for this upload. Send the same value on retry to get the same asset back. 1–255 characters, [A-Za-z0-9_-].","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/media/uploads","host":["{{baseUrl}}"],"path":["v1","media","uploads"]},"body":{"mode":"raw","raw":"{\n  \"fileName\": \"launch-reel.mp4\",\n  \"mimeType\": \"video/mp4\",\n  \"fileSize\": 18874368,\n  \"fileHash\": \"9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08\"\n}","options":{"raw":{"language":"json"}}}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"VALIDATION_FAILED\",\n    \"message\": \"One or more request fields failed validation.\",\n    \"category\": \"VALIDATION\",\n    \"httpStatus\": 400,\n    \"retryable\": false,\n    \"suggestedAction\": \"Fix the fields listed in details.errors and retry.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/VALIDATION_FAILED\",\n    \"details\": {\n      \"errors\": [\n        {\n          \"field\": \"scheduledAt\",\n          \"message\": \"Must be an ISO 8601 datetime in the future.\"\n        }\n      ]\n    }\n  }\n}"},{"name":"413 MEDIA_TOO_LARGE","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true},{"key":"Idempotency-Key","value":"{{$guid}}","description":"Caller-generated id for this upload. Send the same value on retry to get the same asset back. 1–255 characters, [A-Za-z0-9_-].","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/media/uploads","host":["{{baseUrl}}"],"path":["v1","media","uploads"]},"body":{"mode":"raw","raw":"{\n  \"fileName\": \"launch-reel.mp4\",\n  \"mimeType\": \"video/mp4\",\n  \"fileSize\": 18874368,\n  \"fileHash\": \"9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08\"\n}","options":{"raw":{"language":"json"}}}},"status":"Payload Too Large","code":413,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"MEDIA_TOO_LARGE\",\n    \"message\": \"The media file is larger than the upload limit.\",\n    \"category\": \"VALIDATION\",\n    \"httpStatus\": 413,\n    \"retryable\": false,\n    \"suggestedAction\": \"Compress or trim the file to under details.limit bytes, then upload it again.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/MEDIA_TOO_LARGE\",\n    \"details\": {\n      \"limit\": 1073741824\n    }\n  }\n}"},{"name":"403 STORAGE_QUOTA_EXCEEDED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true},{"key":"Idempotency-Key","value":"{{$guid}}","description":"Caller-generated id for this upload. Send the same value on retry to get the same asset back. 1–255 characters, [A-Za-z0-9_-].","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/media/uploads","host":["{{baseUrl}}"],"path":["v1","media","uploads"]},"body":{"mode":"raw","raw":"{\n  \"fileName\": \"launch-reel.mp4\",\n  \"mimeType\": \"video/mp4\",\n  \"fileSize\": 18874368,\n  \"fileHash\": \"9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08\"\n}","options":{"raw":{"language":"json"}}}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"STORAGE_QUOTA_EXCEEDED\",\n    \"message\": \"This upload would exceed the workspace storage pool.\",\n    \"category\": \"PLAN\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Delete unused media. Each extra non-X channel adds 2 GB.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/STORAGE_QUOTA_EXCEEDED\",\n    \"details\": {\n      \"limit\": 10000000000,\n      \"used\": 10000000000,\n      \"remaining\": 0\n    }\n  }\n}"},{"name":"409 IDEMPOTENCY_KEY_REUSED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true},{"key":"Idempotency-Key","value":"{{$guid}}","description":"Caller-generated id for this upload. Send the same value on retry to get the same asset back. 1–255 characters, [A-Za-z0-9_-].","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/media/uploads","host":["{{baseUrl}}"],"path":["v1","media","uploads"]},"body":{"mode":"raw","raw":"{\n  \"fileName\": \"launch-reel.mp4\",\n  \"mimeType\": \"video/mp4\",\n  \"fileSize\": 18874368,\n  \"fileHash\": \"9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08\"\n}","options":{"raw":{"language":"json"}}}},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"IDEMPOTENCY_KEY_REUSED\",\n    \"message\": \"An earlier request used this Idempotency-Key with a different body.\",\n    \"category\": \"CONFLICT\",\n    \"httpStatus\": 409,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a new Idempotency-Key for this request, or resend the original body to replay the first result.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/IDEMPOTENCY_KEY_REUSED\",\n    \"details\": {}\n  }\n}"},{"name":"409 IDEMPOTENCY_REQUEST_IN_PROGRESS","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true},{"key":"Idempotency-Key","value":"{{$guid}}","description":"Caller-generated id for this upload. Send the same value on retry to get the same asset back. 1–255 characters, [A-Za-z0-9_-].","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/media/uploads","host":["{{baseUrl}}"],"path":["v1","media","uploads"]},"body":{"mode":"raw","raw":"{\n  \"fileName\": \"launch-reel.mp4\",\n  \"mimeType\": \"video/mp4\",\n  \"fileSize\": 18874368,\n  \"fileHash\": \"9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08\"\n}","options":{"raw":{"language":"json"}}}},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"IDEMPOTENCY_REQUEST_IN_PROGRESS\",\n    \"message\": \"The first request with this Idempotency-Key is still running.\",\n    \"category\": \"CONFLICT\",\n    \"httpStatus\": 409,\n    \"retryable\": true,\n    \"suggestedAction\": \"Wait a second and resend the same request with the same Idempotency-Key.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/IDEMPOTENCY_REQUEST_IN_PROGRESS\",\n    \"details\": {}\n  }\n}"},{"name":"409 IDEMPOTENCY_OUTCOME_UNKNOWN","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true},{"key":"Idempotency-Key","value":"{{$guid}}","description":"Caller-generated id for this upload. Send the same value on retry to get the same asset back. 1–255 characters, [A-Za-z0-9_-].","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/media/uploads","host":["{{baseUrl}}"],"path":["v1","media","uploads"]},"body":{"mode":"raw","raw":"{\n  \"fileName\": \"launch-reel.mp4\",\n  \"mimeType\": \"video/mp4\",\n  \"fileSize\": 18874368,\n  \"fileHash\": \"9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08\"\n}","options":{"raw":{"language":"json"}}}},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"IDEMPOTENCY_OUTCOME_UNKNOWN\",\n    \"message\": \"An earlier request with this Idempotency-Key may have completed, but its result can't be confirmed.\",\n    \"category\": \"CONFLICT\",\n    \"httpStatus\": 409,\n    \"retryable\": false,\n    \"suggestedAction\": \"Check GET /v1/media/{assetId} if you have the id; otherwise retry with a new Idempotency-Key. The earlier attempt may have stored a file.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/IDEMPOTENCY_OUTCOME_UNKNOWN\",\n    \"details\": {}\n  }\n}"},{"name":"429 RATE_LIMITED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true},{"key":"Idempotency-Key","value":"{{$guid}}","description":"Caller-generated id for this upload. Send the same value on retry to get the same asset back. 1–255 characters, [A-Za-z0-9_-].","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/media/uploads","host":["{{baseUrl}}"],"path":["v1","media","uploads"]},"body":{"mode":"raw","raw":"{\n  \"fileName\": \"launch-reel.mp4\",\n  \"mimeType\": \"video/mp4\",\n  \"fileSize\": 18874368,\n  \"fileHash\": \"9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08\"\n}","options":{"raw":{"language":"json"}}}},"status":"Too Many Requests","code":429,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"RATE_LIMITED\",\n    \"message\": \"Too many requests. Slow down and retry after the Retry-After interval.\",\n    \"category\": \"RATE_LIMIT\",\n    \"httpStatus\": 429,\n    \"retryable\": true,\n    \"suggestedAction\": \"Wait for the Retry-After header value before retrying.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/RATE_LIMITED\",\n    \"details\": {\n      \"limit\": 60,\n      \"remaining\": 0\n    }\n  }\n}"},{"name":"429 MONTHLY_QUOTA_EXCEEDED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true},{"key":"Idempotency-Key","value":"{{$guid}}","description":"Caller-generated id for this upload. Send the same value on retry to get the same asset back. 1–255 characters, [A-Za-z0-9_-].","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/media/uploads","host":["{{baseUrl}}"],"path":["v1","media","uploads"]},"body":{"mode":"raw","raw":"{\n  \"fileName\": \"launch-reel.mp4\",\n  \"mimeType\": \"video/mp4\",\n  \"fileSize\": 18874368,\n  \"fileHash\": \"9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08\"\n}","options":{"raw":{"language":"json"}}}},"status":"Too Many Requests","code":429,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"MONTHLY_QUOTA_EXCEEDED\",\n    \"message\": \"Your monthly API call quota has been reached.\",\n    \"category\": \"RATE_LIMIT\",\n    \"httpStatus\": 429,\n    \"retryable\": false,\n    \"suggestedAction\": \"Wait until the quota resets at the start of next month, or upgrade your plan.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/MONTHLY_QUOTA_EXCEEDED\",\n    \"details\": {\n      \"limit\": 25000,\n      \"remaining\": 0\n    }\n  }\n}"},{"name":"502 UPSTREAM_UNAVAILABLE","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true},{"key":"Idempotency-Key","value":"{{$guid}}","description":"Caller-generated id for this upload. Send the same value on retry to get the same asset back. 1–255 characters, [A-Za-z0-9_-].","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/media/uploads","host":["{{baseUrl}}"],"path":["v1","media","uploads"]},"body":{"mode":"raw","raw":"{\n  \"fileName\": \"launch-reel.mp4\",\n  \"mimeType\": \"video/mp4\",\n  \"fileSize\": 18874368,\n  \"fileHash\": \"9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08\"\n}","options":{"raw":{"language":"json"}}}},"status":"Bad Gateway","code":502,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"UPSTREAM_UNAVAILABLE\",\n    \"message\": \"An upstream service is temporarily unavailable. Retry after the Retry-After interval.\",\n    \"category\": \"UPSTREAM\",\n    \"httpStatus\": 502,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry after the Retry-After interval.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/UPSTREAM_UNAVAILABLE\",\n    \"details\": {}\n  }\n}"},{"name":"500 INTERNAL","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true},{"key":"Idempotency-Key","value":"{{$guid}}","description":"Caller-generated id for this upload. Send the same value on retry to get the same asset back. 1–255 characters, [A-Za-z0-9_-].","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/media/uploads","host":["{{baseUrl}}"],"path":["v1","media","uploads"]},"body":{"mode":"raw","raw":"{\n  \"fileName\": \"launch-reel.mp4\",\n  \"mimeType\": \"video/mp4\",\n  \"fileSize\": 18874368,\n  \"fileHash\": \"9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08\"\n}","options":{"raw":{"language":"json"}}}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"INTERNAL\",\n    \"message\": \"An unexpected error occurred.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 500,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry with backoff. If it keeps failing, contact support with the requestId.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/INTERNAL\",\n    \"details\": {}\n  }\n}"},{"name":"503 SERVICE_OVERLOADED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true},{"key":"Idempotency-Key","value":"{{$guid}}","description":"Caller-generated id for this upload. Send the same value on retry to get the same asset back. 1–255 characters, [A-Za-z0-9_-].","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/media/uploads","host":["{{baseUrl}}"],"path":["v1","media","uploads"]},"body":{"mode":"raw","raw":"{\n  \"fileName\": \"launch-reel.mp4\",\n  \"mimeType\": \"video/mp4\",\n  \"fileSize\": 18874368,\n  \"fileHash\": \"9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08\"\n}","options":{"raw":{"language":"json"}}}},"status":"Service Unavailable","code":503,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"SERVICE_OVERLOADED\",\n    \"message\": \"The API is at capacity and refused this request before doing any work.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 503,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry after the Retry-After interval, with backoff. Nothing was changed.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/SERVICE_OVERLOADED\",\n    \"details\": {}\n  }\n}"}],"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('Returns 201 Created', () => {","  pm.response.to.have.status(201);","});","if (pm.response.code === 201) {","  const schema = {\"type\":\"object\",\"properties\":{\"media\":{\"type\":\"object\",\"properties\":{\"assetId\":{\"type\":\"string\"},\"status\":{\"type\":\"string\",\"enum\":[\"pending\",\"ready\"]},\"uploadUrl\":{\"type\":[\"string\",\"null\"]},\"uploadHeaders\":{\"type\":[\"object\",\"null\"]},\"expiresAt\":{\"type\":[\"string\",\"null\"]}},\"required\":[\"assetId\",\"status\",\"uploadUrl\",\"uploadHeaders\",\"expiresAt\"]}},\"required\":[\"media\"]};","  pm.test('Body matches the documented schema', () => {","    pm.response.to.have.jsonSchema(schema);","  });","  const next_assetId = \"media.assetId\".split('.').reduce((value, key) => (value == null ? undefined : value[key]), pm.response.json());","  if (typeof next_assetId === 'string' && next_assetId) {","    pm.collectionVariables.set('assetId', next_assetId);","  } else {","    console.warn('assetId not set: media.assetId is missing from the response.');","  }","  const next_uploadUrl = \"media.uploadUrl\".split('.').reduce((value, key) => (value == null ? undefined : value[key]), pm.response.json());","  if (typeof next_uploadUrl === 'string' && next_uploadUrl) {","    pm.collectionVariables.set('uploadUrl', next_uploadUrl);","  } else {","    console.warn('uploadUrl not set: media.uploadUrl is missing from the response.');","  }","}"]}}]},{"name":"Finish a media upload","request":{"method":"POST","description":"> **Changes data.** Marks an uploaded asset ready. In this collection it runs only when `allowWrites` is `true`.\n\nCall after the PUT to uploadUrl succeeds. Returns the asset with status ready. 409 MEDIA_UPLOAD_INCOMPLETE means the file has not arrived yet. Calling it again on a ready asset returns it unchanged.\n\nNeeds a `write` key.\n\n### Parameters\n\n| Name | In | Required | Type | Description |\n| --- | --- | --- | --- | --- |\n| `assetId` | path | yes | string |  |\n| `X-Client-Id` | header | no | string | Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self. |\n\n### Response: 200 OK\n\n| Field | Type | Description |\n| --- | --- | --- |\n| `media` | object |  |\n| `media.assetId` | string |  |\n| `media.status` | enum | One of: `pending`, `ready` |\n| `media.fileName` | string |  |\n| `media.mimeType` | string |  |\n| `media.fileSize` | number |  |\n| `media.url` | string, nullable | Where the file is served from. Null while pending. |\n| `media.createdAt` | string (date-time) |  |\n\n### Errors\n\nEvery error uses the shared error body. Each code below has an example on this request.\n\n| Code | HTTP | Retryable | Meaning |\n| --- | --- | --- | --- |\n| `API_KEY_MISSING` | 401 | no | No Authorization header was provided. Include your API key as a Bearer token in the Authorization header. |\n| `API_KEY_INVALID` | 401 | no | The API key is unknown, revoked, or supplied as a query parameter. Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL. |\n| `API_KEY_EXPIRED` | 401 | no | The API key has passed its expiry time. Create a new key in the dashboard and replace this one. |\n| `ACCOUNT_SUSPENDED` | 403 | no | API access for this workspace is not active. Ask the workspace owner to restore the workspace, or contact LuftSocial support. |\n| `PERMISSION_REQUIRED` | 403 | no | This API key is read-only. This operation changes data and needs a write key. Use a write key, or create one in the dashboard. |\n| `CLIENT_NOT_ALLOWED` | 403 | no | This API key is limited to other clients, or the operation covers the whole account. Use a key for this client, or a key for all clients for account-wide routes. |\n| `PLAN_REQUIRED` | 403 | no | Your workspace plan does not permit API access. Upgrade your plan to enable API access. |\n| `CLIENT_NOT_FOUND` | 404 | no | Client not found or not accessible to this workspace. Check the X-Client-Id header value. |\n| `MEDIA_NOT_FOUND` | 404 | no | Media asset not found in this brand. Check the assetId and the brand. Upload with POST /v1/media/uploads or POST /v1/media/import to get one. |\n| `MEDIA_UPLOAD_INCOMPLETE` | 409 | yes | The file has not been uploaded to uploadUrl yet. PUT the file to uploadUrl with uploadHeaders, then call complete again. |\n| `RATE_LIMITED` | 429 | yes | Too many requests. Slow down and retry after the Retry-After interval. Wait for the Retry-After header value before retrying. |\n| `MONTHLY_QUOTA_EXCEEDED` | 429 | no | Your monthly API call quota has been reached. Wait until the quota resets at the start of next month, or upgrade your plan. |\n| `UPSTREAM_UNAVAILABLE` | 502 | yes | An upstream service is temporarily unavailable. Retry after the Retry-After interval. Retry after the Retry-After interval. |\n| `INTERNAL` | 500 | yes | An unexpected error occurred. Retry with backoff. If it keeps failing, contact support with the requestId. |\n| `SERVICE_OVERLOADED` | 503 | yes | The API is at capacity and refused this request before doing any work. Retry after the Retry-After interval, with backoff. Nothing was changed. |","header":[{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/media/:assetId/complete","host":["{{baseUrl}}"],"path":["v1","media",":assetId","complete"],"variable":[{"key":"assetId","value":"{{assetId}}"}]}},"response":[{"name":"200 OK","originalRequest":{"method":"POST","header":[{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/media/:assetId/complete","host":["{{baseUrl}}"],"path":["v1","media",":assetId","complete"],"variable":[{"key":"assetId","value":"{{assetId}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"media\": {\n    \"assetId\": \"6f1c2a90-7b14-4e2a-9c31-0a6e8d4b91f2\",\n    \"status\": \"ready\",\n    \"fileName\": \"launch-reel.mp4\",\n    \"mimeType\": \"video/mp4\",\n    \"fileSize\": 18874368,\n    \"url\": \"https://cdn.luftsocial.com/social-media/…/launch-reel.mp4\",\n    \"createdAt\": \"2026-10-20T12:00:00.000Z\"\n  }\n}"},{"name":"401 API_KEY_MISSING","originalRequest":{"method":"POST","header":[{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/media/:assetId/complete","host":["{{baseUrl}}"],"path":["v1","media",":assetId","complete"],"variable":[{"key":"assetId","value":"{{assetId}}"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_MISSING\",\n    \"message\": \"No Authorization header was provided.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Include your API key as a Bearer token in the Authorization header.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_MISSING\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_INVALID","originalRequest":{"method":"POST","header":[{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/media/:assetId/complete","host":["{{baseUrl}}"],"path":["v1","media",":assetId","complete"],"variable":[{"key":"assetId","value":"{{assetId}}"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_INVALID\",\n    \"message\": \"The API key is unknown, revoked, or supplied as a query parameter.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_INVALID\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_EXPIRED","originalRequest":{"method":"POST","header":[{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/media/:assetId/complete","host":["{{baseUrl}}"],"path":["v1","media",":assetId","complete"],"variable":[{"key":"assetId","value":"{{assetId}}"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_EXPIRED\",\n    \"message\": \"The API key has passed its expiry time.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Create a new key in the dashboard and replace this one.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_EXPIRED\",\n    \"details\": {\n      \"expiredAt\": \"2027-01-01T00:00:00.000Z\"\n    }\n  }\n}"},{"name":"403 ACCOUNT_SUSPENDED","originalRequest":{"method":"POST","header":[{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/media/:assetId/complete","host":["{{baseUrl}}"],"path":["v1","media",":assetId","complete"],"variable":[{"key":"assetId","value":"{{assetId}}"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"ACCOUNT_SUSPENDED\",\n    \"message\": \"API access for this workspace is not active.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Ask the workspace owner to restore the workspace, or contact LuftSocial support.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/ACCOUNT_SUSPENDED\",\n    \"details\": {}\n  }\n}"},{"name":"403 PERMISSION_REQUIRED","originalRequest":{"method":"POST","header":[{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/media/:assetId/complete","host":["{{baseUrl}}"],"path":["v1","media",":assetId","complete"],"variable":[{"key":"assetId","value":"{{assetId}}"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PERMISSION_REQUIRED\",\n    \"message\": \"This API key is read-only. This operation changes data and needs a write key.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a write key, or create one in the dashboard.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PERMISSION_REQUIRED\",\n    \"details\": {\n      \"requiredPermission\": \"write\"\n    }\n  }\n}"},{"name":"403 CLIENT_NOT_ALLOWED","originalRequest":{"method":"POST","header":[{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/media/:assetId/complete","host":["{{baseUrl}}"],"path":["v1","media",":assetId","complete"],"variable":[{"key":"assetId","value":"{{assetId}}"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"CLIENT_NOT_ALLOWED\",\n    \"message\": \"This API key is limited to other clients, or the operation covers the whole account.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a key for this client, or a key for all clients for account-wide routes.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/CLIENT_NOT_ALLOWED\",\n    \"details\": {\n      \"clientId\": \"cli_01abc\"\n    }\n  }\n}"},{"name":"403 PLAN_REQUIRED","originalRequest":{"method":"POST","header":[{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/media/:assetId/complete","host":["{{baseUrl}}"],"path":["v1","media",":assetId","complete"],"variable":[{"key":"assetId","value":"{{assetId}}"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PLAN_REQUIRED\",\n    \"message\": \"Your workspace plan does not permit API access.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Upgrade your plan to enable API access.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PLAN_REQUIRED\",\n    \"details\": {\n      \"plan\": \"starter\"\n    }\n  }\n}"},{"name":"404 CLIENT_NOT_FOUND","originalRequest":{"method":"POST","header":[{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/media/:assetId/complete","host":["{{baseUrl}}"],"path":["v1","media",":assetId","complete"],"variable":[{"key":"assetId","value":"{{assetId}}"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"CLIENT_NOT_FOUND\",\n    \"message\": \"Client not found or not accessible to this workspace.\",\n    \"category\": \"NOT_FOUND\",\n    \"httpStatus\": 404,\n    \"retryable\": false,\n    \"suggestedAction\": \"Check the X-Client-Id header value.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/CLIENT_NOT_FOUND\",\n    \"details\": {\n      \"clientId\": \"cli_01abc\"\n    }\n  }\n}"},{"name":"404 MEDIA_NOT_FOUND","originalRequest":{"method":"POST","header":[{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/media/:assetId/complete","host":["{{baseUrl}}"],"path":["v1","media",":assetId","complete"],"variable":[{"key":"assetId","value":"{{assetId}}"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"MEDIA_NOT_FOUND\",\n    \"message\": \"Media asset not found in this brand.\",\n    \"category\": \"NOT_FOUND\",\n    \"httpStatus\": 404,\n    \"retryable\": false,\n    \"suggestedAction\": \"Check the assetId and the brand. Upload with POST /v1/media/uploads or POST /v1/media/import to get one.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/MEDIA_NOT_FOUND\",\n    \"details\": {\n      \"assetId\": \"6f1c2a90-7b14-4e2a-9c31-0a6e8d4b91f2\"\n    }\n  }\n}"},{"name":"409 MEDIA_UPLOAD_INCOMPLETE","originalRequest":{"method":"POST","header":[{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/media/:assetId/complete","host":["{{baseUrl}}"],"path":["v1","media",":assetId","complete"],"variable":[{"key":"assetId","value":"{{assetId}}"}]}},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"MEDIA_UPLOAD_INCOMPLETE\",\n    \"message\": \"The file has not been uploaded to uploadUrl yet.\",\n    \"category\": \"CONFLICT\",\n    \"httpStatus\": 409,\n    \"retryable\": true,\n    \"suggestedAction\": \"PUT the file to uploadUrl with uploadHeaders, then call complete again.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/MEDIA_UPLOAD_INCOMPLETE\",\n    \"details\": {}\n  }\n}"},{"name":"429 RATE_LIMITED","originalRequest":{"method":"POST","header":[{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/media/:assetId/complete","host":["{{baseUrl}}"],"path":["v1","media",":assetId","complete"],"variable":[{"key":"assetId","value":"{{assetId}}"}]}},"status":"Too Many Requests","code":429,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"RATE_LIMITED\",\n    \"message\": \"Too many requests. Slow down and retry after the Retry-After interval.\",\n    \"category\": \"RATE_LIMIT\",\n    \"httpStatus\": 429,\n    \"retryable\": true,\n    \"suggestedAction\": \"Wait for the Retry-After header value before retrying.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/RATE_LIMITED\",\n    \"details\": {\n      \"limit\": 60,\n      \"remaining\": 0\n    }\n  }\n}"},{"name":"429 MONTHLY_QUOTA_EXCEEDED","originalRequest":{"method":"POST","header":[{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/media/:assetId/complete","host":["{{baseUrl}}"],"path":["v1","media",":assetId","complete"],"variable":[{"key":"assetId","value":"{{assetId}}"}]}},"status":"Too Many Requests","code":429,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"MONTHLY_QUOTA_EXCEEDED\",\n    \"message\": \"Your monthly API call quota has been reached.\",\n    \"category\": \"RATE_LIMIT\",\n    \"httpStatus\": 429,\n    \"retryable\": false,\n    \"suggestedAction\": \"Wait until the quota resets at the start of next month, or upgrade your plan.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/MONTHLY_QUOTA_EXCEEDED\",\n    \"details\": {\n      \"limit\": 25000,\n      \"remaining\": 0\n    }\n  }\n}"},{"name":"502 UPSTREAM_UNAVAILABLE","originalRequest":{"method":"POST","header":[{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/media/:assetId/complete","host":["{{baseUrl}}"],"path":["v1","media",":assetId","complete"],"variable":[{"key":"assetId","value":"{{assetId}}"}]}},"status":"Bad Gateway","code":502,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"UPSTREAM_UNAVAILABLE\",\n    \"message\": \"An upstream service is temporarily unavailable. Retry after the Retry-After interval.\",\n    \"category\": \"UPSTREAM\",\n    \"httpStatus\": 502,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry after the Retry-After interval.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/UPSTREAM_UNAVAILABLE\",\n    \"details\": {}\n  }\n}"},{"name":"500 INTERNAL","originalRequest":{"method":"POST","header":[{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/media/:assetId/complete","host":["{{baseUrl}}"],"path":["v1","media",":assetId","complete"],"variable":[{"key":"assetId","value":"{{assetId}}"}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"INTERNAL\",\n    \"message\": \"An unexpected error occurred.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 500,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry with backoff. If it keeps failing, contact support with the requestId.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/INTERNAL\",\n    \"details\": {}\n  }\n}"},{"name":"503 SERVICE_OVERLOADED","originalRequest":{"method":"POST","header":[{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/media/:assetId/complete","host":["{{baseUrl}}"],"path":["v1","media",":assetId","complete"],"variable":[{"key":"assetId","value":"{{assetId}}"}]}},"status":"Service Unavailable","code":503,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"SERVICE_OVERLOADED\",\n    \"message\": \"The API is at capacity and refused this request before doing any work.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 503,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry after the Retry-After interval, with backoff. Nothing was changed.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/SERVICE_OVERLOADED\",\n    \"details\": {}\n  }\n}"}],"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('Returns 200 OK', () => {","  pm.response.to.have.status(200);","});","if (pm.response.code === 200) {","  const schema = {\"type\":\"object\",\"properties\":{\"media\":{\"type\":\"object\",\"properties\":{\"assetId\":{\"type\":\"string\"},\"status\":{\"type\":\"string\",\"enum\":[\"pending\",\"ready\"]},\"fileName\":{\"type\":\"string\"},\"mimeType\":{\"type\":\"string\"},\"fileSize\":{\"type\":\"number\"},\"url\":{\"type\":[\"string\",\"null\"]},\"createdAt\":{\"type\":\"string\"}},\"required\":[\"assetId\",\"status\",\"fileName\",\"mimeType\",\"fileSize\",\"url\",\"createdAt\"]}},\"required\":[\"media\"]};","  pm.test('Body matches the documented schema', () => {","    pm.response.to.have.jsonSchema(schema);","  });","}"]}}]},{"name":"Import media from a URL","request":{"method":"POST","description":"> **Changes data.** LuftSocial downloads the file from `sourceUrl` and stores it. Counts toward the workspace storage pool. In this collection it runs only when `allowWrites` is `true`.\n\nFetches a public HTTPS image or video into the client’s media and returns it ready to post. Use this when the file is already online; use POST /v1/media/uploads for local files. Large videos can take up to a minute.\n\nNeeds a `write` key.\n\n### Parameters\n\n| Name | In | Required | Type | Description |\n| --- | --- | --- | --- | --- |\n| `X-Client-Id` | header | no | string | Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self. |\n| `Idempotency-Key` | header | yes | string | Caller-generated id for this upload. Send the same value on retry to get the same asset back. 1–255 characters, [A-Za-z0-9_-]. min length 1; max length 255; pattern `^[A-Za-z0-9_-]+$` |\n\n### Request body\n\n`Content-Type: application/json`. Fields not listed here are rejected with `400 VALIDATION_FAILED`.\n\n| Field | Type | Required | Description |\n| --- | --- | --- | --- |\n| `sourceUrl` | string (uri) | yes | Public HTTPS URL of an image or video. Private and internal addresses are refused. max length 2048 |\n\n### Response: 201 Created\n\n| Field | Type | Description |\n| --- | --- | --- |\n| `media` | object |  |\n| `media.assetId` | string |  |\n| `media.status` | enum | One of: `pending`, `ready` |\n| `media.fileName` | string |  |\n| `media.mimeType` | string |  |\n| `media.fileSize` | number |  |\n| `media.url` | string, nullable | Where the file is served from. Null while pending. |\n| `media.createdAt` | string (date-time) |  |\n\n### Errors\n\nEvery error uses the shared error body. Each code below has an example on this request.\n\n| Code | HTTP | Retryable | Meaning |\n| --- | --- | --- | --- |\n| `API_KEY_MISSING` | 401 | no | No Authorization header was provided. Include your API key as a Bearer token in the Authorization header. |\n| `API_KEY_INVALID` | 401 | no | The API key is unknown, revoked, or supplied as a query parameter. Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL. |\n| `API_KEY_EXPIRED` | 401 | no | The API key has passed its expiry time. Create a new key in the dashboard and replace this one. |\n| `ACCOUNT_SUSPENDED` | 403 | no | API access for this workspace is not active. Ask the workspace owner to restore the workspace, or contact LuftSocial support. |\n| `PERMISSION_REQUIRED` | 403 | no | This API key is read-only. This operation changes data and needs a write key. Use a write key, or create one in the dashboard. |\n| `CLIENT_NOT_ALLOWED` | 403 | no | This API key is limited to other clients, or the operation covers the whole account. Use a key for this client, or a key for all clients for account-wide routes. |\n| `PLAN_REQUIRED` | 403 | no | Your workspace plan does not permit API access. Upgrade your plan to enable API access. |\n| `CLIENT_NOT_FOUND` | 404 | no | Client not found or not accessible to this workspace. Check the X-Client-Id header value. |\n| `VALIDATION_FAILED` | 400 | no | One or more request fields failed validation. Fix the fields listed in details.errors and retry. |\n| `MEDIA_IMPORT_FAILED` | 422 | no | The media at sourceUrl could not be imported. Use a public HTTPS URL that returns an image or video. details.reason says what went wrong. |\n| `MEDIA_TOO_LARGE` | 413 | no | The media file is larger than the upload limit. Compress or trim the file to under details.limit bytes, then upload it again. |\n| `STORAGE_QUOTA_EXCEEDED` | 403 | no | This upload would exceed the workspace storage pool. Delete unused media. Each extra non-X channel adds 2 GB. |\n| `IDEMPOTENCY_KEY_REUSED` | 409 | no | An earlier request used this Idempotency-Key with a different body. Use a new Idempotency-Key for this request, or resend the original body to replay the first result. |\n| `IDEMPOTENCY_REQUEST_IN_PROGRESS` | 409 | yes | The first request with this Idempotency-Key is still running. Wait a second and resend the same request with the same Idempotency-Key. |\n| `IDEMPOTENCY_OUTCOME_UNKNOWN` | 409 | no | An earlier request with this Idempotency-Key may have completed, but its result can't be confirmed. Check GET /v1/media/{assetId} if you have the id; otherwise retry with a new Idempotency-Key. The earlier attempt may have stored a file. |\n| `RATE_LIMITED` | 429 | yes | Too many requests. Slow down and retry after the Retry-After interval. Wait for the Retry-After header value before retrying. |\n| `MONTHLY_QUOTA_EXCEEDED` | 429 | no | Your monthly API call quota has been reached. Wait until the quota resets at the start of next month, or upgrade your plan. |\n| `UPSTREAM_UNAVAILABLE` | 502 | yes | An upstream service is temporarily unavailable. Retry after the Retry-After interval. Retry after the Retry-After interval. |\n| `INTERNAL` | 500 | yes | An unexpected error occurred. Retry with backoff. If it keeps failing, contact support with the requestId. |\n| `SERVICE_OVERLOADED` | 503 | yes | The API is at capacity and refused this request before doing any work. Retry after the Retry-After interval, with backoff. Nothing was changed. |","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true},{"key":"Idempotency-Key","value":"{{$guid}}","description":"Caller-generated id for this upload. Send the same value on retry to get the same asset back. 1–255 characters, [A-Za-z0-9_-].","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/media/import","host":["{{baseUrl}}"],"path":["v1","media","import"]},"body":{"mode":"raw","raw":"{\n  \"sourceUrl\": \"https://cdn.example.com/launch-reel.mp4\"\n}","options":{"raw":{"language":"json"}}}},"response":[{"name":"201 Created","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true},{"key":"Idempotency-Key","value":"{{$guid}}","description":"Caller-generated id for this upload. Send the same value on retry to get the same asset back. 1–255 characters, [A-Za-z0-9_-].","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/media/import","host":["{{baseUrl}}"],"path":["v1","media","import"]},"body":{"mode":"raw","raw":"{\n  \"sourceUrl\": \"https://cdn.example.com/launch-reel.mp4\"\n}","options":{"raw":{"language":"json"}}}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"media\": {\n    \"assetId\": \"6f1c2a90-7b14-4e2a-9c31-0a6e8d4b91f2\",\n    \"status\": \"ready\",\n    \"fileName\": \"launch-reel.mp4\",\n    \"mimeType\": \"video/mp4\",\n    \"fileSize\": 18874368,\n    \"url\": \"https://cdn.luftsocial.com/social-media/…/launch-reel.mp4\",\n    \"createdAt\": \"2026-10-20T12:00:00.000Z\"\n  }\n}"},{"name":"401 API_KEY_MISSING","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true},{"key":"Idempotency-Key","value":"{{$guid}}","description":"Caller-generated id for this upload. Send the same value on retry to get the same asset back. 1–255 characters, [A-Za-z0-9_-].","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/media/import","host":["{{baseUrl}}"],"path":["v1","media","import"]},"body":{"mode":"raw","raw":"{\n  \"sourceUrl\": \"https://cdn.example.com/launch-reel.mp4\"\n}","options":{"raw":{"language":"json"}}}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_MISSING\",\n    \"message\": \"No Authorization header was provided.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Include your API key as a Bearer token in the Authorization header.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_MISSING\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_INVALID","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true},{"key":"Idempotency-Key","value":"{{$guid}}","description":"Caller-generated id for this upload. Send the same value on retry to get the same asset back. 1–255 characters, [A-Za-z0-9_-].","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/media/import","host":["{{baseUrl}}"],"path":["v1","media","import"]},"body":{"mode":"raw","raw":"{\n  \"sourceUrl\": \"https://cdn.example.com/launch-reel.mp4\"\n}","options":{"raw":{"language":"json"}}}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_INVALID\",\n    \"message\": \"The API key is unknown, revoked, or supplied as a query parameter.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_INVALID\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_EXPIRED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true},{"key":"Idempotency-Key","value":"{{$guid}}","description":"Caller-generated id for this upload. Send the same value on retry to get the same asset back. 1–255 characters, [A-Za-z0-9_-].","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/media/import","host":["{{baseUrl}}"],"path":["v1","media","import"]},"body":{"mode":"raw","raw":"{\n  \"sourceUrl\": \"https://cdn.example.com/launch-reel.mp4\"\n}","options":{"raw":{"language":"json"}}}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_EXPIRED\",\n    \"message\": \"The API key has passed its expiry time.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Create a new key in the dashboard and replace this one.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_EXPIRED\",\n    \"details\": {\n      \"expiredAt\": \"2027-01-01T00:00:00.000Z\"\n    }\n  }\n}"},{"name":"403 ACCOUNT_SUSPENDED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true},{"key":"Idempotency-Key","value":"{{$guid}}","description":"Caller-generated id for this upload. Send the same value on retry to get the same asset back. 1–255 characters, [A-Za-z0-9_-].","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/media/import","host":["{{baseUrl}}"],"path":["v1","media","import"]},"body":{"mode":"raw","raw":"{\n  \"sourceUrl\": \"https://cdn.example.com/launch-reel.mp4\"\n}","options":{"raw":{"language":"json"}}}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"ACCOUNT_SUSPENDED\",\n    \"message\": \"API access for this workspace is not active.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Ask the workspace owner to restore the workspace, or contact LuftSocial support.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/ACCOUNT_SUSPENDED\",\n    \"details\": {}\n  }\n}"},{"name":"403 PERMISSION_REQUIRED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true},{"key":"Idempotency-Key","value":"{{$guid}}","description":"Caller-generated id for this upload. Send the same value on retry to get the same asset back. 1–255 characters, [A-Za-z0-9_-].","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/media/import","host":["{{baseUrl}}"],"path":["v1","media","import"]},"body":{"mode":"raw","raw":"{\n  \"sourceUrl\": \"https://cdn.example.com/launch-reel.mp4\"\n}","options":{"raw":{"language":"json"}}}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PERMISSION_REQUIRED\",\n    \"message\": \"This API key is read-only. This operation changes data and needs a write key.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a write key, or create one in the dashboard.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PERMISSION_REQUIRED\",\n    \"details\": {\n      \"requiredPermission\": \"write\"\n    }\n  }\n}"},{"name":"403 CLIENT_NOT_ALLOWED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true},{"key":"Idempotency-Key","value":"{{$guid}}","description":"Caller-generated id for this upload. Send the same value on retry to get the same asset back. 1–255 characters, [A-Za-z0-9_-].","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/media/import","host":["{{baseUrl}}"],"path":["v1","media","import"]},"body":{"mode":"raw","raw":"{\n  \"sourceUrl\": \"https://cdn.example.com/launch-reel.mp4\"\n}","options":{"raw":{"language":"json"}}}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"CLIENT_NOT_ALLOWED\",\n    \"message\": \"This API key is limited to other clients, or the operation covers the whole account.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a key for this client, or a key for all clients for account-wide routes.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/CLIENT_NOT_ALLOWED\",\n    \"details\": {\n      \"clientId\": \"cli_01abc\"\n    }\n  }\n}"},{"name":"403 PLAN_REQUIRED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true},{"key":"Idempotency-Key","value":"{{$guid}}","description":"Caller-generated id for this upload. Send the same value on retry to get the same asset back. 1–255 characters, [A-Za-z0-9_-].","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/media/import","host":["{{baseUrl}}"],"path":["v1","media","import"]},"body":{"mode":"raw","raw":"{\n  \"sourceUrl\": \"https://cdn.example.com/launch-reel.mp4\"\n}","options":{"raw":{"language":"json"}}}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PLAN_REQUIRED\",\n    \"message\": \"Your workspace plan does not permit API access.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Upgrade your plan to enable API access.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PLAN_REQUIRED\",\n    \"details\": {\n      \"plan\": \"starter\"\n    }\n  }\n}"},{"name":"404 CLIENT_NOT_FOUND","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true},{"key":"Idempotency-Key","value":"{{$guid}}","description":"Caller-generated id for this upload. Send the same value on retry to get the same asset back. 1–255 characters, [A-Za-z0-9_-].","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/media/import","host":["{{baseUrl}}"],"path":["v1","media","import"]},"body":{"mode":"raw","raw":"{\n  \"sourceUrl\": \"https://cdn.example.com/launch-reel.mp4\"\n}","options":{"raw":{"language":"json"}}}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"CLIENT_NOT_FOUND\",\n    \"message\": \"Client not found or not accessible to this workspace.\",\n    \"category\": \"NOT_FOUND\",\n    \"httpStatus\": 404,\n    \"retryable\": false,\n    \"suggestedAction\": \"Check the X-Client-Id header value.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/CLIENT_NOT_FOUND\",\n    \"details\": {\n      \"clientId\": \"cli_01abc\"\n    }\n  }\n}"},{"name":"400 VALIDATION_FAILED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true},{"key":"Idempotency-Key","value":"{{$guid}}","description":"Caller-generated id for this upload. Send the same value on retry to get the same asset back. 1–255 characters, [A-Za-z0-9_-].","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/media/import","host":["{{baseUrl}}"],"path":["v1","media","import"]},"body":{"mode":"raw","raw":"{\n  \"sourceUrl\": \"https://cdn.example.com/launch-reel.mp4\"\n}","options":{"raw":{"language":"json"}}}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"VALIDATION_FAILED\",\n    \"message\": \"One or more request fields failed validation.\",\n    \"category\": \"VALIDATION\",\n    \"httpStatus\": 400,\n    \"retryable\": false,\n    \"suggestedAction\": \"Fix the fields listed in details.errors and retry.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/VALIDATION_FAILED\",\n    \"details\": {\n      \"errors\": [\n        {\n          \"field\": \"scheduledAt\",\n          \"message\": \"Must be an ISO 8601 datetime in the future.\"\n        }\n      ]\n    }\n  }\n}"},{"name":"422 MEDIA_IMPORT_FAILED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true},{"key":"Idempotency-Key","value":"{{$guid}}","description":"Caller-generated id for this upload. Send the same value on retry to get the same asset back. 1–255 characters, [A-Za-z0-9_-].","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/media/import","host":["{{baseUrl}}"],"path":["v1","media","import"]},"body":{"mode":"raw","raw":"{\n  \"sourceUrl\": \"https://cdn.example.com/launch-reel.mp4\"\n}","options":{"raw":{"language":"json"}}}},"status":"Unprocessable Entity","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"MEDIA_IMPORT_FAILED\",\n    \"message\": \"The media at sourceUrl could not be imported.\",\n    \"category\": \"VALIDATION\",\n    \"httpStatus\": 422,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a public HTTPS URL that returns an image or video. details.reason says what went wrong.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/MEDIA_IMPORT_FAILED\",\n    \"details\": {\n      \"reason\": \"Media URL could not be fetched.\"\n    }\n  }\n}"},{"name":"413 MEDIA_TOO_LARGE","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true},{"key":"Idempotency-Key","value":"{{$guid}}","description":"Caller-generated id for this upload. Send the same value on retry to get the same asset back. 1–255 characters, [A-Za-z0-9_-].","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/media/import","host":["{{baseUrl}}"],"path":["v1","media","import"]},"body":{"mode":"raw","raw":"{\n  \"sourceUrl\": \"https://cdn.example.com/launch-reel.mp4\"\n}","options":{"raw":{"language":"json"}}}},"status":"Payload Too Large","code":413,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"MEDIA_TOO_LARGE\",\n    \"message\": \"The media file is larger than the upload limit.\",\n    \"category\": \"VALIDATION\",\n    \"httpStatus\": 413,\n    \"retryable\": false,\n    \"suggestedAction\": \"Compress or trim the file to under details.limit bytes, then upload it again.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/MEDIA_TOO_LARGE\",\n    \"details\": {\n      \"limit\": 1073741824\n    }\n  }\n}"},{"name":"403 STORAGE_QUOTA_EXCEEDED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true},{"key":"Idempotency-Key","value":"{{$guid}}","description":"Caller-generated id for this upload. Send the same value on retry to get the same asset back. 1–255 characters, [A-Za-z0-9_-].","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/media/import","host":["{{baseUrl}}"],"path":["v1","media","import"]},"body":{"mode":"raw","raw":"{\n  \"sourceUrl\": \"https://cdn.example.com/launch-reel.mp4\"\n}","options":{"raw":{"language":"json"}}}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"STORAGE_QUOTA_EXCEEDED\",\n    \"message\": \"This upload would exceed the workspace storage pool.\",\n    \"category\": \"PLAN\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Delete unused media. Each extra non-X channel adds 2 GB.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/STORAGE_QUOTA_EXCEEDED\",\n    \"details\": {\n      \"limit\": 10000000000,\n      \"used\": 10000000000,\n      \"remaining\": 0\n    }\n  }\n}"},{"name":"409 IDEMPOTENCY_KEY_REUSED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true},{"key":"Idempotency-Key","value":"{{$guid}}","description":"Caller-generated id for this upload. Send the same value on retry to get the same asset back. 1–255 characters, [A-Za-z0-9_-].","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/media/import","host":["{{baseUrl}}"],"path":["v1","media","import"]},"body":{"mode":"raw","raw":"{\n  \"sourceUrl\": \"https://cdn.example.com/launch-reel.mp4\"\n}","options":{"raw":{"language":"json"}}}},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"IDEMPOTENCY_KEY_REUSED\",\n    \"message\": \"An earlier request used this Idempotency-Key with a different body.\",\n    \"category\": \"CONFLICT\",\n    \"httpStatus\": 409,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a new Idempotency-Key for this request, or resend the original body to replay the first result.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/IDEMPOTENCY_KEY_REUSED\",\n    \"details\": {}\n  }\n}"},{"name":"409 IDEMPOTENCY_REQUEST_IN_PROGRESS","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true},{"key":"Idempotency-Key","value":"{{$guid}}","description":"Caller-generated id for this upload. Send the same value on retry to get the same asset back. 1–255 characters, [A-Za-z0-9_-].","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/media/import","host":["{{baseUrl}}"],"path":["v1","media","import"]},"body":{"mode":"raw","raw":"{\n  \"sourceUrl\": \"https://cdn.example.com/launch-reel.mp4\"\n}","options":{"raw":{"language":"json"}}}},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"IDEMPOTENCY_REQUEST_IN_PROGRESS\",\n    \"message\": \"The first request with this Idempotency-Key is still running.\",\n    \"category\": \"CONFLICT\",\n    \"httpStatus\": 409,\n    \"retryable\": true,\n    \"suggestedAction\": \"Wait a second and resend the same request with the same Idempotency-Key.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/IDEMPOTENCY_REQUEST_IN_PROGRESS\",\n    \"details\": {}\n  }\n}"},{"name":"409 IDEMPOTENCY_OUTCOME_UNKNOWN","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true},{"key":"Idempotency-Key","value":"{{$guid}}","description":"Caller-generated id for this upload. Send the same value on retry to get the same asset back. 1–255 characters, [A-Za-z0-9_-].","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/media/import","host":["{{baseUrl}}"],"path":["v1","media","import"]},"body":{"mode":"raw","raw":"{\n  \"sourceUrl\": \"https://cdn.example.com/launch-reel.mp4\"\n}","options":{"raw":{"language":"json"}}}},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"IDEMPOTENCY_OUTCOME_UNKNOWN\",\n    \"message\": \"An earlier request with this Idempotency-Key may have completed, but its result can't be confirmed.\",\n    \"category\": \"CONFLICT\",\n    \"httpStatus\": 409,\n    \"retryable\": false,\n    \"suggestedAction\": \"Check GET /v1/media/{assetId} if you have the id; otherwise retry with a new Idempotency-Key. The earlier attempt may have stored a file.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/IDEMPOTENCY_OUTCOME_UNKNOWN\",\n    \"details\": {}\n  }\n}"},{"name":"429 RATE_LIMITED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true},{"key":"Idempotency-Key","value":"{{$guid}}","description":"Caller-generated id for this upload. Send the same value on retry to get the same asset back. 1–255 characters, [A-Za-z0-9_-].","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/media/import","host":["{{baseUrl}}"],"path":["v1","media","import"]},"body":{"mode":"raw","raw":"{\n  \"sourceUrl\": \"https://cdn.example.com/launch-reel.mp4\"\n}","options":{"raw":{"language":"json"}}}},"status":"Too Many Requests","code":429,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"RATE_LIMITED\",\n    \"message\": \"Too many requests. Slow down and retry after the Retry-After interval.\",\n    \"category\": \"RATE_LIMIT\",\n    \"httpStatus\": 429,\n    \"retryable\": true,\n    \"suggestedAction\": \"Wait for the Retry-After header value before retrying.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/RATE_LIMITED\",\n    \"details\": {\n      \"limit\": 60,\n      \"remaining\": 0\n    }\n  }\n}"},{"name":"429 MONTHLY_QUOTA_EXCEEDED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true},{"key":"Idempotency-Key","value":"{{$guid}}","description":"Caller-generated id for this upload. Send the same value on retry to get the same asset back. 1–255 characters, [A-Za-z0-9_-].","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/media/import","host":["{{baseUrl}}"],"path":["v1","media","import"]},"body":{"mode":"raw","raw":"{\n  \"sourceUrl\": \"https://cdn.example.com/launch-reel.mp4\"\n}","options":{"raw":{"language":"json"}}}},"status":"Too Many Requests","code":429,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"MONTHLY_QUOTA_EXCEEDED\",\n    \"message\": \"Your monthly API call quota has been reached.\",\n    \"category\": \"RATE_LIMIT\",\n    \"httpStatus\": 429,\n    \"retryable\": false,\n    \"suggestedAction\": \"Wait until the quota resets at the start of next month, or upgrade your plan.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/MONTHLY_QUOTA_EXCEEDED\",\n    \"details\": {\n      \"limit\": 25000,\n      \"remaining\": 0\n    }\n  }\n}"},{"name":"502 UPSTREAM_UNAVAILABLE","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true},{"key":"Idempotency-Key","value":"{{$guid}}","description":"Caller-generated id for this upload. Send the same value on retry to get the same asset back. 1–255 characters, [A-Za-z0-9_-].","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/media/import","host":["{{baseUrl}}"],"path":["v1","media","import"]},"body":{"mode":"raw","raw":"{\n  \"sourceUrl\": \"https://cdn.example.com/launch-reel.mp4\"\n}","options":{"raw":{"language":"json"}}}},"status":"Bad Gateway","code":502,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"UPSTREAM_UNAVAILABLE\",\n    \"message\": \"An upstream service is temporarily unavailable. Retry after the Retry-After interval.\",\n    \"category\": \"UPSTREAM\",\n    \"httpStatus\": 502,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry after the Retry-After interval.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/UPSTREAM_UNAVAILABLE\",\n    \"details\": {}\n  }\n}"},{"name":"500 INTERNAL","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true},{"key":"Idempotency-Key","value":"{{$guid}}","description":"Caller-generated id for this upload. Send the same value on retry to get the same asset back. 1–255 characters, [A-Za-z0-9_-].","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/media/import","host":["{{baseUrl}}"],"path":["v1","media","import"]},"body":{"mode":"raw","raw":"{\n  \"sourceUrl\": \"https://cdn.example.com/launch-reel.mp4\"\n}","options":{"raw":{"language":"json"}}}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"INTERNAL\",\n    \"message\": \"An unexpected error occurred.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 500,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry with backoff. If it keeps failing, contact support with the requestId.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/INTERNAL\",\n    \"details\": {}\n  }\n}"},{"name":"503 SERVICE_OVERLOADED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true},{"key":"Idempotency-Key","value":"{{$guid}}","description":"Caller-generated id for this upload. Send the same value on retry to get the same asset back. 1–255 characters, [A-Za-z0-9_-].","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/media/import","host":["{{baseUrl}}"],"path":["v1","media","import"]},"body":{"mode":"raw","raw":"{\n  \"sourceUrl\": \"https://cdn.example.com/launch-reel.mp4\"\n}","options":{"raw":{"language":"json"}}}},"status":"Service Unavailable","code":503,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"SERVICE_OVERLOADED\",\n    \"message\": \"The API is at capacity and refused this request before doing any work.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 503,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry after the Retry-After interval, with backoff. Nothing was changed.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/SERVICE_OVERLOADED\",\n    \"details\": {}\n  }\n}"}],"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('Returns 201 Created', () => {","  pm.response.to.have.status(201);","});","if (pm.response.code === 201) {","  const schema = {\"type\":\"object\",\"properties\":{\"media\":{\"type\":\"object\",\"properties\":{\"assetId\":{\"type\":\"string\"},\"status\":{\"type\":\"string\",\"enum\":[\"pending\",\"ready\"]},\"fileName\":{\"type\":\"string\"},\"mimeType\":{\"type\":\"string\"},\"fileSize\":{\"type\":\"number\"},\"url\":{\"type\":[\"string\",\"null\"]},\"createdAt\":{\"type\":\"string\"}},\"required\":[\"assetId\",\"status\",\"fileName\",\"mimeType\",\"fileSize\",\"url\",\"createdAt\"]}},\"required\":[\"media\"]};","  pm.test('Body matches the documented schema', () => {","    pm.response.to.have.jsonSchema(schema);","  });","  const next_assetId = \"media.assetId\".split('.').reduce((value, key) => (value == null ? undefined : value[key]), pm.response.json());","  if (typeof next_assetId === 'string' && next_assetId) {","    pm.collectionVariables.set('assetId', next_assetId);","  } else {","    console.warn('assetId not set: media.assetId is missing from the response.');","  }","}"]}}]},{"name":"Get a media asset","request":{"method":"GET","description":"Returns the asset and whether it is ready to post. 404 MEDIA_NOT_FOUND when it is not in this client’s media.\n\nWorks with a `read` or `write` key.\n\n### Parameters\n\n| Name | In | Required | Type | Description |\n| --- | --- | --- | --- | --- |\n| `assetId` | path | yes | string |  |\n| `X-Client-Id` | header | no | string | Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self. |\n\n### Response: 200 OK\n\n| Field | Type | Description |\n| --- | --- | --- |\n| `media` | object |  |\n| `media.assetId` | string |  |\n| `media.status` | enum | One of: `pending`, `ready` |\n| `media.fileName` | string |  |\n| `media.mimeType` | string |  |\n| `media.fileSize` | number |  |\n| `media.url` | string, nullable | Where the file is served from. Null while pending. |\n| `media.createdAt` | string (date-time) |  |\n\n### Errors\n\nEvery error uses the shared error body. Each code below has an example on this request.\n\n| Code | HTTP | Retryable | Meaning |\n| --- | --- | --- | --- |\n| `API_KEY_MISSING` | 401 | no | No Authorization header was provided. Include your API key as a Bearer token in the Authorization header. |\n| `API_KEY_INVALID` | 401 | no | The API key is unknown, revoked, or supplied as a query parameter. Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL. |\n| `API_KEY_EXPIRED` | 401 | no | The API key has passed its expiry time. Create a new key in the dashboard and replace this one. |\n| `ACCOUNT_SUSPENDED` | 403 | no | API access for this workspace is not active. Ask the workspace owner to restore the workspace, or contact LuftSocial support. |\n| `PERMISSION_REQUIRED` | 403 | no | This API key is read-only. This operation changes data and needs a write key. Use a write key, or create one in the dashboard. |\n| `CLIENT_NOT_ALLOWED` | 403 | no | This API key is limited to other clients, or the operation covers the whole account. Use a key for this client, or a key for all clients for account-wide routes. |\n| `PLAN_REQUIRED` | 403 | no | Your workspace plan does not permit API access. Upgrade your plan to enable API access. |\n| `CLIENT_NOT_FOUND` | 404 | no | Client not found or not accessible to this workspace. Check the X-Client-Id header value. |\n| `MEDIA_NOT_FOUND` | 404 | no | Media asset not found in this brand. Check the assetId and the brand. Upload with POST /v1/media/uploads or POST /v1/media/import to get one. |\n| `RATE_LIMITED` | 429 | yes | Too many requests. Slow down and retry after the Retry-After interval. Wait for the Retry-After header value before retrying. |\n| `MONTHLY_QUOTA_EXCEEDED` | 429 | no | Your monthly API call quota has been reached. Wait until the quota resets at the start of next month, or upgrade your plan. |\n| `UPSTREAM_UNAVAILABLE` | 502 | yes | An upstream service is temporarily unavailable. Retry after the Retry-After interval. Retry after the Retry-After interval. |\n| `INTERNAL` | 500 | yes | An unexpected error occurred. Retry with backoff. If it keeps failing, contact support with the requestId. |\n| `SERVICE_OVERLOADED` | 503 | yes | The API is at capacity and refused this request before doing any work. Retry after the Retry-After interval, with backoff. Nothing was changed. |","header":[{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/media/:assetId","host":["{{baseUrl}}"],"path":["v1","media",":assetId"],"variable":[{"key":"assetId","value":"{{assetId}}"}]}},"response":[{"name":"200 OK","originalRequest":{"method":"GET","header":[{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/media/:assetId","host":["{{baseUrl}}"],"path":["v1","media",":assetId"],"variable":[{"key":"assetId","value":"{{assetId}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"media\": {\n    \"assetId\": \"6f1c2a90-7b14-4e2a-9c31-0a6e8d4b91f2\",\n    \"status\": \"ready\",\n    \"fileName\": \"launch-reel.mp4\",\n    \"mimeType\": \"video/mp4\",\n    \"fileSize\": 18874368,\n    \"url\": \"https://cdn.luftsocial.com/social-media/…/launch-reel.mp4\",\n    \"createdAt\": \"2026-10-20T12:00:00.000Z\"\n  }\n}"},{"name":"401 API_KEY_MISSING","originalRequest":{"method":"GET","header":[{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/media/:assetId","host":["{{baseUrl}}"],"path":["v1","media",":assetId"],"variable":[{"key":"assetId","value":"{{assetId}}"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_MISSING\",\n    \"message\": \"No Authorization header was provided.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Include your API key as a Bearer token in the Authorization header.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_MISSING\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_INVALID","originalRequest":{"method":"GET","header":[{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/media/:assetId","host":["{{baseUrl}}"],"path":["v1","media",":assetId"],"variable":[{"key":"assetId","value":"{{assetId}}"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_INVALID\",\n    \"message\": \"The API key is unknown, revoked, or supplied as a query parameter.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_INVALID\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_EXPIRED","originalRequest":{"method":"GET","header":[{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/media/:assetId","host":["{{baseUrl}}"],"path":["v1","media",":assetId"],"variable":[{"key":"assetId","value":"{{assetId}}"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_EXPIRED\",\n    \"message\": \"The API key has passed its expiry time.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Create a new key in the dashboard and replace this one.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_EXPIRED\",\n    \"details\": {\n      \"expiredAt\": \"2027-01-01T00:00:00.000Z\"\n    }\n  }\n}"},{"name":"403 ACCOUNT_SUSPENDED","originalRequest":{"method":"GET","header":[{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/media/:assetId","host":["{{baseUrl}}"],"path":["v1","media",":assetId"],"variable":[{"key":"assetId","value":"{{assetId}}"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"ACCOUNT_SUSPENDED\",\n    \"message\": \"API access for this workspace is not active.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Ask the workspace owner to restore the workspace, or contact LuftSocial support.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/ACCOUNT_SUSPENDED\",\n    \"details\": {}\n  }\n}"},{"name":"403 PERMISSION_REQUIRED","originalRequest":{"method":"GET","header":[{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/media/:assetId","host":["{{baseUrl}}"],"path":["v1","media",":assetId"],"variable":[{"key":"assetId","value":"{{assetId}}"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PERMISSION_REQUIRED\",\n    \"message\": \"This API key is read-only. This operation changes data and needs a write key.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a write key, or create one in the dashboard.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PERMISSION_REQUIRED\",\n    \"details\": {\n      \"requiredPermission\": \"write\"\n    }\n  }\n}"},{"name":"403 CLIENT_NOT_ALLOWED","originalRequest":{"method":"GET","header":[{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/media/:assetId","host":["{{baseUrl}}"],"path":["v1","media",":assetId"],"variable":[{"key":"assetId","value":"{{assetId}}"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"CLIENT_NOT_ALLOWED\",\n    \"message\": \"This API key is limited to other clients, or the operation covers the whole account.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a key for this client, or a key for all clients for account-wide routes.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/CLIENT_NOT_ALLOWED\",\n    \"details\": {\n      \"clientId\": \"cli_01abc\"\n    }\n  }\n}"},{"name":"403 PLAN_REQUIRED","originalRequest":{"method":"GET","header":[{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/media/:assetId","host":["{{baseUrl}}"],"path":["v1","media",":assetId"],"variable":[{"key":"assetId","value":"{{assetId}}"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PLAN_REQUIRED\",\n    \"message\": \"Your workspace plan does not permit API access.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Upgrade your plan to enable API access.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PLAN_REQUIRED\",\n    \"details\": {\n      \"plan\": \"starter\"\n    }\n  }\n}"},{"name":"404 CLIENT_NOT_FOUND","originalRequest":{"method":"GET","header":[{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/media/:assetId","host":["{{baseUrl}}"],"path":["v1","media",":assetId"],"variable":[{"key":"assetId","value":"{{assetId}}"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"CLIENT_NOT_FOUND\",\n    \"message\": \"Client not found or not accessible to this workspace.\",\n    \"category\": \"NOT_FOUND\",\n    \"httpStatus\": 404,\n    \"retryable\": false,\n    \"suggestedAction\": \"Check the X-Client-Id header value.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/CLIENT_NOT_FOUND\",\n    \"details\": {\n      \"clientId\": \"cli_01abc\"\n    }\n  }\n}"},{"name":"404 MEDIA_NOT_FOUND","originalRequest":{"method":"GET","header":[{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/media/:assetId","host":["{{baseUrl}}"],"path":["v1","media",":assetId"],"variable":[{"key":"assetId","value":"{{assetId}}"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"MEDIA_NOT_FOUND\",\n    \"message\": \"Media asset not found in this brand.\",\n    \"category\": \"NOT_FOUND\",\n    \"httpStatus\": 404,\n    \"retryable\": false,\n    \"suggestedAction\": \"Check the assetId and the brand. Upload with POST /v1/media/uploads or POST /v1/media/import to get one.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/MEDIA_NOT_FOUND\",\n    \"details\": {\n      \"assetId\": \"6f1c2a90-7b14-4e2a-9c31-0a6e8d4b91f2\"\n    }\n  }\n}"},{"name":"429 RATE_LIMITED","originalRequest":{"method":"GET","header":[{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/media/:assetId","host":["{{baseUrl}}"],"path":["v1","media",":assetId"],"variable":[{"key":"assetId","value":"{{assetId}}"}]}},"status":"Too Many Requests","code":429,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"RATE_LIMITED\",\n    \"message\": \"Too many requests. Slow down and retry after the Retry-After interval.\",\n    \"category\": \"RATE_LIMIT\",\n    \"httpStatus\": 429,\n    \"retryable\": true,\n    \"suggestedAction\": \"Wait for the Retry-After header value before retrying.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/RATE_LIMITED\",\n    \"details\": {\n      \"limit\": 60,\n      \"remaining\": 0\n    }\n  }\n}"},{"name":"429 MONTHLY_QUOTA_EXCEEDED","originalRequest":{"method":"GET","header":[{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/media/:assetId","host":["{{baseUrl}}"],"path":["v1","media",":assetId"],"variable":[{"key":"assetId","value":"{{assetId}}"}]}},"status":"Too Many Requests","code":429,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"MONTHLY_QUOTA_EXCEEDED\",\n    \"message\": \"Your monthly API call quota has been reached.\",\n    \"category\": \"RATE_LIMIT\",\n    \"httpStatus\": 429,\n    \"retryable\": false,\n    \"suggestedAction\": \"Wait until the quota resets at the start of next month, or upgrade your plan.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/MONTHLY_QUOTA_EXCEEDED\",\n    \"details\": {\n      \"limit\": 25000,\n      \"remaining\": 0\n    }\n  }\n}"},{"name":"502 UPSTREAM_UNAVAILABLE","originalRequest":{"method":"GET","header":[{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/media/:assetId","host":["{{baseUrl}}"],"path":["v1","media",":assetId"],"variable":[{"key":"assetId","value":"{{assetId}}"}]}},"status":"Bad Gateway","code":502,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"UPSTREAM_UNAVAILABLE\",\n    \"message\": \"An upstream service is temporarily unavailable. Retry after the Retry-After interval.\",\n    \"category\": \"UPSTREAM\",\n    \"httpStatus\": 502,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry after the Retry-After interval.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/UPSTREAM_UNAVAILABLE\",\n    \"details\": {}\n  }\n}"},{"name":"500 INTERNAL","originalRequest":{"method":"GET","header":[{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/media/:assetId","host":["{{baseUrl}}"],"path":["v1","media",":assetId"],"variable":[{"key":"assetId","value":"{{assetId}}"}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"INTERNAL\",\n    \"message\": \"An unexpected error occurred.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 500,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry with backoff. If it keeps failing, contact support with the requestId.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/INTERNAL\",\n    \"details\": {}\n  }\n}"},{"name":"503 SERVICE_OVERLOADED","originalRequest":{"method":"GET","header":[{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Media belongs to one client; post with the same one. Omitted: the key’s default client, else self.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/media/:assetId","host":["{{baseUrl}}"],"path":["v1","media",":assetId"],"variable":[{"key":"assetId","value":"{{assetId}}"}]}},"status":"Service Unavailable","code":503,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"SERVICE_OVERLOADED\",\n    \"message\": \"The API is at capacity and refused this request before doing any work.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 503,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry after the Retry-After interval, with backoff. Nothing was changed.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/SERVICE_OVERLOADED\",\n    \"details\": {}\n  }\n}"}],"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('Returns 200 OK', () => {","  pm.response.to.have.status(200);","});","if (pm.response.code === 200) {","  const schema = {\"type\":\"object\",\"properties\":{\"media\":{\"type\":\"object\",\"properties\":{\"assetId\":{\"type\":\"string\"},\"status\":{\"type\":\"string\",\"enum\":[\"pending\",\"ready\"]},\"fileName\":{\"type\":\"string\"},\"mimeType\":{\"type\":\"string\"},\"fileSize\":{\"type\":\"number\"},\"url\":{\"type\":[\"string\",\"null\"]},\"createdAt\":{\"type\":\"string\"}},\"required\":[\"assetId\",\"status\",\"fileName\",\"mimeType\",\"fileSize\",\"url\",\"createdAt\"]}},\"required\":[\"media\"]};","  pm.test('Body matches the documented schema', () => {","    pm.response.to.have.jsonSchema(schema);","  });","}"]}}]}]},{"name":"Posts","description":"Preflight, publish, read, and cancel a post.\n\n**Publishing lifecycle**\n\n1. Optional: `POST /v1/posts/preflight` checks the same rules publishing uses and changes nothing.\n2. `POST /v1/posts` with an `Idempotency-Key` returns `202` and the post with `status: queued`. Accepted is not published.\n3. Follow the post with the `post.published` / `post.failed` webhooks, or poll `GET /v1/posts/{postId}`. `GET /v1/posts` lists this application's posts, newest first, filterable by `status`.\n\n| Status | Meaning | Final |\n| --- | --- | --- |\n| `queued` | Accepted, not yet handed to the network. | No |\n| `scheduled` | Waiting for `scheduledAt`. Can still be edited or cancelled. | No |\n| `publishing` | Handed over; the network has not confirmed. Also shown while LuftSocial confirms an uncertain outcome. | No |\n| `published` | Every destination published. | Yes |\n| `partially_published` | Some destinations published. `destinations[]` says which failed and why. | Yes |\n| `failed` | Nothing published. `errorCode` and `errorMessage` say why. | Yes |\n| `cancelled` | Cancelled before it was handed over. | Yes |\n\n`post.published` is sent for `published` and `partially_published`. `post.failed` is sent for `failed`. Failed posts are also listed in `GET /v1/issues` for 30 days.\n\n**Do not resend a post to recover.** If `POST /v1/posts` timed out, resend it with the same `Idempotency-Key` and body: you get the original post back (`Idempotent-Replayed: true`), not a second one. A new key is a new post.","item":[{"name":"Check a post before publishing","request":{"method":"POST","description":"> **Read-only.** Changes nothing; runs with a `read` key.\n\nChecks the client, channels, X credentials, and every destination's media with the same rules publishing uses. Does not publish and does not reserve an idempotency key. Each destination lists media issues with a severity: error (the network rejects it, ok is false), warning (posts but may be cropped or scaled), info (we change the file, e.g. convert or resize, see autoFix). Each issue links to its page under /media-issues.\n\nWorks with a `read` or `write` key.\n\n### Parameters\n\n| Name | In | Required | Type | Description |\n| --- | --- | --- | --- | --- |\n| `X-Client-Id` | header | no | string | Client id (cli_…). Omitted: the key’s default client, else the client of the destination channels. |\n\n### Request body\n\n`Content-Type: application/json`. Fields not listed here are rejected with `400 VALIDATION_FAILED`.\n\n| Field | Type | Required | Description |\n| --- | --- | --- | --- |\n| `caption` | string | no | Caption used when a destination does not set its own. max length 63206 |\n| `title` | string | no | max length 2200 |\n| `destinations` | array of object | yes | One per channel, at most 200. A channelId may appear once. min items 1; max items 200 |\n| `destinations[].channelId` | string | yes | Channel id from GET /v1/channels. |\n| `destinations[].postType` | enum | no | Post type for this channel. YouTube Shorts use SHORTS. YouTube Live is not accepted. One of: `IMAGE`, `VIDEO`, `REELS`, `STORIES`, `SHORTS`, `TEXT`, `CAROUSEL`, `DOCUMENT` |\n| `destinations[].caption` | string | no | Caption for this channel. Falls back to the top-level caption when omitted. max length 63206 |\n| `destinations[].title` | string | no | Required for YouTube. Ignored by networks that have no title. max length 2200 |\n| `destinations[].mediaAssetIds` | array of string | no | Media for this channel. A Reel and a photo do not share a list. Set this on every destination. max items 35 |\n| `destinations[].platformSpecificParams` | object | no | Fields that belong only to this network. Text in caption and description is at most 63206 characters; title, documentTitle and articleTitle at most 2200. |\n| `mediaAssetIds` | array of string | no | Fallback media for a destination that omits mediaAssetIds. Prefer media on each destination. max items 35 |\n| `scheduledAt` | string (date-time) | no | Schedule time. Must be in the future. Omit to publish now. |\n\n### Response: 201 Created\n\nChecked. ok is false when any destination has an error issue. Nothing was queued.\n\n| Field | Type | Description |\n| --- | --- | --- |\n| `ok` | boolean | false only when a destination has an error issue. warning and info issues still publish. |\n| `destinations` | array of object |  |\n| `destinations[].channelId` | string |  |\n| `destinations[].platform` | string |  |\n| `destinations[].postType` | string | The post type the network will receive for this media. |\n| `destinations[].issues` | array of object | Media findings for this destination. Empty when clean. |\n| `destinations[].issues[].code` | string | Stable code. Branch on code + severity, never on message. See docUrl. |\n| `destinations[].issues[].severity` | enum | error: the network rejects it, the post will fail. warning: it posts but may be cropped, scaled or degraded. info: we change the file (see autoFix); it posts. One of: `error`, `warning`, `info` |\n| `destinations[].issues[].field` | string |  |\n| `destinations[].issues[].message` | string |  |\n| `destinations[].issues[].actual` | object | What the file has, e.g. { width: 4032, height: 3024 }. |\n| `destinations[].issues[].limit` | object | The limit it was checked against. |\n| `destinations[].issues[].autoFix` | object |  |\n| `destinations[].issues[].autoFix.action` | string | What we do to the file before sending it, e.g. convert_to_jpeg, resize_to_fit. |\n| `destinations[].issues[].docUrl` | string |  |\n\n### Errors\n\nEvery error uses the shared error body. Each code below has an example on this request.\n\n| Code | HTTP | Retryable | Meaning |\n| --- | --- | --- | --- |\n| `API_KEY_MISSING` | 401 | no | No Authorization header was provided. Include your API key as a Bearer token in the Authorization header. |\n| `API_KEY_INVALID` | 401 | no | The API key is unknown, revoked, or supplied as a query parameter. Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL. |\n| `API_KEY_EXPIRED` | 401 | no | The API key has passed its expiry time. Create a new key in the dashboard and replace this one. |\n| `ACCOUNT_SUSPENDED` | 403 | no | API access for this workspace is not active. Ask the workspace owner to restore the workspace, or contact LuftSocial support. |\n| `PERMISSION_REQUIRED` | 403 | no | This API key is read-only. This operation changes data and needs a write key. Use a write key, or create one in the dashboard. |\n| `CLIENT_NOT_ALLOWED` | 403 | no | This API key is limited to other clients, or the operation covers the whole account. Use a key for this client, or a key for all clients for account-wide routes. |\n| `PLAN_REQUIRED` | 403 | no | Your workspace plan does not permit API access. Upgrade your plan to enable API access. |\n| `CLIENT_NOT_FOUND` | 404 | no | Client not found or not accessible to this workspace. Check the X-Client-Id header value. |\n| `CHANNEL_NOT_FOUND` | 404 | no | Channel not found or not accessible to this workspace. Check the channel ID and that it belongs to this workspace. |\n| `CHANNEL_NOT_CONNECTED` | 409 | no | This channel is disconnected or needs to be reconnected. Connect the account again with POST /v1/channels/connect/{platform} (send channelId when GET /v1/channels still lists the channel), then retry. |\n| `VALIDATION_FAILED` | 400 | no | One or more request fields failed validation. Fix the fields listed in details.errors and retry. |\n| `CLIENT_PLATFORM_SLOT_TAKEN` | 409 | no | This client already has an account connected on that platform. Disconnect the existing account first, or add a new client for this account. |\n| `X_NOT_ENTITLED` | 403 | no | Your plan does not include X posting. Add the X add-on to continue. Add the X add-on to your plan, or supply your own X app credentials on the Developer plan. |\n| `X_CREDENTIALS_REQUIRED` | 422 | no | This X channel uses your own X app, and those credentials are missing, inactive, or not verified by X. Submit your X app credentials via POST /v1/channels/x/credentials, or connect X on LuftSocial's X app with paid X credit. |\n| `X_RECONNECT_REQUIRED` | 422 | no | This X channel was connected through an X app that is no longer the one it can publish with. The workspace's X app was replaced or removed, its credentials are no longer active and verified, or the connection predates app tracking. Reconnect the channel with POST /v1/channels/connect/x. It then uses your current X app, or LuftSocial's X app with paid X credit when no X app is stored. |\n| `X_ALLOWANCE_REQUIRED` | 402 | no | Connecting or posting to X on LuftSocial's X app requires paid X credit. Pay for X credit, or connect X with your own X app credentials. |\n| `X_CREDIT_SHORTFALL_LIMIT_REACHED` | 402 | no | An earlier X call used more than your remaining X credit, and that shortfall (at most $1.00) is unpaid. X on LuftSocial's X app is blocked until you top up. Top up your X credit wallet in the developer billing console. The top-up clears the shortfall first. |\n| `RATE_LIMITED` | 429 | yes | Too many requests. Slow down and retry after the Retry-After interval. Wait for the Retry-After header value before retrying. |\n| `MONTHLY_QUOTA_EXCEEDED` | 429 | no | Your monthly API call quota has been reached. Wait until the quota resets at the start of next month, or upgrade your plan. |\n| `UPSTREAM_UNAVAILABLE` | 502 | yes | An upstream service is temporarily unavailable. Retry after the Retry-After interval. Retry after the Retry-After interval. |\n| `INTERNAL` | 500 | yes | An unexpected error occurred. Retry with backoff. If it keeps failing, contact support with the requestId. |\n| `SERVICE_OVERLOADED` | 503 | yes | The API is at capacity and refused this request before doing any work. Retry after the Retry-After interval, with backoff. Nothing was changed. |","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Omitted: the key’s default client, else the client of the destination channels.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/posts/preflight","host":["{{baseUrl}}"],"path":["v1","posts","preflight"]},"body":{"mode":"raw","raw":"{\n  \"caption\": \"Launch day\",\n  \"destinations\": [\n    {\n      \"channelId\": \"ch_instagram\",\n      \"postType\": \"REELS\",\n      \"mediaAssetIds\": [\n        \"asset_reel_video\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_facebook\",\n      \"postType\": \"IMAGE\",\n      \"caption\": \"Launch day on Facebook\",\n      \"mediaAssetIds\": [\n        \"asset_facebook_photo\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_youtube\",\n      \"postType\": \"SHORTS\",\n      \"title\": \"Launch day short\",\n      \"mediaAssetIds\": [\n        \"asset_youtube_short\"\n      ]\n    }\n  ]\n}","options":{"raw":{"language":"json"}}}},"response":[{"name":"201 Created","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Omitted: the key’s default client, else the client of the destination channels.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/posts/preflight","host":["{{baseUrl}}"],"path":["v1","posts","preflight"]},"body":{"mode":"raw","raw":"{\n  \"caption\": \"Launch day\",\n  \"destinations\": [\n    {\n      \"channelId\": \"ch_instagram\",\n      \"postType\": \"REELS\",\n      \"mediaAssetIds\": [\n        \"asset_reel_video\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_facebook\",\n      \"postType\": \"IMAGE\",\n      \"caption\": \"Launch day on Facebook\",\n      \"mediaAssetIds\": [\n        \"asset_facebook_photo\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_youtube\",\n      \"postType\": \"SHORTS\",\n      \"title\": \"Launch day short\",\n      \"mediaAssetIds\": [\n        \"asset_youtube_short\"\n      ]\n    }\n  ]\n}","options":{"raw":{"language":"json"}}}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"ok\": true,\n  \"destinations\": [\n    {\n      \"channelId\": \"ch_01J9ZK3P\",\n      \"platform\": \"tiktok\",\n      \"postType\": \"IMAGE\",\n      \"issues\": [\n        {\n          \"code\": \"MEDIA_RESIZED\",\n          \"severity\": \"info\",\n          \"field\": \"dimensions\",\n          \"message\": \"We'll resize this photo to fit TikTok's 1080p limit.\",\n          \"actual\": {},\n          \"limit\": {},\n          \"autoFix\": {\n            \"action\": \"resize_to_fit\"\n          },\n          \"docUrl\": \"https://platform.luftsocial.com/media-issues/MEDIA_RESIZED\"\n        }\n      ]\n    }\n  ]\n}"},{"name":"401 API_KEY_MISSING","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Omitted: the key’s default client, else the client of the destination channels.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/posts/preflight","host":["{{baseUrl}}"],"path":["v1","posts","preflight"]},"body":{"mode":"raw","raw":"{\n  \"caption\": \"Launch day\",\n  \"destinations\": [\n    {\n      \"channelId\": \"ch_instagram\",\n      \"postType\": \"REELS\",\n      \"mediaAssetIds\": [\n        \"asset_reel_video\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_facebook\",\n      \"postType\": \"IMAGE\",\n      \"caption\": \"Launch day on Facebook\",\n      \"mediaAssetIds\": [\n        \"asset_facebook_photo\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_youtube\",\n      \"postType\": \"SHORTS\",\n      \"title\": \"Launch day short\",\n      \"mediaAssetIds\": [\n        \"asset_youtube_short\"\n      ]\n    }\n  ]\n}","options":{"raw":{"language":"json"}}}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_MISSING\",\n    \"message\": \"No Authorization header was provided.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Include your API key as a Bearer token in the Authorization header.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_MISSING\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_INVALID","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Omitted: the key’s default client, else the client of the destination channels.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/posts/preflight","host":["{{baseUrl}}"],"path":["v1","posts","preflight"]},"body":{"mode":"raw","raw":"{\n  \"caption\": \"Launch day\",\n  \"destinations\": [\n    {\n      \"channelId\": \"ch_instagram\",\n      \"postType\": \"REELS\",\n      \"mediaAssetIds\": [\n        \"asset_reel_video\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_facebook\",\n      \"postType\": \"IMAGE\",\n      \"caption\": \"Launch day on Facebook\",\n      \"mediaAssetIds\": [\n        \"asset_facebook_photo\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_youtube\",\n      \"postType\": \"SHORTS\",\n      \"title\": \"Launch day short\",\n      \"mediaAssetIds\": [\n        \"asset_youtube_short\"\n      ]\n    }\n  ]\n}","options":{"raw":{"language":"json"}}}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_INVALID\",\n    \"message\": \"The API key is unknown, revoked, or supplied as a query parameter.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_INVALID\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_EXPIRED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Omitted: the key’s default client, else the client of the destination channels.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/posts/preflight","host":["{{baseUrl}}"],"path":["v1","posts","preflight"]},"body":{"mode":"raw","raw":"{\n  \"caption\": \"Launch day\",\n  \"destinations\": [\n    {\n      \"channelId\": \"ch_instagram\",\n      \"postType\": \"REELS\",\n      \"mediaAssetIds\": [\n        \"asset_reel_video\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_facebook\",\n      \"postType\": \"IMAGE\",\n      \"caption\": \"Launch day on Facebook\",\n      \"mediaAssetIds\": [\n        \"asset_facebook_photo\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_youtube\",\n      \"postType\": \"SHORTS\",\n      \"title\": \"Launch day short\",\n      \"mediaAssetIds\": [\n        \"asset_youtube_short\"\n      ]\n    }\n  ]\n}","options":{"raw":{"language":"json"}}}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_EXPIRED\",\n    \"message\": \"The API key has passed its expiry time.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Create a new key in the dashboard and replace this one.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_EXPIRED\",\n    \"details\": {\n      \"expiredAt\": \"2027-01-01T00:00:00.000Z\"\n    }\n  }\n}"},{"name":"403 ACCOUNT_SUSPENDED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Omitted: the key’s default client, else the client of the destination channels.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/posts/preflight","host":["{{baseUrl}}"],"path":["v1","posts","preflight"]},"body":{"mode":"raw","raw":"{\n  \"caption\": \"Launch day\",\n  \"destinations\": [\n    {\n      \"channelId\": \"ch_instagram\",\n      \"postType\": \"REELS\",\n      \"mediaAssetIds\": [\n        \"asset_reel_video\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_facebook\",\n      \"postType\": \"IMAGE\",\n      \"caption\": \"Launch day on Facebook\",\n      \"mediaAssetIds\": [\n        \"asset_facebook_photo\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_youtube\",\n      \"postType\": \"SHORTS\",\n      \"title\": \"Launch day short\",\n      \"mediaAssetIds\": [\n        \"asset_youtube_short\"\n      ]\n    }\n  ]\n}","options":{"raw":{"language":"json"}}}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"ACCOUNT_SUSPENDED\",\n    \"message\": \"API access for this workspace is not active.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Ask the workspace owner to restore the workspace, or contact LuftSocial support.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/ACCOUNT_SUSPENDED\",\n    \"details\": {}\n  }\n}"},{"name":"403 PERMISSION_REQUIRED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Omitted: the key’s default client, else the client of the destination channels.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/posts/preflight","host":["{{baseUrl}}"],"path":["v1","posts","preflight"]},"body":{"mode":"raw","raw":"{\n  \"caption\": \"Launch day\",\n  \"destinations\": [\n    {\n      \"channelId\": \"ch_instagram\",\n      \"postType\": \"REELS\",\n      \"mediaAssetIds\": [\n        \"asset_reel_video\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_facebook\",\n      \"postType\": \"IMAGE\",\n      \"caption\": \"Launch day on Facebook\",\n      \"mediaAssetIds\": [\n        \"asset_facebook_photo\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_youtube\",\n      \"postType\": \"SHORTS\",\n      \"title\": \"Launch day short\",\n      \"mediaAssetIds\": [\n        \"asset_youtube_short\"\n      ]\n    }\n  ]\n}","options":{"raw":{"language":"json"}}}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PERMISSION_REQUIRED\",\n    \"message\": \"This API key is read-only. This operation changes data and needs a write key.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a write key, or create one in the dashboard.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PERMISSION_REQUIRED\",\n    \"details\": {\n      \"requiredPermission\": \"write\"\n    }\n  }\n}"},{"name":"403 CLIENT_NOT_ALLOWED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Omitted: the key’s default client, else the client of the destination channels.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/posts/preflight","host":["{{baseUrl}}"],"path":["v1","posts","preflight"]},"body":{"mode":"raw","raw":"{\n  \"caption\": \"Launch day\",\n  \"destinations\": [\n    {\n      \"channelId\": \"ch_instagram\",\n      \"postType\": \"REELS\",\n      \"mediaAssetIds\": [\n        \"asset_reel_video\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_facebook\",\n      \"postType\": \"IMAGE\",\n      \"caption\": \"Launch day on Facebook\",\n      \"mediaAssetIds\": [\n        \"asset_facebook_photo\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_youtube\",\n      \"postType\": \"SHORTS\",\n      \"title\": \"Launch day short\",\n      \"mediaAssetIds\": [\n        \"asset_youtube_short\"\n      ]\n    }\n  ]\n}","options":{"raw":{"language":"json"}}}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"CLIENT_NOT_ALLOWED\",\n    \"message\": \"This API key is limited to other clients, or the operation covers the whole account.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a key for this client, or a key for all clients for account-wide routes.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/CLIENT_NOT_ALLOWED\",\n    \"details\": {\n      \"clientId\": \"cli_01abc\"\n    }\n  }\n}"},{"name":"403 PLAN_REQUIRED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Omitted: the key’s default client, else the client of the destination channels.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/posts/preflight","host":["{{baseUrl}}"],"path":["v1","posts","preflight"]},"body":{"mode":"raw","raw":"{\n  \"caption\": \"Launch day\",\n  \"destinations\": [\n    {\n      \"channelId\": \"ch_instagram\",\n      \"postType\": \"REELS\",\n      \"mediaAssetIds\": [\n        \"asset_reel_video\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_facebook\",\n      \"postType\": \"IMAGE\",\n      \"caption\": \"Launch day on Facebook\",\n      \"mediaAssetIds\": [\n        \"asset_facebook_photo\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_youtube\",\n      \"postType\": \"SHORTS\",\n      \"title\": \"Launch day short\",\n      \"mediaAssetIds\": [\n        \"asset_youtube_short\"\n      ]\n    }\n  ]\n}","options":{"raw":{"language":"json"}}}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PLAN_REQUIRED\",\n    \"message\": \"Your workspace plan does not permit API access.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Upgrade your plan to enable API access.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PLAN_REQUIRED\",\n    \"details\": {\n      \"plan\": \"starter\"\n    }\n  }\n}"},{"name":"404 CLIENT_NOT_FOUND","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Omitted: the key’s default client, else the client of the destination channels.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/posts/preflight","host":["{{baseUrl}}"],"path":["v1","posts","preflight"]},"body":{"mode":"raw","raw":"{\n  \"caption\": \"Launch day\",\n  \"destinations\": [\n    {\n      \"channelId\": \"ch_instagram\",\n      \"postType\": \"REELS\",\n      \"mediaAssetIds\": [\n        \"asset_reel_video\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_facebook\",\n      \"postType\": \"IMAGE\",\n      \"caption\": \"Launch day on Facebook\",\n      \"mediaAssetIds\": [\n        \"asset_facebook_photo\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_youtube\",\n      \"postType\": \"SHORTS\",\n      \"title\": \"Launch day short\",\n      \"mediaAssetIds\": [\n        \"asset_youtube_short\"\n      ]\n    }\n  ]\n}","options":{"raw":{"language":"json"}}}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"CLIENT_NOT_FOUND\",\n    \"message\": \"Client not found or not accessible to this workspace.\",\n    \"category\": \"NOT_FOUND\",\n    \"httpStatus\": 404,\n    \"retryable\": false,\n    \"suggestedAction\": \"Check the X-Client-Id header value.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/CLIENT_NOT_FOUND\",\n    \"details\": {\n      \"clientId\": \"cli_01abc\"\n    }\n  }\n}"},{"name":"404 CHANNEL_NOT_FOUND","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Omitted: the key’s default client, else the client of the destination channels.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/posts/preflight","host":["{{baseUrl}}"],"path":["v1","posts","preflight"]},"body":{"mode":"raw","raw":"{\n  \"caption\": \"Launch day\",\n  \"destinations\": [\n    {\n      \"channelId\": \"ch_instagram\",\n      \"postType\": \"REELS\",\n      \"mediaAssetIds\": [\n        \"asset_reel_video\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_facebook\",\n      \"postType\": \"IMAGE\",\n      \"caption\": \"Launch day on Facebook\",\n      \"mediaAssetIds\": [\n        \"asset_facebook_photo\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_youtube\",\n      \"postType\": \"SHORTS\",\n      \"title\": \"Launch day short\",\n      \"mediaAssetIds\": [\n        \"asset_youtube_short\"\n      ]\n    }\n  ]\n}","options":{"raw":{"language":"json"}}}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"CHANNEL_NOT_FOUND\",\n    \"message\": \"Channel not found or not accessible to this workspace.\",\n    \"category\": \"NOT_FOUND\",\n    \"httpStatus\": 404,\n    \"retryable\": false,\n    \"suggestedAction\": \"Check the channel ID and that it belongs to this workspace.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/CHANNEL_NOT_FOUND\",\n    \"details\": {\n      \"channelId\": \"ch_01abc\"\n    }\n  }\n}"},{"name":"409 CHANNEL_NOT_CONNECTED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Omitted: the key’s default client, else the client of the destination channels.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/posts/preflight","host":["{{baseUrl}}"],"path":["v1","posts","preflight"]},"body":{"mode":"raw","raw":"{\n  \"caption\": \"Launch day\",\n  \"destinations\": [\n    {\n      \"channelId\": \"ch_instagram\",\n      \"postType\": \"REELS\",\n      \"mediaAssetIds\": [\n        \"asset_reel_video\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_facebook\",\n      \"postType\": \"IMAGE\",\n      \"caption\": \"Launch day on Facebook\",\n      \"mediaAssetIds\": [\n        \"asset_facebook_photo\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_youtube\",\n      \"postType\": \"SHORTS\",\n      \"title\": \"Launch day short\",\n      \"mediaAssetIds\": [\n        \"asset_youtube_short\"\n      ]\n    }\n  ]\n}","options":{"raw":{"language":"json"}}}},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"CHANNEL_NOT_CONNECTED\",\n    \"message\": \"This channel is disconnected or needs to be reconnected.\",\n    \"category\": \"CONFLICT\",\n    \"httpStatus\": 409,\n    \"retryable\": false,\n    \"suggestedAction\": \"Connect the account again with POST /v1/channels/connect/{platform} (send channelId when GET /v1/channels still lists the channel), then retry.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/CHANNEL_NOT_CONNECTED\",\n    \"details\": {\n      \"channelId\": \"ch_01abc\"\n    }\n  }\n}"},{"name":"400 VALIDATION_FAILED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Omitted: the key’s default client, else the client of the destination channels.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/posts/preflight","host":["{{baseUrl}}"],"path":["v1","posts","preflight"]},"body":{"mode":"raw","raw":"{\n  \"caption\": \"Launch day\",\n  \"destinations\": [\n    {\n      \"channelId\": \"ch_instagram\",\n      \"postType\": \"REELS\",\n      \"mediaAssetIds\": [\n        \"asset_reel_video\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_facebook\",\n      \"postType\": \"IMAGE\",\n      \"caption\": \"Launch day on Facebook\",\n      \"mediaAssetIds\": [\n        \"asset_facebook_photo\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_youtube\",\n      \"postType\": \"SHORTS\",\n      \"title\": \"Launch day short\",\n      \"mediaAssetIds\": [\n        \"asset_youtube_short\"\n      ]\n    }\n  ]\n}","options":{"raw":{"language":"json"}}}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"VALIDATION_FAILED\",\n    \"message\": \"One or more request fields failed validation.\",\n    \"category\": \"VALIDATION\",\n    \"httpStatus\": 400,\n    \"retryable\": false,\n    \"suggestedAction\": \"Fix the fields listed in details.errors and retry.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/VALIDATION_FAILED\",\n    \"details\": {\n      \"errors\": [\n        {\n          \"field\": \"scheduledAt\",\n          \"message\": \"Must be an ISO 8601 datetime in the future.\"\n        }\n      ]\n    }\n  }\n}"},{"name":"409 CLIENT_PLATFORM_SLOT_TAKEN","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Omitted: the key’s default client, else the client of the destination channels.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/posts/preflight","host":["{{baseUrl}}"],"path":["v1","posts","preflight"]},"body":{"mode":"raw","raw":"{\n  \"caption\": \"Launch day\",\n  \"destinations\": [\n    {\n      \"channelId\": \"ch_instagram\",\n      \"postType\": \"REELS\",\n      \"mediaAssetIds\": [\n        \"asset_reel_video\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_facebook\",\n      \"postType\": \"IMAGE\",\n      \"caption\": \"Launch day on Facebook\",\n      \"mediaAssetIds\": [\n        \"asset_facebook_photo\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_youtube\",\n      \"postType\": \"SHORTS\",\n      \"title\": \"Launch day short\",\n      \"mediaAssetIds\": [\n        \"asset_youtube_short\"\n      ]\n    }\n  ]\n}","options":{"raw":{"language":"json"}}}},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"CLIENT_PLATFORM_SLOT_TAKEN\",\n    \"message\": \"This client already has an account connected on that platform.\",\n    \"category\": \"CONFLICT\",\n    \"httpStatus\": 409,\n    \"retryable\": false,\n    \"suggestedAction\": \"Disconnect the existing account first, or add a new client for this account.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/CLIENT_PLATFORM_SLOT_TAKEN\",\n    \"details\": {\n      \"platform\": \"instagram\"\n    }\n  }\n}"},{"name":"403 X_NOT_ENTITLED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Omitted: the key’s default client, else the client of the destination channels.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/posts/preflight","host":["{{baseUrl}}"],"path":["v1","posts","preflight"]},"body":{"mode":"raw","raw":"{\n  \"caption\": \"Launch day\",\n  \"destinations\": [\n    {\n      \"channelId\": \"ch_instagram\",\n      \"postType\": \"REELS\",\n      \"mediaAssetIds\": [\n        \"asset_reel_video\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_facebook\",\n      \"postType\": \"IMAGE\",\n      \"caption\": \"Launch day on Facebook\",\n      \"mediaAssetIds\": [\n        \"asset_facebook_photo\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_youtube\",\n      \"postType\": \"SHORTS\",\n      \"title\": \"Launch day short\",\n      \"mediaAssetIds\": [\n        \"asset_youtube_short\"\n      ]\n    }\n  ]\n}","options":{"raw":{"language":"json"}}}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"X_NOT_ENTITLED\",\n    \"message\": \"Your plan does not include X posting. Add the X add-on to continue.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Add the X add-on to your plan, or supply your own X app credentials on the Developer plan.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/X_NOT_ENTITLED\",\n    \"details\": {\n      \"plan\": \"starter\"\n    }\n  }\n}"},{"name":"422 X_CREDENTIALS_REQUIRED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Omitted: the key’s default client, else the client of the destination channels.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/posts/preflight","host":["{{baseUrl}}"],"path":["v1","posts","preflight"]},"body":{"mode":"raw","raw":"{\n  \"caption\": \"Launch day\",\n  \"destinations\": [\n    {\n      \"channelId\": \"ch_instagram\",\n      \"postType\": \"REELS\",\n      \"mediaAssetIds\": [\n        \"asset_reel_video\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_facebook\",\n      \"postType\": \"IMAGE\",\n      \"caption\": \"Launch day on Facebook\",\n      \"mediaAssetIds\": [\n        \"asset_facebook_photo\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_youtube\",\n      \"postType\": \"SHORTS\",\n      \"title\": \"Launch day short\",\n      \"mediaAssetIds\": [\n        \"asset_youtube_short\"\n      ]\n    }\n  ]\n}","options":{"raw":{"language":"json"}}}},"status":"Unprocessable Entity","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"X_CREDENTIALS_REQUIRED\",\n    \"message\": \"This X channel uses your own X app, and those credentials are missing, inactive, or not verified by X.\",\n    \"category\": \"VALIDATION\",\n    \"httpStatus\": 422,\n    \"retryable\": false,\n    \"suggestedAction\": \"Submit your X app credentials via POST /v1/channels/x/credentials, or connect X on LuftSocial's X app with paid X credit.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/X_CREDENTIALS_REQUIRED\",\n    \"details\": {}\n  }\n}"},{"name":"422 X_RECONNECT_REQUIRED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Omitted: the key’s default client, else the client of the destination channels.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/posts/preflight","host":["{{baseUrl}}"],"path":["v1","posts","preflight"]},"body":{"mode":"raw","raw":"{\n  \"caption\": \"Launch day\",\n  \"destinations\": [\n    {\n      \"channelId\": \"ch_instagram\",\n      \"postType\": \"REELS\",\n      \"mediaAssetIds\": [\n        \"asset_reel_video\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_facebook\",\n      \"postType\": \"IMAGE\",\n      \"caption\": \"Launch day on Facebook\",\n      \"mediaAssetIds\": [\n        \"asset_facebook_photo\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_youtube\",\n      \"postType\": \"SHORTS\",\n      \"title\": \"Launch day short\",\n      \"mediaAssetIds\": [\n        \"asset_youtube_short\"\n      ]\n    }\n  ]\n}","options":{"raw":{"language":"json"}}}},"status":"Unprocessable Entity","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"X_RECONNECT_REQUIRED\",\n    \"message\": \"This X channel was connected through an X app that is no longer the one it can publish with. The workspace's X app was replaced or removed, its credentials are no longer active and verified, or the connection predates app tracking.\",\n    \"category\": \"VALIDATION\",\n    \"httpStatus\": 422,\n    \"retryable\": false,\n    \"suggestedAction\": \"Reconnect the channel with POST /v1/channels/connect/x. It then uses your current X app, or LuftSocial's X app with paid X credit when no X app is stored.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/X_RECONNECT_REQUIRED\",\n    \"details\": {\n      \"channelId\": \"ch_x\"\n    }\n  }\n}"},{"name":"402 X_ALLOWANCE_REQUIRED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Omitted: the key’s default client, else the client of the destination channels.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/posts/preflight","host":["{{baseUrl}}"],"path":["v1","posts","preflight"]},"body":{"mode":"raw","raw":"{\n  \"caption\": \"Launch day\",\n  \"destinations\": [\n    {\n      \"channelId\": \"ch_instagram\",\n      \"postType\": \"REELS\",\n      \"mediaAssetIds\": [\n        \"asset_reel_video\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_facebook\",\n      \"postType\": \"IMAGE\",\n      \"caption\": \"Launch day on Facebook\",\n      \"mediaAssetIds\": [\n        \"asset_facebook_photo\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_youtube\",\n      \"postType\": \"SHORTS\",\n      \"title\": \"Launch day short\",\n      \"mediaAssetIds\": [\n        \"asset_youtube_short\"\n      ]\n    }\n  ]\n}","options":{"raw":{"language":"json"}}}},"status":"Payment Required","code":402,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"X_ALLOWANCE_REQUIRED\",\n    \"message\": \"Connecting or posting to X on LuftSocial's X app requires paid X credit.\",\n    \"category\": \"PLAN\",\n    \"httpStatus\": 402,\n    \"retryable\": false,\n    \"suggestedAction\": \"Pay for X credit, or connect X with your own X app credentials.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/X_ALLOWANCE_REQUIRED\",\n    \"details\": {}\n  }\n}"},{"name":"402 X_CREDIT_SHORTFALL_LIMIT_REACHED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Omitted: the key’s default client, else the client of the destination channels.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/posts/preflight","host":["{{baseUrl}}"],"path":["v1","posts","preflight"]},"body":{"mode":"raw","raw":"{\n  \"caption\": \"Launch day\",\n  \"destinations\": [\n    {\n      \"channelId\": \"ch_instagram\",\n      \"postType\": \"REELS\",\n      \"mediaAssetIds\": [\n        \"asset_reel_video\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_facebook\",\n      \"postType\": \"IMAGE\",\n      \"caption\": \"Launch day on Facebook\",\n      \"mediaAssetIds\": [\n        \"asset_facebook_photo\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_youtube\",\n      \"postType\": \"SHORTS\",\n      \"title\": \"Launch day short\",\n      \"mediaAssetIds\": [\n        \"asset_youtube_short\"\n      ]\n    }\n  ]\n}","options":{"raw":{"language":"json"}}}},"status":"Payment Required","code":402,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"X_CREDIT_SHORTFALL_LIMIT_REACHED\",\n    \"message\": \"An earlier X call used more than your remaining X credit, and that shortfall (at most $1.00) is unpaid. X on LuftSocial's X app is blocked until you top up.\",\n    \"category\": \"PLAN\",\n    \"httpStatus\": 402,\n    \"retryable\": false,\n    \"suggestedAction\": \"Top up your X credit wallet in the developer billing console. The top-up clears the shortfall first.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/X_CREDIT_SHORTFALL_LIMIT_REACHED\",\n    \"details\": {}\n  }\n}"},{"name":"429 RATE_LIMITED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Omitted: the key’s default client, else the client of the destination channels.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/posts/preflight","host":["{{baseUrl}}"],"path":["v1","posts","preflight"]},"body":{"mode":"raw","raw":"{\n  \"caption\": \"Launch day\",\n  \"destinations\": [\n    {\n      \"channelId\": \"ch_instagram\",\n      \"postType\": \"REELS\",\n      \"mediaAssetIds\": [\n        \"asset_reel_video\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_facebook\",\n      \"postType\": \"IMAGE\",\n      \"caption\": \"Launch day on Facebook\",\n      \"mediaAssetIds\": [\n        \"asset_facebook_photo\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_youtube\",\n      \"postType\": \"SHORTS\",\n      \"title\": \"Launch day short\",\n      \"mediaAssetIds\": [\n        \"asset_youtube_short\"\n      ]\n    }\n  ]\n}","options":{"raw":{"language":"json"}}}},"status":"Too Many Requests","code":429,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"RATE_LIMITED\",\n    \"message\": \"Too many requests. Slow down and retry after the Retry-After interval.\",\n    \"category\": \"RATE_LIMIT\",\n    \"httpStatus\": 429,\n    \"retryable\": true,\n    \"suggestedAction\": \"Wait for the Retry-After header value before retrying.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/RATE_LIMITED\",\n    \"details\": {\n      \"limit\": 60,\n      \"remaining\": 0\n    }\n  }\n}"},{"name":"429 MONTHLY_QUOTA_EXCEEDED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Omitted: the key’s default client, else the client of the destination channels.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/posts/preflight","host":["{{baseUrl}}"],"path":["v1","posts","preflight"]},"body":{"mode":"raw","raw":"{\n  \"caption\": \"Launch day\",\n  \"destinations\": [\n    {\n      \"channelId\": \"ch_instagram\",\n      \"postType\": \"REELS\",\n      \"mediaAssetIds\": [\n        \"asset_reel_video\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_facebook\",\n      \"postType\": \"IMAGE\",\n      \"caption\": \"Launch day on Facebook\",\n      \"mediaAssetIds\": [\n        \"asset_facebook_photo\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_youtube\",\n      \"postType\": \"SHORTS\",\n      \"title\": \"Launch day short\",\n      \"mediaAssetIds\": [\n        \"asset_youtube_short\"\n      ]\n    }\n  ]\n}","options":{"raw":{"language":"json"}}}},"status":"Too Many Requests","code":429,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"MONTHLY_QUOTA_EXCEEDED\",\n    \"message\": \"Your monthly API call quota has been reached.\",\n    \"category\": \"RATE_LIMIT\",\n    \"httpStatus\": 429,\n    \"retryable\": false,\n    \"suggestedAction\": \"Wait until the quota resets at the start of next month, or upgrade your plan.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/MONTHLY_QUOTA_EXCEEDED\",\n    \"details\": {\n      \"limit\": 25000,\n      \"remaining\": 0\n    }\n  }\n}"},{"name":"502 UPSTREAM_UNAVAILABLE","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Omitted: the key’s default client, else the client of the destination channels.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/posts/preflight","host":["{{baseUrl}}"],"path":["v1","posts","preflight"]},"body":{"mode":"raw","raw":"{\n  \"caption\": \"Launch day\",\n  \"destinations\": [\n    {\n      \"channelId\": \"ch_instagram\",\n      \"postType\": \"REELS\",\n      \"mediaAssetIds\": [\n        \"asset_reel_video\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_facebook\",\n      \"postType\": \"IMAGE\",\n      \"caption\": \"Launch day on Facebook\",\n      \"mediaAssetIds\": [\n        \"asset_facebook_photo\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_youtube\",\n      \"postType\": \"SHORTS\",\n      \"title\": \"Launch day short\",\n      \"mediaAssetIds\": [\n        \"asset_youtube_short\"\n      ]\n    }\n  ]\n}","options":{"raw":{"language":"json"}}}},"status":"Bad Gateway","code":502,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"UPSTREAM_UNAVAILABLE\",\n    \"message\": \"An upstream service is temporarily unavailable. Retry after the Retry-After interval.\",\n    \"category\": \"UPSTREAM\",\n    \"httpStatus\": 502,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry after the Retry-After interval.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/UPSTREAM_UNAVAILABLE\",\n    \"details\": {}\n  }\n}"},{"name":"500 INTERNAL","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Omitted: the key’s default client, else the client of the destination channels.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/posts/preflight","host":["{{baseUrl}}"],"path":["v1","posts","preflight"]},"body":{"mode":"raw","raw":"{\n  \"caption\": \"Launch day\",\n  \"destinations\": [\n    {\n      \"channelId\": \"ch_instagram\",\n      \"postType\": \"REELS\",\n      \"mediaAssetIds\": [\n        \"asset_reel_video\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_facebook\",\n      \"postType\": \"IMAGE\",\n      \"caption\": \"Launch day on Facebook\",\n      \"mediaAssetIds\": [\n        \"asset_facebook_photo\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_youtube\",\n      \"postType\": \"SHORTS\",\n      \"title\": \"Launch day short\",\n      \"mediaAssetIds\": [\n        \"asset_youtube_short\"\n      ]\n    }\n  ]\n}","options":{"raw":{"language":"json"}}}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"INTERNAL\",\n    \"message\": \"An unexpected error occurred.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 500,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry with backoff. If it keeps failing, contact support with the requestId.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/INTERNAL\",\n    \"details\": {}\n  }\n}"},{"name":"503 SERVICE_OVERLOADED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Omitted: the key’s default client, else the client of the destination channels.","disabled":true}],"url":{"raw":"{{baseUrl}}/v1/posts/preflight","host":["{{baseUrl}}"],"path":["v1","posts","preflight"]},"body":{"mode":"raw","raw":"{\n  \"caption\": \"Launch day\",\n  \"destinations\": [\n    {\n      \"channelId\": \"ch_instagram\",\n      \"postType\": \"REELS\",\n      \"mediaAssetIds\": [\n        \"asset_reel_video\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_facebook\",\n      \"postType\": \"IMAGE\",\n      \"caption\": \"Launch day on Facebook\",\n      \"mediaAssetIds\": [\n        \"asset_facebook_photo\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_youtube\",\n      \"postType\": \"SHORTS\",\n      \"title\": \"Launch day short\",\n      \"mediaAssetIds\": [\n        \"asset_youtube_short\"\n      ]\n    }\n  ]\n}","options":{"raw":{"language":"json"}}}},"status":"Service Unavailable","code":503,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"SERVICE_OVERLOADED\",\n    \"message\": \"The API is at capacity and refused this request before doing any work.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 503,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry after the Retry-After interval, with backoff. Nothing was changed.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/SERVICE_OVERLOADED\",\n    \"details\": {}\n  }\n}"}],"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('Returns 201 Created', () => {","  pm.response.to.have.status(201);","});","if (pm.response.code === 201) {","  const schema = {\"type\":\"object\",\"properties\":{\"ok\":{\"type\":\"boolean\"},\"destinations\":{\"type\":\"array\",\"items\":{\"type\":\"object\",\"properties\":{\"channelId\":{\"type\":\"string\"},\"platform\":{\"type\":\"string\"},\"postType\":{\"type\":\"string\"},\"issues\":{\"type\":\"array\",\"items\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"string\"},\"severity\":{\"type\":\"string\",\"enum\":[\"error\",\"warning\",\"info\"]},\"field\":{\"type\":\"string\"},\"message\":{\"type\":\"string\"},\"actual\":{\"type\":\"object\"},\"limit\":{\"type\":\"object\"},\"autoFix\":{\"type\":\"object\",\"properties\":{\"action\":{\"type\":\"string\"}},\"required\":[\"action\"]},\"docUrl\":{\"type\":\"string\"}},\"required\":[\"code\",\"severity\",\"field\",\"message\",\"docUrl\"]}}},\"required\":[\"channelId\",\"platform\",\"postType\",\"issues\"]}}},\"required\":[\"ok\",\"destinations\"]};","  pm.test('Body matches the documented schema', () => {","    pm.response.to.have.jsonSchema(schema);","  });","}"]}}]},{"name":"List posts","request":{"method":"GET","description":"Posts this application created, newest first, failed ones included. Filter with status (comma-separated). Posts made in the LuftSocial app are not listed: the API sees only its own posts.\n\nWorks with a `read` or `write` key.\n\n### Parameters\n\n| Name | In | Required | Type | Description |\n| --- | --- | --- | --- | --- |\n| `status` | query | no | string | Comma-separated: queued, scheduled, publishing, published, partially_published, failed, cancelled. |\n| `cursor` | query | no | string |  |\n| `limit` | query | no | integer | max 100; default `20` |\n\n### Response: 200 OK\n\n| Field | Type | Description |\n| --- | --- | --- |\n| `data` | array of object |  |\n| `data[].id` | string |  |\n| `data[].status` | enum | queued: accepted, not yet sent to the network. scheduled: waiting for scheduledAt. publishing: sent, the network has not confirmed yet. published, partially_published, failed, cancelled: final. One of: `queued`, `scheduled`, `publishing`, `published`, `partially_published`, `failed`, `cancelled` |\n| `data[].requestId` | string |  |\n| `data[].publishId` | string, nullable |  |\n| `data[].errorCode` | string, nullable |  |\n| `data[].errorMessage` | string, nullable | Why the post failed, when we know: for example \"Platform instagram does not support text-only posts. At least one media item is required.\" Null unless status is failed. |\n| `data[].scheduledAt` | string (date-time), nullable |  |\n| `data[].publishedAt` | string (date-time), nullable | When the network confirmed the post. Set once published. |\n| `data[].destinations` | array of object | One entry per destination, in the order sent. A partially_published post says here which destinations failed and why; its post-level errorCode and errorMessage stay null. |\n| `data[].destinations[].channelId` | string |  |\n| `data[].destinations[].platform` | string, nullable |  |\n| `data[].destinations[].status` | enum | pending until the post is final. Then published or failed per network, cancelled with the post, unknown when the network did not report this destination, or not_attempted when another destination stopped the post before anything was sent (that destination is failed and says why). One of: `pending`, `published`, `failed`, `cancelled`, `unknown`, `not_attempted` |\n| `data[].destinations[].errorCode` | string, nullable | Catalog code. Null unless status is failed. |\n| `data[].destinations[].errorMessage` | string, nullable | Why this destination failed, when the network said. Null unless status is failed. |\n| `data[].destinations[].publishedAt` | string (date-time), nullable | When the network confirmed this destination. Null unless published. |\n| `meta` | object |  |\n| `meta.cursor` | string, nullable | Send as cursor for the next page; null on the last. |\n| `meta.limit` | number |  |\n\n### Errors\n\nEvery error uses the shared error body. Each code below has an example on this request.\n\n| Code | HTTP | Retryable | Meaning |\n| --- | --- | --- | --- |\n| `API_KEY_MISSING` | 401 | no | No Authorization header was provided. Include your API key as a Bearer token in the Authorization header. |\n| `API_KEY_INVALID` | 401 | no | The API key is unknown, revoked, or supplied as a query parameter. Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL. |\n| `API_KEY_EXPIRED` | 401 | no | The API key has passed its expiry time. Create a new key in the dashboard and replace this one. |\n| `ACCOUNT_SUSPENDED` | 403 | no | API access for this workspace is not active. Ask the workspace owner to restore the workspace, or contact LuftSocial support. |\n| `PERMISSION_REQUIRED` | 403 | no | This API key is read-only. This operation changes data and needs a write key. Use a write key, or create one in the dashboard. |\n| `CLIENT_NOT_ALLOWED` | 403 | no | This API key is limited to other clients, or the operation covers the whole account. Use a key for this client, or a key for all clients for account-wide routes. |\n| `PLAN_REQUIRED` | 403 | no | Your workspace plan does not permit API access. Upgrade your plan to enable API access. |\n| `VALIDATION_FAILED` | 400 | no | One or more request fields failed validation. Fix the fields listed in details.errors and retry. |\n| `RATE_LIMITED` | 429 | yes | Too many requests. Slow down and retry after the Retry-After interval. Wait for the Retry-After header value before retrying. |\n| `MONTHLY_QUOTA_EXCEEDED` | 429 | no | Your monthly API call quota has been reached. Wait until the quota resets at the start of next month, or upgrade your plan. |\n| `INTERNAL` | 500 | yes | An unexpected error occurred. Retry with backoff. If it keeps failing, contact support with the requestId. |\n| `SERVICE_OVERLOADED` | 503 | yes | The API is at capacity and refused this request before doing any work. Retry after the Retry-After interval, with backoff. Nothing was changed. |","header":[],"url":{"raw":"{{baseUrl}}/v1/posts","host":["{{baseUrl}}"],"path":["v1","posts"],"query":[{"key":"status","value":"","description":"Comma-separated: queued, scheduled, publishing, published, partially_published, failed, cancelled.","disabled":true},{"key":"cursor","value":"","disabled":true},{"key":"limit","value":"","disabled":true}]}},"response":[{"name":"200 OK","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/posts","host":["{{baseUrl}}"],"path":["v1","posts"],"query":[{"key":"status","value":"","description":"Comma-separated: queued, scheduled, publishing, published, partially_published, failed, cancelled.","disabled":true},{"key":"cursor","value":"","disabled":true},{"key":"limit","value":"","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"data\": [\n    {\n      \"id\": \"post_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n      \"status\": \"queued\",\n      \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n      \"publishId\": \"pub_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n      \"errorCode\": null,\n      \"errorMessage\": null,\n      \"scheduledAt\": \"2026-09-28T18:00:00.000Z\",\n      \"publishedAt\": null,\n      \"destinations\": [\n        {\n          \"channelId\": \"ch_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n          \"platform\": \"instagram\",\n          \"status\": \"published\",\n          \"errorCode\": null,\n          \"errorMessage\": null,\n          \"publishedAt\": \"2026-09-28T18:00:05.000Z\"\n        }\n      ]\n    }\n  ],\n  \"meta\": {\n    \"cursor\": \"post_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"limit\": 20\n  }\n}"},{"name":"401 API_KEY_MISSING","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/posts","host":["{{baseUrl}}"],"path":["v1","posts"],"query":[{"key":"status","value":"","description":"Comma-separated: queued, scheduled, publishing, published, partially_published, failed, cancelled.","disabled":true},{"key":"cursor","value":"","disabled":true},{"key":"limit","value":"","disabled":true}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_MISSING\",\n    \"message\": \"No Authorization header was provided.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Include your API key as a Bearer token in the Authorization header.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_MISSING\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_INVALID","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/posts","host":["{{baseUrl}}"],"path":["v1","posts"],"query":[{"key":"status","value":"","description":"Comma-separated: queued, scheduled, publishing, published, partially_published, failed, cancelled.","disabled":true},{"key":"cursor","value":"","disabled":true},{"key":"limit","value":"","disabled":true}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_INVALID\",\n    \"message\": \"The API key is unknown, revoked, or supplied as a query parameter.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_INVALID\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_EXPIRED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/posts","host":["{{baseUrl}}"],"path":["v1","posts"],"query":[{"key":"status","value":"","description":"Comma-separated: queued, scheduled, publishing, published, partially_published, failed, cancelled.","disabled":true},{"key":"cursor","value":"","disabled":true},{"key":"limit","value":"","disabled":true}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_EXPIRED\",\n    \"message\": \"The API key has passed its expiry time.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Create a new key in the dashboard and replace this one.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_EXPIRED\",\n    \"details\": {\n      \"expiredAt\": \"2027-01-01T00:00:00.000Z\"\n    }\n  }\n}"},{"name":"403 ACCOUNT_SUSPENDED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/posts","host":["{{baseUrl}}"],"path":["v1","posts"],"query":[{"key":"status","value":"","description":"Comma-separated: queued, scheduled, publishing, published, partially_published, failed, cancelled.","disabled":true},{"key":"cursor","value":"","disabled":true},{"key":"limit","value":"","disabled":true}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"ACCOUNT_SUSPENDED\",\n    \"message\": \"API access for this workspace is not active.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Ask the workspace owner to restore the workspace, or contact LuftSocial support.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/ACCOUNT_SUSPENDED\",\n    \"details\": {}\n  }\n}"},{"name":"403 PERMISSION_REQUIRED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/posts","host":["{{baseUrl}}"],"path":["v1","posts"],"query":[{"key":"status","value":"","description":"Comma-separated: queued, scheduled, publishing, published, partially_published, failed, cancelled.","disabled":true},{"key":"cursor","value":"","disabled":true},{"key":"limit","value":"","disabled":true}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PERMISSION_REQUIRED\",\n    \"message\": \"This API key is read-only. This operation changes data and needs a write key.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a write key, or create one in the dashboard.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PERMISSION_REQUIRED\",\n    \"details\": {\n      \"requiredPermission\": \"write\"\n    }\n  }\n}"},{"name":"403 CLIENT_NOT_ALLOWED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/posts","host":["{{baseUrl}}"],"path":["v1","posts"],"query":[{"key":"status","value":"","description":"Comma-separated: queued, scheduled, publishing, published, partially_published, failed, cancelled.","disabled":true},{"key":"cursor","value":"","disabled":true},{"key":"limit","value":"","disabled":true}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"CLIENT_NOT_ALLOWED\",\n    \"message\": \"This API key is limited to other clients, or the operation covers the whole account.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a key for this client, or a key for all clients for account-wide routes.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/CLIENT_NOT_ALLOWED\",\n    \"details\": {\n      \"clientId\": \"cli_01abc\"\n    }\n  }\n}"},{"name":"403 PLAN_REQUIRED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/posts","host":["{{baseUrl}}"],"path":["v1","posts"],"query":[{"key":"status","value":"","description":"Comma-separated: queued, scheduled, publishing, published, partially_published, failed, cancelled.","disabled":true},{"key":"cursor","value":"","disabled":true},{"key":"limit","value":"","disabled":true}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PLAN_REQUIRED\",\n    \"message\": \"Your workspace plan does not permit API access.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Upgrade your plan to enable API access.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PLAN_REQUIRED\",\n    \"details\": {\n      \"plan\": \"starter\"\n    }\n  }\n}"},{"name":"400 VALIDATION_FAILED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/posts","host":["{{baseUrl}}"],"path":["v1","posts"],"query":[{"key":"status","value":"","description":"Comma-separated: queued, scheduled, publishing, published, partially_published, failed, cancelled.","disabled":true},{"key":"cursor","value":"","disabled":true},{"key":"limit","value":"","disabled":true}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"VALIDATION_FAILED\",\n    \"message\": \"One or more request fields failed validation.\",\n    \"category\": \"VALIDATION\",\n    \"httpStatus\": 400,\n    \"retryable\": false,\n    \"suggestedAction\": \"Fix the fields listed in details.errors and retry.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/VALIDATION_FAILED\",\n    \"details\": {\n      \"errors\": [\n        {\n          \"field\": \"scheduledAt\",\n          \"message\": \"Must be an ISO 8601 datetime in the future.\"\n        }\n      ]\n    }\n  }\n}"},{"name":"429 RATE_LIMITED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/posts","host":["{{baseUrl}}"],"path":["v1","posts"],"query":[{"key":"status","value":"","description":"Comma-separated: queued, scheduled, publishing, published, partially_published, failed, cancelled.","disabled":true},{"key":"cursor","value":"","disabled":true},{"key":"limit","value":"","disabled":true}]}},"status":"Too Many Requests","code":429,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"RATE_LIMITED\",\n    \"message\": \"Too many requests. Slow down and retry after the Retry-After interval.\",\n    \"category\": \"RATE_LIMIT\",\n    \"httpStatus\": 429,\n    \"retryable\": true,\n    \"suggestedAction\": \"Wait for the Retry-After header value before retrying.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/RATE_LIMITED\",\n    \"details\": {\n      \"limit\": 60,\n      \"remaining\": 0\n    }\n  }\n}"},{"name":"429 MONTHLY_QUOTA_EXCEEDED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/posts","host":["{{baseUrl}}"],"path":["v1","posts"],"query":[{"key":"status","value":"","description":"Comma-separated: queued, scheduled, publishing, published, partially_published, failed, cancelled.","disabled":true},{"key":"cursor","value":"","disabled":true},{"key":"limit","value":"","disabled":true}]}},"status":"Too Many Requests","code":429,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"MONTHLY_QUOTA_EXCEEDED\",\n    \"message\": \"Your monthly API call quota has been reached.\",\n    \"category\": \"RATE_LIMIT\",\n    \"httpStatus\": 429,\n    \"retryable\": false,\n    \"suggestedAction\": \"Wait until the quota resets at the start of next month, or upgrade your plan.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/MONTHLY_QUOTA_EXCEEDED\",\n    \"details\": {\n      \"limit\": 25000,\n      \"remaining\": 0\n    }\n  }\n}"},{"name":"500 INTERNAL","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/posts","host":["{{baseUrl}}"],"path":["v1","posts"],"query":[{"key":"status","value":"","description":"Comma-separated: queued, scheduled, publishing, published, partially_published, failed, cancelled.","disabled":true},{"key":"cursor","value":"","disabled":true},{"key":"limit","value":"","disabled":true}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"INTERNAL\",\n    \"message\": \"An unexpected error occurred.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 500,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry with backoff. If it keeps failing, contact support with the requestId.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/INTERNAL\",\n    \"details\": {}\n  }\n}"},{"name":"503 SERVICE_OVERLOADED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/posts","host":["{{baseUrl}}"],"path":["v1","posts"],"query":[{"key":"status","value":"","description":"Comma-separated: queued, scheduled, publishing, published, partially_published, failed, cancelled.","disabled":true},{"key":"cursor","value":"","disabled":true},{"key":"limit","value":"","disabled":true}]}},"status":"Service Unavailable","code":503,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"SERVICE_OVERLOADED\",\n    \"message\": \"The API is at capacity and refused this request before doing any work.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 503,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry after the Retry-After interval, with backoff. Nothing was changed.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/SERVICE_OVERLOADED\",\n    \"details\": {}\n  }\n}"}],"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('Returns 200 OK', () => {","  pm.response.to.have.status(200);","});","if (pm.response.code === 200) {","  const schema = {\"type\":\"object\",\"properties\":{\"data\":{\"type\":\"array\",\"items\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\"},\"status\":{\"type\":\"string\",\"enum\":[\"queued\",\"scheduled\",\"publishing\",\"published\",\"partially_published\",\"failed\",\"cancelled\"]},\"requestId\":{\"type\":\"string\"},\"publishId\":{\"type\":[\"string\",\"null\"]},\"errorCode\":{\"type\":[\"string\",\"null\"]},\"errorMessage\":{\"type\":[\"string\",\"null\"]},\"scheduledAt\":{\"type\":[\"string\",\"null\"]},\"publishedAt\":{\"type\":[\"string\",\"null\"]},\"destinations\":{\"type\":\"array\",\"items\":{\"type\":\"object\",\"properties\":{\"channelId\":{\"type\":\"string\"},\"platform\":{\"type\":[\"string\",\"null\"]},\"status\":{\"type\":\"string\",\"enum\":[\"pending\",\"published\",\"failed\",\"cancelled\",\"unknown\",\"not_attempted\"]},\"errorCode\":{\"type\":[\"string\",\"null\"]},\"errorMessage\":{\"type\":[\"string\",\"null\"]},\"publishedAt\":{\"type\":[\"string\",\"null\"]}},\"required\":[\"channelId\",\"platform\",\"status\",\"errorCode\",\"errorMessage\",\"publishedAt\"]}}},\"required\":[\"id\",\"status\",\"requestId\",\"publishId\",\"errorCode\",\"errorMessage\",\"scheduledAt\",\"publishedAt\",\"destinations\"]}},\"meta\":{\"type\":\"object\",\"properties\":{\"cursor\":{\"type\":[\"string\",\"null\"]},\"limit\":{\"type\":\"number\"}}}},\"required\":[\"data\",\"meta\"]};","  pm.test('Body matches the documented schema', () => {","    pm.response.to.have.jsonSchema(schema);","  });","  const next_postId = \"data.0.id\".split('.').reduce((value, key) => (value == null ? undefined : value[key]), pm.response.json());","  if (typeof next_postId === 'string' && next_postId) {","    pm.collectionVariables.set('postId', next_postId);","  } else {","    console.warn('postId not set: data.0.id is missing from the response.');","  }","}"]}}]},{"name":"Publish or schedule a post","request":{"method":"POST","description":"> **Changes data.** Publishes to real social networks, now or at `scheduledAt`. There is no sandbox. An X destination on LuftSocial’s X app spends X credit. In this collection it runs only when `allowWrites` is `true`.\n\nAccepts the post and returns it with status queued. It moves to scheduled (when scheduledAt is set) or publishing once handed to the network, then to published, partially_published, or failed when the network confirms. Subscribe to the post.published and post.failed webhooks, or poll GET /v1/posts/{postId}.\n\nIdempotency-Key is required. Generate it before this call and reuse it if the call times out. A UUID v4 (`crypto.randomUUID()`) or your own order id is the value to send. 1–255 characters, [A-Za-z0-9_-].\n\nThe same key and the same body replay the original post and set Idempotent-Replayed: true. The replay stays 202 and returns the post as it is now (id, status, requestId). The same key with a different body is 409 IDEMPOTENCY_KEY_REUSED. A key already used for a post on another client, or on a client this API key cannot use, is also 409 IDEMPOTENCY_KEY_REUSED, whatever the body. The key is kept for this application for the life of the post.\n\nPut each network’s media on that destination. A Reel, a Facebook photo, and a YouTube Short do not share one file list.\n\nNeeds a `write` key.\n\n### Parameters\n\n| Name | In | Required | Type | Description |\n| --- | --- | --- | --- | --- |\n| `X-Client-Id` | header | no | string | Client id (cli_…). Omitted: the key’s default client, else the client of the destination channels. |\n| `Idempotency-Key` | header | yes | string | Caller-generated id for this attempt. UUID v4 or your order id. Send the same value on retry. 1–255 characters, [A-Za-z0-9_-]. min length 1; max length 255; pattern `^[A-Za-z0-9_-]+$` |\n\n### Request body\n\n`Content-Type: application/json`. Fields not listed here are rejected with `400 VALIDATION_FAILED`.\n\n| Field | Type | Required | Description |\n| --- | --- | --- | --- |\n| `caption` | string | no | Caption used when a destination does not set its own. max length 63206 |\n| `title` | string | no | max length 2200 |\n| `destinations` | array of object | yes | One per channel, at most 200. A channelId may appear once. min items 1; max items 200 |\n| `destinations[].channelId` | string | yes | Channel id from GET /v1/channels. |\n| `destinations[].postType` | enum | no | Post type for this channel. YouTube Shorts use SHORTS. YouTube Live is not accepted. One of: `IMAGE`, `VIDEO`, `REELS`, `STORIES`, `SHORTS`, `TEXT`, `CAROUSEL`, `DOCUMENT` |\n| `destinations[].caption` | string | no | Caption for this channel. Falls back to the top-level caption when omitted. max length 63206 |\n| `destinations[].title` | string | no | Required for YouTube. Ignored by networks that have no title. max length 2200 |\n| `destinations[].mediaAssetIds` | array of string | no | Media for this channel. A Reel and a photo do not share a list. Set this on every destination. max items 35 |\n| `destinations[].platformSpecificParams` | object | no | Fields that belong only to this network. Text in caption and description is at most 63206 characters; title, documentTitle and articleTitle at most 2200. |\n| `mediaAssetIds` | array of string | no | Fallback media for a destination that omits mediaAssetIds. Prefer media on each destination. max items 35 |\n| `scheduledAt` | string (date-time) | no | Schedule time. Must be in the future. Omit to publish now. |\n\n### Response: 202 Accepted\n\nPost accepted. Poll GET /v1/posts/{postId}. A replay of the same key also returns 202.\n\n| Field | Type | Description |\n| --- | --- | --- |\n| `post` | object |  |\n| `post.id` | string |  |\n| `post.status` | enum | queued: accepted, not yet sent to the network. scheduled: waiting for scheduledAt. publishing: sent, the network has not confirmed yet. published, partially_published, failed, cancelled: final. One of: `queued`, `scheduled`, `publishing`, `published`, `partially_published`, `failed`, `cancelled` |\n| `post.requestId` | string |  |\n\n### Errors\n\nEvery error uses the shared error body. Each code below has an example on this request.\n\n| Code | HTTP | Retryable | Meaning |\n| --- | --- | --- | --- |\n| `API_KEY_MISSING` | 401 | no | No Authorization header was provided. Include your API key as a Bearer token in the Authorization header. |\n| `API_KEY_INVALID` | 401 | no | The API key is unknown, revoked, or supplied as a query parameter. Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL. |\n| `API_KEY_EXPIRED` | 401 | no | The API key has passed its expiry time. Create a new key in the dashboard and replace this one. |\n| `ACCOUNT_SUSPENDED` | 403 | no | API access for this workspace is not active. Ask the workspace owner to restore the workspace, or contact LuftSocial support. |\n| `PERMISSION_REQUIRED` | 403 | no | This API key is read-only. This operation changes data and needs a write key. Use a write key, or create one in the dashboard. |\n| `CLIENT_NOT_ALLOWED` | 403 | no | This API key is limited to other clients, or the operation covers the whole account. Use a key for this client, or a key for all clients for account-wide routes. |\n| `PLAN_REQUIRED` | 403 | no | Your workspace plan does not permit API access. Upgrade your plan to enable API access. |\n| `CLIENT_NOT_FOUND` | 404 | no | Client not found or not accessible to this workspace. Check the X-Client-Id header value. |\n| `CHANNEL_NOT_FOUND` | 404 | no | Channel not found or not accessible to this workspace. Check the channel ID and that it belongs to this workspace. |\n| `CHANNEL_NOT_CONNECTED` | 409 | no | This channel is disconnected or needs to be reconnected. Connect the account again with POST /v1/channels/connect/{platform} (send channelId when GET /v1/channels still lists the channel), then retry. |\n| `VALIDATION_FAILED` | 400 | no | One or more request fields failed validation. Fix the fields listed in details.errors and retry. |\n| `IDEMPOTENCY_KEY_REUSED` | 409 | no | An earlier request used this Idempotency-Key with a different body. Use a new Idempotency-Key for this request, or resend the original body to replay the first result. |\n| `CLIENT_PLATFORM_SLOT_TAKEN` | 409 | no | This client already has an account connected on that platform. Disconnect the existing account first, or add a new client for this account. |\n| `X_NOT_ENTITLED` | 403 | no | Your plan does not include X posting. Add the X add-on to continue. Add the X add-on to your plan, or supply your own X app credentials on the Developer plan. |\n| `X_ALLOWANCE_EXHAUSTED` | 422 | no | Your X posting wallet is empty for this billing period. Add X credits to your wallet or wait until the next billing period. |\n| `X_CREDENTIALS_REQUIRED` | 422 | no | This X channel uses your own X app, and those credentials are missing, inactive, or not verified by X. Submit your X app credentials via POST /v1/channels/x/credentials, or connect X on LuftSocial's X app with paid X credit. |\n| `X_RECONNECT_REQUIRED` | 422 | no | This X channel was connected through an X app that is no longer the one it can publish with. The workspace's X app was replaced or removed, its credentials are no longer active and verified, or the connection predates app tracking. Reconnect the channel with POST /v1/channels/connect/x. It then uses your current X app, or LuftSocial's X app with paid X credit when no X app is stored. |\n| `X_ALLOWANCE_REQUIRED` | 402 | no | Connecting or posting to X on LuftSocial's X app requires paid X credit. Pay for X credit, or connect X with your own X app credentials. |\n| `X_CREDIT_SHORTFALL_LIMIT_REACHED` | 402 | no | An earlier X call used more than your remaining X credit, and that shortfall (at most $1.00) is unpaid. X on LuftSocial's X app is blocked until you top up. Top up your X credit wallet in the developer billing console. The top-up clears the shortfall first. |\n| `PLATFORM_OUTAGE` | 503 | yes | The social platform is currently experiencing an outage. New posts cannot be accepted. Check GET /v1/status for the latest incident details and retry when the incident is resolved. |\n| `QUEUE_SATURATED` | 503 | yes | The publish queue is saturated. New write requests cannot be accepted right now. Retry after the Retry-After interval. |\n| `RATE_LIMITED` | 429 | yes | Too many requests. Slow down and retry after the Retry-After interval. Wait for the Retry-After header value before retrying. |\n| `MONTHLY_QUOTA_EXCEEDED` | 429 | no | Your monthly API call quota has been reached. Wait until the quota resets at the start of next month, or upgrade your plan. |\n| `UPSTREAM_UNAVAILABLE` | 502 | yes | An upstream service is temporarily unavailable. Retry after the Retry-After interval. Retry after the Retry-After interval. |\n| `INTERNAL` | 500 | yes | An unexpected error occurred. Retry with backoff. If it keeps failing, contact support with the requestId. |\n| `SERVICE_OVERLOADED` | 503 | yes | The API is at capacity and refused this request before doing any work. Retry after the Retry-After interval, with backoff. Nothing was changed. |","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Omitted: the key’s default client, else the client of the destination channels.","disabled":true},{"key":"Idempotency-Key","value":"{{$guid}}","description":"Caller-generated id for this attempt. UUID v4 or your order id. Send the same value on retry. 1–255 characters, [A-Za-z0-9_-].","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/posts","host":["{{baseUrl}}"],"path":["v1","posts"]},"body":{"mode":"raw","raw":"{\n  \"caption\": \"Launch day\",\n  \"destinations\": [\n    {\n      \"channelId\": \"ch_instagram\",\n      \"postType\": \"REELS\",\n      \"mediaAssetIds\": [\n        \"asset_reel_video\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_facebook\",\n      \"postType\": \"IMAGE\",\n      \"caption\": \"Launch day on Facebook\",\n      \"mediaAssetIds\": [\n        \"asset_facebook_photo\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_youtube\",\n      \"postType\": \"SHORTS\",\n      \"title\": \"Launch day short\",\n      \"mediaAssetIds\": [\n        \"asset_youtube_short\"\n      ]\n    }\n  ]\n}","options":{"raw":{"language":"json"}}}},"response":[{"name":"202 Accepted","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Omitted: the key’s default client, else the client of the destination channels.","disabled":true},{"key":"Idempotency-Key","value":"{{$guid}}","description":"Caller-generated id for this attempt. UUID v4 or your order id. Send the same value on retry. 1–255 characters, [A-Za-z0-9_-].","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/posts","host":["{{baseUrl}}"],"path":["v1","posts"]},"body":{"mode":"raw","raw":"{\n  \"caption\": \"Launch day\",\n  \"destinations\": [\n    {\n      \"channelId\": \"ch_instagram\",\n      \"postType\": \"REELS\",\n      \"mediaAssetIds\": [\n        \"asset_reel_video\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_facebook\",\n      \"postType\": \"IMAGE\",\n      \"caption\": \"Launch day on Facebook\",\n      \"mediaAssetIds\": [\n        \"asset_facebook_photo\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_youtube\",\n      \"postType\": \"SHORTS\",\n      \"title\": \"Launch day short\",\n      \"mediaAssetIds\": [\n        \"asset_youtube_short\"\n      ]\n    }\n  ]\n}","options":{"raw":{"language":"json"}}}},"status":"Accepted","code":202,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"post\": {\n    \"id\": \"post_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"status\": \"queued\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\"\n  }\n}"},{"name":"401 API_KEY_MISSING","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Omitted: the key’s default client, else the client of the destination channels.","disabled":true},{"key":"Idempotency-Key","value":"{{$guid}}","description":"Caller-generated id for this attempt. UUID v4 or your order id. Send the same value on retry. 1–255 characters, [A-Za-z0-9_-].","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/posts","host":["{{baseUrl}}"],"path":["v1","posts"]},"body":{"mode":"raw","raw":"{\n  \"caption\": \"Launch day\",\n  \"destinations\": [\n    {\n      \"channelId\": \"ch_instagram\",\n      \"postType\": \"REELS\",\n      \"mediaAssetIds\": [\n        \"asset_reel_video\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_facebook\",\n      \"postType\": \"IMAGE\",\n      \"caption\": \"Launch day on Facebook\",\n      \"mediaAssetIds\": [\n        \"asset_facebook_photo\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_youtube\",\n      \"postType\": \"SHORTS\",\n      \"title\": \"Launch day short\",\n      \"mediaAssetIds\": [\n        \"asset_youtube_short\"\n      ]\n    }\n  ]\n}","options":{"raw":{"language":"json"}}}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_MISSING\",\n    \"message\": \"No Authorization header was provided.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Include your API key as a Bearer token in the Authorization header.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_MISSING\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_INVALID","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Omitted: the key’s default client, else the client of the destination channels.","disabled":true},{"key":"Idempotency-Key","value":"{{$guid}}","description":"Caller-generated id for this attempt. UUID v4 or your order id. Send the same value on retry. 1–255 characters, [A-Za-z0-9_-].","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/posts","host":["{{baseUrl}}"],"path":["v1","posts"]},"body":{"mode":"raw","raw":"{\n  \"caption\": \"Launch day\",\n  \"destinations\": [\n    {\n      \"channelId\": \"ch_instagram\",\n      \"postType\": \"REELS\",\n      \"mediaAssetIds\": [\n        \"asset_reel_video\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_facebook\",\n      \"postType\": \"IMAGE\",\n      \"caption\": \"Launch day on Facebook\",\n      \"mediaAssetIds\": [\n        \"asset_facebook_photo\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_youtube\",\n      \"postType\": \"SHORTS\",\n      \"title\": \"Launch day short\",\n      \"mediaAssetIds\": [\n        \"asset_youtube_short\"\n      ]\n    }\n  ]\n}","options":{"raw":{"language":"json"}}}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_INVALID\",\n    \"message\": \"The API key is unknown, revoked, or supplied as a query parameter.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_INVALID\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_EXPIRED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Omitted: the key’s default client, else the client of the destination channels.","disabled":true},{"key":"Idempotency-Key","value":"{{$guid}}","description":"Caller-generated id for this attempt. UUID v4 or your order id. Send the same value on retry. 1–255 characters, [A-Za-z0-9_-].","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/posts","host":["{{baseUrl}}"],"path":["v1","posts"]},"body":{"mode":"raw","raw":"{\n  \"caption\": \"Launch day\",\n  \"destinations\": [\n    {\n      \"channelId\": \"ch_instagram\",\n      \"postType\": \"REELS\",\n      \"mediaAssetIds\": [\n        \"asset_reel_video\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_facebook\",\n      \"postType\": \"IMAGE\",\n      \"caption\": \"Launch day on Facebook\",\n      \"mediaAssetIds\": [\n        \"asset_facebook_photo\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_youtube\",\n      \"postType\": \"SHORTS\",\n      \"title\": \"Launch day short\",\n      \"mediaAssetIds\": [\n        \"asset_youtube_short\"\n      ]\n    }\n  ]\n}","options":{"raw":{"language":"json"}}}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_EXPIRED\",\n    \"message\": \"The API key has passed its expiry time.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Create a new key in the dashboard and replace this one.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_EXPIRED\",\n    \"details\": {\n      \"expiredAt\": \"2027-01-01T00:00:00.000Z\"\n    }\n  }\n}"},{"name":"403 ACCOUNT_SUSPENDED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Omitted: the key’s default client, else the client of the destination channels.","disabled":true},{"key":"Idempotency-Key","value":"{{$guid}}","description":"Caller-generated id for this attempt. UUID v4 or your order id. Send the same value on retry. 1–255 characters, [A-Za-z0-9_-].","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/posts","host":["{{baseUrl}}"],"path":["v1","posts"]},"body":{"mode":"raw","raw":"{\n  \"caption\": \"Launch day\",\n  \"destinations\": [\n    {\n      \"channelId\": \"ch_instagram\",\n      \"postType\": \"REELS\",\n      \"mediaAssetIds\": [\n        \"asset_reel_video\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_facebook\",\n      \"postType\": \"IMAGE\",\n      \"caption\": \"Launch day on Facebook\",\n      \"mediaAssetIds\": [\n        \"asset_facebook_photo\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_youtube\",\n      \"postType\": \"SHORTS\",\n      \"title\": \"Launch day short\",\n      \"mediaAssetIds\": [\n        \"asset_youtube_short\"\n      ]\n    }\n  ]\n}","options":{"raw":{"language":"json"}}}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"ACCOUNT_SUSPENDED\",\n    \"message\": \"API access for this workspace is not active.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Ask the workspace owner to restore the workspace, or contact LuftSocial support.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/ACCOUNT_SUSPENDED\",\n    \"details\": {}\n  }\n}"},{"name":"403 PERMISSION_REQUIRED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Omitted: the key’s default client, else the client of the destination channels.","disabled":true},{"key":"Idempotency-Key","value":"{{$guid}}","description":"Caller-generated id for this attempt. UUID v4 or your order id. Send the same value on retry. 1–255 characters, [A-Za-z0-9_-].","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/posts","host":["{{baseUrl}}"],"path":["v1","posts"]},"body":{"mode":"raw","raw":"{\n  \"caption\": \"Launch day\",\n  \"destinations\": [\n    {\n      \"channelId\": \"ch_instagram\",\n      \"postType\": \"REELS\",\n      \"mediaAssetIds\": [\n        \"asset_reel_video\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_facebook\",\n      \"postType\": \"IMAGE\",\n      \"caption\": \"Launch day on Facebook\",\n      \"mediaAssetIds\": [\n        \"asset_facebook_photo\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_youtube\",\n      \"postType\": \"SHORTS\",\n      \"title\": \"Launch day short\",\n      \"mediaAssetIds\": [\n        \"asset_youtube_short\"\n      ]\n    }\n  ]\n}","options":{"raw":{"language":"json"}}}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PERMISSION_REQUIRED\",\n    \"message\": \"This API key is read-only. This operation changes data and needs a write key.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a write key, or create one in the dashboard.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PERMISSION_REQUIRED\",\n    \"details\": {\n      \"requiredPermission\": \"write\"\n    }\n  }\n}"},{"name":"403 CLIENT_NOT_ALLOWED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Omitted: the key’s default client, else the client of the destination channels.","disabled":true},{"key":"Idempotency-Key","value":"{{$guid}}","description":"Caller-generated id for this attempt. UUID v4 or your order id. Send the same value on retry. 1–255 characters, [A-Za-z0-9_-].","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/posts","host":["{{baseUrl}}"],"path":["v1","posts"]},"body":{"mode":"raw","raw":"{\n  \"caption\": \"Launch day\",\n  \"destinations\": [\n    {\n      \"channelId\": \"ch_instagram\",\n      \"postType\": \"REELS\",\n      \"mediaAssetIds\": [\n        \"asset_reel_video\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_facebook\",\n      \"postType\": \"IMAGE\",\n      \"caption\": \"Launch day on Facebook\",\n      \"mediaAssetIds\": [\n        \"asset_facebook_photo\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_youtube\",\n      \"postType\": \"SHORTS\",\n      \"title\": \"Launch day short\",\n      \"mediaAssetIds\": [\n        \"asset_youtube_short\"\n      ]\n    }\n  ]\n}","options":{"raw":{"language":"json"}}}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"CLIENT_NOT_ALLOWED\",\n    \"message\": \"This API key is limited to other clients, or the operation covers the whole account.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a key for this client, or a key for all clients for account-wide routes.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/CLIENT_NOT_ALLOWED\",\n    \"details\": {\n      \"clientId\": \"cli_01abc\"\n    }\n  }\n}"},{"name":"403 PLAN_REQUIRED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Omitted: the key’s default client, else the client of the destination channels.","disabled":true},{"key":"Idempotency-Key","value":"{{$guid}}","description":"Caller-generated id for this attempt. UUID v4 or your order id. Send the same value on retry. 1–255 characters, [A-Za-z0-9_-].","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/posts","host":["{{baseUrl}}"],"path":["v1","posts"]},"body":{"mode":"raw","raw":"{\n  \"caption\": \"Launch day\",\n  \"destinations\": [\n    {\n      \"channelId\": \"ch_instagram\",\n      \"postType\": \"REELS\",\n      \"mediaAssetIds\": [\n        \"asset_reel_video\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_facebook\",\n      \"postType\": \"IMAGE\",\n      \"caption\": \"Launch day on Facebook\",\n      \"mediaAssetIds\": [\n        \"asset_facebook_photo\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_youtube\",\n      \"postType\": \"SHORTS\",\n      \"title\": \"Launch day short\",\n      \"mediaAssetIds\": [\n        \"asset_youtube_short\"\n      ]\n    }\n  ]\n}","options":{"raw":{"language":"json"}}}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PLAN_REQUIRED\",\n    \"message\": \"Your workspace plan does not permit API access.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Upgrade your plan to enable API access.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PLAN_REQUIRED\",\n    \"details\": {\n      \"plan\": \"starter\"\n    }\n  }\n}"},{"name":"404 CLIENT_NOT_FOUND","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Omitted: the key’s default client, else the client of the destination channels.","disabled":true},{"key":"Idempotency-Key","value":"{{$guid}}","description":"Caller-generated id for this attempt. UUID v4 or your order id. Send the same value on retry. 1–255 characters, [A-Za-z0-9_-].","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/posts","host":["{{baseUrl}}"],"path":["v1","posts"]},"body":{"mode":"raw","raw":"{\n  \"caption\": \"Launch day\",\n  \"destinations\": [\n    {\n      \"channelId\": \"ch_instagram\",\n      \"postType\": \"REELS\",\n      \"mediaAssetIds\": [\n        \"asset_reel_video\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_facebook\",\n      \"postType\": \"IMAGE\",\n      \"caption\": \"Launch day on Facebook\",\n      \"mediaAssetIds\": [\n        \"asset_facebook_photo\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_youtube\",\n      \"postType\": \"SHORTS\",\n      \"title\": \"Launch day short\",\n      \"mediaAssetIds\": [\n        \"asset_youtube_short\"\n      ]\n    }\n  ]\n}","options":{"raw":{"language":"json"}}}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"CLIENT_NOT_FOUND\",\n    \"message\": \"Client not found or not accessible to this workspace.\",\n    \"category\": \"NOT_FOUND\",\n    \"httpStatus\": 404,\n    \"retryable\": false,\n    \"suggestedAction\": \"Check the X-Client-Id header value.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/CLIENT_NOT_FOUND\",\n    \"details\": {\n      \"clientId\": \"cli_01abc\"\n    }\n  }\n}"},{"name":"404 CHANNEL_NOT_FOUND","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Omitted: the key’s default client, else the client of the destination channels.","disabled":true},{"key":"Idempotency-Key","value":"{{$guid}}","description":"Caller-generated id for this attempt. UUID v4 or your order id. Send the same value on retry. 1–255 characters, [A-Za-z0-9_-].","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/posts","host":["{{baseUrl}}"],"path":["v1","posts"]},"body":{"mode":"raw","raw":"{\n  \"caption\": \"Launch day\",\n  \"destinations\": [\n    {\n      \"channelId\": \"ch_instagram\",\n      \"postType\": \"REELS\",\n      \"mediaAssetIds\": [\n        \"asset_reel_video\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_facebook\",\n      \"postType\": \"IMAGE\",\n      \"caption\": \"Launch day on Facebook\",\n      \"mediaAssetIds\": [\n        \"asset_facebook_photo\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_youtube\",\n      \"postType\": \"SHORTS\",\n      \"title\": \"Launch day short\",\n      \"mediaAssetIds\": [\n        \"asset_youtube_short\"\n      ]\n    }\n  ]\n}","options":{"raw":{"language":"json"}}}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"CHANNEL_NOT_FOUND\",\n    \"message\": \"Channel not found or not accessible to this workspace.\",\n    \"category\": \"NOT_FOUND\",\n    \"httpStatus\": 404,\n    \"retryable\": false,\n    \"suggestedAction\": \"Check the channel ID and that it belongs to this workspace.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/CHANNEL_NOT_FOUND\",\n    \"details\": {\n      \"channelId\": \"ch_01abc\"\n    }\n  }\n}"},{"name":"409 CHANNEL_NOT_CONNECTED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Omitted: the key’s default client, else the client of the destination channels.","disabled":true},{"key":"Idempotency-Key","value":"{{$guid}}","description":"Caller-generated id for this attempt. UUID v4 or your order id. Send the same value on retry. 1–255 characters, [A-Za-z0-9_-].","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/posts","host":["{{baseUrl}}"],"path":["v1","posts"]},"body":{"mode":"raw","raw":"{\n  \"caption\": \"Launch day\",\n  \"destinations\": [\n    {\n      \"channelId\": \"ch_instagram\",\n      \"postType\": \"REELS\",\n      \"mediaAssetIds\": [\n        \"asset_reel_video\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_facebook\",\n      \"postType\": \"IMAGE\",\n      \"caption\": \"Launch day on Facebook\",\n      \"mediaAssetIds\": [\n        \"asset_facebook_photo\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_youtube\",\n      \"postType\": \"SHORTS\",\n      \"title\": \"Launch day short\",\n      \"mediaAssetIds\": [\n        \"asset_youtube_short\"\n      ]\n    }\n  ]\n}","options":{"raw":{"language":"json"}}}},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"CHANNEL_NOT_CONNECTED\",\n    \"message\": \"This channel is disconnected or needs to be reconnected.\",\n    \"category\": \"CONFLICT\",\n    \"httpStatus\": 409,\n    \"retryable\": false,\n    \"suggestedAction\": \"Connect the account again with POST /v1/channels/connect/{platform} (send channelId when GET /v1/channels still lists the channel), then retry.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/CHANNEL_NOT_CONNECTED\",\n    \"details\": {\n      \"channelId\": \"ch_01abc\"\n    }\n  }\n}"},{"name":"400 VALIDATION_FAILED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Omitted: the key’s default client, else the client of the destination channels.","disabled":true},{"key":"Idempotency-Key","value":"{{$guid}}","description":"Caller-generated id for this attempt. UUID v4 or your order id. Send the same value on retry. 1–255 characters, [A-Za-z0-9_-].","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/posts","host":["{{baseUrl}}"],"path":["v1","posts"]},"body":{"mode":"raw","raw":"{\n  \"caption\": \"Launch day\",\n  \"destinations\": [\n    {\n      \"channelId\": \"ch_instagram\",\n      \"postType\": \"REELS\",\n      \"mediaAssetIds\": [\n        \"asset_reel_video\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_facebook\",\n      \"postType\": \"IMAGE\",\n      \"caption\": \"Launch day on Facebook\",\n      \"mediaAssetIds\": [\n        \"asset_facebook_photo\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_youtube\",\n      \"postType\": \"SHORTS\",\n      \"title\": \"Launch day short\",\n      \"mediaAssetIds\": [\n        \"asset_youtube_short\"\n      ]\n    }\n  ]\n}","options":{"raw":{"language":"json"}}}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"VALIDATION_FAILED\",\n    \"message\": \"One or more request fields failed validation.\",\n    \"category\": \"VALIDATION\",\n    \"httpStatus\": 400,\n    \"retryable\": false,\n    \"suggestedAction\": \"Fix the fields listed in details.errors and retry.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/VALIDATION_FAILED\",\n    \"details\": {\n      \"errors\": [\n        {\n          \"field\": \"scheduledAt\",\n          \"message\": \"Must be an ISO 8601 datetime in the future.\"\n        }\n      ]\n    }\n  }\n}"},{"name":"409 IDEMPOTENCY_KEY_REUSED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Omitted: the key’s default client, else the client of the destination channels.","disabled":true},{"key":"Idempotency-Key","value":"{{$guid}}","description":"Caller-generated id for this attempt. UUID v4 or your order id. Send the same value on retry. 1–255 characters, [A-Za-z0-9_-].","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/posts","host":["{{baseUrl}}"],"path":["v1","posts"]},"body":{"mode":"raw","raw":"{\n  \"caption\": \"Launch day\",\n  \"destinations\": [\n    {\n      \"channelId\": \"ch_instagram\",\n      \"postType\": \"REELS\",\n      \"mediaAssetIds\": [\n        \"asset_reel_video\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_facebook\",\n      \"postType\": \"IMAGE\",\n      \"caption\": \"Launch day on Facebook\",\n      \"mediaAssetIds\": [\n        \"asset_facebook_photo\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_youtube\",\n      \"postType\": \"SHORTS\",\n      \"title\": \"Launch day short\",\n      \"mediaAssetIds\": [\n        \"asset_youtube_short\"\n      ]\n    }\n  ]\n}","options":{"raw":{"language":"json"}}}},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"IDEMPOTENCY_KEY_REUSED\",\n    \"message\": \"An earlier request used this Idempotency-Key with a different body.\",\n    \"category\": \"CONFLICT\",\n    \"httpStatus\": 409,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a new Idempotency-Key for this request, or resend the original body to replay the first result.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/IDEMPOTENCY_KEY_REUSED\",\n    \"details\": {}\n  }\n}"},{"name":"409 CLIENT_PLATFORM_SLOT_TAKEN","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Omitted: the key’s default client, else the client of the destination channels.","disabled":true},{"key":"Idempotency-Key","value":"{{$guid}}","description":"Caller-generated id for this attempt. UUID v4 or your order id. Send the same value on retry. 1–255 characters, [A-Za-z0-9_-].","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/posts","host":["{{baseUrl}}"],"path":["v1","posts"]},"body":{"mode":"raw","raw":"{\n  \"caption\": \"Launch day\",\n  \"destinations\": [\n    {\n      \"channelId\": \"ch_instagram\",\n      \"postType\": \"REELS\",\n      \"mediaAssetIds\": [\n        \"asset_reel_video\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_facebook\",\n      \"postType\": \"IMAGE\",\n      \"caption\": \"Launch day on Facebook\",\n      \"mediaAssetIds\": [\n        \"asset_facebook_photo\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_youtube\",\n      \"postType\": \"SHORTS\",\n      \"title\": \"Launch day short\",\n      \"mediaAssetIds\": [\n        \"asset_youtube_short\"\n      ]\n    }\n  ]\n}","options":{"raw":{"language":"json"}}}},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"CLIENT_PLATFORM_SLOT_TAKEN\",\n    \"message\": \"This client already has an account connected on that platform.\",\n    \"category\": \"CONFLICT\",\n    \"httpStatus\": 409,\n    \"retryable\": false,\n    \"suggestedAction\": \"Disconnect the existing account first, or add a new client for this account.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/CLIENT_PLATFORM_SLOT_TAKEN\",\n    \"details\": {\n      \"platform\": \"instagram\"\n    }\n  }\n}"},{"name":"403 X_NOT_ENTITLED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Omitted: the key’s default client, else the client of the destination channels.","disabled":true},{"key":"Idempotency-Key","value":"{{$guid}}","description":"Caller-generated id for this attempt. UUID v4 or your order id. Send the same value on retry. 1–255 characters, [A-Za-z0-9_-].","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/posts","host":["{{baseUrl}}"],"path":["v1","posts"]},"body":{"mode":"raw","raw":"{\n  \"caption\": \"Launch day\",\n  \"destinations\": [\n    {\n      \"channelId\": \"ch_instagram\",\n      \"postType\": \"REELS\",\n      \"mediaAssetIds\": [\n        \"asset_reel_video\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_facebook\",\n      \"postType\": \"IMAGE\",\n      \"caption\": \"Launch day on Facebook\",\n      \"mediaAssetIds\": [\n        \"asset_facebook_photo\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_youtube\",\n      \"postType\": \"SHORTS\",\n      \"title\": \"Launch day short\",\n      \"mediaAssetIds\": [\n        \"asset_youtube_short\"\n      ]\n    }\n  ]\n}","options":{"raw":{"language":"json"}}}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"X_NOT_ENTITLED\",\n    \"message\": \"Your plan does not include X posting. Add the X add-on to continue.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Add the X add-on to your plan, or supply your own X app credentials on the Developer plan.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/X_NOT_ENTITLED\",\n    \"details\": {\n      \"plan\": \"starter\"\n    }\n  }\n}"},{"name":"422 X_ALLOWANCE_EXHAUSTED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Omitted: the key’s default client, else the client of the destination channels.","disabled":true},{"key":"Idempotency-Key","value":"{{$guid}}","description":"Caller-generated id for this attempt. UUID v4 or your order id. Send the same value on retry. 1–255 characters, [A-Za-z0-9_-].","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/posts","host":["{{baseUrl}}"],"path":["v1","posts"]},"body":{"mode":"raw","raw":"{\n  \"caption\": \"Launch day\",\n  \"destinations\": [\n    {\n      \"channelId\": \"ch_instagram\",\n      \"postType\": \"REELS\",\n      \"mediaAssetIds\": [\n        \"asset_reel_video\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_facebook\",\n      \"postType\": \"IMAGE\",\n      \"caption\": \"Launch day on Facebook\",\n      \"mediaAssetIds\": [\n        \"asset_facebook_photo\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_youtube\",\n      \"postType\": \"SHORTS\",\n      \"title\": \"Launch day short\",\n      \"mediaAssetIds\": [\n        \"asset_youtube_short\"\n      ]\n    }\n  ]\n}","options":{"raw":{"language":"json"}}}},"status":"Unprocessable Entity","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"X_ALLOWANCE_EXHAUSTED\",\n    \"message\": \"Your X posting wallet is empty for this billing period.\",\n    \"category\": \"PLAN\",\n    \"httpStatus\": 422,\n    \"retryable\": false,\n    \"suggestedAction\": \"Add X credits to your wallet or wait until the next billing period.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/X_ALLOWANCE_EXHAUSTED\",\n    \"details\": {\n      \"remaining\": 0\n    }\n  }\n}"},{"name":"422 X_CREDENTIALS_REQUIRED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Omitted: the key’s default client, else the client of the destination channels.","disabled":true},{"key":"Idempotency-Key","value":"{{$guid}}","description":"Caller-generated id for this attempt. UUID v4 or your order id. Send the same value on retry. 1–255 characters, [A-Za-z0-9_-].","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/posts","host":["{{baseUrl}}"],"path":["v1","posts"]},"body":{"mode":"raw","raw":"{\n  \"caption\": \"Launch day\",\n  \"destinations\": [\n    {\n      \"channelId\": \"ch_instagram\",\n      \"postType\": \"REELS\",\n      \"mediaAssetIds\": [\n        \"asset_reel_video\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_facebook\",\n      \"postType\": \"IMAGE\",\n      \"caption\": \"Launch day on Facebook\",\n      \"mediaAssetIds\": [\n        \"asset_facebook_photo\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_youtube\",\n      \"postType\": \"SHORTS\",\n      \"title\": \"Launch day short\",\n      \"mediaAssetIds\": [\n        \"asset_youtube_short\"\n      ]\n    }\n  ]\n}","options":{"raw":{"language":"json"}}}},"status":"Unprocessable Entity","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"X_CREDENTIALS_REQUIRED\",\n    \"message\": \"This X channel uses your own X app, and those credentials are missing, inactive, or not verified by X.\",\n    \"category\": \"VALIDATION\",\n    \"httpStatus\": 422,\n    \"retryable\": false,\n    \"suggestedAction\": \"Submit your X app credentials via POST /v1/channels/x/credentials, or connect X on LuftSocial's X app with paid X credit.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/X_CREDENTIALS_REQUIRED\",\n    \"details\": {}\n  }\n}"},{"name":"422 X_RECONNECT_REQUIRED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Omitted: the key’s default client, else the client of the destination channels.","disabled":true},{"key":"Idempotency-Key","value":"{{$guid}}","description":"Caller-generated id for this attempt. UUID v4 or your order id. Send the same value on retry. 1–255 characters, [A-Za-z0-9_-].","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/posts","host":["{{baseUrl}}"],"path":["v1","posts"]},"body":{"mode":"raw","raw":"{\n  \"caption\": \"Launch day\",\n  \"destinations\": [\n    {\n      \"channelId\": \"ch_instagram\",\n      \"postType\": \"REELS\",\n      \"mediaAssetIds\": [\n        \"asset_reel_video\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_facebook\",\n      \"postType\": \"IMAGE\",\n      \"caption\": \"Launch day on Facebook\",\n      \"mediaAssetIds\": [\n        \"asset_facebook_photo\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_youtube\",\n      \"postType\": \"SHORTS\",\n      \"title\": \"Launch day short\",\n      \"mediaAssetIds\": [\n        \"asset_youtube_short\"\n      ]\n    }\n  ]\n}","options":{"raw":{"language":"json"}}}},"status":"Unprocessable Entity","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"X_RECONNECT_REQUIRED\",\n    \"message\": \"This X channel was connected through an X app that is no longer the one it can publish with. The workspace's X app was replaced or removed, its credentials are no longer active and verified, or the connection predates app tracking.\",\n    \"category\": \"VALIDATION\",\n    \"httpStatus\": 422,\n    \"retryable\": false,\n    \"suggestedAction\": \"Reconnect the channel with POST /v1/channels/connect/x. It then uses your current X app, or LuftSocial's X app with paid X credit when no X app is stored.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/X_RECONNECT_REQUIRED\",\n    \"details\": {\n      \"channelId\": \"ch_x\"\n    }\n  }\n}"},{"name":"402 X_ALLOWANCE_REQUIRED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Omitted: the key’s default client, else the client of the destination channels.","disabled":true},{"key":"Idempotency-Key","value":"{{$guid}}","description":"Caller-generated id for this attempt. UUID v4 or your order id. Send the same value on retry. 1–255 characters, [A-Za-z0-9_-].","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/posts","host":["{{baseUrl}}"],"path":["v1","posts"]},"body":{"mode":"raw","raw":"{\n  \"caption\": \"Launch day\",\n  \"destinations\": [\n    {\n      \"channelId\": \"ch_instagram\",\n      \"postType\": \"REELS\",\n      \"mediaAssetIds\": [\n        \"asset_reel_video\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_facebook\",\n      \"postType\": \"IMAGE\",\n      \"caption\": \"Launch day on Facebook\",\n      \"mediaAssetIds\": [\n        \"asset_facebook_photo\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_youtube\",\n      \"postType\": \"SHORTS\",\n      \"title\": \"Launch day short\",\n      \"mediaAssetIds\": [\n        \"asset_youtube_short\"\n      ]\n    }\n  ]\n}","options":{"raw":{"language":"json"}}}},"status":"Payment Required","code":402,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"X_ALLOWANCE_REQUIRED\",\n    \"message\": \"Connecting or posting to X on LuftSocial's X app requires paid X credit.\",\n    \"category\": \"PLAN\",\n    \"httpStatus\": 402,\n    \"retryable\": false,\n    \"suggestedAction\": \"Pay for X credit, or connect X with your own X app credentials.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/X_ALLOWANCE_REQUIRED\",\n    \"details\": {}\n  }\n}"},{"name":"402 X_CREDIT_SHORTFALL_LIMIT_REACHED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Omitted: the key’s default client, else the client of the destination channels.","disabled":true},{"key":"Idempotency-Key","value":"{{$guid}}","description":"Caller-generated id for this attempt. UUID v4 or your order id. Send the same value on retry. 1–255 characters, [A-Za-z0-9_-].","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/posts","host":["{{baseUrl}}"],"path":["v1","posts"]},"body":{"mode":"raw","raw":"{\n  \"caption\": \"Launch day\",\n  \"destinations\": [\n    {\n      \"channelId\": \"ch_instagram\",\n      \"postType\": \"REELS\",\n      \"mediaAssetIds\": [\n        \"asset_reel_video\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_facebook\",\n      \"postType\": \"IMAGE\",\n      \"caption\": \"Launch day on Facebook\",\n      \"mediaAssetIds\": [\n        \"asset_facebook_photo\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_youtube\",\n      \"postType\": \"SHORTS\",\n      \"title\": \"Launch day short\",\n      \"mediaAssetIds\": [\n        \"asset_youtube_short\"\n      ]\n    }\n  ]\n}","options":{"raw":{"language":"json"}}}},"status":"Payment Required","code":402,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"X_CREDIT_SHORTFALL_LIMIT_REACHED\",\n    \"message\": \"An earlier X call used more than your remaining X credit, and that shortfall (at most $1.00) is unpaid. X on LuftSocial's X app is blocked until you top up.\",\n    \"category\": \"PLAN\",\n    \"httpStatus\": 402,\n    \"retryable\": false,\n    \"suggestedAction\": \"Top up your X credit wallet in the developer billing console. The top-up clears the shortfall first.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/X_CREDIT_SHORTFALL_LIMIT_REACHED\",\n    \"details\": {}\n  }\n}"},{"name":"503 PLATFORM_OUTAGE","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Omitted: the key’s default client, else the client of the destination channels.","disabled":true},{"key":"Idempotency-Key","value":"{{$guid}}","description":"Caller-generated id for this attempt. UUID v4 or your order id. Send the same value on retry. 1–255 characters, [A-Za-z0-9_-].","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/posts","host":["{{baseUrl}}"],"path":["v1","posts"]},"body":{"mode":"raw","raw":"{\n  \"caption\": \"Launch day\",\n  \"destinations\": [\n    {\n      \"channelId\": \"ch_instagram\",\n      \"postType\": \"REELS\",\n      \"mediaAssetIds\": [\n        \"asset_reel_video\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_facebook\",\n      \"postType\": \"IMAGE\",\n      \"caption\": \"Launch day on Facebook\",\n      \"mediaAssetIds\": [\n        \"asset_facebook_photo\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_youtube\",\n      \"postType\": \"SHORTS\",\n      \"title\": \"Launch day short\",\n      \"mediaAssetIds\": [\n        \"asset_youtube_short\"\n      ]\n    }\n  ]\n}","options":{"raw":{"language":"json"}}}},"status":"Service Unavailable","code":503,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PLATFORM_OUTAGE\",\n    \"message\": \"The social platform is currently experiencing an outage. New posts cannot be accepted.\",\n    \"category\": \"UPSTREAM\",\n    \"httpStatus\": 503,\n    \"retryable\": true,\n    \"suggestedAction\": \"Check GET /v1/status for the latest incident details and retry when the incident is resolved.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PLATFORM_OUTAGE\",\n    \"details\": {\n      \"platform\": \"facebook\"\n    }\n  }\n}"},{"name":"503 QUEUE_SATURATED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Omitted: the key’s default client, else the client of the destination channels.","disabled":true},{"key":"Idempotency-Key","value":"{{$guid}}","description":"Caller-generated id for this attempt. UUID v4 or your order id. Send the same value on retry. 1–255 characters, [A-Za-z0-9_-].","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/posts","host":["{{baseUrl}}"],"path":["v1","posts"]},"body":{"mode":"raw","raw":"{\n  \"caption\": \"Launch day\",\n  \"destinations\": [\n    {\n      \"channelId\": \"ch_instagram\",\n      \"postType\": \"REELS\",\n      \"mediaAssetIds\": [\n        \"asset_reel_video\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_facebook\",\n      \"postType\": \"IMAGE\",\n      \"caption\": \"Launch day on Facebook\",\n      \"mediaAssetIds\": [\n        \"asset_facebook_photo\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_youtube\",\n      \"postType\": \"SHORTS\",\n      \"title\": \"Launch day short\",\n      \"mediaAssetIds\": [\n        \"asset_youtube_short\"\n      ]\n    }\n  ]\n}","options":{"raw":{"language":"json"}}}},"status":"Service Unavailable","code":503,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"QUEUE_SATURATED\",\n    \"message\": \"The publish queue is saturated. New write requests cannot be accepted right now.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 503,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry after the Retry-After interval.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/QUEUE_SATURATED\",\n    \"details\": {}\n  }\n}"},{"name":"429 RATE_LIMITED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Omitted: the key’s default client, else the client of the destination channels.","disabled":true},{"key":"Idempotency-Key","value":"{{$guid}}","description":"Caller-generated id for this attempt. UUID v4 or your order id. Send the same value on retry. 1–255 characters, [A-Za-z0-9_-].","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/posts","host":["{{baseUrl}}"],"path":["v1","posts"]},"body":{"mode":"raw","raw":"{\n  \"caption\": \"Launch day\",\n  \"destinations\": [\n    {\n      \"channelId\": \"ch_instagram\",\n      \"postType\": \"REELS\",\n      \"mediaAssetIds\": [\n        \"asset_reel_video\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_facebook\",\n      \"postType\": \"IMAGE\",\n      \"caption\": \"Launch day on Facebook\",\n      \"mediaAssetIds\": [\n        \"asset_facebook_photo\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_youtube\",\n      \"postType\": \"SHORTS\",\n      \"title\": \"Launch day short\",\n      \"mediaAssetIds\": [\n        \"asset_youtube_short\"\n      ]\n    }\n  ]\n}","options":{"raw":{"language":"json"}}}},"status":"Too Many Requests","code":429,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"RATE_LIMITED\",\n    \"message\": \"Too many requests. Slow down and retry after the Retry-After interval.\",\n    \"category\": \"RATE_LIMIT\",\n    \"httpStatus\": 429,\n    \"retryable\": true,\n    \"suggestedAction\": \"Wait for the Retry-After header value before retrying.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/RATE_LIMITED\",\n    \"details\": {\n      \"limit\": 60,\n      \"remaining\": 0\n    }\n  }\n}"},{"name":"429 MONTHLY_QUOTA_EXCEEDED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Omitted: the key’s default client, else the client of the destination channels.","disabled":true},{"key":"Idempotency-Key","value":"{{$guid}}","description":"Caller-generated id for this attempt. UUID v4 or your order id. Send the same value on retry. 1–255 characters, [A-Za-z0-9_-].","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/posts","host":["{{baseUrl}}"],"path":["v1","posts"]},"body":{"mode":"raw","raw":"{\n  \"caption\": \"Launch day\",\n  \"destinations\": [\n    {\n      \"channelId\": \"ch_instagram\",\n      \"postType\": \"REELS\",\n      \"mediaAssetIds\": [\n        \"asset_reel_video\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_facebook\",\n      \"postType\": \"IMAGE\",\n      \"caption\": \"Launch day on Facebook\",\n      \"mediaAssetIds\": [\n        \"asset_facebook_photo\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_youtube\",\n      \"postType\": \"SHORTS\",\n      \"title\": \"Launch day short\",\n      \"mediaAssetIds\": [\n        \"asset_youtube_short\"\n      ]\n    }\n  ]\n}","options":{"raw":{"language":"json"}}}},"status":"Too Many Requests","code":429,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"MONTHLY_QUOTA_EXCEEDED\",\n    \"message\": \"Your monthly API call quota has been reached.\",\n    \"category\": \"RATE_LIMIT\",\n    \"httpStatus\": 429,\n    \"retryable\": false,\n    \"suggestedAction\": \"Wait until the quota resets at the start of next month, or upgrade your plan.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/MONTHLY_QUOTA_EXCEEDED\",\n    \"details\": {\n      \"limit\": 25000,\n      \"remaining\": 0\n    }\n  }\n}"},{"name":"502 UPSTREAM_UNAVAILABLE","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Omitted: the key’s default client, else the client of the destination channels.","disabled":true},{"key":"Idempotency-Key","value":"{{$guid}}","description":"Caller-generated id for this attempt. UUID v4 or your order id. Send the same value on retry. 1–255 characters, [A-Za-z0-9_-].","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/posts","host":["{{baseUrl}}"],"path":["v1","posts"]},"body":{"mode":"raw","raw":"{\n  \"caption\": \"Launch day\",\n  \"destinations\": [\n    {\n      \"channelId\": \"ch_instagram\",\n      \"postType\": \"REELS\",\n      \"mediaAssetIds\": [\n        \"asset_reel_video\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_facebook\",\n      \"postType\": \"IMAGE\",\n      \"caption\": \"Launch day on Facebook\",\n      \"mediaAssetIds\": [\n        \"asset_facebook_photo\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_youtube\",\n      \"postType\": \"SHORTS\",\n      \"title\": \"Launch day short\",\n      \"mediaAssetIds\": [\n        \"asset_youtube_short\"\n      ]\n    }\n  ]\n}","options":{"raw":{"language":"json"}}}},"status":"Bad Gateway","code":502,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"UPSTREAM_UNAVAILABLE\",\n    \"message\": \"An upstream service is temporarily unavailable. Retry after the Retry-After interval.\",\n    \"category\": \"UPSTREAM\",\n    \"httpStatus\": 502,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry after the Retry-After interval.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/UPSTREAM_UNAVAILABLE\",\n    \"details\": {}\n  }\n}"},{"name":"500 INTERNAL","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Omitted: the key’s default client, else the client of the destination channels.","disabled":true},{"key":"Idempotency-Key","value":"{{$guid}}","description":"Caller-generated id for this attempt. UUID v4 or your order id. Send the same value on retry. 1–255 characters, [A-Za-z0-9_-].","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/posts","host":["{{baseUrl}}"],"path":["v1","posts"]},"body":{"mode":"raw","raw":"{\n  \"caption\": \"Launch day\",\n  \"destinations\": [\n    {\n      \"channelId\": \"ch_instagram\",\n      \"postType\": \"REELS\",\n      \"mediaAssetIds\": [\n        \"asset_reel_video\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_facebook\",\n      \"postType\": \"IMAGE\",\n      \"caption\": \"Launch day on Facebook\",\n      \"mediaAssetIds\": [\n        \"asset_facebook_photo\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_youtube\",\n      \"postType\": \"SHORTS\",\n      \"title\": \"Launch day short\",\n      \"mediaAssetIds\": [\n        \"asset_youtube_short\"\n      ]\n    }\n  ]\n}","options":{"raw":{"language":"json"}}}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"INTERNAL\",\n    \"message\": \"An unexpected error occurred.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 500,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry with backoff. If it keeps failing, contact support with the requestId.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/INTERNAL\",\n    \"details\": {}\n  }\n}"},{"name":"503 SERVICE_OVERLOADED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Client-Id","value":"{{clientId}}","description":"Client id (cli_…). Omitted: the key’s default client, else the client of the destination channels.","disabled":true},{"key":"Idempotency-Key","value":"{{$guid}}","description":"Caller-generated id for this attempt. UUID v4 or your order id. Send the same value on retry. 1–255 characters, [A-Za-z0-9_-].","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/posts","host":["{{baseUrl}}"],"path":["v1","posts"]},"body":{"mode":"raw","raw":"{\n  \"caption\": \"Launch day\",\n  \"destinations\": [\n    {\n      \"channelId\": \"ch_instagram\",\n      \"postType\": \"REELS\",\n      \"mediaAssetIds\": [\n        \"asset_reel_video\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_facebook\",\n      \"postType\": \"IMAGE\",\n      \"caption\": \"Launch day on Facebook\",\n      \"mediaAssetIds\": [\n        \"asset_facebook_photo\"\n      ]\n    },\n    {\n      \"channelId\": \"ch_youtube\",\n      \"postType\": \"SHORTS\",\n      \"title\": \"Launch day short\",\n      \"mediaAssetIds\": [\n        \"asset_youtube_short\"\n      ]\n    }\n  ]\n}","options":{"raw":{"language":"json"}}}},"status":"Service Unavailable","code":503,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"SERVICE_OVERLOADED\",\n    \"message\": \"The API is at capacity and refused this request before doing any work.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 503,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry after the Retry-After interval, with backoff. Nothing was changed.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/SERVICE_OVERLOADED\",\n    \"details\": {}\n  }\n}"}],"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('Returns 202 Accepted', () => {","  pm.response.to.have.status(202);","});","if (pm.response.code === 202) {","  const schema = {\"type\":\"object\",\"properties\":{\"post\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\"},\"status\":{\"type\":\"string\",\"enum\":[\"queued\",\"scheduled\",\"publishing\",\"published\",\"partially_published\",\"failed\",\"cancelled\"]},\"requestId\":{\"type\":\"string\"}},\"required\":[\"id\",\"status\",\"requestId\"]}},\"required\":[\"post\"]};","  pm.test('Body matches the documented schema', () => {","    pm.response.to.have.jsonSchema(schema);","  });","  const next_postId = \"post.id\".split('.').reduce((value, key) => (value == null ? undefined : value[key]), pm.response.json());","  if (typeof next_postId === 'string' && next_postId) {","    pm.collectionVariables.set('postId', next_postId);","  } else {","    console.warn('postId not set: post.id is missing from the response.');","  }","}","if (pm.response.headers.get('Idempotent-Replayed') === 'true') {","  console.log('Idempotent replay: this is the original result for this Idempotency-Key.');","}"]}}]},{"name":"Get a post","request":{"method":"GET","description":"Returns a post this application created. queued and running are normal. publishId and errorCode are set when publishing finishes.\n\nWorks with a `read` or `write` key.\n\n### Parameters\n\n| Name | In | Required | Type | Description |\n| --- | --- | --- | --- | --- |\n| `postId` | path | yes | string |  |\n\n### Response: 200 OK\n\n| Field | Type | Description |\n| --- | --- | --- |\n| `post` | object |  |\n| `post.id` | string |  |\n| `post.status` | enum | queued: accepted, not yet sent to the network. scheduled: waiting for scheduledAt. publishing: sent, the network has not confirmed yet. published, partially_published, failed, cancelled: final. One of: `queued`, `scheduled`, `publishing`, `published`, `partially_published`, `failed`, `cancelled` |\n| `post.requestId` | string |  |\n| `post.publishId` | string, nullable |  |\n| `post.errorCode` | string, nullable |  |\n| `post.errorMessage` | string, nullable | Why the post failed, when we know: for example \"Platform instagram does not support text-only posts. At least one media item is required.\" Null unless status is failed. |\n| `post.scheduledAt` | string (date-time), nullable |  |\n| `post.publishedAt` | string (date-time), nullable | When the network confirmed the post. Set once published. |\n| `post.destinations` | array of object | One entry per destination, in the order sent. A partially_published post says here which destinations failed and why; its post-level errorCode and errorMessage stay null. |\n| `post.destinations[].channelId` | string |  |\n| `post.destinations[].platform` | string, nullable |  |\n| `post.destinations[].status` | enum | pending until the post is final. Then published or failed per network, cancelled with the post, unknown when the network did not report this destination, or not_attempted when another destination stopped the post before anything was sent (that destination is failed and says why). One of: `pending`, `published`, `failed`, `cancelled`, `unknown`, `not_attempted` |\n| `post.destinations[].errorCode` | string, nullable | Catalog code. Null unless status is failed. |\n| `post.destinations[].errorMessage` | string, nullable | Why this destination failed, when the network said. Null unless status is failed. |\n| `post.destinations[].publishedAt` | string (date-time), nullable | When the network confirmed this destination. Null unless published. |\n\n### Errors\n\nEvery error uses the shared error body. Each code below has an example on this request.\n\n| Code | HTTP | Retryable | Meaning |\n| --- | --- | --- | --- |\n| `API_KEY_MISSING` | 401 | no | No Authorization header was provided. Include your API key as a Bearer token in the Authorization header. |\n| `API_KEY_INVALID` | 401 | no | The API key is unknown, revoked, or supplied as a query parameter. Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL. |\n| `API_KEY_EXPIRED` | 401 | no | The API key has passed its expiry time. Create a new key in the dashboard and replace this one. |\n| `ACCOUNT_SUSPENDED` | 403 | no | API access for this workspace is not active. Ask the workspace owner to restore the workspace, or contact LuftSocial support. |\n| `PERMISSION_REQUIRED` | 403 | no | This API key is read-only. This operation changes data and needs a write key. Use a write key, or create one in the dashboard. |\n| `CLIENT_NOT_ALLOWED` | 403 | no | This API key is limited to other clients, or the operation covers the whole account. Use a key for this client, or a key for all clients for account-wide routes. |\n| `PLAN_REQUIRED` | 403 | no | Your workspace plan does not permit API access. Upgrade your plan to enable API access. |\n| `POST_NOT_FOUND` | 404 | no | Post not found or not accessible to this workspace. Check the post ID and that it was created by this application. |\n| `POST_NOT_READY` | 409 | yes | The post is still being processed. Poll again after the Retry-After interval. Wait for the Retry-After interval and call GET /v1/posts/{postId} again. |\n| `RATE_LIMITED` | 429 | yes | Too many requests. Slow down and retry after the Retry-After interval. Wait for the Retry-After header value before retrying. |\n| `MONTHLY_QUOTA_EXCEEDED` | 429 | no | Your monthly API call quota has been reached. Wait until the quota resets at the start of next month, or upgrade your plan. |\n| `INTERNAL` | 500 | yes | An unexpected error occurred. Retry with backoff. If it keeps failing, contact support with the requestId. |\n| `SERVICE_OVERLOADED` | 503 | yes | The API is at capacity and refused this request before doing any work. Retry after the Retry-After interval, with backoff. Nothing was changed. |","header":[],"url":{"raw":"{{baseUrl}}/v1/posts/:postId","host":["{{baseUrl}}"],"path":["v1","posts",":postId"],"variable":[{"key":"postId","value":"{{postId}}"}]}},"response":[{"name":"200 OK","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/posts/:postId","host":["{{baseUrl}}"],"path":["v1","posts",":postId"],"variable":[{"key":"postId","value":"{{postId}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"post\": {\n    \"id\": \"post_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"status\": \"queued\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"publishId\": \"pub_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"errorCode\": null,\n    \"errorMessage\": null,\n    \"scheduledAt\": \"2026-09-28T18:00:00.000Z\",\n    \"publishedAt\": null,\n    \"destinations\": [\n      {\n        \"channelId\": \"ch_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n        \"platform\": \"instagram\",\n        \"status\": \"published\",\n        \"errorCode\": null,\n        \"errorMessage\": null,\n        \"publishedAt\": \"2026-09-28T18:00:05.000Z\"\n      }\n    ]\n  }\n}"},{"name":"401 API_KEY_MISSING","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/posts/:postId","host":["{{baseUrl}}"],"path":["v1","posts",":postId"],"variable":[{"key":"postId","value":"{{postId}}"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_MISSING\",\n    \"message\": \"No Authorization header was provided.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Include your API key as a Bearer token in the Authorization header.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_MISSING\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_INVALID","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/posts/:postId","host":["{{baseUrl}}"],"path":["v1","posts",":postId"],"variable":[{"key":"postId","value":"{{postId}}"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_INVALID\",\n    \"message\": \"The API key is unknown, revoked, or supplied as a query parameter.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_INVALID\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_EXPIRED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/posts/:postId","host":["{{baseUrl}}"],"path":["v1","posts",":postId"],"variable":[{"key":"postId","value":"{{postId}}"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_EXPIRED\",\n    \"message\": \"The API key has passed its expiry time.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Create a new key in the dashboard and replace this one.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_EXPIRED\",\n    \"details\": {\n      \"expiredAt\": \"2027-01-01T00:00:00.000Z\"\n    }\n  }\n}"},{"name":"403 ACCOUNT_SUSPENDED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/posts/:postId","host":["{{baseUrl}}"],"path":["v1","posts",":postId"],"variable":[{"key":"postId","value":"{{postId}}"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"ACCOUNT_SUSPENDED\",\n    \"message\": \"API access for this workspace is not active.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Ask the workspace owner to restore the workspace, or contact LuftSocial support.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/ACCOUNT_SUSPENDED\",\n    \"details\": {}\n  }\n}"},{"name":"403 PERMISSION_REQUIRED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/posts/:postId","host":["{{baseUrl}}"],"path":["v1","posts",":postId"],"variable":[{"key":"postId","value":"{{postId}}"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PERMISSION_REQUIRED\",\n    \"message\": \"This API key is read-only. This operation changes data and needs a write key.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a write key, or create one in the dashboard.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PERMISSION_REQUIRED\",\n    \"details\": {\n      \"requiredPermission\": \"write\"\n    }\n  }\n}"},{"name":"403 CLIENT_NOT_ALLOWED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/posts/:postId","host":["{{baseUrl}}"],"path":["v1","posts",":postId"],"variable":[{"key":"postId","value":"{{postId}}"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"CLIENT_NOT_ALLOWED\",\n    \"message\": \"This API key is limited to other clients, or the operation covers the whole account.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a key for this client, or a key for all clients for account-wide routes.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/CLIENT_NOT_ALLOWED\",\n    \"details\": {\n      \"clientId\": \"cli_01abc\"\n    }\n  }\n}"},{"name":"403 PLAN_REQUIRED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/posts/:postId","host":["{{baseUrl}}"],"path":["v1","posts",":postId"],"variable":[{"key":"postId","value":"{{postId}}"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PLAN_REQUIRED\",\n    \"message\": \"Your workspace plan does not permit API access.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Upgrade your plan to enable API access.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PLAN_REQUIRED\",\n    \"details\": {\n      \"plan\": \"starter\"\n    }\n  }\n}"},{"name":"404 POST_NOT_FOUND","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/posts/:postId","host":["{{baseUrl}}"],"path":["v1","posts",":postId"],"variable":[{"key":"postId","value":"{{postId}}"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"POST_NOT_FOUND\",\n    \"message\": \"Post not found or not accessible to this workspace.\",\n    \"category\": \"NOT_FOUND\",\n    \"httpStatus\": 404,\n    \"retryable\": false,\n    \"suggestedAction\": \"Check the post ID and that it was created by this application.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/POST_NOT_FOUND\",\n    \"details\": {}\n  }\n}"},{"name":"409 POST_NOT_READY","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/posts/:postId","host":["{{baseUrl}}"],"path":["v1","posts",":postId"],"variable":[{"key":"postId","value":"{{postId}}"}]}},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"POST_NOT_READY\",\n    \"message\": \"The post is still being processed. Poll again after the Retry-After interval.\",\n    \"category\": \"CONFLICT\",\n    \"httpStatus\": 409,\n    \"retryable\": true,\n    \"suggestedAction\": \"Wait for the Retry-After interval and call GET /v1/posts/{postId} again.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/POST_NOT_READY\",\n    \"details\": {}\n  }\n}"},{"name":"429 RATE_LIMITED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/posts/:postId","host":["{{baseUrl}}"],"path":["v1","posts",":postId"],"variable":[{"key":"postId","value":"{{postId}}"}]}},"status":"Too Many Requests","code":429,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"RATE_LIMITED\",\n    \"message\": \"Too many requests. Slow down and retry after the Retry-After interval.\",\n    \"category\": \"RATE_LIMIT\",\n    \"httpStatus\": 429,\n    \"retryable\": true,\n    \"suggestedAction\": \"Wait for the Retry-After header value before retrying.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/RATE_LIMITED\",\n    \"details\": {\n      \"limit\": 60,\n      \"remaining\": 0\n    }\n  }\n}"},{"name":"429 MONTHLY_QUOTA_EXCEEDED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/posts/:postId","host":["{{baseUrl}}"],"path":["v1","posts",":postId"],"variable":[{"key":"postId","value":"{{postId}}"}]}},"status":"Too Many Requests","code":429,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"MONTHLY_QUOTA_EXCEEDED\",\n    \"message\": \"Your monthly API call quota has been reached.\",\n    \"category\": \"RATE_LIMIT\",\n    \"httpStatus\": 429,\n    \"retryable\": false,\n    \"suggestedAction\": \"Wait until the quota resets at the start of next month, or upgrade your plan.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/MONTHLY_QUOTA_EXCEEDED\",\n    \"details\": {\n      \"limit\": 25000,\n      \"remaining\": 0\n    }\n  }\n}"},{"name":"500 INTERNAL","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/posts/:postId","host":["{{baseUrl}}"],"path":["v1","posts",":postId"],"variable":[{"key":"postId","value":"{{postId}}"}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"INTERNAL\",\n    \"message\": \"An unexpected error occurred.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 500,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry with backoff. If it keeps failing, contact support with the requestId.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/INTERNAL\",\n    \"details\": {}\n  }\n}"},{"name":"503 SERVICE_OVERLOADED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/posts/:postId","host":["{{baseUrl}}"],"path":["v1","posts",":postId"],"variable":[{"key":"postId","value":"{{postId}}"}]}},"status":"Service Unavailable","code":503,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"SERVICE_OVERLOADED\",\n    \"message\": \"The API is at capacity and refused this request before doing any work.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 503,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry after the Retry-After interval, with backoff. Nothing was changed.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/SERVICE_OVERLOADED\",\n    \"details\": {}\n  }\n}"}],"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('Returns 200 OK', () => {","  pm.response.to.have.status(200);","});","if (pm.response.code === 200) {","  const schema = {\"type\":\"object\",\"properties\":{\"post\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\"},\"status\":{\"type\":\"string\",\"enum\":[\"queued\",\"scheduled\",\"publishing\",\"published\",\"partially_published\",\"failed\",\"cancelled\"]},\"requestId\":{\"type\":\"string\"},\"publishId\":{\"type\":[\"string\",\"null\"]},\"errorCode\":{\"type\":[\"string\",\"null\"]},\"errorMessage\":{\"type\":[\"string\",\"null\"]},\"scheduledAt\":{\"type\":[\"string\",\"null\"]},\"publishedAt\":{\"type\":[\"string\",\"null\"]},\"destinations\":{\"type\":\"array\",\"items\":{\"type\":\"object\",\"properties\":{\"channelId\":{\"type\":\"string\"},\"platform\":{\"type\":[\"string\",\"null\"]},\"status\":{\"type\":\"string\",\"enum\":[\"pending\",\"published\",\"failed\",\"cancelled\",\"unknown\",\"not_attempted\"]},\"errorCode\":{\"type\":[\"string\",\"null\"]},\"errorMessage\":{\"type\":[\"string\",\"null\"]},\"publishedAt\":{\"type\":[\"string\",\"null\"]}},\"required\":[\"channelId\",\"platform\",\"status\",\"errorCode\",\"errorMessage\",\"publishedAt\"]}}},\"required\":[\"id\",\"status\",\"requestId\",\"publishId\",\"errorCode\",\"errorMessage\",\"scheduledAt\",\"publishedAt\",\"destinations\"]}},\"required\":[\"post\"]};","  pm.test('Body matches the documented schema', () => {","    pm.response.to.have.jsonSchema(schema);","  });","}"]}}]},{"name":"Reschedule a post or change its caption","request":{"method":"PATCH","description":"> **Changes data.** Changes a scheduled post’s time or caption. In this collection it runs only when `allowWrites` is `true`.\n\nWorks on a post created with scheduledAt while it is queued or scheduled. Send scheduledAt, caption, or both. Any other post returns 409 POST_NOT_EDITABLE.\n\nNeeds a `write` key.\n\n### Parameters\n\n| Name | In | Required | Type | Description |\n| --- | --- | --- | --- | --- |\n| `postId` | path | yes | string |  |\n\n### Request body\n\n`Content-Type: application/json`. Fields not listed here are rejected with `400 VALIDATION_FAILED`.\n\n| Field | Type | Required | Description |\n| --- | --- | --- | --- |\n| `scheduledAt` | string (date-time) | no | New schedule time. Must be in the future. |\n| `caption` | string | no | New caption for destinations that do not set their own. max length 63206 |\n\n### Response: 200 OK\n\n| Field | Type | Description |\n| --- | --- | --- |\n| `post` | object |  |\n| `post.id` | string |  |\n| `post.status` | enum | queued: accepted, not yet sent to the network. scheduled: waiting for scheduledAt. publishing: sent, the network has not confirmed yet. published, partially_published, failed, cancelled: final. One of: `queued`, `scheduled`, `publishing`, `published`, `partially_published`, `failed`, `cancelled` |\n| `post.requestId` | string |  |\n| `post.publishId` | string, nullable |  |\n| `post.errorCode` | string, nullable |  |\n| `post.errorMessage` | string, nullable | Why the post failed, when we know: for example \"Platform instagram does not support text-only posts. At least one media item is required.\" Null unless status is failed. |\n| `post.scheduledAt` | string (date-time), nullable |  |\n| `post.publishedAt` | string (date-time), nullable | When the network confirmed the post. Set once published. |\n| `post.destinations` | array of object | One entry per destination, in the order sent. A partially_published post says here which destinations failed and why; its post-level errorCode and errorMessage stay null. |\n| `post.destinations[].channelId` | string |  |\n| `post.destinations[].platform` | string, nullable |  |\n| `post.destinations[].status` | enum | pending until the post is final. Then published or failed per network, cancelled with the post, unknown when the network did not report this destination, or not_attempted when another destination stopped the post before anything was sent (that destination is failed and says why). One of: `pending`, `published`, `failed`, `cancelled`, `unknown`, `not_attempted` |\n| `post.destinations[].errorCode` | string, nullable | Catalog code. Null unless status is failed. |\n| `post.destinations[].errorMessage` | string, nullable | Why this destination failed, when the network said. Null unless status is failed. |\n| `post.destinations[].publishedAt` | string (date-time), nullable | When the network confirmed this destination. Null unless published. |\n\n### Errors\n\nEvery error uses the shared error body. Each code below has an example on this request.\n\n| Code | HTTP | Retryable | Meaning |\n| --- | --- | --- | --- |\n| `API_KEY_MISSING` | 401 | no | No Authorization header was provided. Include your API key as a Bearer token in the Authorization header. |\n| `API_KEY_INVALID` | 401 | no | The API key is unknown, revoked, or supplied as a query parameter. Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL. |\n| `API_KEY_EXPIRED` | 401 | no | The API key has passed its expiry time. Create a new key in the dashboard and replace this one. |\n| `ACCOUNT_SUSPENDED` | 403 | no | API access for this workspace is not active. Ask the workspace owner to restore the workspace, or contact LuftSocial support. |\n| `PERMISSION_REQUIRED` | 403 | no | This API key is read-only. This operation changes data and needs a write key. Use a write key, or create one in the dashboard. |\n| `CLIENT_NOT_ALLOWED` | 403 | no | This API key is limited to other clients, or the operation covers the whole account. Use a key for this client, or a key for all clients for account-wide routes. |\n| `PLAN_REQUIRED` | 403 | no | Your workspace plan does not permit API access. Upgrade your plan to enable API access. |\n| `VALIDATION_FAILED` | 400 | no | One or more request fields failed validation. Fix the fields listed in details.errors and retry. |\n| `POST_NOT_FOUND` | 404 | no | Post not found or not accessible to this workspace. Check the post ID and that it was created by this application. |\n| `POST_NOT_EDITABLE` | 409 | no | Only a queued or scheduled post created with scheduledAt can be changed. Read the post with GET /v1/posts/{postId}. A post that is publishing or finished cannot be changed. |\n| `POST_HANDOFF_IN_PROGRESS` | 409 | yes | The post is being handed to the publisher and cannot be changed or cancelled right now. Read GET /v1/posts/{postId} again in a minute; once it is scheduled you can edit or cancel it. |\n| `RATE_LIMITED` | 429 | yes | Too many requests. Slow down and retry after the Retry-After interval. Wait for the Retry-After header value before retrying. |\n| `MONTHLY_QUOTA_EXCEEDED` | 429 | no | Your monthly API call quota has been reached. Wait until the quota resets at the start of next month, or upgrade your plan. |\n| `UPSTREAM_UNAVAILABLE` | 502 | yes | An upstream service is temporarily unavailable. Retry after the Retry-After interval. Retry after the Retry-After interval. |\n| `INTERNAL` | 500 | yes | An unexpected error occurred. Retry with backoff. If it keeps failing, contact support with the requestId. |\n| `SERVICE_OVERLOADED` | 503 | yes | The API is at capacity and refused this request before doing any work. Retry after the Retry-After interval, with backoff. Nothing was changed. |","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/posts/:postId","host":["{{baseUrl}}"],"path":["v1","posts",":postId"],"variable":[{"key":"postId","value":"{{postId}}"}]},"body":{"mode":"raw","raw":"{\n  \"scheduledAt\": \"2026-09-29T18:00:00.000Z\",\n  \"caption\": \"Launch day, moved to Tuesday\"\n}","options":{"raw":{"language":"json"}}}},"response":[{"name":"200 OK","originalRequest":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/posts/:postId","host":["{{baseUrl}}"],"path":["v1","posts",":postId"],"variable":[{"key":"postId","value":"{{postId}}"}]},"body":{"mode":"raw","raw":"{\n  \"scheduledAt\": \"2026-09-29T18:00:00.000Z\",\n  \"caption\": \"Launch day, moved to Tuesday\"\n}","options":{"raw":{"language":"json"}}}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"post\": {\n    \"id\": \"post_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"status\": \"queued\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"publishId\": \"pub_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"errorCode\": null,\n    \"errorMessage\": null,\n    \"scheduledAt\": \"2026-09-28T18:00:00.000Z\",\n    \"publishedAt\": null,\n    \"destinations\": [\n      {\n        \"channelId\": \"ch_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n        \"platform\": \"instagram\",\n        \"status\": \"published\",\n        \"errorCode\": null,\n        \"errorMessage\": null,\n        \"publishedAt\": \"2026-09-28T18:00:05.000Z\"\n      }\n    ]\n  }\n}"},{"name":"401 API_KEY_MISSING","originalRequest":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/posts/:postId","host":["{{baseUrl}}"],"path":["v1","posts",":postId"],"variable":[{"key":"postId","value":"{{postId}}"}]},"body":{"mode":"raw","raw":"{\n  \"scheduledAt\": \"2026-09-29T18:00:00.000Z\",\n  \"caption\": \"Launch day, moved to Tuesday\"\n}","options":{"raw":{"language":"json"}}}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_MISSING\",\n    \"message\": \"No Authorization header was provided.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Include your API key as a Bearer token in the Authorization header.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_MISSING\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_INVALID","originalRequest":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/posts/:postId","host":["{{baseUrl}}"],"path":["v1","posts",":postId"],"variable":[{"key":"postId","value":"{{postId}}"}]},"body":{"mode":"raw","raw":"{\n  \"scheduledAt\": \"2026-09-29T18:00:00.000Z\",\n  \"caption\": \"Launch day, moved to Tuesday\"\n}","options":{"raw":{"language":"json"}}}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_INVALID\",\n    \"message\": \"The API key is unknown, revoked, or supplied as a query parameter.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_INVALID\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_EXPIRED","originalRequest":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/posts/:postId","host":["{{baseUrl}}"],"path":["v1","posts",":postId"],"variable":[{"key":"postId","value":"{{postId}}"}]},"body":{"mode":"raw","raw":"{\n  \"scheduledAt\": \"2026-09-29T18:00:00.000Z\",\n  \"caption\": \"Launch day, moved to Tuesday\"\n}","options":{"raw":{"language":"json"}}}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_EXPIRED\",\n    \"message\": \"The API key has passed its expiry time.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Create a new key in the dashboard and replace this one.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_EXPIRED\",\n    \"details\": {\n      \"expiredAt\": \"2027-01-01T00:00:00.000Z\"\n    }\n  }\n}"},{"name":"403 ACCOUNT_SUSPENDED","originalRequest":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/posts/:postId","host":["{{baseUrl}}"],"path":["v1","posts",":postId"],"variable":[{"key":"postId","value":"{{postId}}"}]},"body":{"mode":"raw","raw":"{\n  \"scheduledAt\": \"2026-09-29T18:00:00.000Z\",\n  \"caption\": \"Launch day, moved to Tuesday\"\n}","options":{"raw":{"language":"json"}}}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"ACCOUNT_SUSPENDED\",\n    \"message\": \"API access for this workspace is not active.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Ask the workspace owner to restore the workspace, or contact LuftSocial support.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/ACCOUNT_SUSPENDED\",\n    \"details\": {}\n  }\n}"},{"name":"403 PERMISSION_REQUIRED","originalRequest":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/posts/:postId","host":["{{baseUrl}}"],"path":["v1","posts",":postId"],"variable":[{"key":"postId","value":"{{postId}}"}]},"body":{"mode":"raw","raw":"{\n  \"scheduledAt\": \"2026-09-29T18:00:00.000Z\",\n  \"caption\": \"Launch day, moved to Tuesday\"\n}","options":{"raw":{"language":"json"}}}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PERMISSION_REQUIRED\",\n    \"message\": \"This API key is read-only. This operation changes data and needs a write key.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a write key, or create one in the dashboard.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PERMISSION_REQUIRED\",\n    \"details\": {\n      \"requiredPermission\": \"write\"\n    }\n  }\n}"},{"name":"403 CLIENT_NOT_ALLOWED","originalRequest":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/posts/:postId","host":["{{baseUrl}}"],"path":["v1","posts",":postId"],"variable":[{"key":"postId","value":"{{postId}}"}]},"body":{"mode":"raw","raw":"{\n  \"scheduledAt\": \"2026-09-29T18:00:00.000Z\",\n  \"caption\": \"Launch day, moved to Tuesday\"\n}","options":{"raw":{"language":"json"}}}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"CLIENT_NOT_ALLOWED\",\n    \"message\": \"This API key is limited to other clients, or the operation covers the whole account.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a key for this client, or a key for all clients for account-wide routes.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/CLIENT_NOT_ALLOWED\",\n    \"details\": {\n      \"clientId\": \"cli_01abc\"\n    }\n  }\n}"},{"name":"403 PLAN_REQUIRED","originalRequest":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/posts/:postId","host":["{{baseUrl}}"],"path":["v1","posts",":postId"],"variable":[{"key":"postId","value":"{{postId}}"}]},"body":{"mode":"raw","raw":"{\n  \"scheduledAt\": \"2026-09-29T18:00:00.000Z\",\n  \"caption\": \"Launch day, moved to Tuesday\"\n}","options":{"raw":{"language":"json"}}}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PLAN_REQUIRED\",\n    \"message\": \"Your workspace plan does not permit API access.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Upgrade your plan to enable API access.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PLAN_REQUIRED\",\n    \"details\": {\n      \"plan\": \"starter\"\n    }\n  }\n}"},{"name":"400 VALIDATION_FAILED","originalRequest":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/posts/:postId","host":["{{baseUrl}}"],"path":["v1","posts",":postId"],"variable":[{"key":"postId","value":"{{postId}}"}]},"body":{"mode":"raw","raw":"{\n  \"scheduledAt\": \"2026-09-29T18:00:00.000Z\",\n  \"caption\": \"Launch day, moved to Tuesday\"\n}","options":{"raw":{"language":"json"}}}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"VALIDATION_FAILED\",\n    \"message\": \"One or more request fields failed validation.\",\n    \"category\": \"VALIDATION\",\n    \"httpStatus\": 400,\n    \"retryable\": false,\n    \"suggestedAction\": \"Fix the fields listed in details.errors and retry.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/VALIDATION_FAILED\",\n    \"details\": {\n      \"errors\": [\n        {\n          \"field\": \"scheduledAt\",\n          \"message\": \"Must be an ISO 8601 datetime in the future.\"\n        }\n      ]\n    }\n  }\n}"},{"name":"404 POST_NOT_FOUND","originalRequest":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/posts/:postId","host":["{{baseUrl}}"],"path":["v1","posts",":postId"],"variable":[{"key":"postId","value":"{{postId}}"}]},"body":{"mode":"raw","raw":"{\n  \"scheduledAt\": \"2026-09-29T18:00:00.000Z\",\n  \"caption\": \"Launch day, moved to Tuesday\"\n}","options":{"raw":{"language":"json"}}}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"POST_NOT_FOUND\",\n    \"message\": \"Post not found or not accessible to this workspace.\",\n    \"category\": \"NOT_FOUND\",\n    \"httpStatus\": 404,\n    \"retryable\": false,\n    \"suggestedAction\": \"Check the post ID and that it was created by this application.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/POST_NOT_FOUND\",\n    \"details\": {}\n  }\n}"},{"name":"409 POST_NOT_EDITABLE","originalRequest":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/posts/:postId","host":["{{baseUrl}}"],"path":["v1","posts",":postId"],"variable":[{"key":"postId","value":"{{postId}}"}]},"body":{"mode":"raw","raw":"{\n  \"scheduledAt\": \"2026-09-29T18:00:00.000Z\",\n  \"caption\": \"Launch day, moved to Tuesday\"\n}","options":{"raw":{"language":"json"}}}},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"POST_NOT_EDITABLE\",\n    \"message\": \"Only a queued or scheduled post created with scheduledAt can be changed.\",\n    \"category\": \"CONFLICT\",\n    \"httpStatus\": 409,\n    \"retryable\": false,\n    \"suggestedAction\": \"Read the post with GET /v1/posts/{postId}. A post that is publishing or finished cannot be changed.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/POST_NOT_EDITABLE\",\n    \"details\": {}\n  }\n}"},{"name":"409 POST_HANDOFF_IN_PROGRESS","originalRequest":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/posts/:postId","host":["{{baseUrl}}"],"path":["v1","posts",":postId"],"variable":[{"key":"postId","value":"{{postId}}"}]},"body":{"mode":"raw","raw":"{\n  \"scheduledAt\": \"2026-09-29T18:00:00.000Z\",\n  \"caption\": \"Launch day, moved to Tuesday\"\n}","options":{"raw":{"language":"json"}}}},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"POST_HANDOFF_IN_PROGRESS\",\n    \"message\": \"The post is being handed to the publisher and cannot be changed or cancelled right now.\",\n    \"category\": \"CONFLICT\",\n    \"httpStatus\": 409,\n    \"retryable\": true,\n    \"suggestedAction\": \"Read GET /v1/posts/{postId} again in a minute; once it is scheduled you can edit or cancel it.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/POST_HANDOFF_IN_PROGRESS\",\n    \"details\": {}\n  }\n}"},{"name":"429 RATE_LIMITED","originalRequest":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/posts/:postId","host":["{{baseUrl}}"],"path":["v1","posts",":postId"],"variable":[{"key":"postId","value":"{{postId}}"}]},"body":{"mode":"raw","raw":"{\n  \"scheduledAt\": \"2026-09-29T18:00:00.000Z\",\n  \"caption\": \"Launch day, moved to Tuesday\"\n}","options":{"raw":{"language":"json"}}}},"status":"Too Many Requests","code":429,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"RATE_LIMITED\",\n    \"message\": \"Too many requests. Slow down and retry after the Retry-After interval.\",\n    \"category\": \"RATE_LIMIT\",\n    \"httpStatus\": 429,\n    \"retryable\": true,\n    \"suggestedAction\": \"Wait for the Retry-After header value before retrying.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/RATE_LIMITED\",\n    \"details\": {\n      \"limit\": 60,\n      \"remaining\": 0\n    }\n  }\n}"},{"name":"429 MONTHLY_QUOTA_EXCEEDED","originalRequest":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/posts/:postId","host":["{{baseUrl}}"],"path":["v1","posts",":postId"],"variable":[{"key":"postId","value":"{{postId}}"}]},"body":{"mode":"raw","raw":"{\n  \"scheduledAt\": \"2026-09-29T18:00:00.000Z\",\n  \"caption\": \"Launch day, moved to Tuesday\"\n}","options":{"raw":{"language":"json"}}}},"status":"Too Many Requests","code":429,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"MONTHLY_QUOTA_EXCEEDED\",\n    \"message\": \"Your monthly API call quota has been reached.\",\n    \"category\": \"RATE_LIMIT\",\n    \"httpStatus\": 429,\n    \"retryable\": false,\n    \"suggestedAction\": \"Wait until the quota resets at the start of next month, or upgrade your plan.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/MONTHLY_QUOTA_EXCEEDED\",\n    \"details\": {\n      \"limit\": 25000,\n      \"remaining\": 0\n    }\n  }\n}"},{"name":"502 UPSTREAM_UNAVAILABLE","originalRequest":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/posts/:postId","host":["{{baseUrl}}"],"path":["v1","posts",":postId"],"variable":[{"key":"postId","value":"{{postId}}"}]},"body":{"mode":"raw","raw":"{\n  \"scheduledAt\": \"2026-09-29T18:00:00.000Z\",\n  \"caption\": \"Launch day, moved to Tuesday\"\n}","options":{"raw":{"language":"json"}}}},"status":"Bad Gateway","code":502,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"UPSTREAM_UNAVAILABLE\",\n    \"message\": \"An upstream service is temporarily unavailable. Retry after the Retry-After interval.\",\n    \"category\": \"UPSTREAM\",\n    \"httpStatus\": 502,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry after the Retry-After interval.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/UPSTREAM_UNAVAILABLE\",\n    \"details\": {}\n  }\n}"},{"name":"500 INTERNAL","originalRequest":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/posts/:postId","host":["{{baseUrl}}"],"path":["v1","posts",":postId"],"variable":[{"key":"postId","value":"{{postId}}"}]},"body":{"mode":"raw","raw":"{\n  \"scheduledAt\": \"2026-09-29T18:00:00.000Z\",\n  \"caption\": \"Launch day, moved to Tuesday\"\n}","options":{"raw":{"language":"json"}}}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"INTERNAL\",\n    \"message\": \"An unexpected error occurred.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 500,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry with backoff. If it keeps failing, contact support with the requestId.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/INTERNAL\",\n    \"details\": {}\n  }\n}"},{"name":"503 SERVICE_OVERLOADED","originalRequest":{"method":"PATCH","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/posts/:postId","host":["{{baseUrl}}"],"path":["v1","posts",":postId"],"variable":[{"key":"postId","value":"{{postId}}"}]},"body":{"mode":"raw","raw":"{\n  \"scheduledAt\": \"2026-09-29T18:00:00.000Z\",\n  \"caption\": \"Launch day, moved to Tuesday\"\n}","options":{"raw":{"language":"json"}}}},"status":"Service Unavailable","code":503,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"SERVICE_OVERLOADED\",\n    \"message\": \"The API is at capacity and refused this request before doing any work.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 503,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry after the Retry-After interval, with backoff. Nothing was changed.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/SERVICE_OVERLOADED\",\n    \"details\": {}\n  }\n}"}],"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('Returns 200 OK', () => {","  pm.response.to.have.status(200);","});","if (pm.response.code === 200) {","  const schema = {\"type\":\"object\",\"properties\":{\"post\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\"},\"status\":{\"type\":\"string\",\"enum\":[\"queued\",\"scheduled\",\"publishing\",\"published\",\"partially_published\",\"failed\",\"cancelled\"]},\"requestId\":{\"type\":\"string\"},\"publishId\":{\"type\":[\"string\",\"null\"]},\"errorCode\":{\"type\":[\"string\",\"null\"]},\"errorMessage\":{\"type\":[\"string\",\"null\"]},\"scheduledAt\":{\"type\":[\"string\",\"null\"]},\"publishedAt\":{\"type\":[\"string\",\"null\"]},\"destinations\":{\"type\":\"array\",\"items\":{\"type\":\"object\",\"properties\":{\"channelId\":{\"type\":\"string\"},\"platform\":{\"type\":[\"string\",\"null\"]},\"status\":{\"type\":\"string\",\"enum\":[\"pending\",\"published\",\"failed\",\"cancelled\",\"unknown\",\"not_attempted\"]},\"errorCode\":{\"type\":[\"string\",\"null\"]},\"errorMessage\":{\"type\":[\"string\",\"null\"]},\"publishedAt\":{\"type\":[\"string\",\"null\"]}},\"required\":[\"channelId\",\"platform\",\"status\",\"errorCode\",\"errorMessage\",\"publishedAt\"]}}},\"required\":[\"id\",\"status\",\"requestId\",\"publishId\",\"errorCode\",\"errorMessage\",\"scheduledAt\",\"publishedAt\",\"destinations\"]}},\"required\":[\"post\"]};","  pm.test('Body matches the documented schema', () => {","    pm.response.to.have.jsonSchema(schema);","  });","}"]}}]},{"name":"Cancel a post","request":{"method":"DELETE","description":"> **Changes data.** Cancels a queued or scheduled post. It cannot be un-cancelled. In this collection it runs only when `allowWrites` is `true`.\n\nCancels a post that is queued or scheduled. The post stays readable with status cancelled. Cancelling it again also returns 204. A post that is publishing or finished returns 409 POST_NOT_CANCELLABLE.\n\nNeeds a `write` key.\n\n### Parameters\n\n| Name | In | Required | Type | Description |\n| --- | --- | --- | --- | --- |\n| `postId` | path | yes | string |  |\n\n### Response: 204 No Content\n\nPost cancelled.\n\nNo body.\n\n### Errors\n\nEvery error uses the shared error body. Each code below has an example on this request.\n\n| Code | HTTP | Retryable | Meaning |\n| --- | --- | --- | --- |\n| `API_KEY_MISSING` | 401 | no | No Authorization header was provided. Include your API key as a Bearer token in the Authorization header. |\n| `API_KEY_INVALID` | 401 | no | The API key is unknown, revoked, or supplied as a query parameter. Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL. |\n| `API_KEY_EXPIRED` | 401 | no | The API key has passed its expiry time. Create a new key in the dashboard and replace this one. |\n| `ACCOUNT_SUSPENDED` | 403 | no | API access for this workspace is not active. Ask the workspace owner to restore the workspace, or contact LuftSocial support. |\n| `PERMISSION_REQUIRED` | 403 | no | This API key is read-only. This operation changes data and needs a write key. Use a write key, or create one in the dashboard. |\n| `CLIENT_NOT_ALLOWED` | 403 | no | This API key is limited to other clients, or the operation covers the whole account. Use a key for this client, or a key for all clients for account-wide routes. |\n| `PLAN_REQUIRED` | 403 | no | Your workspace plan does not permit API access. Upgrade your plan to enable API access. |\n| `POST_NOT_FOUND` | 404 | no | Post not found or not accessible to this workspace. Check the post ID and that it was created by this application. |\n| `POST_NOT_CANCELLABLE` | 409 | no | Only queued or scheduled posts can be cancelled. The post is already publishing or finished and cannot be cancelled. |\n| `POST_HANDOFF_IN_PROGRESS` | 409 | yes | The post is being handed to the publisher and cannot be changed or cancelled right now. Read GET /v1/posts/{postId} again in a minute; once it is scheduled you can edit or cancel it. |\n| `RATE_LIMITED` | 429 | yes | Too many requests. Slow down and retry after the Retry-After interval. Wait for the Retry-After header value before retrying. |\n| `MONTHLY_QUOTA_EXCEEDED` | 429 | no | Your monthly API call quota has been reached. Wait until the quota resets at the start of next month, or upgrade your plan. |\n| `UPSTREAM_UNAVAILABLE` | 502 | yes | An upstream service is temporarily unavailable. Retry after the Retry-After interval. Retry after the Retry-After interval. |\n| `INTERNAL` | 500 | yes | An unexpected error occurred. Retry with backoff. If it keeps failing, contact support with the requestId. |\n| `SERVICE_OVERLOADED` | 503 | yes | The API is at capacity and refused this request before doing any work. Retry after the Retry-After interval, with backoff. Nothing was changed. |","header":[],"url":{"raw":"{{baseUrl}}/v1/posts/:postId","host":["{{baseUrl}}"],"path":["v1","posts",":postId"],"variable":[{"key":"postId","value":"{{postId}}"}]}},"response":[{"name":"204 No Content","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{baseUrl}}/v1/posts/:postId","host":["{{baseUrl}}"],"path":["v1","posts",":postId"],"variable":[{"key":"postId","value":"{{postId}}"}]}},"status":"No Content","code":204,"_postman_previewlanguage":"json","header":[{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":""},{"name":"401 API_KEY_MISSING","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{baseUrl}}/v1/posts/:postId","host":["{{baseUrl}}"],"path":["v1","posts",":postId"],"variable":[{"key":"postId","value":"{{postId}}"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_MISSING\",\n    \"message\": \"No Authorization header was provided.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Include your API key as a Bearer token in the Authorization header.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_MISSING\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_INVALID","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{baseUrl}}/v1/posts/:postId","host":["{{baseUrl}}"],"path":["v1","posts",":postId"],"variable":[{"key":"postId","value":"{{postId}}"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_INVALID\",\n    \"message\": \"The API key is unknown, revoked, or supplied as a query parameter.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_INVALID\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_EXPIRED","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{baseUrl}}/v1/posts/:postId","host":["{{baseUrl}}"],"path":["v1","posts",":postId"],"variable":[{"key":"postId","value":"{{postId}}"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_EXPIRED\",\n    \"message\": \"The API key has passed its expiry time.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Create a new key in the dashboard and replace this one.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_EXPIRED\",\n    \"details\": {\n      \"expiredAt\": \"2027-01-01T00:00:00.000Z\"\n    }\n  }\n}"},{"name":"403 ACCOUNT_SUSPENDED","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{baseUrl}}/v1/posts/:postId","host":["{{baseUrl}}"],"path":["v1","posts",":postId"],"variable":[{"key":"postId","value":"{{postId}}"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"ACCOUNT_SUSPENDED\",\n    \"message\": \"API access for this workspace is not active.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Ask the workspace owner to restore the workspace, or contact LuftSocial support.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/ACCOUNT_SUSPENDED\",\n    \"details\": {}\n  }\n}"},{"name":"403 PERMISSION_REQUIRED","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{baseUrl}}/v1/posts/:postId","host":["{{baseUrl}}"],"path":["v1","posts",":postId"],"variable":[{"key":"postId","value":"{{postId}}"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PERMISSION_REQUIRED\",\n    \"message\": \"This API key is read-only. This operation changes data and needs a write key.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a write key, or create one in the dashboard.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PERMISSION_REQUIRED\",\n    \"details\": {\n      \"requiredPermission\": \"write\"\n    }\n  }\n}"},{"name":"403 CLIENT_NOT_ALLOWED","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{baseUrl}}/v1/posts/:postId","host":["{{baseUrl}}"],"path":["v1","posts",":postId"],"variable":[{"key":"postId","value":"{{postId}}"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"CLIENT_NOT_ALLOWED\",\n    \"message\": \"This API key is limited to other clients, or the operation covers the whole account.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a key for this client, or a key for all clients for account-wide routes.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/CLIENT_NOT_ALLOWED\",\n    \"details\": {\n      \"clientId\": \"cli_01abc\"\n    }\n  }\n}"},{"name":"403 PLAN_REQUIRED","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{baseUrl}}/v1/posts/:postId","host":["{{baseUrl}}"],"path":["v1","posts",":postId"],"variable":[{"key":"postId","value":"{{postId}}"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PLAN_REQUIRED\",\n    \"message\": \"Your workspace plan does not permit API access.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Upgrade your plan to enable API access.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PLAN_REQUIRED\",\n    \"details\": {\n      \"plan\": \"starter\"\n    }\n  }\n}"},{"name":"404 POST_NOT_FOUND","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{baseUrl}}/v1/posts/:postId","host":["{{baseUrl}}"],"path":["v1","posts",":postId"],"variable":[{"key":"postId","value":"{{postId}}"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"POST_NOT_FOUND\",\n    \"message\": \"Post not found or not accessible to this workspace.\",\n    \"category\": \"NOT_FOUND\",\n    \"httpStatus\": 404,\n    \"retryable\": false,\n    \"suggestedAction\": \"Check the post ID and that it was created by this application.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/POST_NOT_FOUND\",\n    \"details\": {}\n  }\n}"},{"name":"409 POST_NOT_CANCELLABLE","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{baseUrl}}/v1/posts/:postId","host":["{{baseUrl}}"],"path":["v1","posts",":postId"],"variable":[{"key":"postId","value":"{{postId}}"}]}},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"POST_NOT_CANCELLABLE\",\n    \"message\": \"Only queued or scheduled posts can be cancelled.\",\n    \"category\": \"CONFLICT\",\n    \"httpStatus\": 409,\n    \"retryable\": false,\n    \"suggestedAction\": \"The post is already publishing or finished and cannot be cancelled.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/POST_NOT_CANCELLABLE\",\n    \"details\": {}\n  }\n}"},{"name":"409 POST_HANDOFF_IN_PROGRESS","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{baseUrl}}/v1/posts/:postId","host":["{{baseUrl}}"],"path":["v1","posts",":postId"],"variable":[{"key":"postId","value":"{{postId}}"}]}},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"POST_HANDOFF_IN_PROGRESS\",\n    \"message\": \"The post is being handed to the publisher and cannot be changed or cancelled right now.\",\n    \"category\": \"CONFLICT\",\n    \"httpStatus\": 409,\n    \"retryable\": true,\n    \"suggestedAction\": \"Read GET /v1/posts/{postId} again in a minute; once it is scheduled you can edit or cancel it.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/POST_HANDOFF_IN_PROGRESS\",\n    \"details\": {}\n  }\n}"},{"name":"429 RATE_LIMITED","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{baseUrl}}/v1/posts/:postId","host":["{{baseUrl}}"],"path":["v1","posts",":postId"],"variable":[{"key":"postId","value":"{{postId}}"}]}},"status":"Too Many Requests","code":429,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"RATE_LIMITED\",\n    \"message\": \"Too many requests. Slow down and retry after the Retry-After interval.\",\n    \"category\": \"RATE_LIMIT\",\n    \"httpStatus\": 429,\n    \"retryable\": true,\n    \"suggestedAction\": \"Wait for the Retry-After header value before retrying.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/RATE_LIMITED\",\n    \"details\": {\n      \"limit\": 60,\n      \"remaining\": 0\n    }\n  }\n}"},{"name":"429 MONTHLY_QUOTA_EXCEEDED","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{baseUrl}}/v1/posts/:postId","host":["{{baseUrl}}"],"path":["v1","posts",":postId"],"variable":[{"key":"postId","value":"{{postId}}"}]}},"status":"Too Many Requests","code":429,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"MONTHLY_QUOTA_EXCEEDED\",\n    \"message\": \"Your monthly API call quota has been reached.\",\n    \"category\": \"RATE_LIMIT\",\n    \"httpStatus\": 429,\n    \"retryable\": false,\n    \"suggestedAction\": \"Wait until the quota resets at the start of next month, or upgrade your plan.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/MONTHLY_QUOTA_EXCEEDED\",\n    \"details\": {\n      \"limit\": 25000,\n      \"remaining\": 0\n    }\n  }\n}"},{"name":"502 UPSTREAM_UNAVAILABLE","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{baseUrl}}/v1/posts/:postId","host":["{{baseUrl}}"],"path":["v1","posts",":postId"],"variable":[{"key":"postId","value":"{{postId}}"}]}},"status":"Bad Gateway","code":502,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"UPSTREAM_UNAVAILABLE\",\n    \"message\": \"An upstream service is temporarily unavailable. Retry after the Retry-After interval.\",\n    \"category\": \"UPSTREAM\",\n    \"httpStatus\": 502,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry after the Retry-After interval.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/UPSTREAM_UNAVAILABLE\",\n    \"details\": {}\n  }\n}"},{"name":"500 INTERNAL","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{baseUrl}}/v1/posts/:postId","host":["{{baseUrl}}"],"path":["v1","posts",":postId"],"variable":[{"key":"postId","value":"{{postId}}"}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"INTERNAL\",\n    \"message\": \"An unexpected error occurred.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 500,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry with backoff. If it keeps failing, contact support with the requestId.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/INTERNAL\",\n    \"details\": {}\n  }\n}"},{"name":"503 SERVICE_OVERLOADED","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{baseUrl}}/v1/posts/:postId","host":["{{baseUrl}}"],"path":["v1","posts",":postId"],"variable":[{"key":"postId","value":"{{postId}}"}]}},"status":"Service Unavailable","code":503,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"SERVICE_OVERLOADED\",\n    \"message\": \"The API is at capacity and refused this request before doing any work.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 503,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry after the Retry-After interval, with backoff. Nothing was changed.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/SERVICE_OVERLOADED\",\n    \"details\": {}\n  }\n}"}],"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('Returns 204 No Content', () => {","  pm.response.to.have.status(204);","});"]}}]}]},{"name":"Scheduler","description":"Posts queued for a future scheduledAt.","item":[{"name":"List scheduled posts","request":{"method":"GET","description":"Posts this application created with a scheduledAt that have not started publishing. Reschedule one with PATCH /v1/posts/{postId}, cancel it with DELETE /v1/posts/{postId}.\n\nWorks with a `read` or `write` key.\n\n### Parameters\n\n| Name | In | Required | Type | Description |\n| --- | --- | --- | --- | --- |\n| `cursor` | query | no | string |  |\n| `limit` | query | no | integer | max 100; default `50` |\n\n### Response: 200 OK\n\n| Field | Type | Description |\n| --- | --- | --- |\n| `data` | array of object |  |\n| `data[].id` | string |  |\n| `data[].platform` | string | Platform of the first destination. |\n| `data[].contentPreview` | string | First 120 characters of the caption. |\n| `data[].scheduledAt` | string |  |\n| `data[].status` | enum | queued: not yet handed to the network. scheduled: held until scheduledAt. One of: `queued`, `scheduled` |\n| `meta` | object |  |\n| `meta.cursor` | string, nullable |  |\n| `meta.limit` | number |  |\n\n### Errors\n\nEvery error uses the shared error body. Each code below has an example on this request.\n\n| Code | HTTP | Retryable | Meaning |\n| --- | --- | --- | --- |\n| `API_KEY_MISSING` | 401 | no | No Authorization header was provided. Include your API key as a Bearer token in the Authorization header. |\n| `API_KEY_INVALID` | 401 | no | The API key is unknown, revoked, or supplied as a query parameter. Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL. |\n| `API_KEY_EXPIRED` | 401 | no | The API key has passed its expiry time. Create a new key in the dashboard and replace this one. |\n| `ACCOUNT_SUSPENDED` | 403 | no | API access for this workspace is not active. Ask the workspace owner to restore the workspace, or contact LuftSocial support. |\n| `PERMISSION_REQUIRED` | 403 | no | This API key is read-only. This operation changes data and needs a write key. Use a write key, or create one in the dashboard. |\n| `CLIENT_NOT_ALLOWED` | 403 | no | This API key is limited to other clients, or the operation covers the whole account. Use a key for this client, or a key for all clients for account-wide routes. |\n| `PLAN_REQUIRED` | 403 | no | Your workspace plan does not permit API access. Upgrade your plan to enable API access. |\n| `RATE_LIMITED` | 429 | yes | Too many requests. Slow down and retry after the Retry-After interval. Wait for the Retry-After header value before retrying. |\n| `MONTHLY_QUOTA_EXCEEDED` | 429 | no | Your monthly API call quota has been reached. Wait until the quota resets at the start of next month, or upgrade your plan. |\n| `INTERNAL` | 500 | yes | An unexpected error occurred. Retry with backoff. If it keeps failing, contact support with the requestId. |\n| `SERVICE_OVERLOADED` | 503 | yes | The API is at capacity and refused this request before doing any work. Retry after the Retry-After interval, with backoff. Nothing was changed. |","header":[],"url":{"raw":"{{baseUrl}}/v1/scheduler/posts","host":["{{baseUrl}}"],"path":["v1","scheduler","posts"],"query":[{"key":"cursor","value":"","disabled":true},{"key":"limit","value":"","disabled":true}]}},"response":[{"name":"200 OK","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/scheduler/posts","host":["{{baseUrl}}"],"path":["v1","scheduler","posts"],"query":[{"key":"cursor","value":"","disabled":true},{"key":"limit","value":"","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"data\": [\n    {\n      \"id\": \"post_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n      \"platform\": \"instagram\",\n      \"contentPreview\": \"Launch day. Link in bio.\",\n      \"scheduledAt\": \"2026-10-14T09:00:00.000Z\",\n      \"status\": \"scheduled\"\n    }\n  ],\n  \"meta\": {\n    \"cursor\": null,\n    \"limit\": 50\n  }\n}"},{"name":"401 API_KEY_MISSING","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/scheduler/posts","host":["{{baseUrl}}"],"path":["v1","scheduler","posts"],"query":[{"key":"cursor","value":"","disabled":true},{"key":"limit","value":"","disabled":true}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_MISSING\",\n    \"message\": \"No Authorization header was provided.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Include your API key as a Bearer token in the Authorization header.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_MISSING\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_INVALID","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/scheduler/posts","host":["{{baseUrl}}"],"path":["v1","scheduler","posts"],"query":[{"key":"cursor","value":"","disabled":true},{"key":"limit","value":"","disabled":true}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_INVALID\",\n    \"message\": \"The API key is unknown, revoked, or supplied as a query parameter.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_INVALID\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_EXPIRED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/scheduler/posts","host":["{{baseUrl}}"],"path":["v1","scheduler","posts"],"query":[{"key":"cursor","value":"","disabled":true},{"key":"limit","value":"","disabled":true}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_EXPIRED\",\n    \"message\": \"The API key has passed its expiry time.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Create a new key in the dashboard and replace this one.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_EXPIRED\",\n    \"details\": {\n      \"expiredAt\": \"2027-01-01T00:00:00.000Z\"\n    }\n  }\n}"},{"name":"403 ACCOUNT_SUSPENDED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/scheduler/posts","host":["{{baseUrl}}"],"path":["v1","scheduler","posts"],"query":[{"key":"cursor","value":"","disabled":true},{"key":"limit","value":"","disabled":true}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"ACCOUNT_SUSPENDED\",\n    \"message\": \"API access for this workspace is not active.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Ask the workspace owner to restore the workspace, or contact LuftSocial support.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/ACCOUNT_SUSPENDED\",\n    \"details\": {}\n  }\n}"},{"name":"403 PERMISSION_REQUIRED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/scheduler/posts","host":["{{baseUrl}}"],"path":["v1","scheduler","posts"],"query":[{"key":"cursor","value":"","disabled":true},{"key":"limit","value":"","disabled":true}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PERMISSION_REQUIRED\",\n    \"message\": \"This API key is read-only. This operation changes data and needs a write key.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a write key, or create one in the dashboard.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PERMISSION_REQUIRED\",\n    \"details\": {\n      \"requiredPermission\": \"write\"\n    }\n  }\n}"},{"name":"403 CLIENT_NOT_ALLOWED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/scheduler/posts","host":["{{baseUrl}}"],"path":["v1","scheduler","posts"],"query":[{"key":"cursor","value":"","disabled":true},{"key":"limit","value":"","disabled":true}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"CLIENT_NOT_ALLOWED\",\n    \"message\": \"This API key is limited to other clients, or the operation covers the whole account.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a key for this client, or a key for all clients for account-wide routes.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/CLIENT_NOT_ALLOWED\",\n    \"details\": {\n      \"clientId\": \"cli_01abc\"\n    }\n  }\n}"},{"name":"403 PLAN_REQUIRED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/scheduler/posts","host":["{{baseUrl}}"],"path":["v1","scheduler","posts"],"query":[{"key":"cursor","value":"","disabled":true},{"key":"limit","value":"","disabled":true}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PLAN_REQUIRED\",\n    \"message\": \"Your workspace plan does not permit API access.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Upgrade your plan to enable API access.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PLAN_REQUIRED\",\n    \"details\": {\n      \"plan\": \"starter\"\n    }\n  }\n}"},{"name":"429 RATE_LIMITED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/scheduler/posts","host":["{{baseUrl}}"],"path":["v1","scheduler","posts"],"query":[{"key":"cursor","value":"","disabled":true},{"key":"limit","value":"","disabled":true}]}},"status":"Too Many Requests","code":429,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"RATE_LIMITED\",\n    \"message\": \"Too many requests. Slow down and retry after the Retry-After interval.\",\n    \"category\": \"RATE_LIMIT\",\n    \"httpStatus\": 429,\n    \"retryable\": true,\n    \"suggestedAction\": \"Wait for the Retry-After header value before retrying.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/RATE_LIMITED\",\n    \"details\": {\n      \"limit\": 60,\n      \"remaining\": 0\n    }\n  }\n}"},{"name":"429 MONTHLY_QUOTA_EXCEEDED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/scheduler/posts","host":["{{baseUrl}}"],"path":["v1","scheduler","posts"],"query":[{"key":"cursor","value":"","disabled":true},{"key":"limit","value":"","disabled":true}]}},"status":"Too Many Requests","code":429,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"MONTHLY_QUOTA_EXCEEDED\",\n    \"message\": \"Your monthly API call quota has been reached.\",\n    \"category\": \"RATE_LIMIT\",\n    \"httpStatus\": 429,\n    \"retryable\": false,\n    \"suggestedAction\": \"Wait until the quota resets at the start of next month, or upgrade your plan.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/MONTHLY_QUOTA_EXCEEDED\",\n    \"details\": {\n      \"limit\": 25000,\n      \"remaining\": 0\n    }\n  }\n}"},{"name":"500 INTERNAL","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/scheduler/posts","host":["{{baseUrl}}"],"path":["v1","scheduler","posts"],"query":[{"key":"cursor","value":"","disabled":true},{"key":"limit","value":"","disabled":true}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"INTERNAL\",\n    \"message\": \"An unexpected error occurred.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 500,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry with backoff. If it keeps failing, contact support with the requestId.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/INTERNAL\",\n    \"details\": {}\n  }\n}"},{"name":"503 SERVICE_OVERLOADED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/scheduler/posts","host":["{{baseUrl}}"],"path":["v1","scheduler","posts"],"query":[{"key":"cursor","value":"","disabled":true},{"key":"limit","value":"","disabled":true}]}},"status":"Service Unavailable","code":503,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"SERVICE_OVERLOADED\",\n    \"message\": \"The API is at capacity and refused this request before doing any work.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 503,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry after the Retry-After interval, with backoff. Nothing was changed.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/SERVICE_OVERLOADED\",\n    \"details\": {}\n  }\n}"}],"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('Returns 200 OK', () => {","  pm.response.to.have.status(200);","});","if (pm.response.code === 200) {","  const schema = {\"type\":\"object\",\"properties\":{\"data\":{\"type\":\"array\",\"items\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\"},\"platform\":{\"type\":\"string\"},\"contentPreview\":{\"type\":\"string\"},\"scheduledAt\":{\"type\":\"string\"},\"status\":{\"type\":\"string\",\"enum\":[\"queued\",\"scheduled\"]}},\"required\":[\"id\",\"platform\",\"scheduledAt\",\"status\"]}},\"meta\":{\"type\":\"object\",\"properties\":{\"cursor\":{\"type\":[\"string\",\"null\"]},\"limit\":{\"type\":\"number\"}},\"required\":[\"cursor\",\"limit\"]}},\"required\":[\"data\",\"meta\"]};","  pm.test('Body matches the documented schema', () => {","    pm.response.to.have.jsonSchema(schema);","  });","}"]}}]}]},{"name":"Webhooks","description":"Endpoints, secrets, and the delivery log.\n\n**Events**\n\n`post.published`, `post.failed`, `platform.outage.opened`, `platform.outage.resolved`, `channel.connected`, `connect.failed`, `channel.reconnect_needed`. An endpoint created without `events` receives all of them.\n\nEach delivery is a `POST` with a JSON body:\n\n```json\n{\n  \"id\": \"evt_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n  \"type\": \"post.published\",\n  \"createdAt\": \"2026-11-12T09:30:00.000Z\",\n  \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n  \"data\": {\n    \"postId\": \"post_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"publishId\": \"pub_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"status\": \"published\",\n    \"errorCode\": null,\n    \"errorMessage\": null,\n    \"publishedAt\": \"2026-11-12T09:30:00.000Z\",\n    \"destinations\": [\n      { \"channelId\": \"ch_instagram\", \"platform\": \"instagram\", \"status\": \"published\", \"errorCode\": null, \"errorMessage\": null, \"publishedAt\": \"2026-11-12T09:30:00.000Z\" }\n    ]\n  }\n}\n```\n\n`channel.connected` data: `channelId`, `clientId`, `platform`, `accountName`, `sessionId` (null when connected from the console). `connect.failed` data: `sessionId`, `clientId`, `platform`, `errorCode`. `channel.reconnect_needed` data: `channelId`, `clientId`, `platform`, `reason` (`x_app_replaced`, `token`, or null).\n\n**Verify the signature.** The `X-Luft-Signature` header is `t=<unix seconds>,v1=<hex>`. Compute HMAC-SHA256 of `<t>.<raw body>` with your endpoint secret and compare it to a `v1` value with a constant-time comparison. For 24 hours after a secret rotation there are two `v1` values, one per secret; accept either. Reject a `t` more than five minutes from your clock.\n\n```js\nconst crypto = require('crypto');\nfunction verify(rawBody, header, secret) {\n  const parts = header.split(',').map((p) => p.split('='));\n  const t = parts.find(([k]) => k === 't')?.[1];\n  if (!t || Math.abs(Date.now() / 1000 - Number(t)) > 300) return false;\n  const expected = crypto.createHmac('sha256', secret).update(t + '.' + rawBody).digest('hex');\n  return parts.some(([k, v]) => k === 'v1' && v.length === expected.length &&\n    crypto.timingSafeEqual(Buffer.from(v), Buffer.from(expected)));\n}\n```\n\n**Delivery.** Answer with any 2xx. Anything else, or no answer within 5 seconds, is retried: 3 attempts in total, a few seconds apart. Redirects are not followed. A delivery can arrive more than once and out of order: use `id` to drop duplicates and `createdAt` or the resource's own status to order them. `GET /v1/webhooks/deliveries` shows each attempt, and an endpoint whose deliveries ran out of attempts shows in `GET /v1/issues` as `webhook_failing`.\n\nEndpoint URLs must be public HTTPS. Private, loopback, and metadata addresses are refused (`WEBHOOK_URL_BLOCKED`). To test locally, expose your receiver through a public HTTPS tunnel.","item":[{"name":"List webhook endpoints","request":{"method":"GET","description":"Works with a `read` or `write` key.\n\n### Parameters\n\n| Name | In | Required | Type | Description |\n| --- | --- | --- | --- | --- |\n| `cursor` | query | no | string |  |\n| `limit` | query | no | integer | max 100; default `20` |\n\n### Response: 200 OK\n\n| Field | Type | Description |\n| --- | --- | --- |\n| `data` | array of object |  |\n| `data[].id` | string |  |\n| `data[].url` | string |  |\n| `data[].events` | array of enum | Each one of: `post.published`, `post.failed`, `platform.outage.opened`, `platform.outage.resolved`, `channel.connected`, `connect.failed`, `channel.reconnect_needed` |\n| `data[].createdAt` | string |  |\n| `meta` | object |  |\n| `meta.cursor` | string, nullable |  |\n| `meta.limit` | number |  |\n\n### Errors\n\nEvery error uses the shared error body. Each code below has an example on this request.\n\n| Code | HTTP | Retryable | Meaning |\n| --- | --- | --- | --- |\n| `API_KEY_MISSING` | 401 | no | No Authorization header was provided. Include your API key as a Bearer token in the Authorization header. |\n| `API_KEY_INVALID` | 401 | no | The API key is unknown, revoked, or supplied as a query parameter. Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL. |\n| `API_KEY_EXPIRED` | 401 | no | The API key has passed its expiry time. Create a new key in the dashboard and replace this one. |\n| `ACCOUNT_SUSPENDED` | 403 | no | API access for this workspace is not active. Ask the workspace owner to restore the workspace, or contact LuftSocial support. |\n| `PERMISSION_REQUIRED` | 403 | no | This API key is read-only. This operation changes data and needs a write key. Use a write key, or create one in the dashboard. |\n| `CLIENT_NOT_ALLOWED` | 403 | no | This API key is limited to other clients, or the operation covers the whole account. Use a key for this client, or a key for all clients for account-wide routes. |\n| `PLAN_REQUIRED` | 403 | no | Your workspace plan does not permit API access. Upgrade your plan to enable API access. |\n| `RATE_LIMITED` | 429 | yes | Too many requests. Slow down and retry after the Retry-After interval. Wait for the Retry-After header value before retrying. |\n| `INTERNAL` | 500 | yes | An unexpected error occurred. Retry with backoff. If it keeps failing, contact support with the requestId. |\n| `SERVICE_OVERLOADED` | 503 | yes | The API is at capacity and refused this request before doing any work. Retry after the Retry-After interval, with backoff. Nothing was changed. |","header":[],"url":{"raw":"{{baseUrl}}/v1/webhooks","host":["{{baseUrl}}"],"path":["v1","webhooks"],"query":[{"key":"cursor","value":"","disabled":true},{"key":"limit","value":"","disabled":true}]}},"response":[{"name":"200 OK","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/webhooks","host":["{{baseUrl}}"],"path":["v1","webhooks"],"query":[{"key":"cursor","value":"","disabled":true},{"key":"limit","value":"","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"data\": [\n    {\n      \"id\": \"whe_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n      \"url\": \"https://example.com/webhooks/luft\",\n      \"events\": [\n        \"post.published\"\n      ],\n      \"createdAt\": \"2026-09-29T06:00:00.000Z\"\n    }\n  ],\n  \"meta\": {\n    \"cursor\": null,\n    \"limit\": 20\n  }\n}"},{"name":"401 API_KEY_MISSING","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/webhooks","host":["{{baseUrl}}"],"path":["v1","webhooks"],"query":[{"key":"cursor","value":"","disabled":true},{"key":"limit","value":"","disabled":true}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_MISSING\",\n    \"message\": \"No Authorization header was provided.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Include your API key as a Bearer token in the Authorization header.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_MISSING\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_INVALID","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/webhooks","host":["{{baseUrl}}"],"path":["v1","webhooks"],"query":[{"key":"cursor","value":"","disabled":true},{"key":"limit","value":"","disabled":true}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_INVALID\",\n    \"message\": \"The API key is unknown, revoked, or supplied as a query parameter.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_INVALID\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_EXPIRED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/webhooks","host":["{{baseUrl}}"],"path":["v1","webhooks"],"query":[{"key":"cursor","value":"","disabled":true},{"key":"limit","value":"","disabled":true}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_EXPIRED\",\n    \"message\": \"The API key has passed its expiry time.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Create a new key in the dashboard and replace this one.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_EXPIRED\",\n    \"details\": {\n      \"expiredAt\": \"2027-01-01T00:00:00.000Z\"\n    }\n  }\n}"},{"name":"403 ACCOUNT_SUSPENDED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/webhooks","host":["{{baseUrl}}"],"path":["v1","webhooks"],"query":[{"key":"cursor","value":"","disabled":true},{"key":"limit","value":"","disabled":true}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"ACCOUNT_SUSPENDED\",\n    \"message\": \"API access for this workspace is not active.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Ask the workspace owner to restore the workspace, or contact LuftSocial support.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/ACCOUNT_SUSPENDED\",\n    \"details\": {}\n  }\n}"},{"name":"403 PERMISSION_REQUIRED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/webhooks","host":["{{baseUrl}}"],"path":["v1","webhooks"],"query":[{"key":"cursor","value":"","disabled":true},{"key":"limit","value":"","disabled":true}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PERMISSION_REQUIRED\",\n    \"message\": \"This API key is read-only. This operation changes data and needs a write key.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a write key, or create one in the dashboard.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PERMISSION_REQUIRED\",\n    \"details\": {\n      \"requiredPermission\": \"write\"\n    }\n  }\n}"},{"name":"403 CLIENT_NOT_ALLOWED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/webhooks","host":["{{baseUrl}}"],"path":["v1","webhooks"],"query":[{"key":"cursor","value":"","disabled":true},{"key":"limit","value":"","disabled":true}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"CLIENT_NOT_ALLOWED\",\n    \"message\": \"This API key is limited to other clients, or the operation covers the whole account.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a key for this client, or a key for all clients for account-wide routes.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/CLIENT_NOT_ALLOWED\",\n    \"details\": {\n      \"clientId\": \"cli_01abc\"\n    }\n  }\n}"},{"name":"403 PLAN_REQUIRED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/webhooks","host":["{{baseUrl}}"],"path":["v1","webhooks"],"query":[{"key":"cursor","value":"","disabled":true},{"key":"limit","value":"","disabled":true}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PLAN_REQUIRED\",\n    \"message\": \"Your workspace plan does not permit API access.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Upgrade your plan to enable API access.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PLAN_REQUIRED\",\n    \"details\": {\n      \"plan\": \"starter\"\n    }\n  }\n}"},{"name":"429 RATE_LIMITED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/webhooks","host":["{{baseUrl}}"],"path":["v1","webhooks"],"query":[{"key":"cursor","value":"","disabled":true},{"key":"limit","value":"","disabled":true}]}},"status":"Too Many Requests","code":429,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"RATE_LIMITED\",\n    \"message\": \"Too many requests. Slow down and retry after the Retry-After interval.\",\n    \"category\": \"RATE_LIMIT\",\n    \"httpStatus\": 429,\n    \"retryable\": true,\n    \"suggestedAction\": \"Wait for the Retry-After header value before retrying.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/RATE_LIMITED\",\n    \"details\": {\n      \"limit\": 60,\n      \"remaining\": 0\n    }\n  }\n}"},{"name":"500 INTERNAL","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/webhooks","host":["{{baseUrl}}"],"path":["v1","webhooks"],"query":[{"key":"cursor","value":"","disabled":true},{"key":"limit","value":"","disabled":true}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"INTERNAL\",\n    \"message\": \"An unexpected error occurred.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 500,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry with backoff. If it keeps failing, contact support with the requestId.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/INTERNAL\",\n    \"details\": {}\n  }\n}"},{"name":"503 SERVICE_OVERLOADED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/webhooks","host":["{{baseUrl}}"],"path":["v1","webhooks"],"query":[{"key":"cursor","value":"","disabled":true},{"key":"limit","value":"","disabled":true}]}},"status":"Service Unavailable","code":503,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"SERVICE_OVERLOADED\",\n    \"message\": \"The API is at capacity and refused this request before doing any work.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 503,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry after the Retry-After interval, with backoff. Nothing was changed.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/SERVICE_OVERLOADED\",\n    \"details\": {}\n  }\n}"}],"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('Returns 200 OK', () => {","  pm.response.to.have.status(200);","});","if (pm.response.code === 200) {","  const schema = {\"type\":\"object\",\"properties\":{\"data\":{\"type\":\"array\",\"items\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\"},\"url\":{\"type\":\"string\"},\"events\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"enum\":[\"post.published\",\"post.failed\",\"platform.outage.opened\",\"platform.outage.resolved\",\"channel.connected\",\"connect.failed\",\"channel.reconnect_needed\"]}},\"createdAt\":{\"type\":\"string\"}},\"required\":[\"id\",\"url\",\"events\",\"createdAt\"]}},\"meta\":{\"type\":\"object\",\"properties\":{\"cursor\":{\"type\":[\"string\",\"null\"]},\"limit\":{\"type\":\"number\"}}}},\"required\":[\"data\",\"meta\"]};","  pm.test('Body matches the documented schema', () => {","    pm.response.to.have.jsonSchema(schema);","  });","  const next_webhookId = \"data.0.id\".split('.').reduce((value, key) => (value == null ? undefined : value[key]), pm.response.json());","  if (typeof next_webhookId === 'string' && next_webhookId) {","    pm.collectionVariables.set('webhookId', next_webhookId);","  } else {","    console.warn('webhookId not set: data.0.id is missing from the response.');","  }","}"]}}]},{"name":"Create a webhook endpoint","request":{"method":"POST","description":"> **Changes data.** Creates a webhook endpoint that receives signed events. The secret is shown once. In this collection it runs only when `allowWrites` is `true`.\n\nThe signing secret is returned once. Send Idempotency-Key and reuse it if this call times out. Events are signed in X-Luft-Signature as t=<unix>,v1=<hex>.\n\nNeeds a `write` key.\n\n### Parameters\n\n| Name | In | Required | Type | Description |\n| --- | --- | --- | --- | --- |\n| `Idempotency-Key` | header | yes | string | 1–255 characters, [A-Za-z0-9_-]. Reuse it to read the same secret. |\n\n### Request body\n\n`Content-Type: application/json`. Fields not listed here are rejected with `400 VALIDATION_FAILED`.\n\n| Field | Type | Required | Description |\n| --- | --- | --- | --- |\n| `url` | string | yes | max length 2048 |\n| `events` | array of enum | no | Each one of: `post.published`, `post.failed`, `platform.outage.opened`, `platform.outage.resolved`, `channel.connected`, `connect.failed`, `channel.reconnect_needed`; max items 50 |\n\n### Response: 201 Created\n\n| Field | Type | Description |\n| --- | --- | --- |\n| `id` | string |  |\n| `url` | string |  |\n| `events` | array of enum | Each one of: `post.published`, `post.failed`, `platform.outage.opened`, `platform.outage.resolved`, `channel.connected`, `connect.failed`, `channel.reconnect_needed` |\n| `createdAt` | string |  |\n| `secret` | string | Shown once. Store it to verify X-Luft-Signature. |\n\n### Errors\n\nEvery error uses the shared error body. Each code below has an example on this request.\n\n| Code | HTTP | Retryable | Meaning |\n| --- | --- | --- | --- |\n| `API_KEY_MISSING` | 401 | no | No Authorization header was provided. Include your API key as a Bearer token in the Authorization header. |\n| `API_KEY_INVALID` | 401 | no | The API key is unknown, revoked, or supplied as a query parameter. Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL. |\n| `API_KEY_EXPIRED` | 401 | no | The API key has passed its expiry time. Create a new key in the dashboard and replace this one. |\n| `ACCOUNT_SUSPENDED` | 403 | no | API access for this workspace is not active. Ask the workspace owner to restore the workspace, or contact LuftSocial support. |\n| `PERMISSION_REQUIRED` | 403 | no | This API key is read-only. This operation changes data and needs a write key. Use a write key, or create one in the dashboard. |\n| `CLIENT_NOT_ALLOWED` | 403 | no | This API key is limited to other clients, or the operation covers the whole account. Use a key for this client, or a key for all clients for account-wide routes. |\n| `PLAN_REQUIRED` | 403 | no | Your workspace plan does not permit API access. Upgrade your plan to enable API access. |\n| `VALIDATION_FAILED` | 400 | no | One or more request fields failed validation. Fix the fields listed in details.errors and retry. |\n| `IDEMPOTENCY_KEY_REUSED` | 409 | no | An earlier request used this Idempotency-Key with a different body. Use a new Idempotency-Key for this request, or resend the original body to replay the first result. |\n| `WEBHOOK_URL_BLOCKED` | 400 | no | The webhook URL failed the SSRF safety check. Use a public HTTPS URL that does not resolve to a private, loopback, link-local, or cloud metadata address. |\n| `RATE_LIMITED` | 429 | yes | Too many requests. Slow down and retry after the Retry-After interval. Wait for the Retry-After header value before retrying. |\n| `INTERNAL` | 500 | yes | An unexpected error occurred. Retry with backoff. If it keeps failing, contact support with the requestId. |\n| `SERVICE_OVERLOADED` | 503 | yes | The API is at capacity and refused this request before doing any work. Retry after the Retry-After interval, with backoff. Nothing was changed. |","header":[{"key":"Content-Type","value":"application/json"},{"key":"Idempotency-Key","value":"{{$guid}}","description":"1–255 characters, [A-Za-z0-9_-]. Reuse it to read the same secret.","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/webhooks","host":["{{baseUrl}}"],"path":["v1","webhooks"]},"body":{"mode":"raw","raw":"{\n  \"url\": \"https://example.com/webhooks/luft\",\n  \"events\": [\n    \"post.published\",\n    \"post.failed\"\n  ]\n}","options":{"raw":{"language":"json"}}}},"response":[{"name":"201 Created","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Idempotency-Key","value":"{{$guid}}","description":"1–255 characters, [A-Za-z0-9_-]. Reuse it to read the same secret.","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/webhooks","host":["{{baseUrl}}"],"path":["v1","webhooks"]},"body":{"mode":"raw","raw":"{\n  \"url\": \"https://example.com/webhooks/luft\",\n  \"events\": [\n    \"post.published\",\n    \"post.failed\"\n  ]\n}","options":{"raw":{"language":"json"}}}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"id\": \"whe_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n  \"url\": \"https://example.com/webhooks/luft\",\n  \"events\": [\n    \"post.published\"\n  ],\n  \"createdAt\": \"2026-09-29T06:00:00.000Z\",\n  \"secret\": \"whsec_example\"\n}"},{"name":"401 API_KEY_MISSING","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Idempotency-Key","value":"{{$guid}}","description":"1–255 characters, [A-Za-z0-9_-]. Reuse it to read the same secret.","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/webhooks","host":["{{baseUrl}}"],"path":["v1","webhooks"]},"body":{"mode":"raw","raw":"{\n  \"url\": \"https://example.com/webhooks/luft\",\n  \"events\": [\n    \"post.published\",\n    \"post.failed\"\n  ]\n}","options":{"raw":{"language":"json"}}}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_MISSING\",\n    \"message\": \"No Authorization header was provided.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Include your API key as a Bearer token in the Authorization header.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_MISSING\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_INVALID","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Idempotency-Key","value":"{{$guid}}","description":"1–255 characters, [A-Za-z0-9_-]. Reuse it to read the same secret.","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/webhooks","host":["{{baseUrl}}"],"path":["v1","webhooks"]},"body":{"mode":"raw","raw":"{\n  \"url\": \"https://example.com/webhooks/luft\",\n  \"events\": [\n    \"post.published\",\n    \"post.failed\"\n  ]\n}","options":{"raw":{"language":"json"}}}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_INVALID\",\n    \"message\": \"The API key is unknown, revoked, or supplied as a query parameter.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_INVALID\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_EXPIRED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Idempotency-Key","value":"{{$guid}}","description":"1–255 characters, [A-Za-z0-9_-]. Reuse it to read the same secret.","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/webhooks","host":["{{baseUrl}}"],"path":["v1","webhooks"]},"body":{"mode":"raw","raw":"{\n  \"url\": \"https://example.com/webhooks/luft\",\n  \"events\": [\n    \"post.published\",\n    \"post.failed\"\n  ]\n}","options":{"raw":{"language":"json"}}}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_EXPIRED\",\n    \"message\": \"The API key has passed its expiry time.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Create a new key in the dashboard and replace this one.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_EXPIRED\",\n    \"details\": {\n      \"expiredAt\": \"2027-01-01T00:00:00.000Z\"\n    }\n  }\n}"},{"name":"403 ACCOUNT_SUSPENDED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Idempotency-Key","value":"{{$guid}}","description":"1–255 characters, [A-Za-z0-9_-]. Reuse it to read the same secret.","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/webhooks","host":["{{baseUrl}}"],"path":["v1","webhooks"]},"body":{"mode":"raw","raw":"{\n  \"url\": \"https://example.com/webhooks/luft\",\n  \"events\": [\n    \"post.published\",\n    \"post.failed\"\n  ]\n}","options":{"raw":{"language":"json"}}}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"ACCOUNT_SUSPENDED\",\n    \"message\": \"API access for this workspace is not active.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Ask the workspace owner to restore the workspace, or contact LuftSocial support.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/ACCOUNT_SUSPENDED\",\n    \"details\": {}\n  }\n}"},{"name":"403 PERMISSION_REQUIRED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Idempotency-Key","value":"{{$guid}}","description":"1–255 characters, [A-Za-z0-9_-]. Reuse it to read the same secret.","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/webhooks","host":["{{baseUrl}}"],"path":["v1","webhooks"]},"body":{"mode":"raw","raw":"{\n  \"url\": \"https://example.com/webhooks/luft\",\n  \"events\": [\n    \"post.published\",\n    \"post.failed\"\n  ]\n}","options":{"raw":{"language":"json"}}}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PERMISSION_REQUIRED\",\n    \"message\": \"This API key is read-only. This operation changes data and needs a write key.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a write key, or create one in the dashboard.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PERMISSION_REQUIRED\",\n    \"details\": {\n      \"requiredPermission\": \"write\"\n    }\n  }\n}"},{"name":"403 CLIENT_NOT_ALLOWED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Idempotency-Key","value":"{{$guid}}","description":"1–255 characters, [A-Za-z0-9_-]. Reuse it to read the same secret.","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/webhooks","host":["{{baseUrl}}"],"path":["v1","webhooks"]},"body":{"mode":"raw","raw":"{\n  \"url\": \"https://example.com/webhooks/luft\",\n  \"events\": [\n    \"post.published\",\n    \"post.failed\"\n  ]\n}","options":{"raw":{"language":"json"}}}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"CLIENT_NOT_ALLOWED\",\n    \"message\": \"This API key is limited to other clients, or the operation covers the whole account.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a key for this client, or a key for all clients for account-wide routes.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/CLIENT_NOT_ALLOWED\",\n    \"details\": {\n      \"clientId\": \"cli_01abc\"\n    }\n  }\n}"},{"name":"403 PLAN_REQUIRED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Idempotency-Key","value":"{{$guid}}","description":"1–255 characters, [A-Za-z0-9_-]. Reuse it to read the same secret.","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/webhooks","host":["{{baseUrl}}"],"path":["v1","webhooks"]},"body":{"mode":"raw","raw":"{\n  \"url\": \"https://example.com/webhooks/luft\",\n  \"events\": [\n    \"post.published\",\n    \"post.failed\"\n  ]\n}","options":{"raw":{"language":"json"}}}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PLAN_REQUIRED\",\n    \"message\": \"Your workspace plan does not permit API access.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Upgrade your plan to enable API access.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PLAN_REQUIRED\",\n    \"details\": {\n      \"plan\": \"starter\"\n    }\n  }\n}"},{"name":"400 VALIDATION_FAILED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Idempotency-Key","value":"{{$guid}}","description":"1–255 characters, [A-Za-z0-9_-]. Reuse it to read the same secret.","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/webhooks","host":["{{baseUrl}}"],"path":["v1","webhooks"]},"body":{"mode":"raw","raw":"{\n  \"url\": \"https://example.com/webhooks/luft\",\n  \"events\": [\n    \"post.published\",\n    \"post.failed\"\n  ]\n}","options":{"raw":{"language":"json"}}}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"VALIDATION_FAILED\",\n    \"message\": \"One or more request fields failed validation.\",\n    \"category\": \"VALIDATION\",\n    \"httpStatus\": 400,\n    \"retryable\": false,\n    \"suggestedAction\": \"Fix the fields listed in details.errors and retry.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/VALIDATION_FAILED\",\n    \"details\": {\n      \"errors\": [\n        {\n          \"field\": \"scheduledAt\",\n          \"message\": \"Must be an ISO 8601 datetime in the future.\"\n        }\n      ]\n    }\n  }\n}"},{"name":"409 IDEMPOTENCY_KEY_REUSED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Idempotency-Key","value":"{{$guid}}","description":"1–255 characters, [A-Za-z0-9_-]. Reuse it to read the same secret.","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/webhooks","host":["{{baseUrl}}"],"path":["v1","webhooks"]},"body":{"mode":"raw","raw":"{\n  \"url\": \"https://example.com/webhooks/luft\",\n  \"events\": [\n    \"post.published\",\n    \"post.failed\"\n  ]\n}","options":{"raw":{"language":"json"}}}},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"IDEMPOTENCY_KEY_REUSED\",\n    \"message\": \"An earlier request used this Idempotency-Key with a different body.\",\n    \"category\": \"CONFLICT\",\n    \"httpStatus\": 409,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a new Idempotency-Key for this request, or resend the original body to replay the first result.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/IDEMPOTENCY_KEY_REUSED\",\n    \"details\": {}\n  }\n}"},{"name":"400 WEBHOOK_URL_BLOCKED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Idempotency-Key","value":"{{$guid}}","description":"1–255 characters, [A-Za-z0-9_-]. Reuse it to read the same secret.","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/webhooks","host":["{{baseUrl}}"],"path":["v1","webhooks"]},"body":{"mode":"raw","raw":"{\n  \"url\": \"https://example.com/webhooks/luft\",\n  \"events\": [\n    \"post.published\",\n    \"post.failed\"\n  ]\n}","options":{"raw":{"language":"json"}}}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"WEBHOOK_URL_BLOCKED\",\n    \"message\": \"The webhook URL failed the SSRF safety check.\",\n    \"category\": \"VALIDATION\",\n    \"httpStatus\": 400,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a public HTTPS URL that does not resolve to a private, loopback, link-local, or cloud metadata address.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/WEBHOOK_URL_BLOCKED\",\n    \"details\": {}\n  }\n}"},{"name":"429 RATE_LIMITED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Idempotency-Key","value":"{{$guid}}","description":"1–255 characters, [A-Za-z0-9_-]. Reuse it to read the same secret.","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/webhooks","host":["{{baseUrl}}"],"path":["v1","webhooks"]},"body":{"mode":"raw","raw":"{\n  \"url\": \"https://example.com/webhooks/luft\",\n  \"events\": [\n    \"post.published\",\n    \"post.failed\"\n  ]\n}","options":{"raw":{"language":"json"}}}},"status":"Too Many Requests","code":429,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"RATE_LIMITED\",\n    \"message\": \"Too many requests. Slow down and retry after the Retry-After interval.\",\n    \"category\": \"RATE_LIMIT\",\n    \"httpStatus\": 429,\n    \"retryable\": true,\n    \"suggestedAction\": \"Wait for the Retry-After header value before retrying.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/RATE_LIMITED\",\n    \"details\": {\n      \"limit\": 60,\n      \"remaining\": 0\n    }\n  }\n}"},{"name":"500 INTERNAL","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Idempotency-Key","value":"{{$guid}}","description":"1–255 characters, [A-Za-z0-9_-]. Reuse it to read the same secret.","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/webhooks","host":["{{baseUrl}}"],"path":["v1","webhooks"]},"body":{"mode":"raw","raw":"{\n  \"url\": \"https://example.com/webhooks/luft\",\n  \"events\": [\n    \"post.published\",\n    \"post.failed\"\n  ]\n}","options":{"raw":{"language":"json"}}}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"INTERNAL\",\n    \"message\": \"An unexpected error occurred.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 500,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry with backoff. If it keeps failing, contact support with the requestId.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/INTERNAL\",\n    \"details\": {}\n  }\n}"},{"name":"503 SERVICE_OVERLOADED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Idempotency-Key","value":"{{$guid}}","description":"1–255 characters, [A-Za-z0-9_-]. Reuse it to read the same secret.","disabled":false}],"url":{"raw":"{{baseUrl}}/v1/webhooks","host":["{{baseUrl}}"],"path":["v1","webhooks"]},"body":{"mode":"raw","raw":"{\n  \"url\": \"https://example.com/webhooks/luft\",\n  \"events\": [\n    \"post.published\",\n    \"post.failed\"\n  ]\n}","options":{"raw":{"language":"json"}}}},"status":"Service Unavailable","code":503,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"SERVICE_OVERLOADED\",\n    \"message\": \"The API is at capacity and refused this request before doing any work.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 503,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry after the Retry-After interval, with backoff. Nothing was changed.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/SERVICE_OVERLOADED\",\n    \"details\": {}\n  }\n}"}],"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('Returns 201 Created', () => {","  pm.response.to.have.status(201);","});","if (pm.response.code === 201) {","  const schema = {\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\"},\"url\":{\"type\":\"string\"},\"events\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"enum\":[\"post.published\",\"post.failed\",\"platform.outage.opened\",\"platform.outage.resolved\",\"channel.connected\",\"connect.failed\",\"channel.reconnect_needed\"]}},\"createdAt\":{\"type\":\"string\"},\"secret\":{\"type\":\"string\"}},\"required\":[\"id\",\"url\",\"events\",\"createdAt\",\"secret\"]};","  pm.test('Body matches the documented schema', () => {","    pm.response.to.have.jsonSchema(schema);","  });","  const next_webhookId = \"id\".split('.').reduce((value, key) => (value == null ? undefined : value[key]), pm.response.json());","  if (typeof next_webhookId === 'string' && next_webhookId) {","    pm.collectionVariables.set('webhookId', next_webhookId);","  } else {","    console.warn('webhookId not set: id is missing from the response.');","  }","}"]}}]},{"name":"Delete a webhook endpoint","request":{"method":"DELETE","description":"> **Changes data.** Deletes the endpoint. No more events are sent to it. In this collection it runs only when `allowWrites` is `true`.\n\nNeeds a `write` key.\n\n### Parameters\n\n| Name | In | Required | Type | Description |\n| --- | --- | --- | --- | --- |\n| `webhookId` | path | yes | string |  |\n\n### Response: 200 OK\n\n| Field | Type | Description |\n| --- | --- | --- |\n| `status` | string |  |\n\n### Errors\n\nEvery error uses the shared error body. Each code below has an example on this request.\n\n| Code | HTTP | Retryable | Meaning |\n| --- | --- | --- | --- |\n| `API_KEY_MISSING` | 401 | no | No Authorization header was provided. Include your API key as a Bearer token in the Authorization header. |\n| `API_KEY_INVALID` | 401 | no | The API key is unknown, revoked, or supplied as a query parameter. Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL. |\n| `API_KEY_EXPIRED` | 401 | no | The API key has passed its expiry time. Create a new key in the dashboard and replace this one. |\n| `ACCOUNT_SUSPENDED` | 403 | no | API access for this workspace is not active. Ask the workspace owner to restore the workspace, or contact LuftSocial support. |\n| `PERMISSION_REQUIRED` | 403 | no | This API key is read-only. This operation changes data and needs a write key. Use a write key, or create one in the dashboard. |\n| `CLIENT_NOT_ALLOWED` | 403 | no | This API key is limited to other clients, or the operation covers the whole account. Use a key for this client, or a key for all clients for account-wide routes. |\n| `PLAN_REQUIRED` | 403 | no | Your workspace plan does not permit API access. Upgrade your plan to enable API access. |\n| `WEBHOOK_NOT_FOUND` | 404 | no | Webhook endpoint not found or not accessible to this application. Check the webhook ID and that it belongs to this application. |\n| `RATE_LIMITED` | 429 | yes | Too many requests. Slow down and retry after the Retry-After interval. Wait for the Retry-After header value before retrying. |\n| `INTERNAL` | 500 | yes | An unexpected error occurred. Retry with backoff. If it keeps failing, contact support with the requestId. |\n| `SERVICE_OVERLOADED` | 503 | yes | The API is at capacity and refused this request before doing any work. Retry after the Retry-After interval, with backoff. Nothing was changed. |","header":[],"url":{"raw":"{{baseUrl}}/v1/webhooks/:webhookId","host":["{{baseUrl}}"],"path":["v1","webhooks",":webhookId"],"variable":[{"key":"webhookId","value":"{{webhookId}}"}]}},"response":[{"name":"200 OK","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{baseUrl}}/v1/webhooks/:webhookId","host":["{{baseUrl}}"],"path":["v1","webhooks",":webhookId"],"variable":[{"key":"webhookId","value":"{{webhookId}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"status\": \"deleted\"\n}"},{"name":"401 API_KEY_MISSING","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{baseUrl}}/v1/webhooks/:webhookId","host":["{{baseUrl}}"],"path":["v1","webhooks",":webhookId"],"variable":[{"key":"webhookId","value":"{{webhookId}}"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_MISSING\",\n    \"message\": \"No Authorization header was provided.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Include your API key as a Bearer token in the Authorization header.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_MISSING\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_INVALID","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{baseUrl}}/v1/webhooks/:webhookId","host":["{{baseUrl}}"],"path":["v1","webhooks",":webhookId"],"variable":[{"key":"webhookId","value":"{{webhookId}}"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_INVALID\",\n    \"message\": \"The API key is unknown, revoked, or supplied as a query parameter.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_INVALID\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_EXPIRED","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{baseUrl}}/v1/webhooks/:webhookId","host":["{{baseUrl}}"],"path":["v1","webhooks",":webhookId"],"variable":[{"key":"webhookId","value":"{{webhookId}}"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_EXPIRED\",\n    \"message\": \"The API key has passed its expiry time.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Create a new key in the dashboard and replace this one.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_EXPIRED\",\n    \"details\": {\n      \"expiredAt\": \"2027-01-01T00:00:00.000Z\"\n    }\n  }\n}"},{"name":"403 ACCOUNT_SUSPENDED","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{baseUrl}}/v1/webhooks/:webhookId","host":["{{baseUrl}}"],"path":["v1","webhooks",":webhookId"],"variable":[{"key":"webhookId","value":"{{webhookId}}"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"ACCOUNT_SUSPENDED\",\n    \"message\": \"API access for this workspace is not active.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Ask the workspace owner to restore the workspace, or contact LuftSocial support.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/ACCOUNT_SUSPENDED\",\n    \"details\": {}\n  }\n}"},{"name":"403 PERMISSION_REQUIRED","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{baseUrl}}/v1/webhooks/:webhookId","host":["{{baseUrl}}"],"path":["v1","webhooks",":webhookId"],"variable":[{"key":"webhookId","value":"{{webhookId}}"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PERMISSION_REQUIRED\",\n    \"message\": \"This API key is read-only. This operation changes data and needs a write key.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a write key, or create one in the dashboard.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PERMISSION_REQUIRED\",\n    \"details\": {\n      \"requiredPermission\": \"write\"\n    }\n  }\n}"},{"name":"403 CLIENT_NOT_ALLOWED","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{baseUrl}}/v1/webhooks/:webhookId","host":["{{baseUrl}}"],"path":["v1","webhooks",":webhookId"],"variable":[{"key":"webhookId","value":"{{webhookId}}"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"CLIENT_NOT_ALLOWED\",\n    \"message\": \"This API key is limited to other clients, or the operation covers the whole account.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a key for this client, or a key for all clients for account-wide routes.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/CLIENT_NOT_ALLOWED\",\n    \"details\": {\n      \"clientId\": \"cli_01abc\"\n    }\n  }\n}"},{"name":"403 PLAN_REQUIRED","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{baseUrl}}/v1/webhooks/:webhookId","host":["{{baseUrl}}"],"path":["v1","webhooks",":webhookId"],"variable":[{"key":"webhookId","value":"{{webhookId}}"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PLAN_REQUIRED\",\n    \"message\": \"Your workspace plan does not permit API access.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Upgrade your plan to enable API access.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PLAN_REQUIRED\",\n    \"details\": {\n      \"plan\": \"starter\"\n    }\n  }\n}"},{"name":"404 WEBHOOK_NOT_FOUND","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{baseUrl}}/v1/webhooks/:webhookId","host":["{{baseUrl}}"],"path":["v1","webhooks",":webhookId"],"variable":[{"key":"webhookId","value":"{{webhookId}}"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"WEBHOOK_NOT_FOUND\",\n    \"message\": \"Webhook endpoint not found or not accessible to this application.\",\n    \"category\": \"NOT_FOUND\",\n    \"httpStatus\": 404,\n    \"retryable\": false,\n    \"suggestedAction\": \"Check the webhook ID and that it belongs to this application.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/WEBHOOK_NOT_FOUND\",\n    \"details\": {}\n  }\n}"},{"name":"429 RATE_LIMITED","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{baseUrl}}/v1/webhooks/:webhookId","host":["{{baseUrl}}"],"path":["v1","webhooks",":webhookId"],"variable":[{"key":"webhookId","value":"{{webhookId}}"}]}},"status":"Too Many Requests","code":429,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"RATE_LIMITED\",\n    \"message\": \"Too many requests. Slow down and retry after the Retry-After interval.\",\n    \"category\": \"RATE_LIMIT\",\n    \"httpStatus\": 429,\n    \"retryable\": true,\n    \"suggestedAction\": \"Wait for the Retry-After header value before retrying.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/RATE_LIMITED\",\n    \"details\": {\n      \"limit\": 60,\n      \"remaining\": 0\n    }\n  }\n}"},{"name":"500 INTERNAL","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{baseUrl}}/v1/webhooks/:webhookId","host":["{{baseUrl}}"],"path":["v1","webhooks",":webhookId"],"variable":[{"key":"webhookId","value":"{{webhookId}}"}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"INTERNAL\",\n    \"message\": \"An unexpected error occurred.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 500,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry with backoff. If it keeps failing, contact support with the requestId.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/INTERNAL\",\n    \"details\": {}\n  }\n}"},{"name":"503 SERVICE_OVERLOADED","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"{{baseUrl}}/v1/webhooks/:webhookId","host":["{{baseUrl}}"],"path":["v1","webhooks",":webhookId"],"variable":[{"key":"webhookId","value":"{{webhookId}}"}]}},"status":"Service Unavailable","code":503,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"SERVICE_OVERLOADED\",\n    \"message\": \"The API is at capacity and refused this request before doing any work.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 503,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry after the Retry-After interval, with backoff. Nothing was changed.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/SERVICE_OVERLOADED\",\n    \"details\": {}\n  }\n}"}],"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('Returns 200 OK', () => {","  pm.response.to.have.status(200);","});","if (pm.response.code === 200) {","  const schema = {\"type\":\"object\",\"properties\":{\"status\":{\"type\":\"string\"}},\"required\":[\"status\"]};","  pm.test('Body matches the documented schema', () => {","    pm.response.to.have.jsonSchema(schema);","  });","}"]}}]},{"name":"Rotate a webhook signing secret","request":{"method":"POST","description":"> **Changes data.** Issues a new signing secret. The old one keeps verifying for 24 hours. In this collection it runs only when `allowWrites` is `true`.\n\nThe new secret is returned once. The previous secret still verifies deliveries for 24 hours.\n\nNeeds a `write` key.\n\n### Parameters\n\n| Name | In | Required | Type | Description |\n| --- | --- | --- | --- | --- |\n| `webhookId` | path | yes | string |  |\n\n### Response: 200 OK\n\n| Field | Type | Description |\n| --- | --- | --- |\n| `id` | string |  |\n| `url` | string |  |\n| `events` | array of enum | Each one of: `post.published`, `post.failed`, `platform.outage.opened`, `platform.outage.resolved`, `channel.connected`, `connect.failed`, `channel.reconnect_needed` |\n| `createdAt` | string |  |\n| `secret` | string | Shown once. Store it to verify X-Luft-Signature. |\n\n### Errors\n\nEvery error uses the shared error body. Each code below has an example on this request.\n\n| Code | HTTP | Retryable | Meaning |\n| --- | --- | --- | --- |\n| `API_KEY_MISSING` | 401 | no | No Authorization header was provided. Include your API key as a Bearer token in the Authorization header. |\n| `API_KEY_INVALID` | 401 | no | The API key is unknown, revoked, or supplied as a query parameter. Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL. |\n| `API_KEY_EXPIRED` | 401 | no | The API key has passed its expiry time. Create a new key in the dashboard and replace this one. |\n| `ACCOUNT_SUSPENDED` | 403 | no | API access for this workspace is not active. Ask the workspace owner to restore the workspace, or contact LuftSocial support. |\n| `PERMISSION_REQUIRED` | 403 | no | This API key is read-only. This operation changes data and needs a write key. Use a write key, or create one in the dashboard. |\n| `CLIENT_NOT_ALLOWED` | 403 | no | This API key is limited to other clients, or the operation covers the whole account. Use a key for this client, or a key for all clients for account-wide routes. |\n| `PLAN_REQUIRED` | 403 | no | Your workspace plan does not permit API access. Upgrade your plan to enable API access. |\n| `WEBHOOK_NOT_FOUND` | 404 | no | Webhook endpoint not found or not accessible to this application. Check the webhook ID and that it belongs to this application. |\n| `RATE_LIMITED` | 429 | yes | Too many requests. Slow down and retry after the Retry-After interval. Wait for the Retry-After header value before retrying. |\n| `INTERNAL` | 500 | yes | An unexpected error occurred. Retry with backoff. If it keeps failing, contact support with the requestId. |\n| `SERVICE_OVERLOADED` | 503 | yes | The API is at capacity and refused this request before doing any work. Retry after the Retry-After interval, with backoff. Nothing was changed. |","header":[],"url":{"raw":"{{baseUrl}}/v1/webhooks/:webhookId/rotate-secret","host":["{{baseUrl}}"],"path":["v1","webhooks",":webhookId","rotate-secret"],"variable":[{"key":"webhookId","value":"{{webhookId}}"}]}},"response":[{"name":"200 OK","originalRequest":{"method":"POST","header":[],"url":{"raw":"{{baseUrl}}/v1/webhooks/:webhookId/rotate-secret","host":["{{baseUrl}}"],"path":["v1","webhooks",":webhookId","rotate-secret"],"variable":[{"key":"webhookId","value":"{{webhookId}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"id\": \"whe_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n  \"url\": \"https://example.com/webhooks/luft\",\n  \"events\": [\n    \"post.published\"\n  ],\n  \"createdAt\": \"2026-09-29T06:00:00.000Z\",\n  \"secret\": \"whsec_example\"\n}"},{"name":"401 API_KEY_MISSING","originalRequest":{"method":"POST","header":[],"url":{"raw":"{{baseUrl}}/v1/webhooks/:webhookId/rotate-secret","host":["{{baseUrl}}"],"path":["v1","webhooks",":webhookId","rotate-secret"],"variable":[{"key":"webhookId","value":"{{webhookId}}"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_MISSING\",\n    \"message\": \"No Authorization header was provided.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Include your API key as a Bearer token in the Authorization header.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_MISSING\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_INVALID","originalRequest":{"method":"POST","header":[],"url":{"raw":"{{baseUrl}}/v1/webhooks/:webhookId/rotate-secret","host":["{{baseUrl}}"],"path":["v1","webhooks",":webhookId","rotate-secret"],"variable":[{"key":"webhookId","value":"{{webhookId}}"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_INVALID\",\n    \"message\": \"The API key is unknown, revoked, or supplied as a query parameter.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_INVALID\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_EXPIRED","originalRequest":{"method":"POST","header":[],"url":{"raw":"{{baseUrl}}/v1/webhooks/:webhookId/rotate-secret","host":["{{baseUrl}}"],"path":["v1","webhooks",":webhookId","rotate-secret"],"variable":[{"key":"webhookId","value":"{{webhookId}}"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_EXPIRED\",\n    \"message\": \"The API key has passed its expiry time.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Create a new key in the dashboard and replace this one.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_EXPIRED\",\n    \"details\": {\n      \"expiredAt\": \"2027-01-01T00:00:00.000Z\"\n    }\n  }\n}"},{"name":"403 ACCOUNT_SUSPENDED","originalRequest":{"method":"POST","header":[],"url":{"raw":"{{baseUrl}}/v1/webhooks/:webhookId/rotate-secret","host":["{{baseUrl}}"],"path":["v1","webhooks",":webhookId","rotate-secret"],"variable":[{"key":"webhookId","value":"{{webhookId}}"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"ACCOUNT_SUSPENDED\",\n    \"message\": \"API access for this workspace is not active.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Ask the workspace owner to restore the workspace, or contact LuftSocial support.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/ACCOUNT_SUSPENDED\",\n    \"details\": {}\n  }\n}"},{"name":"403 PERMISSION_REQUIRED","originalRequest":{"method":"POST","header":[],"url":{"raw":"{{baseUrl}}/v1/webhooks/:webhookId/rotate-secret","host":["{{baseUrl}}"],"path":["v1","webhooks",":webhookId","rotate-secret"],"variable":[{"key":"webhookId","value":"{{webhookId}}"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PERMISSION_REQUIRED\",\n    \"message\": \"This API key is read-only. This operation changes data and needs a write key.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a write key, or create one in the dashboard.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PERMISSION_REQUIRED\",\n    \"details\": {\n      \"requiredPermission\": \"write\"\n    }\n  }\n}"},{"name":"403 CLIENT_NOT_ALLOWED","originalRequest":{"method":"POST","header":[],"url":{"raw":"{{baseUrl}}/v1/webhooks/:webhookId/rotate-secret","host":["{{baseUrl}}"],"path":["v1","webhooks",":webhookId","rotate-secret"],"variable":[{"key":"webhookId","value":"{{webhookId}}"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"CLIENT_NOT_ALLOWED\",\n    \"message\": \"This API key is limited to other clients, or the operation covers the whole account.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a key for this client, or a key for all clients for account-wide routes.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/CLIENT_NOT_ALLOWED\",\n    \"details\": {\n      \"clientId\": \"cli_01abc\"\n    }\n  }\n}"},{"name":"403 PLAN_REQUIRED","originalRequest":{"method":"POST","header":[],"url":{"raw":"{{baseUrl}}/v1/webhooks/:webhookId/rotate-secret","host":["{{baseUrl}}"],"path":["v1","webhooks",":webhookId","rotate-secret"],"variable":[{"key":"webhookId","value":"{{webhookId}}"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PLAN_REQUIRED\",\n    \"message\": \"Your workspace plan does not permit API access.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Upgrade your plan to enable API access.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PLAN_REQUIRED\",\n    \"details\": {\n      \"plan\": \"starter\"\n    }\n  }\n}"},{"name":"404 WEBHOOK_NOT_FOUND","originalRequest":{"method":"POST","header":[],"url":{"raw":"{{baseUrl}}/v1/webhooks/:webhookId/rotate-secret","host":["{{baseUrl}}"],"path":["v1","webhooks",":webhookId","rotate-secret"],"variable":[{"key":"webhookId","value":"{{webhookId}}"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"WEBHOOK_NOT_FOUND\",\n    \"message\": \"Webhook endpoint not found or not accessible to this application.\",\n    \"category\": \"NOT_FOUND\",\n    \"httpStatus\": 404,\n    \"retryable\": false,\n    \"suggestedAction\": \"Check the webhook ID and that it belongs to this application.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/WEBHOOK_NOT_FOUND\",\n    \"details\": {}\n  }\n}"},{"name":"429 RATE_LIMITED","originalRequest":{"method":"POST","header":[],"url":{"raw":"{{baseUrl}}/v1/webhooks/:webhookId/rotate-secret","host":["{{baseUrl}}"],"path":["v1","webhooks",":webhookId","rotate-secret"],"variable":[{"key":"webhookId","value":"{{webhookId}}"}]}},"status":"Too Many Requests","code":429,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"RATE_LIMITED\",\n    \"message\": \"Too many requests. Slow down and retry after the Retry-After interval.\",\n    \"category\": \"RATE_LIMIT\",\n    \"httpStatus\": 429,\n    \"retryable\": true,\n    \"suggestedAction\": \"Wait for the Retry-After header value before retrying.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/RATE_LIMITED\",\n    \"details\": {\n      \"limit\": 60,\n      \"remaining\": 0\n    }\n  }\n}"},{"name":"500 INTERNAL","originalRequest":{"method":"POST","header":[],"url":{"raw":"{{baseUrl}}/v1/webhooks/:webhookId/rotate-secret","host":["{{baseUrl}}"],"path":["v1","webhooks",":webhookId","rotate-secret"],"variable":[{"key":"webhookId","value":"{{webhookId}}"}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"INTERNAL\",\n    \"message\": \"An unexpected error occurred.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 500,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry with backoff. If it keeps failing, contact support with the requestId.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/INTERNAL\",\n    \"details\": {}\n  }\n}"},{"name":"503 SERVICE_OVERLOADED","originalRequest":{"method":"POST","header":[],"url":{"raw":"{{baseUrl}}/v1/webhooks/:webhookId/rotate-secret","host":["{{baseUrl}}"],"path":["v1","webhooks",":webhookId","rotate-secret"],"variable":[{"key":"webhookId","value":"{{webhookId}}"}]}},"status":"Service Unavailable","code":503,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"SERVICE_OVERLOADED\",\n    \"message\": \"The API is at capacity and refused this request before doing any work.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 503,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry after the Retry-After interval, with backoff. Nothing was changed.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/SERVICE_OVERLOADED\",\n    \"details\": {}\n  }\n}"}],"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('Returns 200 OK', () => {","  pm.response.to.have.status(200);","});","if (pm.response.code === 200) {","  const schema = {\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\"},\"url\":{\"type\":\"string\"},\"events\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"enum\":[\"post.published\",\"post.failed\",\"platform.outage.opened\",\"platform.outage.resolved\",\"channel.connected\",\"connect.failed\",\"channel.reconnect_needed\"]}},\"createdAt\":{\"type\":\"string\"},\"secret\":{\"type\":\"string\"}},\"required\":[\"id\",\"url\",\"events\",\"createdAt\",\"secret\"]};","  pm.test('Body matches the documented schema', () => {","    pm.response.to.have.jsonSchema(schema);","  });","}"]}}]},{"name":"List webhook deliveries","request":{"method":"GET","description":"Attempt log for this workspace. Response bodies are not stored.\n\nWorks with a `read` or `write` key.\n\n### Parameters\n\n| Name | In | Required | Type | Description |\n| --- | --- | --- | --- | --- |\n| `cursor` | query | no | string |  |\n| `limit` | query | no | integer | max 100; default `20` |\n\n### Response: 200 OK\n\n| Field | Type | Description |\n| --- | --- | --- |\n| `data` | array of object |  |\n| `data[].endpointId` | string |  |\n| `data[].requestId` | string, nullable |  |\n| `data[].eventType` | string |  |\n| `data[].attempt` | number |  |\n| `data[].responseStatus` | number, nullable |  |\n| `data[].errorCode` | string, nullable |  |\n| `data[].createdAt` | string |  |\n| `meta` | object |  |\n| `meta.cursor` | string, nullable |  |\n| `meta.limit` | number |  |\n\n### Errors\n\nEvery error uses the shared error body. Each code below has an example on this request.\n\n| Code | HTTP | Retryable | Meaning |\n| --- | --- | --- | --- |\n| `API_KEY_MISSING` | 401 | no | No Authorization header was provided. Include your API key as a Bearer token in the Authorization header. |\n| `API_KEY_INVALID` | 401 | no | The API key is unknown, revoked, or supplied as a query parameter. Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL. |\n| `API_KEY_EXPIRED` | 401 | no | The API key has passed its expiry time. Create a new key in the dashboard and replace this one. |\n| `ACCOUNT_SUSPENDED` | 403 | no | API access for this workspace is not active. Ask the workspace owner to restore the workspace, or contact LuftSocial support. |\n| `PERMISSION_REQUIRED` | 403 | no | This API key is read-only. This operation changes data and needs a write key. Use a write key, or create one in the dashboard. |\n| `CLIENT_NOT_ALLOWED` | 403 | no | This API key is limited to other clients, or the operation covers the whole account. Use a key for this client, or a key for all clients for account-wide routes. |\n| `PLAN_REQUIRED` | 403 | no | Your workspace plan does not permit API access. Upgrade your plan to enable API access. |\n| `RATE_LIMITED` | 429 | yes | Too many requests. Slow down and retry after the Retry-After interval. Wait for the Retry-After header value before retrying. |\n| `MONTHLY_QUOTA_EXCEEDED` | 429 | no | Your monthly API call quota has been reached. Wait until the quota resets at the start of next month, or upgrade your plan. |\n| `INTERNAL` | 500 | yes | An unexpected error occurred. Retry with backoff. If it keeps failing, contact support with the requestId. |\n| `SERVICE_OVERLOADED` | 503 | yes | The API is at capacity and refused this request before doing any work. Retry after the Retry-After interval, with backoff. Nothing was changed. |","header":[],"url":{"raw":"{{baseUrl}}/v1/webhooks/deliveries","host":["{{baseUrl}}"],"path":["v1","webhooks","deliveries"],"query":[{"key":"cursor","value":"","disabled":true},{"key":"limit","value":"","disabled":true}]}},"response":[{"name":"200 OK","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/webhooks/deliveries","host":["{{baseUrl}}"],"path":["v1","webhooks","deliveries"],"query":[{"key":"cursor","value":"","disabled":true},{"key":"limit","value":"","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"data\": [\n    {\n      \"endpointId\": \"whe_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n      \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n      \"eventType\": \"post.failed\",\n      \"attempt\": 3,\n      \"responseStatus\": 500,\n      \"errorCode\": \"WEBHOOK_DELIVERY_FAILED\",\n      \"createdAt\": \"2026-09-29T06:00:00.000Z\"\n    }\n  ],\n  \"meta\": {\n    \"cursor\": null,\n    \"limit\": 20\n  }\n}"},{"name":"401 API_KEY_MISSING","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/webhooks/deliveries","host":["{{baseUrl}}"],"path":["v1","webhooks","deliveries"],"query":[{"key":"cursor","value":"","disabled":true},{"key":"limit","value":"","disabled":true}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_MISSING\",\n    \"message\": \"No Authorization header was provided.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Include your API key as a Bearer token in the Authorization header.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_MISSING\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_INVALID","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/webhooks/deliveries","host":["{{baseUrl}}"],"path":["v1","webhooks","deliveries"],"query":[{"key":"cursor","value":"","disabled":true},{"key":"limit","value":"","disabled":true}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_INVALID\",\n    \"message\": \"The API key is unknown, revoked, or supplied as a query parameter.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_INVALID\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_EXPIRED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/webhooks/deliveries","host":["{{baseUrl}}"],"path":["v1","webhooks","deliveries"],"query":[{"key":"cursor","value":"","disabled":true},{"key":"limit","value":"","disabled":true}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_EXPIRED\",\n    \"message\": \"The API key has passed its expiry time.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Create a new key in the dashboard and replace this one.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_EXPIRED\",\n    \"details\": {\n      \"expiredAt\": \"2027-01-01T00:00:00.000Z\"\n    }\n  }\n}"},{"name":"403 ACCOUNT_SUSPENDED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/webhooks/deliveries","host":["{{baseUrl}}"],"path":["v1","webhooks","deliveries"],"query":[{"key":"cursor","value":"","disabled":true},{"key":"limit","value":"","disabled":true}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"ACCOUNT_SUSPENDED\",\n    \"message\": \"API access for this workspace is not active.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Ask the workspace owner to restore the workspace, or contact LuftSocial support.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/ACCOUNT_SUSPENDED\",\n    \"details\": {}\n  }\n}"},{"name":"403 PERMISSION_REQUIRED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/webhooks/deliveries","host":["{{baseUrl}}"],"path":["v1","webhooks","deliveries"],"query":[{"key":"cursor","value":"","disabled":true},{"key":"limit","value":"","disabled":true}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PERMISSION_REQUIRED\",\n    \"message\": \"This API key is read-only. This operation changes data and needs a write key.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a write key, or create one in the dashboard.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PERMISSION_REQUIRED\",\n    \"details\": {\n      \"requiredPermission\": \"write\"\n    }\n  }\n}"},{"name":"403 CLIENT_NOT_ALLOWED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/webhooks/deliveries","host":["{{baseUrl}}"],"path":["v1","webhooks","deliveries"],"query":[{"key":"cursor","value":"","disabled":true},{"key":"limit","value":"","disabled":true}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"CLIENT_NOT_ALLOWED\",\n    \"message\": \"This API key is limited to other clients, or the operation covers the whole account.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a key for this client, or a key for all clients for account-wide routes.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/CLIENT_NOT_ALLOWED\",\n    \"details\": {\n      \"clientId\": \"cli_01abc\"\n    }\n  }\n}"},{"name":"403 PLAN_REQUIRED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/webhooks/deliveries","host":["{{baseUrl}}"],"path":["v1","webhooks","deliveries"],"query":[{"key":"cursor","value":"","disabled":true},{"key":"limit","value":"","disabled":true}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PLAN_REQUIRED\",\n    \"message\": \"Your workspace plan does not permit API access.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Upgrade your plan to enable API access.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PLAN_REQUIRED\",\n    \"details\": {\n      \"plan\": \"starter\"\n    }\n  }\n}"},{"name":"429 RATE_LIMITED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/webhooks/deliveries","host":["{{baseUrl}}"],"path":["v1","webhooks","deliveries"],"query":[{"key":"cursor","value":"","disabled":true},{"key":"limit","value":"","disabled":true}]}},"status":"Too Many Requests","code":429,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"RATE_LIMITED\",\n    \"message\": \"Too many requests. Slow down and retry after the Retry-After interval.\",\n    \"category\": \"RATE_LIMIT\",\n    \"httpStatus\": 429,\n    \"retryable\": true,\n    \"suggestedAction\": \"Wait for the Retry-After header value before retrying.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/RATE_LIMITED\",\n    \"details\": {\n      \"limit\": 60,\n      \"remaining\": 0\n    }\n  }\n}"},{"name":"429 MONTHLY_QUOTA_EXCEEDED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/webhooks/deliveries","host":["{{baseUrl}}"],"path":["v1","webhooks","deliveries"],"query":[{"key":"cursor","value":"","disabled":true},{"key":"limit","value":"","disabled":true}]}},"status":"Too Many Requests","code":429,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"MONTHLY_QUOTA_EXCEEDED\",\n    \"message\": \"Your monthly API call quota has been reached.\",\n    \"category\": \"RATE_LIMIT\",\n    \"httpStatus\": 429,\n    \"retryable\": false,\n    \"suggestedAction\": \"Wait until the quota resets at the start of next month, or upgrade your plan.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/MONTHLY_QUOTA_EXCEEDED\",\n    \"details\": {\n      \"limit\": 25000,\n      \"remaining\": 0\n    }\n  }\n}"},{"name":"500 INTERNAL","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/webhooks/deliveries","host":["{{baseUrl}}"],"path":["v1","webhooks","deliveries"],"query":[{"key":"cursor","value":"","disabled":true},{"key":"limit","value":"","disabled":true}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"INTERNAL\",\n    \"message\": \"An unexpected error occurred.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 500,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry with backoff. If it keeps failing, contact support with the requestId.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/INTERNAL\",\n    \"details\": {}\n  }\n}"},{"name":"503 SERVICE_OVERLOADED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/webhooks/deliveries","host":["{{baseUrl}}"],"path":["v1","webhooks","deliveries"],"query":[{"key":"cursor","value":"","disabled":true},{"key":"limit","value":"","disabled":true}]}},"status":"Service Unavailable","code":503,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"SERVICE_OVERLOADED\",\n    \"message\": \"The API is at capacity and refused this request before doing any work.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 503,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry after the Retry-After interval, with backoff. Nothing was changed.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/SERVICE_OVERLOADED\",\n    \"details\": {}\n  }\n}"}],"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('Returns 200 OK', () => {","  pm.response.to.have.status(200);","});","if (pm.response.code === 200) {","  const schema = {\"type\":\"object\",\"properties\":{\"data\":{\"type\":\"array\",\"items\":{\"type\":\"object\",\"properties\":{\"endpointId\":{\"type\":\"string\"},\"requestId\":{\"type\":[\"string\",\"null\"]},\"eventType\":{\"type\":\"string\"},\"attempt\":{\"type\":\"number\"},\"responseStatus\":{\"type\":[\"number\",\"null\"]},\"errorCode\":{\"type\":[\"string\",\"null\"]},\"createdAt\":{\"type\":\"string\"}},\"required\":[\"endpointId\",\"requestId\",\"eventType\",\"attempt\",\"responseStatus\",\"errorCode\",\"createdAt\"]}},\"meta\":{\"type\":\"object\",\"properties\":{\"cursor\":{\"type\":[\"string\",\"null\"]},\"limit\":{\"type\":\"number\"}}}},\"required\":[\"data\",\"meta\"]};","  pm.test('Body matches the documented schema', () => {","    pm.response.to.have.jsonSchema(schema);","  });","}"]}}]}]},{"name":"Issues","description":"Failed posts, exhausted webhooks, open incidents, and channels that need reconnect.","item":[{"name":"List open issues","request":{"method":"GET","description":"Failed posts, webhook endpoints that exhausted retries, open platform incidents, and channels that need reconnect. Newest first.\n\nWorks with a `read` or `write` key.\n\n### Parameters\n\n| Name | In | Required | Type | Description |\n| --- | --- | --- | --- | --- |\n| `cursor` | query | no | string |  |\n| `limit` | query | no | integer | max 100; default `20` |\n\n### Response: 200 OK\n\n| Field | Type | Description |\n| --- | --- | --- |\n| `data` | array of object |  |\n| `data[].kind` | enum | One of: `post_failed`, `webhook_failing`, `platform_outage`, `channel_reconnect` |\n| `data[].id` | string |  |\n| `data[].requestId` | string, nullable |  |\n| `data[].code` | string, nullable |  |\n| `data[].message` | string, nullable | Why a post failed, when we know. Set on post_failed only. |\n| `data[].openedAt` | string |  |\n| `meta` | object |  |\n| `meta.cursor` | string, nullable |  |\n| `meta.limit` | number |  |\n\n### Errors\n\nEvery error uses the shared error body. Each code below has an example on this request.\n\n| Code | HTTP | Retryable | Meaning |\n| --- | --- | --- | --- |\n| `API_KEY_MISSING` | 401 | no | No Authorization header was provided. Include your API key as a Bearer token in the Authorization header. |\n| `API_KEY_INVALID` | 401 | no | The API key is unknown, revoked, or supplied as a query parameter. Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL. |\n| `API_KEY_EXPIRED` | 401 | no | The API key has passed its expiry time. Create a new key in the dashboard and replace this one. |\n| `ACCOUNT_SUSPENDED` | 403 | no | API access for this workspace is not active. Ask the workspace owner to restore the workspace, or contact LuftSocial support. |\n| `PERMISSION_REQUIRED` | 403 | no | This API key is read-only. This operation changes data and needs a write key. Use a write key, or create one in the dashboard. |\n| `CLIENT_NOT_ALLOWED` | 403 | no | This API key is limited to other clients, or the operation covers the whole account. Use a key for this client, or a key for all clients for account-wide routes. |\n| `PLAN_REQUIRED` | 403 | no | Your workspace plan does not permit API access. Upgrade your plan to enable API access. |\n| `RATE_LIMITED` | 429 | yes | Too many requests. Slow down and retry after the Retry-After interval. Wait for the Retry-After header value before retrying. |\n| `MONTHLY_QUOTA_EXCEEDED` | 429 | no | Your monthly API call quota has been reached. Wait until the quota resets at the start of next month, or upgrade your plan. |\n| `UPSTREAM_UNAVAILABLE` | 502 | yes | An upstream service is temporarily unavailable. Retry after the Retry-After interval. Retry after the Retry-After interval. |\n| `INTERNAL` | 500 | yes | An unexpected error occurred. Retry with backoff. If it keeps failing, contact support with the requestId. |\n| `SERVICE_OVERLOADED` | 503 | yes | The API is at capacity and refused this request before doing any work. Retry after the Retry-After interval, with backoff. Nothing was changed. |","header":[],"url":{"raw":"{{baseUrl}}/v1/issues","host":["{{baseUrl}}"],"path":["v1","issues"],"query":[{"key":"cursor","value":"","disabled":true},{"key":"limit","value":"","disabled":true}]}},"response":[{"name":"200 OK","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/issues","host":["{{baseUrl}}"],"path":["v1","issues"],"query":[{"key":"cursor","value":"","disabled":true},{"key":"limit","value":"","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"data\": [\n    {\n      \"kind\": \"post_failed\",\n      \"id\": \"post_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n      \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n      \"code\": \"PUBLISH_FAILED\",\n      \"message\": \"Platform instagram does not support text-only posts. At least one media item is required.\",\n      \"openedAt\": \"2026-09-29T06:00:00.000Z\"\n    }\n  ],\n  \"meta\": {\n    \"cursor\": null,\n    \"limit\": 20\n  }\n}"},{"name":"401 API_KEY_MISSING","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/issues","host":["{{baseUrl}}"],"path":["v1","issues"],"query":[{"key":"cursor","value":"","disabled":true},{"key":"limit","value":"","disabled":true}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_MISSING\",\n    \"message\": \"No Authorization header was provided.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Include your API key as a Bearer token in the Authorization header.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_MISSING\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_INVALID","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/issues","host":["{{baseUrl}}"],"path":["v1","issues"],"query":[{"key":"cursor","value":"","disabled":true},{"key":"limit","value":"","disabled":true}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_INVALID\",\n    \"message\": \"The API key is unknown, revoked, or supplied as a query parameter.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_INVALID\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_EXPIRED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/issues","host":["{{baseUrl}}"],"path":["v1","issues"],"query":[{"key":"cursor","value":"","disabled":true},{"key":"limit","value":"","disabled":true}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_EXPIRED\",\n    \"message\": \"The API key has passed its expiry time.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Create a new key in the dashboard and replace this one.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_EXPIRED\",\n    \"details\": {\n      \"expiredAt\": \"2027-01-01T00:00:00.000Z\"\n    }\n  }\n}"},{"name":"403 ACCOUNT_SUSPENDED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/issues","host":["{{baseUrl}}"],"path":["v1","issues"],"query":[{"key":"cursor","value":"","disabled":true},{"key":"limit","value":"","disabled":true}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"ACCOUNT_SUSPENDED\",\n    \"message\": \"API access for this workspace is not active.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Ask the workspace owner to restore the workspace, or contact LuftSocial support.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/ACCOUNT_SUSPENDED\",\n    \"details\": {}\n  }\n}"},{"name":"403 PERMISSION_REQUIRED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/issues","host":["{{baseUrl}}"],"path":["v1","issues"],"query":[{"key":"cursor","value":"","disabled":true},{"key":"limit","value":"","disabled":true}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PERMISSION_REQUIRED\",\n    \"message\": \"This API key is read-only. This operation changes data and needs a write key.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a write key, or create one in the dashboard.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PERMISSION_REQUIRED\",\n    \"details\": {\n      \"requiredPermission\": \"write\"\n    }\n  }\n}"},{"name":"403 CLIENT_NOT_ALLOWED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/issues","host":["{{baseUrl}}"],"path":["v1","issues"],"query":[{"key":"cursor","value":"","disabled":true},{"key":"limit","value":"","disabled":true}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"CLIENT_NOT_ALLOWED\",\n    \"message\": \"This API key is limited to other clients, or the operation covers the whole account.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a key for this client, or a key for all clients for account-wide routes.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/CLIENT_NOT_ALLOWED\",\n    \"details\": {\n      \"clientId\": \"cli_01abc\"\n    }\n  }\n}"},{"name":"403 PLAN_REQUIRED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/issues","host":["{{baseUrl}}"],"path":["v1","issues"],"query":[{"key":"cursor","value":"","disabled":true},{"key":"limit","value":"","disabled":true}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PLAN_REQUIRED\",\n    \"message\": \"Your workspace plan does not permit API access.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Upgrade your plan to enable API access.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PLAN_REQUIRED\",\n    \"details\": {\n      \"plan\": \"starter\"\n    }\n  }\n}"},{"name":"429 RATE_LIMITED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/issues","host":["{{baseUrl}}"],"path":["v1","issues"],"query":[{"key":"cursor","value":"","disabled":true},{"key":"limit","value":"","disabled":true}]}},"status":"Too Many Requests","code":429,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"RATE_LIMITED\",\n    \"message\": \"Too many requests. Slow down and retry after the Retry-After interval.\",\n    \"category\": \"RATE_LIMIT\",\n    \"httpStatus\": 429,\n    \"retryable\": true,\n    \"suggestedAction\": \"Wait for the Retry-After header value before retrying.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/RATE_LIMITED\",\n    \"details\": {\n      \"limit\": 60,\n      \"remaining\": 0\n    }\n  }\n}"},{"name":"429 MONTHLY_QUOTA_EXCEEDED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/issues","host":["{{baseUrl}}"],"path":["v1","issues"],"query":[{"key":"cursor","value":"","disabled":true},{"key":"limit","value":"","disabled":true}]}},"status":"Too Many Requests","code":429,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"MONTHLY_QUOTA_EXCEEDED\",\n    \"message\": \"Your monthly API call quota has been reached.\",\n    \"category\": \"RATE_LIMIT\",\n    \"httpStatus\": 429,\n    \"retryable\": false,\n    \"suggestedAction\": \"Wait until the quota resets at the start of next month, or upgrade your plan.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/MONTHLY_QUOTA_EXCEEDED\",\n    \"details\": {\n      \"limit\": 25000,\n      \"remaining\": 0\n    }\n  }\n}"},{"name":"502 UPSTREAM_UNAVAILABLE","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/issues","host":["{{baseUrl}}"],"path":["v1","issues"],"query":[{"key":"cursor","value":"","disabled":true},{"key":"limit","value":"","disabled":true}]}},"status":"Bad Gateway","code":502,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"UPSTREAM_UNAVAILABLE\",\n    \"message\": \"An upstream service is temporarily unavailable. Retry after the Retry-After interval.\",\n    \"category\": \"UPSTREAM\",\n    \"httpStatus\": 502,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry after the Retry-After interval.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/UPSTREAM_UNAVAILABLE\",\n    \"details\": {}\n  }\n}"},{"name":"500 INTERNAL","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/issues","host":["{{baseUrl}}"],"path":["v1","issues"],"query":[{"key":"cursor","value":"","disabled":true},{"key":"limit","value":"","disabled":true}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"INTERNAL\",\n    \"message\": \"An unexpected error occurred.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 500,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry with backoff. If it keeps failing, contact support with the requestId.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/INTERNAL\",\n    \"details\": {}\n  }\n}"},{"name":"503 SERVICE_OVERLOADED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/issues","host":["{{baseUrl}}"],"path":["v1","issues"],"query":[{"key":"cursor","value":"","disabled":true},{"key":"limit","value":"","disabled":true}]}},"status":"Service Unavailable","code":503,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"SERVICE_OVERLOADED\",\n    \"message\": \"The API is at capacity and refused this request before doing any work.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 503,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry after the Retry-After interval, with backoff. Nothing was changed.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/SERVICE_OVERLOADED\",\n    \"details\": {}\n  }\n}"}],"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('Returns 200 OK', () => {","  pm.response.to.have.status(200);","});","if (pm.response.code === 200) {","  const schema = {\"type\":\"object\",\"properties\":{\"data\":{\"type\":\"array\",\"items\":{\"type\":\"object\",\"properties\":{\"kind\":{\"type\":\"string\",\"enum\":[\"post_failed\",\"webhook_failing\",\"platform_outage\",\"channel_reconnect\"]},\"id\":{\"type\":\"string\"},\"requestId\":{\"type\":[\"string\",\"null\"]},\"code\":{\"type\":[\"string\",\"null\"]},\"message\":{\"type\":[\"string\",\"null\"]},\"openedAt\":{\"type\":\"string\"}},\"required\":[\"kind\",\"id\",\"requestId\",\"code\",\"openedAt\"]}},\"meta\":{\"type\":\"object\",\"properties\":{\"cursor\":{\"type\":[\"string\",\"null\"]},\"limit\":{\"type\":\"number\"}}}},\"required\":[\"data\",\"meta\"]};","  pm.test('Body matches the documented schema', () => {","    pm.response.to.have.jsonSchema(schema);","  });","}"]}}]}]},{"name":"Requests","description":"Call log for this workspace. Filter by time, status, activity, route, and client, or export CSV. Rows older than 30 days are deleted.\n\nEvery call made with a key in this workspace, newest first, for the last 30 days. `id` is the same `requestId` returned in error bodies and the `X-Request-Id` header, so it finds the call that failed. Request bodies and the Authorization header are not stored.","item":[{"name":"List request log entries","request":{"method":"GET","description":"Cursor page of calls for this workspace. Rows older than 30 days are deleted.\n\nWorks with a `read` or `write` key.\n\n### Parameters\n\n| Name | In | Required | Type | Description |\n| --- | --- | --- | --- | --- |\n| `q` | query | no | any | Matches request id, route, or error code. |\n| `errors` | query | no | enum | true keeps rows that stored an error code. One of: `true` |\n| `errorCode` | query | no | any |  |\n| `clientId` | query | no | any | Requests that acted for this client. |\n| `route` | query | no | any | Route contains this text, for example /v1/posts. |\n| `activity` | query | no | any | Comma-separated: publishing, channels, webhooks, clients, other. Publishing is /v1/posts and /v1/scheduler. Clients is /v1/clients. |\n| `status` | query | no | any | Comma-separated: success, accepted, failed. Accepted is HTTP 202. |\n| `timeline` | query | no | enum | One of: `24h`, `7d`, `30d` |\n| `limit` | query | no | integer | max 100; default `20` |\n| `cursor` | query | no | any |  |\n\n### Response: 200 OK\n\n| Field | Type | Description |\n| --- | --- | --- |\n| `data` | array of object |  |\n| `data[].id` | string |  |\n| `data[].method` | string |  |\n| `data[].route` | string |  |\n| `data[].httpStatus` | number |  |\n| `data[].errorCode` | string, nullable |  |\n| `data[].durationMs` | number |  |\n| `data[].keyPrefix` | string, nullable |  |\n| `data[].clientId` | string, nullable |  |\n| `data[].createdAt` | string (date-time) |  |\n| `data[].status` | enum | One of: `success`, `accepted`, `failed` |\n| `data[].activity` | enum | One of: `publishing`, `channels`, `webhooks`, `clients`, `other` |\n| `meta` | object |  |\n| `meta.cursor` | string, nullable |  |\n| `meta.limit` | number |  |\n\n### Errors\n\nEvery error uses the shared error body. Each code below has an example on this request.\n\n| Code | HTTP | Retryable | Meaning |\n| --- | --- | --- | --- |\n| `API_KEY_MISSING` | 401 | no | No Authorization header was provided. Include your API key as a Bearer token in the Authorization header. |\n| `API_KEY_INVALID` | 401 | no | The API key is unknown, revoked, or supplied as a query parameter. Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL. |\n| `API_KEY_EXPIRED` | 401 | no | The API key has passed its expiry time. Create a new key in the dashboard and replace this one. |\n| `ACCOUNT_SUSPENDED` | 403 | no | API access for this workspace is not active. Ask the workspace owner to restore the workspace, or contact LuftSocial support. |\n| `PERMISSION_REQUIRED` | 403 | no | This API key is read-only. This operation changes data and needs a write key. Use a write key, or create one in the dashboard. |\n| `CLIENT_NOT_ALLOWED` | 403 | no | This API key is limited to other clients, or the operation covers the whole account. Use a key for this client, or a key for all clients for account-wide routes. |\n| `PLAN_REQUIRED` | 403 | no | Your workspace plan does not permit API access. Upgrade your plan to enable API access. |\n| `RATE_LIMITED` | 429 | yes | Too many requests. Slow down and retry after the Retry-After interval. Wait for the Retry-After header value before retrying. |\n| `MONTHLY_QUOTA_EXCEEDED` | 429 | no | Your monthly API call quota has been reached. Wait until the quota resets at the start of next month, or upgrade your plan. |\n| `INTERNAL` | 500 | yes | An unexpected error occurred. Retry with backoff. If it keeps failing, contact support with the requestId. |\n| `SERVICE_OVERLOADED` | 503 | yes | The API is at capacity and refused this request before doing any work. Retry after the Retry-After interval, with backoff. Nothing was changed. |","header":[],"url":{"raw":"{{baseUrl}}/v1/requests","host":["{{baseUrl}}"],"path":["v1","requests"],"query":[{"key":"q","value":"","description":"Matches request id, route, or error code.","disabled":true},{"key":"errors","value":"","description":"true keeps rows that stored an error code.","disabled":true},{"key":"errorCode","value":"","disabled":true},{"key":"clientId","value":"","description":"Requests that acted for this client.","disabled":true},{"key":"route","value":"","description":"Route contains this text, for example /v1/posts.","disabled":true},{"key":"activity","value":"","description":"Comma-separated: publishing, channels, webhooks, clients, other. Publishing is /v1/posts and /v1/scheduler. Clients is /v1/clients.","disabled":true},{"key":"status","value":"","description":"Comma-separated: success, accepted, failed. Accepted is HTTP 202.","disabled":true},{"key":"timeline","value":"","disabled":true},{"key":"limit","value":"","disabled":true},{"key":"cursor","value":"","disabled":true}]}},"response":[{"name":"200 OK","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/requests","host":["{{baseUrl}}"],"path":["v1","requests"],"query":[{"key":"q","value":"","description":"Matches request id, route, or error code.","disabled":true},{"key":"errors","value":"","description":"true keeps rows that stored an error code.","disabled":true},{"key":"errorCode","value":"","disabled":true},{"key":"clientId","value":"","description":"Requests that acted for this client.","disabled":true},{"key":"route","value":"","description":"Route contains this text, for example /v1/posts.","disabled":true},{"key":"activity","value":"","description":"Comma-separated: publishing, channels, webhooks, clients, other. Publishing is /v1/posts and /v1/scheduler. Clients is /v1/clients.","disabled":true},{"key":"status","value":"","description":"Comma-separated: success, accepted, failed. Accepted is HTTP 202.","disabled":true},{"key":"timeline","value":"","disabled":true},{"key":"limit","value":"","disabled":true},{"key":"cursor","value":"","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"data\": [\n    {\n      \"id\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n      \"method\": \"POST\",\n      \"route\": \"POST /v1/posts\",\n      \"httpStatus\": 202,\n      \"errorCode\": null,\n      \"durationMs\": 42,\n      \"keyPrefix\": \"ls_sk_\",\n      \"clientId\": null,\n      \"createdAt\": \"2026-11-12T09:30:00.000Z\",\n      \"status\": \"accepted\",\n      \"activity\": \"publishing\"\n    }\n  ],\n  \"meta\": {\n    \"cursor\": null,\n    \"limit\": 20\n  }\n}"},{"name":"401 API_KEY_MISSING","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/requests","host":["{{baseUrl}}"],"path":["v1","requests"],"query":[{"key":"q","value":"","description":"Matches request id, route, or error code.","disabled":true},{"key":"errors","value":"","description":"true keeps rows that stored an error code.","disabled":true},{"key":"errorCode","value":"","disabled":true},{"key":"clientId","value":"","description":"Requests that acted for this client.","disabled":true},{"key":"route","value":"","description":"Route contains this text, for example /v1/posts.","disabled":true},{"key":"activity","value":"","description":"Comma-separated: publishing, channels, webhooks, clients, other. Publishing is /v1/posts and /v1/scheduler. Clients is /v1/clients.","disabled":true},{"key":"status","value":"","description":"Comma-separated: success, accepted, failed. Accepted is HTTP 202.","disabled":true},{"key":"timeline","value":"","disabled":true},{"key":"limit","value":"","disabled":true},{"key":"cursor","value":"","disabled":true}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_MISSING\",\n    \"message\": \"No Authorization header was provided.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Include your API key as a Bearer token in the Authorization header.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_MISSING\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_INVALID","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/requests","host":["{{baseUrl}}"],"path":["v1","requests"],"query":[{"key":"q","value":"","description":"Matches request id, route, or error code.","disabled":true},{"key":"errors","value":"","description":"true keeps rows that stored an error code.","disabled":true},{"key":"errorCode","value":"","disabled":true},{"key":"clientId","value":"","description":"Requests that acted for this client.","disabled":true},{"key":"route","value":"","description":"Route contains this text, for example /v1/posts.","disabled":true},{"key":"activity","value":"","description":"Comma-separated: publishing, channels, webhooks, clients, other. Publishing is /v1/posts and /v1/scheduler. Clients is /v1/clients.","disabled":true},{"key":"status","value":"","description":"Comma-separated: success, accepted, failed. Accepted is HTTP 202.","disabled":true},{"key":"timeline","value":"","disabled":true},{"key":"limit","value":"","disabled":true},{"key":"cursor","value":"","disabled":true}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_INVALID\",\n    \"message\": \"The API key is unknown, revoked, or supplied as a query parameter.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_INVALID\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_EXPIRED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/requests","host":["{{baseUrl}}"],"path":["v1","requests"],"query":[{"key":"q","value":"","description":"Matches request id, route, or error code.","disabled":true},{"key":"errors","value":"","description":"true keeps rows that stored an error code.","disabled":true},{"key":"errorCode","value":"","disabled":true},{"key":"clientId","value":"","description":"Requests that acted for this client.","disabled":true},{"key":"route","value":"","description":"Route contains this text, for example /v1/posts.","disabled":true},{"key":"activity","value":"","description":"Comma-separated: publishing, channels, webhooks, clients, other. Publishing is /v1/posts and /v1/scheduler. Clients is /v1/clients.","disabled":true},{"key":"status","value":"","description":"Comma-separated: success, accepted, failed. Accepted is HTTP 202.","disabled":true},{"key":"timeline","value":"","disabled":true},{"key":"limit","value":"","disabled":true},{"key":"cursor","value":"","disabled":true}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_EXPIRED\",\n    \"message\": \"The API key has passed its expiry time.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Create a new key in the dashboard and replace this one.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_EXPIRED\",\n    \"details\": {\n      \"expiredAt\": \"2027-01-01T00:00:00.000Z\"\n    }\n  }\n}"},{"name":"403 ACCOUNT_SUSPENDED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/requests","host":["{{baseUrl}}"],"path":["v1","requests"],"query":[{"key":"q","value":"","description":"Matches request id, route, or error code.","disabled":true},{"key":"errors","value":"","description":"true keeps rows that stored an error code.","disabled":true},{"key":"errorCode","value":"","disabled":true},{"key":"clientId","value":"","description":"Requests that acted for this client.","disabled":true},{"key":"route","value":"","description":"Route contains this text, for example /v1/posts.","disabled":true},{"key":"activity","value":"","description":"Comma-separated: publishing, channels, webhooks, clients, other. Publishing is /v1/posts and /v1/scheduler. Clients is /v1/clients.","disabled":true},{"key":"status","value":"","description":"Comma-separated: success, accepted, failed. Accepted is HTTP 202.","disabled":true},{"key":"timeline","value":"","disabled":true},{"key":"limit","value":"","disabled":true},{"key":"cursor","value":"","disabled":true}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"ACCOUNT_SUSPENDED\",\n    \"message\": \"API access for this workspace is not active.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Ask the workspace owner to restore the workspace, or contact LuftSocial support.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/ACCOUNT_SUSPENDED\",\n    \"details\": {}\n  }\n}"},{"name":"403 PERMISSION_REQUIRED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/requests","host":["{{baseUrl}}"],"path":["v1","requests"],"query":[{"key":"q","value":"","description":"Matches request id, route, or error code.","disabled":true},{"key":"errors","value":"","description":"true keeps rows that stored an error code.","disabled":true},{"key":"errorCode","value":"","disabled":true},{"key":"clientId","value":"","description":"Requests that acted for this client.","disabled":true},{"key":"route","value":"","description":"Route contains this text, for example /v1/posts.","disabled":true},{"key":"activity","value":"","description":"Comma-separated: publishing, channels, webhooks, clients, other. Publishing is /v1/posts and /v1/scheduler. Clients is /v1/clients.","disabled":true},{"key":"status","value":"","description":"Comma-separated: success, accepted, failed. Accepted is HTTP 202.","disabled":true},{"key":"timeline","value":"","disabled":true},{"key":"limit","value":"","disabled":true},{"key":"cursor","value":"","disabled":true}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PERMISSION_REQUIRED\",\n    \"message\": \"This API key is read-only. This operation changes data and needs a write key.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a write key, or create one in the dashboard.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PERMISSION_REQUIRED\",\n    \"details\": {\n      \"requiredPermission\": \"write\"\n    }\n  }\n}"},{"name":"403 CLIENT_NOT_ALLOWED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/requests","host":["{{baseUrl}}"],"path":["v1","requests"],"query":[{"key":"q","value":"","description":"Matches request id, route, or error code.","disabled":true},{"key":"errors","value":"","description":"true keeps rows that stored an error code.","disabled":true},{"key":"errorCode","value":"","disabled":true},{"key":"clientId","value":"","description":"Requests that acted for this client.","disabled":true},{"key":"route","value":"","description":"Route contains this text, for example /v1/posts.","disabled":true},{"key":"activity","value":"","description":"Comma-separated: publishing, channels, webhooks, clients, other. Publishing is /v1/posts and /v1/scheduler. Clients is /v1/clients.","disabled":true},{"key":"status","value":"","description":"Comma-separated: success, accepted, failed. Accepted is HTTP 202.","disabled":true},{"key":"timeline","value":"","disabled":true},{"key":"limit","value":"","disabled":true},{"key":"cursor","value":"","disabled":true}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"CLIENT_NOT_ALLOWED\",\n    \"message\": \"This API key is limited to other clients, or the operation covers the whole account.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a key for this client, or a key for all clients for account-wide routes.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/CLIENT_NOT_ALLOWED\",\n    \"details\": {\n      \"clientId\": \"cli_01abc\"\n    }\n  }\n}"},{"name":"403 PLAN_REQUIRED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/requests","host":["{{baseUrl}}"],"path":["v1","requests"],"query":[{"key":"q","value":"","description":"Matches request id, route, or error code.","disabled":true},{"key":"errors","value":"","description":"true keeps rows that stored an error code.","disabled":true},{"key":"errorCode","value":"","disabled":true},{"key":"clientId","value":"","description":"Requests that acted for this client.","disabled":true},{"key":"route","value":"","description":"Route contains this text, for example /v1/posts.","disabled":true},{"key":"activity","value":"","description":"Comma-separated: publishing, channels, webhooks, clients, other. Publishing is /v1/posts and /v1/scheduler. Clients is /v1/clients.","disabled":true},{"key":"status","value":"","description":"Comma-separated: success, accepted, failed. Accepted is HTTP 202.","disabled":true},{"key":"timeline","value":"","disabled":true},{"key":"limit","value":"","disabled":true},{"key":"cursor","value":"","disabled":true}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PLAN_REQUIRED\",\n    \"message\": \"Your workspace plan does not permit API access.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Upgrade your plan to enable API access.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PLAN_REQUIRED\",\n    \"details\": {\n      \"plan\": \"starter\"\n    }\n  }\n}"},{"name":"429 RATE_LIMITED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/requests","host":["{{baseUrl}}"],"path":["v1","requests"],"query":[{"key":"q","value":"","description":"Matches request id, route, or error code.","disabled":true},{"key":"errors","value":"","description":"true keeps rows that stored an error code.","disabled":true},{"key":"errorCode","value":"","disabled":true},{"key":"clientId","value":"","description":"Requests that acted for this client.","disabled":true},{"key":"route","value":"","description":"Route contains this text, for example /v1/posts.","disabled":true},{"key":"activity","value":"","description":"Comma-separated: publishing, channels, webhooks, clients, other. Publishing is /v1/posts and /v1/scheduler. Clients is /v1/clients.","disabled":true},{"key":"status","value":"","description":"Comma-separated: success, accepted, failed. Accepted is HTTP 202.","disabled":true},{"key":"timeline","value":"","disabled":true},{"key":"limit","value":"","disabled":true},{"key":"cursor","value":"","disabled":true}]}},"status":"Too Many Requests","code":429,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"RATE_LIMITED\",\n    \"message\": \"Too many requests. Slow down and retry after the Retry-After interval.\",\n    \"category\": \"RATE_LIMIT\",\n    \"httpStatus\": 429,\n    \"retryable\": true,\n    \"suggestedAction\": \"Wait for the Retry-After header value before retrying.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/RATE_LIMITED\",\n    \"details\": {\n      \"limit\": 60,\n      \"remaining\": 0\n    }\n  }\n}"},{"name":"429 MONTHLY_QUOTA_EXCEEDED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/requests","host":["{{baseUrl}}"],"path":["v1","requests"],"query":[{"key":"q","value":"","description":"Matches request id, route, or error code.","disabled":true},{"key":"errors","value":"","description":"true keeps rows that stored an error code.","disabled":true},{"key":"errorCode","value":"","disabled":true},{"key":"clientId","value":"","description":"Requests that acted for this client.","disabled":true},{"key":"route","value":"","description":"Route contains this text, for example /v1/posts.","disabled":true},{"key":"activity","value":"","description":"Comma-separated: publishing, channels, webhooks, clients, other. Publishing is /v1/posts and /v1/scheduler. Clients is /v1/clients.","disabled":true},{"key":"status","value":"","description":"Comma-separated: success, accepted, failed. Accepted is HTTP 202.","disabled":true},{"key":"timeline","value":"","disabled":true},{"key":"limit","value":"","disabled":true},{"key":"cursor","value":"","disabled":true}]}},"status":"Too Many Requests","code":429,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"MONTHLY_QUOTA_EXCEEDED\",\n    \"message\": \"Your monthly API call quota has been reached.\",\n    \"category\": \"RATE_LIMIT\",\n    \"httpStatus\": 429,\n    \"retryable\": false,\n    \"suggestedAction\": \"Wait until the quota resets at the start of next month, or upgrade your plan.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/MONTHLY_QUOTA_EXCEEDED\",\n    \"details\": {\n      \"limit\": 25000,\n      \"remaining\": 0\n    }\n  }\n}"},{"name":"500 INTERNAL","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/requests","host":["{{baseUrl}}"],"path":["v1","requests"],"query":[{"key":"q","value":"","description":"Matches request id, route, or error code.","disabled":true},{"key":"errors","value":"","description":"true keeps rows that stored an error code.","disabled":true},{"key":"errorCode","value":"","disabled":true},{"key":"clientId","value":"","description":"Requests that acted for this client.","disabled":true},{"key":"route","value":"","description":"Route contains this text, for example /v1/posts.","disabled":true},{"key":"activity","value":"","description":"Comma-separated: publishing, channels, webhooks, clients, other. Publishing is /v1/posts and /v1/scheduler. Clients is /v1/clients.","disabled":true},{"key":"status","value":"","description":"Comma-separated: success, accepted, failed. Accepted is HTTP 202.","disabled":true},{"key":"timeline","value":"","disabled":true},{"key":"limit","value":"","disabled":true},{"key":"cursor","value":"","disabled":true}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"INTERNAL\",\n    \"message\": \"An unexpected error occurred.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 500,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry with backoff. If it keeps failing, contact support with the requestId.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/INTERNAL\",\n    \"details\": {}\n  }\n}"},{"name":"503 SERVICE_OVERLOADED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/requests","host":["{{baseUrl}}"],"path":["v1","requests"],"query":[{"key":"q","value":"","description":"Matches request id, route, or error code.","disabled":true},{"key":"errors","value":"","description":"true keeps rows that stored an error code.","disabled":true},{"key":"errorCode","value":"","disabled":true},{"key":"clientId","value":"","description":"Requests that acted for this client.","disabled":true},{"key":"route","value":"","description":"Route contains this text, for example /v1/posts.","disabled":true},{"key":"activity","value":"","description":"Comma-separated: publishing, channels, webhooks, clients, other. Publishing is /v1/posts and /v1/scheduler. Clients is /v1/clients.","disabled":true},{"key":"status","value":"","description":"Comma-separated: success, accepted, failed. Accepted is HTTP 202.","disabled":true},{"key":"timeline","value":"","disabled":true},{"key":"limit","value":"","disabled":true},{"key":"cursor","value":"","disabled":true}]}},"status":"Service Unavailable","code":503,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"SERVICE_OVERLOADED\",\n    \"message\": \"The API is at capacity and refused this request before doing any work.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 503,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry after the Retry-After interval, with backoff. Nothing was changed.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/SERVICE_OVERLOADED\",\n    \"details\": {}\n  }\n}"}],"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('Returns 200 OK', () => {","  pm.response.to.have.status(200);","});","if (pm.response.code === 200) {","  const schema = {\"type\":\"object\",\"properties\":{\"data\":{\"type\":\"array\",\"items\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\"},\"method\":{\"type\":\"string\"},\"route\":{\"type\":\"string\"},\"httpStatus\":{\"type\":\"number\"},\"errorCode\":{\"type\":[\"string\",\"null\"]},\"durationMs\":{\"type\":\"number\"},\"keyPrefix\":{\"type\":[\"string\",\"null\"]},\"clientId\":{\"type\":[\"string\",\"null\"]},\"createdAt\":{\"type\":\"string\"},\"status\":{\"type\":\"string\",\"enum\":[\"success\",\"accepted\",\"failed\"]},\"activity\":{\"type\":\"string\",\"enum\":[\"publishing\",\"channels\",\"webhooks\",\"clients\",\"other\"]}},\"required\":[\"id\",\"method\",\"route\",\"httpStatus\",\"errorCode\",\"durationMs\",\"keyPrefix\",\"clientId\",\"createdAt\",\"status\",\"activity\"]}},\"meta\":{\"type\":\"object\",\"properties\":{\"cursor\":{\"type\":[\"string\",\"null\"]},\"limit\":{\"type\":\"number\"}}}},\"required\":[\"data\",\"meta\"]};","  pm.test('Body matches the documented schema', () => {","    pm.response.to.have.jsonSchema(schema);","  });","  const next_requestId = \"data.0.id\".split('.').reduce((value, key) => (value == null ? undefined : value[key]), pm.response.json());","  if (typeof next_requestId === 'string' && next_requestId) {","    pm.collectionVariables.set('requestId', next_requestId);","  } else {","    console.warn('requestId not set: data.0.id is missing from the response.');","  }","}"]}}]},{"name":"Export request log as CSV","request":{"method":"GET","description":"Same filters as the list. Up to 2,000 matching rows, newest first.\n\nWorks with a `read` or `write` key.\n\n### Parameters\n\n| Name | In | Required | Type | Description |\n| --- | --- | --- | --- | --- |\n| `q` | query | no | any |  |\n| `errors` | query | no | enum | One of: `true` |\n| `errorCode` | query | no | any |  |\n| `clientId` | query | no | any | Requests that acted for this client. |\n| `route` | query | no | any |  |\n| `activity` | query | no | any |  |\n| `status` | query | no | any |  |\n| `timeline` | query | no | enum | One of: `24h`, `7d`, `30d` |\n\n### Response: 200 OK\n\n`Content-Type: text/csv`.\n\n### Errors\n\nEvery error uses the shared error body. Each code below has an example on this request.\n\n| Code | HTTP | Retryable | Meaning |\n| --- | --- | --- | --- |\n| `API_KEY_MISSING` | 401 | no | No Authorization header was provided. Include your API key as a Bearer token in the Authorization header. |\n| `API_KEY_INVALID` | 401 | no | The API key is unknown, revoked, or supplied as a query parameter. Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL. |\n| `API_KEY_EXPIRED` | 401 | no | The API key has passed its expiry time. Create a new key in the dashboard and replace this one. |\n| `ACCOUNT_SUSPENDED` | 403 | no | API access for this workspace is not active. Ask the workspace owner to restore the workspace, or contact LuftSocial support. |\n| `PERMISSION_REQUIRED` | 403 | no | This API key is read-only. This operation changes data and needs a write key. Use a write key, or create one in the dashboard. |\n| `CLIENT_NOT_ALLOWED` | 403 | no | This API key is limited to other clients, or the operation covers the whole account. Use a key for this client, or a key for all clients for account-wide routes. |\n| `PLAN_REQUIRED` | 403 | no | Your workspace plan does not permit API access. Upgrade your plan to enable API access. |\n| `RATE_LIMITED` | 429 | yes | Too many requests. Slow down and retry after the Retry-After interval. Wait for the Retry-After header value before retrying. |\n| `MONTHLY_QUOTA_EXCEEDED` | 429 | no | Your monthly API call quota has been reached. Wait until the quota resets at the start of next month, or upgrade your plan. |\n| `INTERNAL` | 500 | yes | An unexpected error occurred. Retry with backoff. If it keeps failing, contact support with the requestId. |\n| `SERVICE_OVERLOADED` | 503 | yes | The API is at capacity and refused this request before doing any work. Retry after the Retry-After interval, with backoff. Nothing was changed. |","header":[],"url":{"raw":"{{baseUrl}}/v1/requests/export","host":["{{baseUrl}}"],"path":["v1","requests","export"],"query":[{"key":"q","value":"","disabled":true},{"key":"errors","value":"","disabled":true},{"key":"errorCode","value":"","disabled":true},{"key":"clientId","value":"","description":"Requests that acted for this client.","disabled":true},{"key":"route","value":"","disabled":true},{"key":"activity","value":"","disabled":true},{"key":"status","value":"","disabled":true},{"key":"timeline","value":"","disabled":true}]}},"response":[{"name":"200 OK","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/requests/export","host":["{{baseUrl}}"],"path":["v1","requests","export"],"query":[{"key":"q","value":"","disabled":true},{"key":"errors","value":"","disabled":true},{"key":"errorCode","value":"","disabled":true},{"key":"clientId","value":"","description":"Requests that acted for this client.","disabled":true},{"key":"route","value":"","disabled":true},{"key":"activity","value":"","disabled":true},{"key":"status","value":"","disabled":true},{"key":"timeline","value":"","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"text","header":[{"key":"Content-Type","value":"text/csv; charset=utf-8"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":""},{"name":"401 API_KEY_MISSING","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/requests/export","host":["{{baseUrl}}"],"path":["v1","requests","export"],"query":[{"key":"q","value":"","disabled":true},{"key":"errors","value":"","disabled":true},{"key":"errorCode","value":"","disabled":true},{"key":"clientId","value":"","description":"Requests that acted for this client.","disabled":true},{"key":"route","value":"","disabled":true},{"key":"activity","value":"","disabled":true},{"key":"status","value":"","disabled":true},{"key":"timeline","value":"","disabled":true}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_MISSING\",\n    \"message\": \"No Authorization header was provided.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Include your API key as a Bearer token in the Authorization header.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_MISSING\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_INVALID","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/requests/export","host":["{{baseUrl}}"],"path":["v1","requests","export"],"query":[{"key":"q","value":"","disabled":true},{"key":"errors","value":"","disabled":true},{"key":"errorCode","value":"","disabled":true},{"key":"clientId","value":"","description":"Requests that acted for this client.","disabled":true},{"key":"route","value":"","disabled":true},{"key":"activity","value":"","disabled":true},{"key":"status","value":"","disabled":true},{"key":"timeline","value":"","disabled":true}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_INVALID\",\n    \"message\": \"The API key is unknown, revoked, or supplied as a query parameter.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_INVALID\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_EXPIRED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/requests/export","host":["{{baseUrl}}"],"path":["v1","requests","export"],"query":[{"key":"q","value":"","disabled":true},{"key":"errors","value":"","disabled":true},{"key":"errorCode","value":"","disabled":true},{"key":"clientId","value":"","description":"Requests that acted for this client.","disabled":true},{"key":"route","value":"","disabled":true},{"key":"activity","value":"","disabled":true},{"key":"status","value":"","disabled":true},{"key":"timeline","value":"","disabled":true}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_EXPIRED\",\n    \"message\": \"The API key has passed its expiry time.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Create a new key in the dashboard and replace this one.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_EXPIRED\",\n    \"details\": {\n      \"expiredAt\": \"2027-01-01T00:00:00.000Z\"\n    }\n  }\n}"},{"name":"403 ACCOUNT_SUSPENDED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/requests/export","host":["{{baseUrl}}"],"path":["v1","requests","export"],"query":[{"key":"q","value":"","disabled":true},{"key":"errors","value":"","disabled":true},{"key":"errorCode","value":"","disabled":true},{"key":"clientId","value":"","description":"Requests that acted for this client.","disabled":true},{"key":"route","value":"","disabled":true},{"key":"activity","value":"","disabled":true},{"key":"status","value":"","disabled":true},{"key":"timeline","value":"","disabled":true}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"ACCOUNT_SUSPENDED\",\n    \"message\": \"API access for this workspace is not active.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Ask the workspace owner to restore the workspace, or contact LuftSocial support.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/ACCOUNT_SUSPENDED\",\n    \"details\": {}\n  }\n}"},{"name":"403 PERMISSION_REQUIRED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/requests/export","host":["{{baseUrl}}"],"path":["v1","requests","export"],"query":[{"key":"q","value":"","disabled":true},{"key":"errors","value":"","disabled":true},{"key":"errorCode","value":"","disabled":true},{"key":"clientId","value":"","description":"Requests that acted for this client.","disabled":true},{"key":"route","value":"","disabled":true},{"key":"activity","value":"","disabled":true},{"key":"status","value":"","disabled":true},{"key":"timeline","value":"","disabled":true}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PERMISSION_REQUIRED\",\n    \"message\": \"This API key is read-only. This operation changes data and needs a write key.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a write key, or create one in the dashboard.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PERMISSION_REQUIRED\",\n    \"details\": {\n      \"requiredPermission\": \"write\"\n    }\n  }\n}"},{"name":"403 CLIENT_NOT_ALLOWED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/requests/export","host":["{{baseUrl}}"],"path":["v1","requests","export"],"query":[{"key":"q","value":"","disabled":true},{"key":"errors","value":"","disabled":true},{"key":"errorCode","value":"","disabled":true},{"key":"clientId","value":"","description":"Requests that acted for this client.","disabled":true},{"key":"route","value":"","disabled":true},{"key":"activity","value":"","disabled":true},{"key":"status","value":"","disabled":true},{"key":"timeline","value":"","disabled":true}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"CLIENT_NOT_ALLOWED\",\n    \"message\": \"This API key is limited to other clients, or the operation covers the whole account.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a key for this client, or a key for all clients for account-wide routes.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/CLIENT_NOT_ALLOWED\",\n    \"details\": {\n      \"clientId\": \"cli_01abc\"\n    }\n  }\n}"},{"name":"403 PLAN_REQUIRED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/requests/export","host":["{{baseUrl}}"],"path":["v1","requests","export"],"query":[{"key":"q","value":"","disabled":true},{"key":"errors","value":"","disabled":true},{"key":"errorCode","value":"","disabled":true},{"key":"clientId","value":"","description":"Requests that acted for this client.","disabled":true},{"key":"route","value":"","disabled":true},{"key":"activity","value":"","disabled":true},{"key":"status","value":"","disabled":true},{"key":"timeline","value":"","disabled":true}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PLAN_REQUIRED\",\n    \"message\": \"Your workspace plan does not permit API access.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Upgrade your plan to enable API access.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PLAN_REQUIRED\",\n    \"details\": {\n      \"plan\": \"starter\"\n    }\n  }\n}"},{"name":"429 RATE_LIMITED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/requests/export","host":["{{baseUrl}}"],"path":["v1","requests","export"],"query":[{"key":"q","value":"","disabled":true},{"key":"errors","value":"","disabled":true},{"key":"errorCode","value":"","disabled":true},{"key":"clientId","value":"","description":"Requests that acted for this client.","disabled":true},{"key":"route","value":"","disabled":true},{"key":"activity","value":"","disabled":true},{"key":"status","value":"","disabled":true},{"key":"timeline","value":"","disabled":true}]}},"status":"Too Many Requests","code":429,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"RATE_LIMITED\",\n    \"message\": \"Too many requests. Slow down and retry after the Retry-After interval.\",\n    \"category\": \"RATE_LIMIT\",\n    \"httpStatus\": 429,\n    \"retryable\": true,\n    \"suggestedAction\": \"Wait for the Retry-After header value before retrying.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/RATE_LIMITED\",\n    \"details\": {\n      \"limit\": 60,\n      \"remaining\": 0\n    }\n  }\n}"},{"name":"429 MONTHLY_QUOTA_EXCEEDED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/requests/export","host":["{{baseUrl}}"],"path":["v1","requests","export"],"query":[{"key":"q","value":"","disabled":true},{"key":"errors","value":"","disabled":true},{"key":"errorCode","value":"","disabled":true},{"key":"clientId","value":"","description":"Requests that acted for this client.","disabled":true},{"key":"route","value":"","disabled":true},{"key":"activity","value":"","disabled":true},{"key":"status","value":"","disabled":true},{"key":"timeline","value":"","disabled":true}]}},"status":"Too Many Requests","code":429,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"MONTHLY_QUOTA_EXCEEDED\",\n    \"message\": \"Your monthly API call quota has been reached.\",\n    \"category\": \"RATE_LIMIT\",\n    \"httpStatus\": 429,\n    \"retryable\": false,\n    \"suggestedAction\": \"Wait until the quota resets at the start of next month, or upgrade your plan.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/MONTHLY_QUOTA_EXCEEDED\",\n    \"details\": {\n      \"limit\": 25000,\n      \"remaining\": 0\n    }\n  }\n}"},{"name":"500 INTERNAL","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/requests/export","host":["{{baseUrl}}"],"path":["v1","requests","export"],"query":[{"key":"q","value":"","disabled":true},{"key":"errors","value":"","disabled":true},{"key":"errorCode","value":"","disabled":true},{"key":"clientId","value":"","description":"Requests that acted for this client.","disabled":true},{"key":"route","value":"","disabled":true},{"key":"activity","value":"","disabled":true},{"key":"status","value":"","disabled":true},{"key":"timeline","value":"","disabled":true}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"INTERNAL\",\n    \"message\": \"An unexpected error occurred.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 500,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry with backoff. If it keeps failing, contact support with the requestId.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/INTERNAL\",\n    \"details\": {}\n  }\n}"},{"name":"503 SERVICE_OVERLOADED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/requests/export","host":["{{baseUrl}}"],"path":["v1","requests","export"],"query":[{"key":"q","value":"","disabled":true},{"key":"errors","value":"","disabled":true},{"key":"errorCode","value":"","disabled":true},{"key":"clientId","value":"","description":"Requests that acted for this client.","disabled":true},{"key":"route","value":"","disabled":true},{"key":"activity","value":"","disabled":true},{"key":"status","value":"","disabled":true},{"key":"timeline","value":"","disabled":true}]}},"status":"Service Unavailable","code":503,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"SERVICE_OVERLOADED\",\n    \"message\": \"The API is at capacity and refused this request before doing any work.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 503,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry after the Retry-After interval, with backoff. Nothing was changed.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/SERVICE_OVERLOADED\",\n    \"details\": {}\n  }\n}"}],"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('Returns 200 OK', () => {","  pm.response.to.have.status(200);","});","if (pm.response.code === 200) {","  pm.test('Content-Type is text/csv', () => {","    pm.expect(pm.response.headers.get('Content-Type')).to.include('text/csv');","  });","}"]}}]},{"name":"Get one request log entry","request":{"method":"GET","description":"Works with a `read` or `write` key.\n\n### Parameters\n\n| Name | In | Required | Type | Description |\n| --- | --- | --- | --- | --- |\n| `requestId` | path | yes | string |  |\n\n### Response: 200 OK\n\n| Field | Type | Description |\n| --- | --- | --- |\n| `id` | string |  |\n| `method` | string |  |\n| `route` | string |  |\n| `httpStatus` | number |  |\n| `errorCode` | string, nullable |  |\n| `durationMs` | number |  |\n| `keyPrefix` | string, nullable |  |\n| `clientId` | string, nullable |  |\n| `createdAt` | string (date-time) |  |\n| `status` | enum | One of: `success`, `accepted`, `failed` |\n| `activity` | enum | One of: `publishing`, `channels`, `webhooks`, `clients`, `other` |\n\n### Errors\n\nEvery error uses the shared error body. Each code below has an example on this request.\n\n| Code | HTTP | Retryable | Meaning |\n| --- | --- | --- | --- |\n| `API_KEY_MISSING` | 401 | no | No Authorization header was provided. Include your API key as a Bearer token in the Authorization header. |\n| `API_KEY_INVALID` | 401 | no | The API key is unknown, revoked, or supplied as a query parameter. Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL. |\n| `API_KEY_EXPIRED` | 401 | no | The API key has passed its expiry time. Create a new key in the dashboard and replace this one. |\n| `ACCOUNT_SUSPENDED` | 403 | no | API access for this workspace is not active. Ask the workspace owner to restore the workspace, or contact LuftSocial support. |\n| `PERMISSION_REQUIRED` | 403 | no | This API key is read-only. This operation changes data and needs a write key. Use a write key, or create one in the dashboard. |\n| `CLIENT_NOT_ALLOWED` | 403 | no | This API key is limited to other clients, or the operation covers the whole account. Use a key for this client, or a key for all clients for account-wide routes. |\n| `PLAN_REQUIRED` | 403 | no | Your workspace plan does not permit API access. Upgrade your plan to enable API access. |\n| `REQUEST_NOT_FOUND` | 404 | no | Request log entry not found or not accessible to this workspace. Check the request ID. |\n| `RATE_LIMITED` | 429 | yes | Too many requests. Slow down and retry after the Retry-After interval. Wait for the Retry-After header value before retrying. |\n| `MONTHLY_QUOTA_EXCEEDED` | 429 | no | Your monthly API call quota has been reached. Wait until the quota resets at the start of next month, or upgrade your plan. |\n| `INTERNAL` | 500 | yes | An unexpected error occurred. Retry with backoff. If it keeps failing, contact support with the requestId. |\n| `SERVICE_OVERLOADED` | 503 | yes | The API is at capacity and refused this request before doing any work. Retry after the Retry-After interval, with backoff. Nothing was changed. |","header":[],"url":{"raw":"{{baseUrl}}/v1/requests/:requestId","host":["{{baseUrl}}"],"path":["v1","requests",":requestId"],"variable":[{"key":"requestId","value":"{{requestId}}"}]}},"response":[{"name":"200 OK","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/requests/:requestId","host":["{{baseUrl}}"],"path":["v1","requests",":requestId"],"variable":[{"key":"requestId","value":"{{requestId}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"id\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n  \"method\": \"POST\",\n  \"route\": \"POST /v1/posts\",\n  \"httpStatus\": 202,\n  \"errorCode\": null,\n  \"durationMs\": 42,\n  \"keyPrefix\": \"ls_sk_\",\n  \"clientId\": null,\n  \"createdAt\": \"2026-11-12T09:30:00.000Z\",\n  \"status\": \"accepted\",\n  \"activity\": \"publishing\"\n}"},{"name":"401 API_KEY_MISSING","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/requests/:requestId","host":["{{baseUrl}}"],"path":["v1","requests",":requestId"],"variable":[{"key":"requestId","value":"{{requestId}}"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_MISSING\",\n    \"message\": \"No Authorization header was provided.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Include your API key as a Bearer token in the Authorization header.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_MISSING\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_INVALID","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/requests/:requestId","host":["{{baseUrl}}"],"path":["v1","requests",":requestId"],"variable":[{"key":"requestId","value":"{{requestId}}"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_INVALID\",\n    \"message\": \"The API key is unknown, revoked, or supplied as a query parameter.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_INVALID\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_EXPIRED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/requests/:requestId","host":["{{baseUrl}}"],"path":["v1","requests",":requestId"],"variable":[{"key":"requestId","value":"{{requestId}}"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_EXPIRED\",\n    \"message\": \"The API key has passed its expiry time.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Create a new key in the dashboard and replace this one.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_EXPIRED\",\n    \"details\": {\n      \"expiredAt\": \"2027-01-01T00:00:00.000Z\"\n    }\n  }\n}"},{"name":"403 ACCOUNT_SUSPENDED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/requests/:requestId","host":["{{baseUrl}}"],"path":["v1","requests",":requestId"],"variable":[{"key":"requestId","value":"{{requestId}}"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"ACCOUNT_SUSPENDED\",\n    \"message\": \"API access for this workspace is not active.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Ask the workspace owner to restore the workspace, or contact LuftSocial support.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/ACCOUNT_SUSPENDED\",\n    \"details\": {}\n  }\n}"},{"name":"403 PERMISSION_REQUIRED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/requests/:requestId","host":["{{baseUrl}}"],"path":["v1","requests",":requestId"],"variable":[{"key":"requestId","value":"{{requestId}}"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PERMISSION_REQUIRED\",\n    \"message\": \"This API key is read-only. This operation changes data and needs a write key.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a write key, or create one in the dashboard.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PERMISSION_REQUIRED\",\n    \"details\": {\n      \"requiredPermission\": \"write\"\n    }\n  }\n}"},{"name":"403 CLIENT_NOT_ALLOWED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/requests/:requestId","host":["{{baseUrl}}"],"path":["v1","requests",":requestId"],"variable":[{"key":"requestId","value":"{{requestId}}"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"CLIENT_NOT_ALLOWED\",\n    \"message\": \"This API key is limited to other clients, or the operation covers the whole account.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a key for this client, or a key for all clients for account-wide routes.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/CLIENT_NOT_ALLOWED\",\n    \"details\": {\n      \"clientId\": \"cli_01abc\"\n    }\n  }\n}"},{"name":"403 PLAN_REQUIRED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/requests/:requestId","host":["{{baseUrl}}"],"path":["v1","requests",":requestId"],"variable":[{"key":"requestId","value":"{{requestId}}"}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PLAN_REQUIRED\",\n    \"message\": \"Your workspace plan does not permit API access.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Upgrade your plan to enable API access.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PLAN_REQUIRED\",\n    \"details\": {\n      \"plan\": \"starter\"\n    }\n  }\n}"},{"name":"404 REQUEST_NOT_FOUND","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/requests/:requestId","host":["{{baseUrl}}"],"path":["v1","requests",":requestId"],"variable":[{"key":"requestId","value":"{{requestId}}"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"REQUEST_NOT_FOUND\",\n    \"message\": \"Request log entry not found or not accessible to this workspace.\",\n    \"category\": \"NOT_FOUND\",\n    \"httpStatus\": 404,\n    \"retryable\": false,\n    \"suggestedAction\": \"Check the request ID.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/REQUEST_NOT_FOUND\",\n    \"details\": {}\n  }\n}"},{"name":"429 RATE_LIMITED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/requests/:requestId","host":["{{baseUrl}}"],"path":["v1","requests",":requestId"],"variable":[{"key":"requestId","value":"{{requestId}}"}]}},"status":"Too Many Requests","code":429,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"RATE_LIMITED\",\n    \"message\": \"Too many requests. Slow down and retry after the Retry-After interval.\",\n    \"category\": \"RATE_LIMIT\",\n    \"httpStatus\": 429,\n    \"retryable\": true,\n    \"suggestedAction\": \"Wait for the Retry-After header value before retrying.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/RATE_LIMITED\",\n    \"details\": {\n      \"limit\": 60,\n      \"remaining\": 0\n    }\n  }\n}"},{"name":"429 MONTHLY_QUOTA_EXCEEDED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/requests/:requestId","host":["{{baseUrl}}"],"path":["v1","requests",":requestId"],"variable":[{"key":"requestId","value":"{{requestId}}"}]}},"status":"Too Many Requests","code":429,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"MONTHLY_QUOTA_EXCEEDED\",\n    \"message\": \"Your monthly API call quota has been reached.\",\n    \"category\": \"RATE_LIMIT\",\n    \"httpStatus\": 429,\n    \"retryable\": false,\n    \"suggestedAction\": \"Wait until the quota resets at the start of next month, or upgrade your plan.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/MONTHLY_QUOTA_EXCEEDED\",\n    \"details\": {\n      \"limit\": 25000,\n      \"remaining\": 0\n    }\n  }\n}"},{"name":"500 INTERNAL","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/requests/:requestId","host":["{{baseUrl}}"],"path":["v1","requests",":requestId"],"variable":[{"key":"requestId","value":"{{requestId}}"}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"INTERNAL\",\n    \"message\": \"An unexpected error occurred.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 500,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry with backoff. If it keeps failing, contact support with the requestId.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/INTERNAL\",\n    \"details\": {}\n  }\n}"},{"name":"503 SERVICE_OVERLOADED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/requests/:requestId","host":["{{baseUrl}}"],"path":["v1","requests",":requestId"],"variable":[{"key":"requestId","value":"{{requestId}}"}]}},"status":"Service Unavailable","code":503,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"SERVICE_OVERLOADED\",\n    \"message\": \"The API is at capacity and refused this request before doing any work.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 503,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry after the Retry-After interval, with backoff. Nothing was changed.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/SERVICE_OVERLOADED\",\n    \"details\": {}\n  }\n}"}],"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('Returns 200 OK', () => {","  pm.response.to.have.status(200);","});","if (pm.response.code === 200) {","  const schema = {\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\"},\"method\":{\"type\":\"string\"},\"route\":{\"type\":\"string\"},\"httpStatus\":{\"type\":\"number\"},\"errorCode\":{\"type\":[\"string\",\"null\"]},\"durationMs\":{\"type\":\"number\"},\"keyPrefix\":{\"type\":[\"string\",\"null\"]},\"clientId\":{\"type\":[\"string\",\"null\"]},\"createdAt\":{\"type\":\"string\"},\"status\":{\"type\":\"string\",\"enum\":[\"success\",\"accepted\",\"failed\"]},\"activity\":{\"type\":\"string\",\"enum\":[\"publishing\",\"channels\",\"webhooks\",\"clients\",\"other\"]}},\"required\":[\"id\",\"method\",\"route\",\"httpStatus\",\"errorCode\",\"durationMs\",\"keyPrefix\",\"clientId\",\"createdAt\",\"status\",\"activity\"]};","  pm.test('Body matches the documented schema', () => {","    pm.response.to.have.jsonSchema(schema);","  });","}"]}}]}]},{"name":"Actions","description":"Audit log of key and channel changes.","item":[{"name":"List account actions","request":{"method":"GET","description":"Works with a `read` or `write` key.\n\n### Parameters\n\n| Name | In | Required | Type | Description |\n| --- | --- | --- | --- | --- |\n| `cursor` | query | no | string | Previous page meta.cursor. |\n| `limit` | query | no | integer | max 100; default `20` |\n\n### Response: 200 OK\n\n| Field | Type | Description |\n| --- | --- | --- |\n| `data` | array of object |  |\n| `data[].id` | string |  |\n| `data[].action` | string |  |\n| `data[].actor` | string |  |\n| `data[].targetType` | string, nullable |  |\n| `data[].targetId` | string, nullable |  |\n| `data[].createdAt` | string (date-time) |  |\n| `meta` | object |  |\n| `meta.cursor` | string, nullable |  |\n| `meta.limit` | number |  |\n\n### Errors\n\nEvery error uses the shared error body. Each code below has an example on this request.\n\n| Code | HTTP | Retryable | Meaning |\n| --- | --- | --- | --- |\n| `API_KEY_MISSING` | 401 | no | No Authorization header was provided. Include your API key as a Bearer token in the Authorization header. |\n| `API_KEY_INVALID` | 401 | no | The API key is unknown, revoked, or supplied as a query parameter. Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL. |\n| `API_KEY_EXPIRED` | 401 | no | The API key has passed its expiry time. Create a new key in the dashboard and replace this one. |\n| `ACCOUNT_SUSPENDED` | 403 | no | API access for this workspace is not active. Ask the workspace owner to restore the workspace, or contact LuftSocial support. |\n| `PERMISSION_REQUIRED` | 403 | no | This API key is read-only. This operation changes data and needs a write key. Use a write key, or create one in the dashboard. |\n| `CLIENT_NOT_ALLOWED` | 403 | no | This API key is limited to other clients, or the operation covers the whole account. Use a key for this client, or a key for all clients for account-wide routes. |\n| `PLAN_REQUIRED` | 403 | no | Your workspace plan does not permit API access. Upgrade your plan to enable API access. |\n| `RATE_LIMITED` | 429 | yes | Too many requests. Slow down and retry after the Retry-After interval. Wait for the Retry-After header value before retrying. |\n| `MONTHLY_QUOTA_EXCEEDED` | 429 | no | Your monthly API call quota has been reached. Wait until the quota resets at the start of next month, or upgrade your plan. |\n| `INTERNAL` | 500 | yes | An unexpected error occurred. Retry with backoff. If it keeps failing, contact support with the requestId. |\n| `SERVICE_OVERLOADED` | 503 | yes | The API is at capacity and refused this request before doing any work. Retry after the Retry-After interval, with backoff. Nothing was changed. |","header":[],"url":{"raw":"{{baseUrl}}/v1/actions","host":["{{baseUrl}}"],"path":["v1","actions"],"query":[{"key":"cursor","value":"","description":"Previous page meta.cursor.","disabled":true},{"key":"limit","value":"","disabled":true}]}},"response":[{"name":"200 OK","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/actions","host":["{{baseUrl}}"],"path":["v1","actions"],"query":[{"key":"cursor","value":"","description":"Previous page meta.cursor.","disabled":true},{"key":"limit","value":"","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"data\": [\n    {\n      \"id\": \"act_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n      \"action\": \"key.created\",\n      \"actor\": \"ls_sk_\",\n      \"targetType\": \"api_key\",\n      \"targetId\": null,\n      \"createdAt\": \"2026-11-12T09:30:00.000Z\"\n    }\n  ],\n  \"meta\": {\n    \"cursor\": null,\n    \"limit\": 20\n  }\n}"},{"name":"401 API_KEY_MISSING","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/actions","host":["{{baseUrl}}"],"path":["v1","actions"],"query":[{"key":"cursor","value":"","description":"Previous page meta.cursor.","disabled":true},{"key":"limit","value":"","disabled":true}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_MISSING\",\n    \"message\": \"No Authorization header was provided.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Include your API key as a Bearer token in the Authorization header.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_MISSING\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_INVALID","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/actions","host":["{{baseUrl}}"],"path":["v1","actions"],"query":[{"key":"cursor","value":"","description":"Previous page meta.cursor.","disabled":true},{"key":"limit","value":"","disabled":true}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_INVALID\",\n    \"message\": \"The API key is unknown, revoked, or supplied as a query parameter.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_INVALID\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_EXPIRED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/actions","host":["{{baseUrl}}"],"path":["v1","actions"],"query":[{"key":"cursor","value":"","description":"Previous page meta.cursor.","disabled":true},{"key":"limit","value":"","disabled":true}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_EXPIRED\",\n    \"message\": \"The API key has passed its expiry time.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Create a new key in the dashboard and replace this one.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_EXPIRED\",\n    \"details\": {\n      \"expiredAt\": \"2027-01-01T00:00:00.000Z\"\n    }\n  }\n}"},{"name":"403 ACCOUNT_SUSPENDED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/actions","host":["{{baseUrl}}"],"path":["v1","actions"],"query":[{"key":"cursor","value":"","description":"Previous page meta.cursor.","disabled":true},{"key":"limit","value":"","disabled":true}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"ACCOUNT_SUSPENDED\",\n    \"message\": \"API access for this workspace is not active.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Ask the workspace owner to restore the workspace, or contact LuftSocial support.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/ACCOUNT_SUSPENDED\",\n    \"details\": {}\n  }\n}"},{"name":"403 PERMISSION_REQUIRED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/actions","host":["{{baseUrl}}"],"path":["v1","actions"],"query":[{"key":"cursor","value":"","description":"Previous page meta.cursor.","disabled":true},{"key":"limit","value":"","disabled":true}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PERMISSION_REQUIRED\",\n    \"message\": \"This API key is read-only. This operation changes data and needs a write key.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a write key, or create one in the dashboard.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PERMISSION_REQUIRED\",\n    \"details\": {\n      \"requiredPermission\": \"write\"\n    }\n  }\n}"},{"name":"403 CLIENT_NOT_ALLOWED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/actions","host":["{{baseUrl}}"],"path":["v1","actions"],"query":[{"key":"cursor","value":"","description":"Previous page meta.cursor.","disabled":true},{"key":"limit","value":"","disabled":true}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"CLIENT_NOT_ALLOWED\",\n    \"message\": \"This API key is limited to other clients, or the operation covers the whole account.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a key for this client, or a key for all clients for account-wide routes.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/CLIENT_NOT_ALLOWED\",\n    \"details\": {\n      \"clientId\": \"cli_01abc\"\n    }\n  }\n}"},{"name":"403 PLAN_REQUIRED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/actions","host":["{{baseUrl}}"],"path":["v1","actions"],"query":[{"key":"cursor","value":"","description":"Previous page meta.cursor.","disabled":true},{"key":"limit","value":"","disabled":true}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PLAN_REQUIRED\",\n    \"message\": \"Your workspace plan does not permit API access.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Upgrade your plan to enable API access.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PLAN_REQUIRED\",\n    \"details\": {\n      \"plan\": \"starter\"\n    }\n  }\n}"},{"name":"429 RATE_LIMITED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/actions","host":["{{baseUrl}}"],"path":["v1","actions"],"query":[{"key":"cursor","value":"","description":"Previous page meta.cursor.","disabled":true},{"key":"limit","value":"","disabled":true}]}},"status":"Too Many Requests","code":429,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"RATE_LIMITED\",\n    \"message\": \"Too many requests. Slow down and retry after the Retry-After interval.\",\n    \"category\": \"RATE_LIMIT\",\n    \"httpStatus\": 429,\n    \"retryable\": true,\n    \"suggestedAction\": \"Wait for the Retry-After header value before retrying.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/RATE_LIMITED\",\n    \"details\": {\n      \"limit\": 60,\n      \"remaining\": 0\n    }\n  }\n}"},{"name":"429 MONTHLY_QUOTA_EXCEEDED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/actions","host":["{{baseUrl}}"],"path":["v1","actions"],"query":[{"key":"cursor","value":"","description":"Previous page meta.cursor.","disabled":true},{"key":"limit","value":"","disabled":true}]}},"status":"Too Many Requests","code":429,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"MONTHLY_QUOTA_EXCEEDED\",\n    \"message\": \"Your monthly API call quota has been reached.\",\n    \"category\": \"RATE_LIMIT\",\n    \"httpStatus\": 429,\n    \"retryable\": false,\n    \"suggestedAction\": \"Wait until the quota resets at the start of next month, or upgrade your plan.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/MONTHLY_QUOTA_EXCEEDED\",\n    \"details\": {\n      \"limit\": 25000,\n      \"remaining\": 0\n    }\n  }\n}"},{"name":"500 INTERNAL","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/actions","host":["{{baseUrl}}"],"path":["v1","actions"],"query":[{"key":"cursor","value":"","description":"Previous page meta.cursor.","disabled":true},{"key":"limit","value":"","disabled":true}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"INTERNAL\",\n    \"message\": \"An unexpected error occurred.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 500,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry with backoff. If it keeps failing, contact support with the requestId.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/INTERNAL\",\n    \"details\": {}\n  }\n}"},{"name":"503 SERVICE_OVERLOADED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/actions","host":["{{baseUrl}}"],"path":["v1","actions"],"query":[{"key":"cursor","value":"","description":"Previous page meta.cursor.","disabled":true},{"key":"limit","value":"","disabled":true}]}},"status":"Service Unavailable","code":503,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"SERVICE_OVERLOADED\",\n    \"message\": \"The API is at capacity and refused this request before doing any work.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 503,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry after the Retry-After interval, with backoff. Nothing was changed.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/SERVICE_OVERLOADED\",\n    \"details\": {}\n  }\n}"}],"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('Returns 200 OK', () => {","  pm.response.to.have.status(200);","});","if (pm.response.code === 200) {","  const schema = {\"type\":\"object\",\"properties\":{\"data\":{\"type\":\"array\",\"items\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\"},\"action\":{\"type\":\"string\"},\"actor\":{\"type\":\"string\"},\"targetType\":{\"type\":[\"string\",\"null\"]},\"targetId\":{\"type\":[\"string\",\"null\"]},\"createdAt\":{\"type\":\"string\"}},\"required\":[\"id\",\"action\",\"actor\",\"targetType\",\"targetId\",\"createdAt\"]}},\"meta\":{\"type\":\"object\",\"properties\":{\"cursor\":{\"type\":[\"string\",\"null\"]},\"limit\":{\"type\":\"number\"}}}},\"required\":[\"data\",\"meta\"]};","  pm.test('Body matches the documented schema', () => {","    pm.response.to.have.jsonSchema(schema);","  });","}"]}}]}]},{"name":"Status","description":"Open platform incidents.","item":[{"name":"List open platform incidents","request":{"method":"GET","description":"Open incidents for every network. A hard-down incident rejects new publishes to that network. A soft incident keeps those posts queued until it clears.\n\nWorks with a `read` or `write` key.\n\n### Response: 200 OK\n\n| Field | Type | Description |\n| --- | --- | --- |\n| `data` | array of object |  |\n| `data[].id` | string |  |\n| `data[].platform` | string |  |\n| `data[].message` | string |  |\n| `data[].startedAt` | string |  |\n| `data[].hardDown` | boolean | When true, new publishes to this network are rejected with PLATFORM_OUTAGE. |\n| `meta` | object |  |\n| `meta.count` | number |  |\n\n### Errors\n\nEvery error uses the shared error body. Each code below has an example on this request.\n\n| Code | HTTP | Retryable | Meaning |\n| --- | --- | --- | --- |\n| `API_KEY_MISSING` | 401 | no | No Authorization header was provided. Include your API key as a Bearer token in the Authorization header. |\n| `API_KEY_INVALID` | 401 | no | The API key is unknown, revoked, or supplied as a query parameter. Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL. |\n| `API_KEY_EXPIRED` | 401 | no | The API key has passed its expiry time. Create a new key in the dashboard and replace this one. |\n| `ACCOUNT_SUSPENDED` | 403 | no | API access for this workspace is not active. Ask the workspace owner to restore the workspace, or contact LuftSocial support. |\n| `PERMISSION_REQUIRED` | 403 | no | This API key is read-only. This operation changes data and needs a write key. Use a write key, or create one in the dashboard. |\n| `CLIENT_NOT_ALLOWED` | 403 | no | This API key is limited to other clients, or the operation covers the whole account. Use a key for this client, or a key for all clients for account-wide routes. |\n| `PLAN_REQUIRED` | 403 | no | Your workspace plan does not permit API access. Upgrade your plan to enable API access. |\n| `RATE_LIMITED` | 429 | yes | Too many requests. Slow down and retry after the Retry-After interval. Wait for the Retry-After header value before retrying. |\n| `INTERNAL` | 500 | yes | An unexpected error occurred. Retry with backoff. If it keeps failing, contact support with the requestId. |\n| `SERVICE_OVERLOADED` | 503 | yes | The API is at capacity and refused this request before doing any work. Retry after the Retry-After interval, with backoff. Nothing was changed. |","header":[],"url":{"raw":"{{baseUrl}}/v1/status","host":["{{baseUrl}}"],"path":["v1","status"]}},"response":[{"name":"200 OK","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/status","host":["{{baseUrl}}"],"path":["v1","status"]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"data\": [\n    {\n      \"id\": \"inc_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n      \"platform\": \"facebook\",\n      \"message\": \"facebook is failing repeatedly.\",\n      \"startedAt\": \"2026-09-29T06:00:00.000Z\",\n      \"hardDown\": false\n    }\n  ],\n  \"meta\": {\n    \"count\": 1\n  }\n}"},{"name":"401 API_KEY_MISSING","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/status","host":["{{baseUrl}}"],"path":["v1","status"]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_MISSING\",\n    \"message\": \"No Authorization header was provided.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Include your API key as a Bearer token in the Authorization header.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_MISSING\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_INVALID","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/status","host":["{{baseUrl}}"],"path":["v1","status"]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_INVALID\",\n    \"message\": \"The API key is unknown, revoked, or supplied as a query parameter.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_INVALID\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_EXPIRED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/status","host":["{{baseUrl}}"],"path":["v1","status"]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_EXPIRED\",\n    \"message\": \"The API key has passed its expiry time.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Create a new key in the dashboard and replace this one.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_EXPIRED\",\n    \"details\": {\n      \"expiredAt\": \"2027-01-01T00:00:00.000Z\"\n    }\n  }\n}"},{"name":"403 ACCOUNT_SUSPENDED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/status","host":["{{baseUrl}}"],"path":["v1","status"]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"ACCOUNT_SUSPENDED\",\n    \"message\": \"API access for this workspace is not active.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Ask the workspace owner to restore the workspace, or contact LuftSocial support.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/ACCOUNT_SUSPENDED\",\n    \"details\": {}\n  }\n}"},{"name":"403 PERMISSION_REQUIRED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/status","host":["{{baseUrl}}"],"path":["v1","status"]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PERMISSION_REQUIRED\",\n    \"message\": \"This API key is read-only. This operation changes data and needs a write key.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a write key, or create one in the dashboard.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PERMISSION_REQUIRED\",\n    \"details\": {\n      \"requiredPermission\": \"write\"\n    }\n  }\n}"},{"name":"403 CLIENT_NOT_ALLOWED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/status","host":["{{baseUrl}}"],"path":["v1","status"]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"CLIENT_NOT_ALLOWED\",\n    \"message\": \"This API key is limited to other clients, or the operation covers the whole account.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a key for this client, or a key for all clients for account-wide routes.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/CLIENT_NOT_ALLOWED\",\n    \"details\": {\n      \"clientId\": \"cli_01abc\"\n    }\n  }\n}"},{"name":"403 PLAN_REQUIRED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/status","host":["{{baseUrl}}"],"path":["v1","status"]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PLAN_REQUIRED\",\n    \"message\": \"Your workspace plan does not permit API access.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Upgrade your plan to enable API access.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PLAN_REQUIRED\",\n    \"details\": {\n      \"plan\": \"starter\"\n    }\n  }\n}"},{"name":"429 RATE_LIMITED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/status","host":["{{baseUrl}}"],"path":["v1","status"]}},"status":"Too Many Requests","code":429,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"RATE_LIMITED\",\n    \"message\": \"Too many requests. Slow down and retry after the Retry-After interval.\",\n    \"category\": \"RATE_LIMIT\",\n    \"httpStatus\": 429,\n    \"retryable\": true,\n    \"suggestedAction\": \"Wait for the Retry-After header value before retrying.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/RATE_LIMITED\",\n    \"details\": {\n      \"limit\": 60,\n      \"remaining\": 0\n    }\n  }\n}"},{"name":"500 INTERNAL","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/status","host":["{{baseUrl}}"],"path":["v1","status"]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"INTERNAL\",\n    \"message\": \"An unexpected error occurred.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 500,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry with backoff. If it keeps failing, contact support with the requestId.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/INTERNAL\",\n    \"details\": {}\n  }\n}"},{"name":"503 SERVICE_OVERLOADED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/status","host":["{{baseUrl}}"],"path":["v1","status"]}},"status":"Service Unavailable","code":503,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"SERVICE_OVERLOADED\",\n    \"message\": \"The API is at capacity and refused this request before doing any work.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 503,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry after the Retry-After interval, with backoff. Nothing was changed.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/SERVICE_OVERLOADED\",\n    \"details\": {}\n  }\n}"}],"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('Returns 200 OK', () => {","  pm.response.to.have.status(200);","});","if (pm.response.code === 200) {","  const schema = {\"type\":\"object\",\"properties\":{\"data\":{\"type\":\"array\",\"items\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\"},\"platform\":{\"type\":\"string\"},\"message\":{\"type\":\"string\"},\"startedAt\":{\"type\":\"string\"},\"hardDown\":{\"type\":\"boolean\"}},\"required\":[\"id\",\"platform\",\"message\",\"startedAt\",\"hardDown\"]}},\"meta\":{\"type\":\"object\",\"properties\":{\"count\":{\"type\":\"number\"}}}},\"required\":[\"data\",\"meta\"]};","  pm.test('Body matches the documented schema', () => {","    pm.response.to.have.jsonSchema(schema);","  });","}"]}}]}]},{"name":"Billing","description":"Channel slots and the price of the next channel.\n\nBilling covers channel slots: the channels included in the plan, and paid slots above them.\n\n- Connecting a channel beyond the included ones with no card on file fails with `402 CHANNEL_FREE_ALLOWANCE_EXCEEDED`.\n- Preview before you change anything: `GET /v1/billing/slots/preview?quantity=N` and `GET /v1/billing/channels/preview` change nothing.\n- `POST /v1/billing/slots` raising the quantity charges the card on file now; lowering it is scheduled for `billingAnchorDay`; sending the current quantity cancels a scheduled reduction. A reduction below the channels you have connected is refused (`SLOT_REDUCTION_BLOCKED`), and its preview is refused the same way.\n\nX is billed separately from slots. With your own X app (`POST /v1/channels/x/credentials`), posts go out through it and X bills you. With LuftSocial's X app, each X post spends prepaid X credit; with none, X posts fail with `402 X_ALLOWANCE_REQUIRED`. There is no automatic fallback from one to the other.\n\nKeys limited to selected clients cannot call billing routes (`403 CLIENT_NOT_ALLOWED`).","item":[{"name":"Preview the price of connecting one more channel","request":{"method":"GET","description":"Works with a `read` or `write` key.\n\n### Response: 200 OK\n\n\n### Errors\n\nEvery error uses the shared error body. Each code below has an example on this request.\n\n| Code | HTTP | Retryable | Meaning |\n| --- | --- | --- | --- |\n| `API_KEY_MISSING` | 401 | no | No Authorization header was provided. Include your API key as a Bearer token in the Authorization header. |\n| `API_KEY_INVALID` | 401 | no | The API key is unknown, revoked, or supplied as a query parameter. Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL. |\n| `API_KEY_EXPIRED` | 401 | no | The API key has passed its expiry time. Create a new key in the dashboard and replace this one. |\n| `ACCOUNT_SUSPENDED` | 403 | no | API access for this workspace is not active. Ask the workspace owner to restore the workspace, or contact LuftSocial support. |\n| `PERMISSION_REQUIRED` | 403 | no | This API key is read-only. This operation changes data and needs a write key. Use a write key, or create one in the dashboard. |\n| `CLIENT_NOT_ALLOWED` | 403 | no | This API key is limited to other clients, or the operation covers the whole account. Use a key for this client, or a key for all clients for account-wide routes. |\n| `PLAN_REQUIRED` | 403 | no | Your workspace plan does not permit API access. Upgrade your plan to enable API access. |\n| `DEVELOPER_CUSTOM_PRICING_REQUIRED` | 402 | no | Self-serve stops at 200 connected accounts. Account 201 needs custom pricing. Contact LuftSocial for a custom account price. |\n| `RATE_LIMITED` | 429 | yes | Too many requests. Slow down and retry after the Retry-After interval. Wait for the Retry-After header value before retrying. |\n| `UPSTREAM_UNAVAILABLE` | 502 | yes | An upstream service is temporarily unavailable. Retry after the Retry-After interval. Retry after the Retry-After interval. |\n| `INTERNAL` | 500 | yes | An unexpected error occurred. Retry with backoff. If it keeps failing, contact support with the requestId. |\n| `SERVICE_OVERLOADED` | 503 | yes | The API is at capacity and refused this request before doing any work. Retry after the Retry-After interval, with backoff. Nothing was changed. |","header":[],"url":{"raw":"{{baseUrl}}/v1/billing/channels/preview","host":["{{baseUrl}}"],"path":["v1","billing","channels","preview"]}},"response":[{"name":"200 OK","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/billing/channels/preview","host":["{{baseUrl}}"],"path":["v1","billing","channels","preview"]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{}"},{"name":"401 API_KEY_MISSING","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/billing/channels/preview","host":["{{baseUrl}}"],"path":["v1","billing","channels","preview"]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_MISSING\",\n    \"message\": \"No Authorization header was provided.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Include your API key as a Bearer token in the Authorization header.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_MISSING\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_INVALID","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/billing/channels/preview","host":["{{baseUrl}}"],"path":["v1","billing","channels","preview"]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_INVALID\",\n    \"message\": \"The API key is unknown, revoked, or supplied as a query parameter.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_INVALID\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_EXPIRED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/billing/channels/preview","host":["{{baseUrl}}"],"path":["v1","billing","channels","preview"]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_EXPIRED\",\n    \"message\": \"The API key has passed its expiry time.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Create a new key in the dashboard and replace this one.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_EXPIRED\",\n    \"details\": {\n      \"expiredAt\": \"2027-01-01T00:00:00.000Z\"\n    }\n  }\n}"},{"name":"403 ACCOUNT_SUSPENDED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/billing/channels/preview","host":["{{baseUrl}}"],"path":["v1","billing","channels","preview"]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"ACCOUNT_SUSPENDED\",\n    \"message\": \"API access for this workspace is not active.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Ask the workspace owner to restore the workspace, or contact LuftSocial support.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/ACCOUNT_SUSPENDED\",\n    \"details\": {}\n  }\n}"},{"name":"403 PERMISSION_REQUIRED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/billing/channels/preview","host":["{{baseUrl}}"],"path":["v1","billing","channels","preview"]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PERMISSION_REQUIRED\",\n    \"message\": \"This API key is read-only. This operation changes data and needs a write key.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a write key, or create one in the dashboard.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PERMISSION_REQUIRED\",\n    \"details\": {\n      \"requiredPermission\": \"write\"\n    }\n  }\n}"},{"name":"403 CLIENT_NOT_ALLOWED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/billing/channels/preview","host":["{{baseUrl}}"],"path":["v1","billing","channels","preview"]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"CLIENT_NOT_ALLOWED\",\n    \"message\": \"This API key is limited to other clients, or the operation covers the whole account.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a key for this client, or a key for all clients for account-wide routes.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/CLIENT_NOT_ALLOWED\",\n    \"details\": {\n      \"clientId\": \"cli_01abc\"\n    }\n  }\n}"},{"name":"403 PLAN_REQUIRED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/billing/channels/preview","host":["{{baseUrl}}"],"path":["v1","billing","channels","preview"]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PLAN_REQUIRED\",\n    \"message\": \"Your workspace plan does not permit API access.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Upgrade your plan to enable API access.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PLAN_REQUIRED\",\n    \"details\": {\n      \"plan\": \"starter\"\n    }\n  }\n}"},{"name":"402 DEVELOPER_CUSTOM_PRICING_REQUIRED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/billing/channels/preview","host":["{{baseUrl}}"],"path":["v1","billing","channels","preview"]}},"status":"Payment Required","code":402,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"DEVELOPER_CUSTOM_PRICING_REQUIRED\",\n    \"message\": \"Self-serve stops at 200 connected accounts. Account 201 needs custom pricing.\",\n    \"category\": \"PLAN\",\n    \"httpStatus\": 402,\n    \"retryable\": false,\n    \"suggestedAction\": \"Contact LuftSocial for a custom account price.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/DEVELOPER_CUSTOM_PRICING_REQUIRED\",\n    \"details\": {}\n  }\n}"},{"name":"429 RATE_LIMITED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/billing/channels/preview","host":["{{baseUrl}}"],"path":["v1","billing","channels","preview"]}},"status":"Too Many Requests","code":429,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"RATE_LIMITED\",\n    \"message\": \"Too many requests. Slow down and retry after the Retry-After interval.\",\n    \"category\": \"RATE_LIMIT\",\n    \"httpStatus\": 429,\n    \"retryable\": true,\n    \"suggestedAction\": \"Wait for the Retry-After header value before retrying.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/RATE_LIMITED\",\n    \"details\": {\n      \"limit\": 60,\n      \"remaining\": 0\n    }\n  }\n}"},{"name":"502 UPSTREAM_UNAVAILABLE","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/billing/channels/preview","host":["{{baseUrl}}"],"path":["v1","billing","channels","preview"]}},"status":"Bad Gateway","code":502,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"UPSTREAM_UNAVAILABLE\",\n    \"message\": \"An upstream service is temporarily unavailable. Retry after the Retry-After interval.\",\n    \"category\": \"UPSTREAM\",\n    \"httpStatus\": 502,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry after the Retry-After interval.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/UPSTREAM_UNAVAILABLE\",\n    \"details\": {}\n  }\n}"},{"name":"500 INTERNAL","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/billing/channels/preview","host":["{{baseUrl}}"],"path":["v1","billing","channels","preview"]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"INTERNAL\",\n    \"message\": \"An unexpected error occurred.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 500,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry with backoff. If it keeps failing, contact support with the requestId.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/INTERNAL\",\n    \"details\": {}\n  }\n}"},{"name":"503 SERVICE_OVERLOADED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/billing/channels/preview","host":["{{baseUrl}}"],"path":["v1","billing","channels","preview"]}},"status":"Service Unavailable","code":503,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"SERVICE_OVERLOADED\",\n    \"message\": \"The API is at capacity and refused this request before doing any work.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 503,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry after the Retry-After interval, with backoff. Nothing was changed.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/SERVICE_OVERLOADED\",\n    \"details\": {}\n  }\n}"}],"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('Returns 200 OK', () => {","  pm.response.to.have.status(200);","});","if (pm.response.code === 200) {","  const schema = {\"type\":\"object\"};","  pm.test('Body matches the documented schema', () => {","    pm.response.to.have.jsonSchema(schema);","  });","}"]}}]},{"name":"Get channel slot state","request":{"method":"GET","description":"pendingPurchase is null only when nothing is in progress; lastPurchase.status (pending, needs_review, applied, not_applied) is the outcome of the newest purchase. slotsAllocated is not a payment receipt. pendingSlots is a scheduled reduction.\n\nWorks with a `read` or `write` key.\n\n### Response: 200 OK\n\n| Field | Type | Description |\n| --- | --- | --- |\n| `slotsAllocated` | integer | Total channel slots on the account, including the included (free) ones. Not a payment receipt. |\n| `paidSlots` | integer | Slots above the included channels. |\n| `capacity` | integer | Live non-X channels the account may hold right now. |\n| `channelsConnected` | integer | Live non-X channels connected right now. |\n| `freeChannels` | integer | Channels included in the plan. |\n| `monthlyCostUsd` | number | Monthly cost of slotsAllocated, in US dollars. |\n| `billingAnchorDay` | integer, nullable | Day of the month slots renew and scheduled reductions apply. Null when the account has none yet. |\n| `pendingSlots` | integer, nullable | A scheduled reduction: the quantity that applies on billingAnchorDay. Null when none is scheduled. |\n| `pendingPurchase` | object, nullable | The purchase in progress. Null when nothing is in progress. |\n| `pendingPurchase.purchaseId` | string |  |\n| `pendingPurchase.targetSlots` | integer |  |\n| `pendingPurchase.status` | enum | pending: the charge is in progress. needs_review: the outcome is being confirmed. applied: the slots were added. not_applied: nothing was added; see reason. One of: `pending`, `needs_review`, `applied`, `not_applied` |\n| `pendingPurchase.reason` | string, nullable | Why a purchase was not applied. Null otherwise. |\n| `pendingPurchase.resolvedAt` | string (date-time), nullable |  |\n| `pendingPurchase.resolvedBy` | enum, nullable | One of: `system` |\n| `lastPurchase` | object, nullable | The newest purchase and its outcome. Null before the first. |\n| `lastPurchase.purchaseId` | string |  |\n| `lastPurchase.targetSlots` | integer |  |\n| `lastPurchase.status` | enum | pending: the charge is in progress. needs_review: the outcome is being confirmed. applied: the slots were added. not_applied: nothing was added; see reason. One of: `pending`, `needs_review`, `applied`, `not_applied` |\n| `lastPurchase.reason` | string, nullable | Why a purchase was not applied. Null otherwise. |\n| `lastPurchase.resolvedAt` | string (date-time), nullable |  |\n| `lastPurchase.resolvedBy` | enum, nullable | One of: `system` |\n\n### Errors\n\nEvery error uses the shared error body. Each code below has an example on this request.\n\n| Code | HTTP | Retryable | Meaning |\n| --- | --- | --- | --- |\n| `API_KEY_MISSING` | 401 | no | No Authorization header was provided. Include your API key as a Bearer token in the Authorization header. |\n| `API_KEY_INVALID` | 401 | no | The API key is unknown, revoked, or supplied as a query parameter. Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL. |\n| `API_KEY_EXPIRED` | 401 | no | The API key has passed its expiry time. Create a new key in the dashboard and replace this one. |\n| `ACCOUNT_SUSPENDED` | 403 | no | API access for this workspace is not active. Ask the workspace owner to restore the workspace, or contact LuftSocial support. |\n| `PERMISSION_REQUIRED` | 403 | no | This API key is read-only. This operation changes data and needs a write key. Use a write key, or create one in the dashboard. |\n| `CLIENT_NOT_ALLOWED` | 403 | no | This API key is limited to other clients, or the operation covers the whole account. Use a key for this client, or a key for all clients for account-wide routes. |\n| `PLAN_REQUIRED` | 403 | no | Your workspace plan does not permit API access. Upgrade your plan to enable API access. |\n| `RATE_LIMITED` | 429 | yes | Too many requests. Slow down and retry after the Retry-After interval. Wait for the Retry-After header value before retrying. |\n| `UPSTREAM_UNAVAILABLE` | 502 | yes | An upstream service is temporarily unavailable. Retry after the Retry-After interval. Retry after the Retry-After interval. |\n| `INTERNAL` | 500 | yes | An unexpected error occurred. Retry with backoff. If it keeps failing, contact support with the requestId. |\n| `SERVICE_OVERLOADED` | 503 | yes | The API is at capacity and refused this request before doing any work. Retry after the Retry-After interval, with backoff. Nothing was changed. |","header":[],"url":{"raw":"{{baseUrl}}/v1/billing/slots","host":["{{baseUrl}}"],"path":["v1","billing","slots"]}},"response":[{"name":"200 OK","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/billing/slots","host":["{{baseUrl}}"],"path":["v1","billing","slots"]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"slotsAllocated\": 5,\n  \"paidSlots\": 3,\n  \"capacity\": 5,\n  \"channelsConnected\": 4,\n  \"freeChannels\": 2,\n  \"monthlyCostUsd\": 15,\n  \"billingAnchorDay\": 12,\n  \"pendingSlots\": null,\n  \"pendingPurchase\": null,\n  \"lastPurchase\": {\n    \"purchaseId\": \"sbo_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"targetSlots\": 5,\n    \"status\": \"applied\",\n    \"reason\": null,\n    \"resolvedAt\": \"2026-11-12T09:30:00.000Z\",\n    \"resolvedBy\": \"system\"\n  }\n}"},{"name":"401 API_KEY_MISSING","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/billing/slots","host":["{{baseUrl}}"],"path":["v1","billing","slots"]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_MISSING\",\n    \"message\": \"No Authorization header was provided.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Include your API key as a Bearer token in the Authorization header.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_MISSING\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_INVALID","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/billing/slots","host":["{{baseUrl}}"],"path":["v1","billing","slots"]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_INVALID\",\n    \"message\": \"The API key is unknown, revoked, or supplied as a query parameter.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_INVALID\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_EXPIRED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/billing/slots","host":["{{baseUrl}}"],"path":["v1","billing","slots"]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_EXPIRED\",\n    \"message\": \"The API key has passed its expiry time.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Create a new key in the dashboard and replace this one.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_EXPIRED\",\n    \"details\": {\n      \"expiredAt\": \"2027-01-01T00:00:00.000Z\"\n    }\n  }\n}"},{"name":"403 ACCOUNT_SUSPENDED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/billing/slots","host":["{{baseUrl}}"],"path":["v1","billing","slots"]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"ACCOUNT_SUSPENDED\",\n    \"message\": \"API access for this workspace is not active.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Ask the workspace owner to restore the workspace, or contact LuftSocial support.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/ACCOUNT_SUSPENDED\",\n    \"details\": {}\n  }\n}"},{"name":"403 PERMISSION_REQUIRED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/billing/slots","host":["{{baseUrl}}"],"path":["v1","billing","slots"]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PERMISSION_REQUIRED\",\n    \"message\": \"This API key is read-only. This operation changes data and needs a write key.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a write key, or create one in the dashboard.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PERMISSION_REQUIRED\",\n    \"details\": {\n      \"requiredPermission\": \"write\"\n    }\n  }\n}"},{"name":"403 CLIENT_NOT_ALLOWED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/billing/slots","host":["{{baseUrl}}"],"path":["v1","billing","slots"]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"CLIENT_NOT_ALLOWED\",\n    \"message\": \"This API key is limited to other clients, or the operation covers the whole account.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a key for this client, or a key for all clients for account-wide routes.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/CLIENT_NOT_ALLOWED\",\n    \"details\": {\n      \"clientId\": \"cli_01abc\"\n    }\n  }\n}"},{"name":"403 PLAN_REQUIRED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/billing/slots","host":["{{baseUrl}}"],"path":["v1","billing","slots"]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PLAN_REQUIRED\",\n    \"message\": \"Your workspace plan does not permit API access.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Upgrade your plan to enable API access.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PLAN_REQUIRED\",\n    \"details\": {\n      \"plan\": \"starter\"\n    }\n  }\n}"},{"name":"429 RATE_LIMITED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/billing/slots","host":["{{baseUrl}}"],"path":["v1","billing","slots"]}},"status":"Too Many Requests","code":429,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"RATE_LIMITED\",\n    \"message\": \"Too many requests. Slow down and retry after the Retry-After interval.\",\n    \"category\": \"RATE_LIMIT\",\n    \"httpStatus\": 429,\n    \"retryable\": true,\n    \"suggestedAction\": \"Wait for the Retry-After header value before retrying.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/RATE_LIMITED\",\n    \"details\": {\n      \"limit\": 60,\n      \"remaining\": 0\n    }\n  }\n}"},{"name":"502 UPSTREAM_UNAVAILABLE","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/billing/slots","host":["{{baseUrl}}"],"path":["v1","billing","slots"]}},"status":"Bad Gateway","code":502,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"UPSTREAM_UNAVAILABLE\",\n    \"message\": \"An upstream service is temporarily unavailable. Retry after the Retry-After interval.\",\n    \"category\": \"UPSTREAM\",\n    \"httpStatus\": 502,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry after the Retry-After interval.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/UPSTREAM_UNAVAILABLE\",\n    \"details\": {}\n  }\n}"},{"name":"500 INTERNAL","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/billing/slots","host":["{{baseUrl}}"],"path":["v1","billing","slots"]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"INTERNAL\",\n    \"message\": \"An unexpected error occurred.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 500,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry with backoff. If it keeps failing, contact support with the requestId.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/INTERNAL\",\n    \"details\": {}\n  }\n}"},{"name":"503 SERVICE_OVERLOADED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/billing/slots","host":["{{baseUrl}}"],"path":["v1","billing","slots"]}},"status":"Service Unavailable","code":503,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"SERVICE_OVERLOADED\",\n    \"message\": \"The API is at capacity and refused this request before doing any work.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 503,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry after the Retry-After interval, with backoff. Nothing was changed.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/SERVICE_OVERLOADED\",\n    \"details\": {}\n  }\n}"}],"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('Returns 200 OK', () => {","  pm.response.to.have.status(200);","});","if (pm.response.code === 200) {","  const schema = {\"type\":\"object\",\"properties\":{\"slotsAllocated\":{\"type\":\"integer\"},\"paidSlots\":{\"type\":\"integer\"},\"capacity\":{\"type\":\"integer\"},\"channelsConnected\":{\"type\":\"integer\"},\"freeChannels\":{\"type\":\"integer\"},\"monthlyCostUsd\":{\"type\":\"number\"},\"billingAnchorDay\":{\"type\":[\"integer\",\"null\"]},\"pendingSlots\":{\"type\":[\"integer\",\"null\"]},\"pendingPurchase\":{\"type\":[\"object\",\"null\"],\"properties\":{\"purchaseId\":{\"type\":\"string\"},\"targetSlots\":{\"type\":\"integer\"},\"status\":{\"type\":\"string\",\"enum\":[\"pending\",\"needs_review\",\"applied\",\"not_applied\"]},\"reason\":{\"type\":[\"string\",\"null\"]},\"resolvedAt\":{\"type\":[\"string\",\"null\"]},\"resolvedBy\":{\"type\":[\"string\",\"null\"],\"enum\":[\"system\",null]}},\"required\":[\"purchaseId\",\"targetSlots\",\"status\",\"reason\",\"resolvedAt\",\"resolvedBy\"]},\"lastPurchase\":{\"type\":[\"object\",\"null\"],\"properties\":{\"purchaseId\":{\"type\":\"string\"},\"targetSlots\":{\"type\":\"integer\"},\"status\":{\"type\":\"string\",\"enum\":[\"pending\",\"needs_review\",\"applied\",\"not_applied\"]},\"reason\":{\"type\":[\"string\",\"null\"]},\"resolvedAt\":{\"type\":[\"string\",\"null\"]},\"resolvedBy\":{\"type\":[\"string\",\"null\"],\"enum\":[\"system\",null]}},\"required\":[\"purchaseId\",\"targetSlots\",\"status\",\"reason\",\"resolvedAt\",\"resolvedBy\"]}},\"required\":[\"slotsAllocated\",\"paidSlots\",\"capacity\",\"channelsConnected\",\"freeChannels\",\"monthlyCostUsd\",\"billingAnchorDay\",\"pendingSlots\",\"pendingPurchase\",\"lastPurchase\"]};","  pm.test('Body matches the documented schema', () => {","    pm.response.to.have.jsonSchema(schema);","  });","}"]}}]},{"name":"Set the channel slot quantity","request":{"method":"POST","description":"> **Changes data.** Changes paid channel slots. Raising them charges the card on file now; lowering them takes effect on the billing anchor day; sending the current quantity cancels a scheduled reduction. In this collection it runs only when `allowWrites` is `true`.\n\nNeeds a `write` key.\n\n### Request body\n\n`Content-Type: application/json`. Fields not listed here are rejected with `400 VALIDATION_FAILED`.\n\n| Field | Type | Required | Description |\n| --- | --- | --- | --- |\n| `quantity` | integer | yes | The slot quantity you want. Higher than slotsAllocated buys slots now; lower schedules a reduction for billingAnchorDay; equal cancels a scheduled reduction, else changes nothing. min 0 |\n\n### Response: 201 Created\n\n| Field | Type | Description |\n| --- | --- | --- |\n| `slotsAllocated` | integer | Total channel slots on the account, including the included (free) ones. Not a payment receipt. |\n| `paidSlots` | integer | Slots above the included channels. |\n| `capacity` | integer | Live non-X channels the account may hold right now. |\n| `channelsConnected` | integer | Live non-X channels connected right now. |\n| `freeChannels` | integer | Channels included in the plan. |\n| `monthlyCostUsd` | number | Monthly cost of slotsAllocated, in US dollars. |\n| `billingAnchorDay` | integer, nullable | Day of the month slots renew and scheduled reductions apply. Null when the account has none yet. |\n| `pendingSlots` | integer, nullable | A scheduled reduction: the quantity that applies on billingAnchorDay. Null when none is scheduled. |\n\n### Errors\n\nEvery error uses the shared error body. Each code below has an example on this request.\n\n| Code | HTTP | Retryable | Meaning |\n| --- | --- | --- | --- |\n| `API_KEY_MISSING` | 401 | no | No Authorization header was provided. Include your API key as a Bearer token in the Authorization header. |\n| `API_KEY_INVALID` | 401 | no | The API key is unknown, revoked, or supplied as a query parameter. Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL. |\n| `API_KEY_EXPIRED` | 401 | no | The API key has passed its expiry time. Create a new key in the dashboard and replace this one. |\n| `ACCOUNT_SUSPENDED` | 403 | no | API access for this workspace is not active. Ask the workspace owner to restore the workspace, or contact LuftSocial support. |\n| `PERMISSION_REQUIRED` | 403 | no | This API key is read-only. This operation changes data and needs a write key. Use a write key, or create one in the dashboard. |\n| `CLIENT_NOT_ALLOWED` | 403 | no | This API key is limited to other clients, or the operation covers the whole account. Use a key for this client, or a key for all clients for account-wide routes. |\n| `PLAN_REQUIRED` | 403 | no | Your workspace plan does not permit API access. Upgrade your plan to enable API access. |\n| `VALIDATION_FAILED` | 400 | no | One or more request fields failed validation. Fix the fields listed in details.errors and retry. |\n| `PAYMENT_METHOD_REQUIRED` | 402 | no | A payment method is required before buying channel slots. Add a card in the developer console billing page, then retry the purchase. |\n| `SLOT_REDUCTION_BLOCKED` | 402 | no | Cannot reduce slots below the number of currently connected channels. Disconnect some channels first, then reduce your slot allocation. |\n| `SLOT_QUANTITY_CHANGED` | 409 | yes | The channel slot quantity changed while this request ran. Read GET /v1/billing/slots and send the new quantity again. |\n| `SLOT_CHARGE_FAILED` | 402 | yes | The slot purchase could not be charged to your payment method; no slots were added. Check the card on file in the developer console billing page, then retry. |\n| `SLOT_CHARGE_NOT_APPLIED` | 422 | yes | The payment provider rejected the slot change before applying it; nothing was charged and no slots were added. Read GET /v1/billing/slots, then send the quantity again. Contact support if it keeps happening. |\n| `SLOT_PURCHASE_PENDING` | 409 | yes | A slot purchase for this account is still being confirmed; its slots are added only once the payment is confirmed. Wait for the Retry-After interval, then read GET /v1/billing/slots before sending a new quantity. |\n| `DEVELOPER_CUSTOM_PRICING_REQUIRED` | 402 | no | Self-serve stops at 200 connected accounts. Account 201 needs custom pricing. Contact LuftSocial for a custom account price. |\n| `RATE_LIMITED` | 429 | yes | Too many requests. Slow down and retry after the Retry-After interval. Wait for the Retry-After header value before retrying. |\n| `UPSTREAM_UNAVAILABLE` | 502 | yes | An upstream service is temporarily unavailable. Retry after the Retry-After interval. Retry after the Retry-After interval. |\n| `INTERNAL` | 500 | yes | An unexpected error occurred. Retry with backoff. If it keeps failing, contact support with the requestId. |\n| `SERVICE_OVERLOADED` | 503 | yes | The API is at capacity and refused this request before doing any work. Retry after the Retry-After interval, with backoff. Nothing was changed. |","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/billing/slots","host":["{{baseUrl}}"],"path":["v1","billing","slots"]},"body":{"mode":"raw","raw":"{\n  \"quantity\": 6\n}","options":{"raw":{"language":"json"}}}},"response":[{"name":"201 Created","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/billing/slots","host":["{{baseUrl}}"],"path":["v1","billing","slots"]},"body":{"mode":"raw","raw":"{\n  \"quantity\": 6\n}","options":{"raw":{"language":"json"}}}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"slotsAllocated\": 5,\n  \"paidSlots\": 3,\n  \"capacity\": 5,\n  \"channelsConnected\": 4,\n  \"freeChannels\": 2,\n  \"monthlyCostUsd\": 15,\n  \"billingAnchorDay\": 12,\n  \"pendingSlots\": null\n}"},{"name":"401 API_KEY_MISSING","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/billing/slots","host":["{{baseUrl}}"],"path":["v1","billing","slots"]},"body":{"mode":"raw","raw":"{\n  \"quantity\": 6\n}","options":{"raw":{"language":"json"}}}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_MISSING\",\n    \"message\": \"No Authorization header was provided.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Include your API key as a Bearer token in the Authorization header.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_MISSING\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_INVALID","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/billing/slots","host":["{{baseUrl}}"],"path":["v1","billing","slots"]},"body":{"mode":"raw","raw":"{\n  \"quantity\": 6\n}","options":{"raw":{"language":"json"}}}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_INVALID\",\n    \"message\": \"The API key is unknown, revoked, or supplied as a query parameter.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_INVALID\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_EXPIRED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/billing/slots","host":["{{baseUrl}}"],"path":["v1","billing","slots"]},"body":{"mode":"raw","raw":"{\n  \"quantity\": 6\n}","options":{"raw":{"language":"json"}}}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_EXPIRED\",\n    \"message\": \"The API key has passed its expiry time.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Create a new key in the dashboard and replace this one.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_EXPIRED\",\n    \"details\": {\n      \"expiredAt\": \"2027-01-01T00:00:00.000Z\"\n    }\n  }\n}"},{"name":"403 ACCOUNT_SUSPENDED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/billing/slots","host":["{{baseUrl}}"],"path":["v1","billing","slots"]},"body":{"mode":"raw","raw":"{\n  \"quantity\": 6\n}","options":{"raw":{"language":"json"}}}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"ACCOUNT_SUSPENDED\",\n    \"message\": \"API access for this workspace is not active.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Ask the workspace owner to restore the workspace, or contact LuftSocial support.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/ACCOUNT_SUSPENDED\",\n    \"details\": {}\n  }\n}"},{"name":"403 PERMISSION_REQUIRED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/billing/slots","host":["{{baseUrl}}"],"path":["v1","billing","slots"]},"body":{"mode":"raw","raw":"{\n  \"quantity\": 6\n}","options":{"raw":{"language":"json"}}}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PERMISSION_REQUIRED\",\n    \"message\": \"This API key is read-only. This operation changes data and needs a write key.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a write key, or create one in the dashboard.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PERMISSION_REQUIRED\",\n    \"details\": {\n      \"requiredPermission\": \"write\"\n    }\n  }\n}"},{"name":"403 CLIENT_NOT_ALLOWED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/billing/slots","host":["{{baseUrl}}"],"path":["v1","billing","slots"]},"body":{"mode":"raw","raw":"{\n  \"quantity\": 6\n}","options":{"raw":{"language":"json"}}}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"CLIENT_NOT_ALLOWED\",\n    \"message\": \"This API key is limited to other clients, or the operation covers the whole account.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a key for this client, or a key for all clients for account-wide routes.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/CLIENT_NOT_ALLOWED\",\n    \"details\": {\n      \"clientId\": \"cli_01abc\"\n    }\n  }\n}"},{"name":"403 PLAN_REQUIRED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/billing/slots","host":["{{baseUrl}}"],"path":["v1","billing","slots"]},"body":{"mode":"raw","raw":"{\n  \"quantity\": 6\n}","options":{"raw":{"language":"json"}}}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PLAN_REQUIRED\",\n    \"message\": \"Your workspace plan does not permit API access.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Upgrade your plan to enable API access.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PLAN_REQUIRED\",\n    \"details\": {\n      \"plan\": \"starter\"\n    }\n  }\n}"},{"name":"400 VALIDATION_FAILED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/billing/slots","host":["{{baseUrl}}"],"path":["v1","billing","slots"]},"body":{"mode":"raw","raw":"{\n  \"quantity\": 6\n}","options":{"raw":{"language":"json"}}}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"VALIDATION_FAILED\",\n    \"message\": \"One or more request fields failed validation.\",\n    \"category\": \"VALIDATION\",\n    \"httpStatus\": 400,\n    \"retryable\": false,\n    \"suggestedAction\": \"Fix the fields listed in details.errors and retry.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/VALIDATION_FAILED\",\n    \"details\": {\n      \"errors\": [\n        {\n          \"field\": \"scheduledAt\",\n          \"message\": \"Must be an ISO 8601 datetime in the future.\"\n        }\n      ]\n    }\n  }\n}"},{"name":"402 PAYMENT_METHOD_REQUIRED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/billing/slots","host":["{{baseUrl}}"],"path":["v1","billing","slots"]},"body":{"mode":"raw","raw":"{\n  \"quantity\": 6\n}","options":{"raw":{"language":"json"}}}},"status":"Payment Required","code":402,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PAYMENT_METHOD_REQUIRED\",\n    \"message\": \"A payment method is required before buying channel slots.\",\n    \"category\": \"PLAN\",\n    \"httpStatus\": 402,\n    \"retryable\": false,\n    \"suggestedAction\": \"Add a card in the developer console billing page, then retry the purchase.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PAYMENT_METHOD_REQUIRED\",\n    \"details\": {}\n  }\n}"},{"name":"402 SLOT_REDUCTION_BLOCKED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/billing/slots","host":["{{baseUrl}}"],"path":["v1","billing","slots"]},"body":{"mode":"raw","raw":"{\n  \"quantity\": 6\n}","options":{"raw":{"language":"json"}}}},"status":"Payment Required","code":402,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"SLOT_REDUCTION_BLOCKED\",\n    \"message\": \"Cannot reduce slots below the number of currently connected channels.\",\n    \"category\": \"PLAN\",\n    \"httpStatus\": 402,\n    \"retryable\": false,\n    \"suggestedAction\": \"Disconnect some channels first, then reduce your slot allocation.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/SLOT_REDUCTION_BLOCKED\",\n    \"details\": {\n      \"slotsAllocated\": 5,\n      \"channelsConnected\": 8\n    }\n  }\n}"},{"name":"409 SLOT_QUANTITY_CHANGED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/billing/slots","host":["{{baseUrl}}"],"path":["v1","billing","slots"]},"body":{"mode":"raw","raw":"{\n  \"quantity\": 6\n}","options":{"raw":{"language":"json"}}}},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"SLOT_QUANTITY_CHANGED\",\n    \"message\": \"The channel slot quantity changed while this request ran.\",\n    \"category\": \"CONFLICT\",\n    \"httpStatus\": 409,\n    \"retryable\": true,\n    \"suggestedAction\": \"Read GET /v1/billing/slots and send the new quantity again.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/SLOT_QUANTITY_CHANGED\",\n    \"details\": {}\n  }\n}"},{"name":"402 SLOT_CHARGE_FAILED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/billing/slots","host":["{{baseUrl}}"],"path":["v1","billing","slots"]},"body":{"mode":"raw","raw":"{\n  \"quantity\": 6\n}","options":{"raw":{"language":"json"}}}},"status":"Payment Required","code":402,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"SLOT_CHARGE_FAILED\",\n    \"message\": \"The slot purchase could not be charged to your payment method; no slots were added.\",\n    \"category\": \"PLAN\",\n    \"httpStatus\": 402,\n    \"retryable\": true,\n    \"suggestedAction\": \"Check the card on file in the developer console billing page, then retry.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/SLOT_CHARGE_FAILED\",\n    \"details\": {}\n  }\n}"},{"name":"422 SLOT_CHARGE_NOT_APPLIED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/billing/slots","host":["{{baseUrl}}"],"path":["v1","billing","slots"]},"body":{"mode":"raw","raw":"{\n  \"quantity\": 6\n}","options":{"raw":{"language":"json"}}}},"status":"Unprocessable Entity","code":422,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"SLOT_CHARGE_NOT_APPLIED\",\n    \"message\": \"The payment provider rejected the slot change before applying it; nothing was charged and no slots were added.\",\n    \"category\": \"PLAN\",\n    \"httpStatus\": 422,\n    \"retryable\": true,\n    \"suggestedAction\": \"Read GET /v1/billing/slots, then send the quantity again. Contact support if it keeps happening.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/SLOT_CHARGE_NOT_APPLIED\",\n    \"details\": {}\n  }\n}"},{"name":"409 SLOT_PURCHASE_PENDING","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/billing/slots","host":["{{baseUrl}}"],"path":["v1","billing","slots"]},"body":{"mode":"raw","raw":"{\n  \"quantity\": 6\n}","options":{"raw":{"language":"json"}}}},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"SLOT_PURCHASE_PENDING\",\n    \"message\": \"A slot purchase for this account is still being confirmed; its slots are added only once the payment is confirmed.\",\n    \"category\": \"CONFLICT\",\n    \"httpStatus\": 409,\n    \"retryable\": true,\n    \"suggestedAction\": \"Wait for the Retry-After interval, then read GET /v1/billing/slots before sending a new quantity.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/SLOT_PURCHASE_PENDING\",\n    \"details\": {\n      \"purchaseId\": \"sbo_01J0000000000000000000000\",\n      \"targetSlots\": 5,\n      \"status\": \"reconciliation_required\"\n    }\n  }\n}"},{"name":"402 DEVELOPER_CUSTOM_PRICING_REQUIRED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/billing/slots","host":["{{baseUrl}}"],"path":["v1","billing","slots"]},"body":{"mode":"raw","raw":"{\n  \"quantity\": 6\n}","options":{"raw":{"language":"json"}}}},"status":"Payment Required","code":402,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"DEVELOPER_CUSTOM_PRICING_REQUIRED\",\n    \"message\": \"Self-serve stops at 200 connected accounts. Account 201 needs custom pricing.\",\n    \"category\": \"PLAN\",\n    \"httpStatus\": 402,\n    \"retryable\": false,\n    \"suggestedAction\": \"Contact LuftSocial for a custom account price.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/DEVELOPER_CUSTOM_PRICING_REQUIRED\",\n    \"details\": {}\n  }\n}"},{"name":"429 RATE_LIMITED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/billing/slots","host":["{{baseUrl}}"],"path":["v1","billing","slots"]},"body":{"mode":"raw","raw":"{\n  \"quantity\": 6\n}","options":{"raw":{"language":"json"}}}},"status":"Too Many Requests","code":429,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"RATE_LIMITED\",\n    \"message\": \"Too many requests. Slow down and retry after the Retry-After interval.\",\n    \"category\": \"RATE_LIMIT\",\n    \"httpStatus\": 429,\n    \"retryable\": true,\n    \"suggestedAction\": \"Wait for the Retry-After header value before retrying.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/RATE_LIMITED\",\n    \"details\": {\n      \"limit\": 60,\n      \"remaining\": 0\n    }\n  }\n}"},{"name":"502 UPSTREAM_UNAVAILABLE","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/billing/slots","host":["{{baseUrl}}"],"path":["v1","billing","slots"]},"body":{"mode":"raw","raw":"{\n  \"quantity\": 6\n}","options":{"raw":{"language":"json"}}}},"status":"Bad Gateway","code":502,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"UPSTREAM_UNAVAILABLE\",\n    \"message\": \"An upstream service is temporarily unavailable. Retry after the Retry-After interval.\",\n    \"category\": \"UPSTREAM\",\n    \"httpStatus\": 502,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry after the Retry-After interval.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/UPSTREAM_UNAVAILABLE\",\n    \"details\": {}\n  }\n}"},{"name":"500 INTERNAL","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/billing/slots","host":["{{baseUrl}}"],"path":["v1","billing","slots"]},"body":{"mode":"raw","raw":"{\n  \"quantity\": 6\n}","options":{"raw":{"language":"json"}}}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"INTERNAL\",\n    \"message\": \"An unexpected error occurred.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 500,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry with backoff. If it keeps failing, contact support with the requestId.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/INTERNAL\",\n    \"details\": {}\n  }\n}"},{"name":"503 SERVICE_OVERLOADED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/billing/slots","host":["{{baseUrl}}"],"path":["v1","billing","slots"]},"body":{"mode":"raw","raw":"{\n  \"quantity\": 6\n}","options":{"raw":{"language":"json"}}}},"status":"Service Unavailable","code":503,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"SERVICE_OVERLOADED\",\n    \"message\": \"The API is at capacity and refused this request before doing any work.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 503,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry after the Retry-After interval, with backoff. Nothing was changed.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/SERVICE_OVERLOADED\",\n    \"details\": {}\n  }\n}"}],"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('Returns 201 Created', () => {","  pm.response.to.have.status(201);","});","if (pm.response.code === 201) {","  const schema = {\"type\":\"object\",\"properties\":{\"slotsAllocated\":{\"type\":\"integer\"},\"paidSlots\":{\"type\":\"integer\"},\"capacity\":{\"type\":\"integer\"},\"channelsConnected\":{\"type\":\"integer\"},\"freeChannels\":{\"type\":\"integer\"},\"monthlyCostUsd\":{\"type\":\"number\"},\"billingAnchorDay\":{\"type\":[\"integer\",\"null\"]},\"pendingSlots\":{\"type\":[\"integer\",\"null\"]}},\"required\":[\"slotsAllocated\",\"paidSlots\",\"capacity\",\"channelsConnected\",\"freeChannels\",\"monthlyCostUsd\",\"billingAnchorDay\",\"pendingSlots\"]};","  pm.test('Body matches the documented schema', () => {","    pm.response.to.have.jsonSchema(schema);","  });","}"]}}]},{"name":"Preview the price of a new slot quantity","request":{"method":"GET","description":"Works with a `read` or `write` key.\n\n### Parameters\n\n| Name | In | Required | Type | Description |\n| --- | --- | --- | --- | --- |\n| `quantity` | query | yes | integer | The slot quantity to price. A non-negative whole number. min 0 |\n\n### Response: 200 OK\n\n| Field | Type | Description |\n| --- | --- | --- |\n| `slotsAllocated` | integer | Total channel slots on the account, including the included (free) ones. Not a payment receipt. |\n| `paidSlots` | integer | Slots above the included channels. |\n| `capacity` | integer | Live non-X channels the account may hold right now. |\n| `channelsConnected` | integer | Live non-X channels connected right now. |\n| `freeChannels` | integer | Channels included in the plan. |\n| `monthlyCostUsd` | number | Monthly cost at the previewed quantity, in US dollars. |\n| `billingAnchorDay` | integer, nullable | Day of the month slots renew and scheduled reductions apply. Null when the account has none yet. |\n| `pendingSlots` | integer, nullable | A scheduled reduction: the quantity that applies on billingAnchorDay. Null when none is scheduled. |\n| `quantity` | integer | The quantity you asked about. |\n| `proratedUsd` | number | Estimate of the charge now, in US dollars: the monthly increase prorated for the days left in the cycle. 0 for a reduction. Stripe computes the real charge. |\n| `breakdown` | object | How many of the previewed slots fall in each price band. |\n| `breakdown.free` | integer |  |\n| `breakdown.band3To10` | integer |  |\n| `breakdown.band11To100` | integer |  |\n| `breakdown.band101To200` | integer |  |\n| `effectiveFrom` | string (date-time) | The time the preview was computed. |\n\n### Errors\n\nEvery error uses the shared error body. Each code below has an example on this request.\n\n| Code | HTTP | Retryable | Meaning |\n| --- | --- | --- | --- |\n| `API_KEY_MISSING` | 401 | no | No Authorization header was provided. Include your API key as a Bearer token in the Authorization header. |\n| `API_KEY_INVALID` | 401 | no | The API key is unknown, revoked, or supplied as a query parameter. Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL. |\n| `API_KEY_EXPIRED` | 401 | no | The API key has passed its expiry time. Create a new key in the dashboard and replace this one. |\n| `ACCOUNT_SUSPENDED` | 403 | no | API access for this workspace is not active. Ask the workspace owner to restore the workspace, or contact LuftSocial support. |\n| `PERMISSION_REQUIRED` | 403 | no | This API key is read-only. This operation changes data and needs a write key. Use a write key, or create one in the dashboard. |\n| `CLIENT_NOT_ALLOWED` | 403 | no | This API key is limited to other clients, or the operation covers the whole account. Use a key for this client, or a key for all clients for account-wide routes. |\n| `PLAN_REQUIRED` | 403 | no | Your workspace plan does not permit API access. Upgrade your plan to enable API access. |\n| `VALIDATION_FAILED` | 400 | no | One or more request fields failed validation. Fix the fields listed in details.errors and retry. |\n| `DEVELOPER_CUSTOM_PRICING_REQUIRED` | 402 | no | Self-serve stops at 200 connected accounts. Account 201 needs custom pricing. Contact LuftSocial for a custom account price. |\n| `SLOT_REDUCTION_BLOCKED` | 402 | no | Cannot reduce slots below the number of currently connected channels. Disconnect some channels first, then reduce your slot allocation. |\n| `RATE_LIMITED` | 429 | yes | Too many requests. Slow down and retry after the Retry-After interval. Wait for the Retry-After header value before retrying. |\n| `UPSTREAM_UNAVAILABLE` | 502 | yes | An upstream service is temporarily unavailable. Retry after the Retry-After interval. Retry after the Retry-After interval. |\n| `INTERNAL` | 500 | yes | An unexpected error occurred. Retry with backoff. If it keeps failing, contact support with the requestId. |\n| `SERVICE_OVERLOADED` | 503 | yes | The API is at capacity and refused this request before doing any work. Retry after the Retry-After interval, with backoff. Nothing was changed. |","header":[],"url":{"raw":"{{baseUrl}}/v1/billing/slots/preview","host":["{{baseUrl}}"],"path":["v1","billing","slots","preview"],"query":[{"key":"quantity","value":"6","description":"The slot quantity to price. A non-negative whole number.","disabled":false}]}},"response":[{"name":"200 OK","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/billing/slots/preview","host":["{{baseUrl}}"],"path":["v1","billing","slots","preview"],"query":[{"key":"quantity","value":"6","description":"The slot quantity to price. A non-negative whole number.","disabled":false}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"slotsAllocated\": 5,\n  \"paidSlots\": 3,\n  \"capacity\": 5,\n  \"channelsConnected\": 4,\n  \"freeChannels\": 2,\n  \"monthlyCostUsd\": 20,\n  \"billingAnchorDay\": 12,\n  \"pendingSlots\": null,\n  \"quantity\": 6,\n  \"proratedUsd\": 2.5,\n  \"breakdown\": {\n    \"free\": 2,\n    \"band3To10\": 4,\n    \"band11To100\": 0,\n    \"band101To200\": 0\n  },\n  \"effectiveFrom\": \"2026-11-12T09:30:00.000Z\"\n}"},{"name":"401 API_KEY_MISSING","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/billing/slots/preview","host":["{{baseUrl}}"],"path":["v1","billing","slots","preview"],"query":[{"key":"quantity","value":"6","description":"The slot quantity to price. A non-negative whole number.","disabled":false}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_MISSING\",\n    \"message\": \"No Authorization header was provided.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Include your API key as a Bearer token in the Authorization header.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_MISSING\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_INVALID","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/billing/slots/preview","host":["{{baseUrl}}"],"path":["v1","billing","slots","preview"],"query":[{"key":"quantity","value":"6","description":"The slot quantity to price. A non-negative whole number.","disabled":false}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_INVALID\",\n    \"message\": \"The API key is unknown, revoked, or supplied as a query parameter.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_INVALID\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_EXPIRED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/billing/slots/preview","host":["{{baseUrl}}"],"path":["v1","billing","slots","preview"],"query":[{"key":"quantity","value":"6","description":"The slot quantity to price. A non-negative whole number.","disabled":false}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_EXPIRED\",\n    \"message\": \"The API key has passed its expiry time.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Create a new key in the dashboard and replace this one.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_EXPIRED\",\n    \"details\": {\n      \"expiredAt\": \"2027-01-01T00:00:00.000Z\"\n    }\n  }\n}"},{"name":"403 ACCOUNT_SUSPENDED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/billing/slots/preview","host":["{{baseUrl}}"],"path":["v1","billing","slots","preview"],"query":[{"key":"quantity","value":"6","description":"The slot quantity to price. A non-negative whole number.","disabled":false}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"ACCOUNT_SUSPENDED\",\n    \"message\": \"API access for this workspace is not active.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Ask the workspace owner to restore the workspace, or contact LuftSocial support.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/ACCOUNT_SUSPENDED\",\n    \"details\": {}\n  }\n}"},{"name":"403 PERMISSION_REQUIRED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/billing/slots/preview","host":["{{baseUrl}}"],"path":["v1","billing","slots","preview"],"query":[{"key":"quantity","value":"6","description":"The slot quantity to price. A non-negative whole number.","disabled":false}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PERMISSION_REQUIRED\",\n    \"message\": \"This API key is read-only. This operation changes data and needs a write key.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a write key, or create one in the dashboard.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PERMISSION_REQUIRED\",\n    \"details\": {\n      \"requiredPermission\": \"write\"\n    }\n  }\n}"},{"name":"403 CLIENT_NOT_ALLOWED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/billing/slots/preview","host":["{{baseUrl}}"],"path":["v1","billing","slots","preview"],"query":[{"key":"quantity","value":"6","description":"The slot quantity to price. A non-negative whole number.","disabled":false}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"CLIENT_NOT_ALLOWED\",\n    \"message\": \"This API key is limited to other clients, or the operation covers the whole account.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a key for this client, or a key for all clients for account-wide routes.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/CLIENT_NOT_ALLOWED\",\n    \"details\": {\n      \"clientId\": \"cli_01abc\"\n    }\n  }\n}"},{"name":"403 PLAN_REQUIRED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/billing/slots/preview","host":["{{baseUrl}}"],"path":["v1","billing","slots","preview"],"query":[{"key":"quantity","value":"6","description":"The slot quantity to price. A non-negative whole number.","disabled":false}]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PLAN_REQUIRED\",\n    \"message\": \"Your workspace plan does not permit API access.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Upgrade your plan to enable API access.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PLAN_REQUIRED\",\n    \"details\": {\n      \"plan\": \"starter\"\n    }\n  }\n}"},{"name":"400 VALIDATION_FAILED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/billing/slots/preview","host":["{{baseUrl}}"],"path":["v1","billing","slots","preview"],"query":[{"key":"quantity","value":"6","description":"The slot quantity to price. A non-negative whole number.","disabled":false}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"VALIDATION_FAILED\",\n    \"message\": \"One or more request fields failed validation.\",\n    \"category\": \"VALIDATION\",\n    \"httpStatus\": 400,\n    \"retryable\": false,\n    \"suggestedAction\": \"Fix the fields listed in details.errors and retry.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/VALIDATION_FAILED\",\n    \"details\": {\n      \"errors\": [\n        {\n          \"field\": \"scheduledAt\",\n          \"message\": \"Must be an ISO 8601 datetime in the future.\"\n        }\n      ]\n    }\n  }\n}"},{"name":"402 DEVELOPER_CUSTOM_PRICING_REQUIRED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/billing/slots/preview","host":["{{baseUrl}}"],"path":["v1","billing","slots","preview"],"query":[{"key":"quantity","value":"6","description":"The slot quantity to price. A non-negative whole number.","disabled":false}]}},"status":"Payment Required","code":402,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"DEVELOPER_CUSTOM_PRICING_REQUIRED\",\n    \"message\": \"Self-serve stops at 200 connected accounts. Account 201 needs custom pricing.\",\n    \"category\": \"PLAN\",\n    \"httpStatus\": 402,\n    \"retryable\": false,\n    \"suggestedAction\": \"Contact LuftSocial for a custom account price.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/DEVELOPER_CUSTOM_PRICING_REQUIRED\",\n    \"details\": {}\n  }\n}"},{"name":"402 SLOT_REDUCTION_BLOCKED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/billing/slots/preview","host":["{{baseUrl}}"],"path":["v1","billing","slots","preview"],"query":[{"key":"quantity","value":"6","description":"The slot quantity to price. A non-negative whole number.","disabled":false}]}},"status":"Payment Required","code":402,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"SLOT_REDUCTION_BLOCKED\",\n    \"message\": \"Cannot reduce slots below the number of currently connected channels.\",\n    \"category\": \"PLAN\",\n    \"httpStatus\": 402,\n    \"retryable\": false,\n    \"suggestedAction\": \"Disconnect some channels first, then reduce your slot allocation.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/SLOT_REDUCTION_BLOCKED\",\n    \"details\": {\n      \"slotsAllocated\": 5,\n      \"channelsConnected\": 8\n    }\n  }\n}"},{"name":"429 RATE_LIMITED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/billing/slots/preview","host":["{{baseUrl}}"],"path":["v1","billing","slots","preview"],"query":[{"key":"quantity","value":"6","description":"The slot quantity to price. A non-negative whole number.","disabled":false}]}},"status":"Too Many Requests","code":429,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"RATE_LIMITED\",\n    \"message\": \"Too many requests. Slow down and retry after the Retry-After interval.\",\n    \"category\": \"RATE_LIMIT\",\n    \"httpStatus\": 429,\n    \"retryable\": true,\n    \"suggestedAction\": \"Wait for the Retry-After header value before retrying.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/RATE_LIMITED\",\n    \"details\": {\n      \"limit\": 60,\n      \"remaining\": 0\n    }\n  }\n}"},{"name":"502 UPSTREAM_UNAVAILABLE","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/billing/slots/preview","host":["{{baseUrl}}"],"path":["v1","billing","slots","preview"],"query":[{"key":"quantity","value":"6","description":"The slot quantity to price. A non-negative whole number.","disabled":false}]}},"status":"Bad Gateway","code":502,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"UPSTREAM_UNAVAILABLE\",\n    \"message\": \"An upstream service is temporarily unavailable. Retry after the Retry-After interval.\",\n    \"category\": \"UPSTREAM\",\n    \"httpStatus\": 502,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry after the Retry-After interval.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/UPSTREAM_UNAVAILABLE\",\n    \"details\": {}\n  }\n}"},{"name":"500 INTERNAL","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/billing/slots/preview","host":["{{baseUrl}}"],"path":["v1","billing","slots","preview"],"query":[{"key":"quantity","value":"6","description":"The slot quantity to price. A non-negative whole number.","disabled":false}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"INTERNAL\",\n    \"message\": \"An unexpected error occurred.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 500,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry with backoff. If it keeps failing, contact support with the requestId.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/INTERNAL\",\n    \"details\": {}\n  }\n}"},{"name":"503 SERVICE_OVERLOADED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/billing/slots/preview","host":["{{baseUrl}}"],"path":["v1","billing","slots","preview"],"query":[{"key":"quantity","value":"6","description":"The slot quantity to price. A non-negative whole number.","disabled":false}]}},"status":"Service Unavailable","code":503,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"SERVICE_OVERLOADED\",\n    \"message\": \"The API is at capacity and refused this request before doing any work.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 503,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry after the Retry-After interval, with backoff. Nothing was changed.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/SERVICE_OVERLOADED\",\n    \"details\": {}\n  }\n}"}],"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('Returns 200 OK', () => {","  pm.response.to.have.status(200);","});","if (pm.response.code === 200) {","  const schema = {\"type\":\"object\",\"properties\":{\"slotsAllocated\":{\"type\":\"integer\"},\"paidSlots\":{\"type\":\"integer\"},\"capacity\":{\"type\":\"integer\"},\"channelsConnected\":{\"type\":\"integer\"},\"freeChannels\":{\"type\":\"integer\"},\"monthlyCostUsd\":{\"type\":\"number\"},\"billingAnchorDay\":{\"type\":[\"integer\",\"null\"]},\"pendingSlots\":{\"type\":[\"integer\",\"null\"]},\"quantity\":{\"type\":\"integer\"},\"proratedUsd\":{\"type\":\"number\"},\"breakdown\":{\"type\":\"object\",\"properties\":{\"free\":{\"type\":\"integer\"},\"band3To10\":{\"type\":\"integer\"},\"band11To100\":{\"type\":\"integer\"},\"band101To200\":{\"type\":\"integer\"}},\"required\":[\"free\",\"band3To10\",\"band11To100\",\"band101To200\"]},\"effectiveFrom\":{\"type\":\"string\"}},\"required\":[\"slotsAllocated\",\"paidSlots\",\"capacity\",\"channelsConnected\",\"freeChannels\",\"monthlyCostUsd\",\"billingAnchorDay\",\"pendingSlots\",\"quantity\",\"proratedUsd\",\"breakdown\",\"effectiveFrom\"]};","  pm.test('Body matches the documented schema', () => {","    pm.response.to.have.jsonSchema(schema);","  });","}"]}}]}]},{"name":"Applications","description":"Applications group keys, webhook endpoints, and posts. Keys, redirect URLs, and key permissions are managed in the developer console, not through this API.","item":[{"name":"List applications","request":{"method":"GET","description":"Works with a `read` or `write` key.\n\n### Response: 200 OK\n\n| Field | Type | Description |\n| --- | --- | --- |\n| `data` | array of object |  |\n| `data[].id` | string |  |\n| `data[].name` | string | Shown to customers on the hosted connect page. |\n| `data[].redirectUrls` | array of string | Where hosted connect may send a customer back. Set in the developer console. |\n| `data[].createdAt` | string (date-time) |  |\n| `meta` | object |  |\n| `meta.count` | number |  |\n\n### Errors\n\nEvery error uses the shared error body. Each code below has an example on this request.\n\n| Code | HTTP | Retryable | Meaning |\n| --- | --- | --- | --- |\n| `API_KEY_MISSING` | 401 | no | No Authorization header was provided. Include your API key as a Bearer token in the Authorization header. |\n| `API_KEY_INVALID` | 401 | no | The API key is unknown, revoked, or supplied as a query parameter. Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL. |\n| `API_KEY_EXPIRED` | 401 | no | The API key has passed its expiry time. Create a new key in the dashboard and replace this one. |\n| `ACCOUNT_SUSPENDED` | 403 | no | API access for this workspace is not active. Ask the workspace owner to restore the workspace, or contact LuftSocial support. |\n| `PERMISSION_REQUIRED` | 403 | no | This API key is read-only. This operation changes data and needs a write key. Use a write key, or create one in the dashboard. |\n| `CLIENT_NOT_ALLOWED` | 403 | no | This API key is limited to other clients, or the operation covers the whole account. Use a key for this client, or a key for all clients for account-wide routes. |\n| `PLAN_REQUIRED` | 403 | no | Your workspace plan does not permit API access. Upgrade your plan to enable API access. |\n| `RATE_LIMITED` | 429 | yes | Too many requests. Slow down and retry after the Retry-After interval. Wait for the Retry-After header value before retrying. |\n| `INTERNAL` | 500 | yes | An unexpected error occurred. Retry with backoff. If it keeps failing, contact support with the requestId. |\n| `SERVICE_OVERLOADED` | 503 | yes | The API is at capacity and refused this request before doing any work. Retry after the Retry-After interval, with backoff. Nothing was changed. |","header":[],"url":{"raw":"{{baseUrl}}/v1/applications","host":["{{baseUrl}}"],"path":["v1","applications"]}},"response":[{"name":"200 OK","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/applications","host":["{{baseUrl}}"],"path":["v1","applications"]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"data\": [\n    {\n      \"id\": \"app_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n      \"name\": \"PostPilot\",\n      \"redirectUrls\": [\n        \"https://app.postpilot.io/connected\"\n      ],\n      \"createdAt\": \"2026-11-12T09:30:00.000Z\"\n    }\n  ],\n  \"meta\": {\n    \"count\": 1\n  }\n}"},{"name":"401 API_KEY_MISSING","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/applications","host":["{{baseUrl}}"],"path":["v1","applications"]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_MISSING\",\n    \"message\": \"No Authorization header was provided.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Include your API key as a Bearer token in the Authorization header.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_MISSING\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_INVALID","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/applications","host":["{{baseUrl}}"],"path":["v1","applications"]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_INVALID\",\n    \"message\": \"The API key is unknown, revoked, or supplied as a query parameter.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_INVALID\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_EXPIRED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/applications","host":["{{baseUrl}}"],"path":["v1","applications"]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_EXPIRED\",\n    \"message\": \"The API key has passed its expiry time.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Create a new key in the dashboard and replace this one.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_EXPIRED\",\n    \"details\": {\n      \"expiredAt\": \"2027-01-01T00:00:00.000Z\"\n    }\n  }\n}"},{"name":"403 ACCOUNT_SUSPENDED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/applications","host":["{{baseUrl}}"],"path":["v1","applications"]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"ACCOUNT_SUSPENDED\",\n    \"message\": \"API access for this workspace is not active.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Ask the workspace owner to restore the workspace, or contact LuftSocial support.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/ACCOUNT_SUSPENDED\",\n    \"details\": {}\n  }\n}"},{"name":"403 PERMISSION_REQUIRED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/applications","host":["{{baseUrl}}"],"path":["v1","applications"]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PERMISSION_REQUIRED\",\n    \"message\": \"This API key is read-only. This operation changes data and needs a write key.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a write key, or create one in the dashboard.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PERMISSION_REQUIRED\",\n    \"details\": {\n      \"requiredPermission\": \"write\"\n    }\n  }\n}"},{"name":"403 CLIENT_NOT_ALLOWED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/applications","host":["{{baseUrl}}"],"path":["v1","applications"]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"CLIENT_NOT_ALLOWED\",\n    \"message\": \"This API key is limited to other clients, or the operation covers the whole account.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a key for this client, or a key for all clients for account-wide routes.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/CLIENT_NOT_ALLOWED\",\n    \"details\": {\n      \"clientId\": \"cli_01abc\"\n    }\n  }\n}"},{"name":"403 PLAN_REQUIRED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/applications","host":["{{baseUrl}}"],"path":["v1","applications"]}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PLAN_REQUIRED\",\n    \"message\": \"Your workspace plan does not permit API access.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Upgrade your plan to enable API access.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PLAN_REQUIRED\",\n    \"details\": {\n      \"plan\": \"starter\"\n    }\n  }\n}"},{"name":"429 RATE_LIMITED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/applications","host":["{{baseUrl}}"],"path":["v1","applications"]}},"status":"Too Many Requests","code":429,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"RATE_LIMITED\",\n    \"message\": \"Too many requests. Slow down and retry after the Retry-After interval.\",\n    \"category\": \"RATE_LIMIT\",\n    \"httpStatus\": 429,\n    \"retryable\": true,\n    \"suggestedAction\": \"Wait for the Retry-After header value before retrying.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/RATE_LIMITED\",\n    \"details\": {\n      \"limit\": 60,\n      \"remaining\": 0\n    }\n  }\n}"},{"name":"500 INTERNAL","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/applications","host":["{{baseUrl}}"],"path":["v1","applications"]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"INTERNAL\",\n    \"message\": \"An unexpected error occurred.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 500,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry with backoff. If it keeps failing, contact support with the requestId.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/INTERNAL\",\n    \"details\": {}\n  }\n}"},{"name":"503 SERVICE_OVERLOADED","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/v1/applications","host":["{{baseUrl}}"],"path":["v1","applications"]}},"status":"Service Unavailable","code":503,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"SERVICE_OVERLOADED\",\n    \"message\": \"The API is at capacity and refused this request before doing any work.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 503,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry after the Retry-After interval, with backoff. Nothing was changed.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/SERVICE_OVERLOADED\",\n    \"details\": {}\n  }\n}"}],"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('Returns 200 OK', () => {","  pm.response.to.have.status(200);","});","if (pm.response.code === 200) {","  const schema = {\"type\":\"object\",\"properties\":{\"data\":{\"type\":\"array\",\"items\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\"},\"name\":{\"type\":\"string\"},\"redirectUrls\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"createdAt\":{\"type\":\"string\"}},\"required\":[\"id\",\"name\",\"redirectUrls\",\"createdAt\"]}},\"meta\":{\"type\":\"object\",\"properties\":{\"count\":{\"type\":\"number\"}}}},\"required\":[\"data\",\"meta\"]};","  pm.test('Body matches the documented schema', () => {","    pm.response.to.have.jsonSchema(schema);","  });","}"]}}]},{"name":"Create an application","request":{"method":"POST","description":"> **Changes data.** Creates an application. In this collection it runs only when `allowWrites` is `true`.\n\nNames are unique in a workspace (ignoring case). Creating one that exists answers 409 APPLICATION_NAME_TAKEN with details.applicationId, so a retried call is safe.\n\nNeeds a `write` key.\n\n### Request body\n\n`Content-Type: application/json`. Fields not listed here are rejected with `400 VALIDATION_FAILED`.\n\n| Field | Type | Required | Description |\n| --- | --- | --- | --- |\n| `name` | string | yes | min length 1; max length 100 |\n\n### Response: 201 Created\n\n| Field | Type | Description |\n| --- | --- | --- |\n| `id` | string |  |\n| `name` | string | Shown to customers on the hosted connect page. |\n| `redirectUrls` | array of string | Where hosted connect may send a customer back. Set in the developer console. |\n| `createdAt` | string (date-time) |  |\n\n### Errors\n\nEvery error uses the shared error body. Each code below has an example on this request.\n\n| Code | HTTP | Retryable | Meaning |\n| --- | --- | --- | --- |\n| `API_KEY_MISSING` | 401 | no | No Authorization header was provided. Include your API key as a Bearer token in the Authorization header. |\n| `API_KEY_INVALID` | 401 | no | The API key is unknown, revoked, or supplied as a query parameter. Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL. |\n| `API_KEY_EXPIRED` | 401 | no | The API key has passed its expiry time. Create a new key in the dashboard and replace this one. |\n| `ACCOUNT_SUSPENDED` | 403 | no | API access for this workspace is not active. Ask the workspace owner to restore the workspace, or contact LuftSocial support. |\n| `PERMISSION_REQUIRED` | 403 | no | This API key is read-only. This operation changes data and needs a write key. Use a write key, or create one in the dashboard. |\n| `CLIENT_NOT_ALLOWED` | 403 | no | This API key is limited to other clients, or the operation covers the whole account. Use a key for this client, or a key for all clients for account-wide routes. |\n| `PLAN_REQUIRED` | 403 | no | Your workspace plan does not permit API access. Upgrade your plan to enable API access. |\n| `VALIDATION_FAILED` | 400 | no | One or more request fields failed validation. Fix the fields listed in details.errors and retry. |\n| `APPLICATION_NAME_TAKEN` | 409 | no | An application with this name already exists in this workspace. Use the existing application (details.applicationId), or choose another name. |\n| `RATE_LIMITED` | 429 | yes | Too many requests. Slow down and retry after the Retry-After interval. Wait for the Retry-After header value before retrying. |\n| `INTERNAL` | 500 | yes | An unexpected error occurred. Retry with backoff. If it keeps failing, contact support with the requestId. |\n| `SERVICE_OVERLOADED` | 503 | yes | The API is at capacity and refused this request before doing any work. Retry after the Retry-After interval, with backoff. Nothing was changed. |","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/applications","host":["{{baseUrl}}"],"path":["v1","applications"]},"body":{"mode":"raw","raw":"{\n  \"name\": \"PostPilot\"\n}","options":{"raw":{"language":"json"}}}},"response":[{"name":"201 Created","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/applications","host":["{{baseUrl}}"],"path":["v1","applications"]},"body":{"mode":"raw","raw":"{\n  \"name\": \"PostPilot\"\n}","options":{"raw":{"language":"json"}}}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"id\": \"app_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n  \"name\": \"PostPilot\",\n  \"redirectUrls\": [\n    \"https://app.postpilot.io/connected\"\n  ],\n  \"createdAt\": \"2026-11-12T09:30:00.000Z\"\n}"},{"name":"401 API_KEY_MISSING","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/applications","host":["{{baseUrl}}"],"path":["v1","applications"]},"body":{"mode":"raw","raw":"{\n  \"name\": \"PostPilot\"\n}","options":{"raw":{"language":"json"}}}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_MISSING\",\n    \"message\": \"No Authorization header was provided.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Include your API key as a Bearer token in the Authorization header.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_MISSING\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_INVALID","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/applications","host":["{{baseUrl}}"],"path":["v1","applications"]},"body":{"mode":"raw","raw":"{\n  \"name\": \"PostPilot\"\n}","options":{"raw":{"language":"json"}}}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_INVALID\",\n    \"message\": \"The API key is unknown, revoked, or supplied as a query parameter.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Check that your key is valid, not revoked, and sent in the Authorization header — not in the URL.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_INVALID\",\n    \"details\": {}\n  }\n}"},{"name":"401 API_KEY_EXPIRED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/applications","host":["{{baseUrl}}"],"path":["v1","applications"]},"body":{"mode":"raw","raw":"{\n  \"name\": \"PostPilot\"\n}","options":{"raw":{"language":"json"}}}},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"API_KEY_EXPIRED\",\n    \"message\": \"The API key has passed its expiry time.\",\n    \"category\": \"AUTHENTICATION\",\n    \"httpStatus\": 401,\n    \"retryable\": false,\n    \"suggestedAction\": \"Create a new key in the dashboard and replace this one.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/API_KEY_EXPIRED\",\n    \"details\": {\n      \"expiredAt\": \"2027-01-01T00:00:00.000Z\"\n    }\n  }\n}"},{"name":"403 ACCOUNT_SUSPENDED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/applications","host":["{{baseUrl}}"],"path":["v1","applications"]},"body":{"mode":"raw","raw":"{\n  \"name\": \"PostPilot\"\n}","options":{"raw":{"language":"json"}}}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"ACCOUNT_SUSPENDED\",\n    \"message\": \"API access for this workspace is not active.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Ask the workspace owner to restore the workspace, or contact LuftSocial support.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/ACCOUNT_SUSPENDED\",\n    \"details\": {}\n  }\n}"},{"name":"403 PERMISSION_REQUIRED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/applications","host":["{{baseUrl}}"],"path":["v1","applications"]},"body":{"mode":"raw","raw":"{\n  \"name\": \"PostPilot\"\n}","options":{"raw":{"language":"json"}}}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PERMISSION_REQUIRED\",\n    \"message\": \"This API key is read-only. This operation changes data and needs a write key.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a write key, or create one in the dashboard.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PERMISSION_REQUIRED\",\n    \"details\": {\n      \"requiredPermission\": \"write\"\n    }\n  }\n}"},{"name":"403 CLIENT_NOT_ALLOWED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/applications","host":["{{baseUrl}}"],"path":["v1","applications"]},"body":{"mode":"raw","raw":"{\n  \"name\": \"PostPilot\"\n}","options":{"raw":{"language":"json"}}}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"CLIENT_NOT_ALLOWED\",\n    \"message\": \"This API key is limited to other clients, or the operation covers the whole account.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use a key for this client, or a key for all clients for account-wide routes.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/CLIENT_NOT_ALLOWED\",\n    \"details\": {\n      \"clientId\": \"cli_01abc\"\n    }\n  }\n}"},{"name":"403 PLAN_REQUIRED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/applications","host":["{{baseUrl}}"],"path":["v1","applications"]},"body":{"mode":"raw","raw":"{\n  \"name\": \"PostPilot\"\n}","options":{"raw":{"language":"json"}}}},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"PLAN_REQUIRED\",\n    \"message\": \"Your workspace plan does not permit API access.\",\n    \"category\": \"PERMISSION\",\n    \"httpStatus\": 403,\n    \"retryable\": false,\n    \"suggestedAction\": \"Upgrade your plan to enable API access.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/PLAN_REQUIRED\",\n    \"details\": {\n      \"plan\": \"starter\"\n    }\n  }\n}"},{"name":"400 VALIDATION_FAILED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/applications","host":["{{baseUrl}}"],"path":["v1","applications"]},"body":{"mode":"raw","raw":"{\n  \"name\": \"PostPilot\"\n}","options":{"raw":{"language":"json"}}}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"VALIDATION_FAILED\",\n    \"message\": \"One or more request fields failed validation.\",\n    \"category\": \"VALIDATION\",\n    \"httpStatus\": 400,\n    \"retryable\": false,\n    \"suggestedAction\": \"Fix the fields listed in details.errors and retry.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/VALIDATION_FAILED\",\n    \"details\": {\n      \"errors\": [\n        {\n          \"field\": \"scheduledAt\",\n          \"message\": \"Must be an ISO 8601 datetime in the future.\"\n        }\n      ]\n    }\n  }\n}"},{"name":"409 APPLICATION_NAME_TAKEN","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/applications","host":["{{baseUrl}}"],"path":["v1","applications"]},"body":{"mode":"raw","raw":"{\n  \"name\": \"PostPilot\"\n}","options":{"raw":{"language":"json"}}}},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"APPLICATION_NAME_TAKEN\",\n    \"message\": \"An application with this name already exists in this workspace.\",\n    \"category\": \"CONFLICT\",\n    \"httpStatus\": 409,\n    \"retryable\": false,\n    \"suggestedAction\": \"Use the existing application (details.applicationId), or choose another name.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/APPLICATION_NAME_TAKEN\",\n    \"details\": {\n      \"applicationId\": \"app_01abc\"\n    }\n  }\n}"},{"name":"429 RATE_LIMITED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/applications","host":["{{baseUrl}}"],"path":["v1","applications"]},"body":{"mode":"raw","raw":"{\n  \"name\": \"PostPilot\"\n}","options":{"raw":{"language":"json"}}}},"status":"Too Many Requests","code":429,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"RATE_LIMITED\",\n    \"message\": \"Too many requests. Slow down and retry after the Retry-After interval.\",\n    \"category\": \"RATE_LIMIT\",\n    \"httpStatus\": 429,\n    \"retryable\": true,\n    \"suggestedAction\": \"Wait for the Retry-After header value before retrying.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/RATE_LIMITED\",\n    \"details\": {\n      \"limit\": 60,\n      \"remaining\": 0\n    }\n  }\n}"},{"name":"500 INTERNAL","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/applications","host":["{{baseUrl}}"],"path":["v1","applications"]},"body":{"mode":"raw","raw":"{\n  \"name\": \"PostPilot\"\n}","options":{"raw":{"language":"json"}}}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"INTERNAL\",\n    \"message\": \"An unexpected error occurred.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 500,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry with backoff. If it keeps failing, contact support with the requestId.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/INTERNAL\",\n    \"details\": {}\n  }\n}"},{"name":"503 SERVICE_OVERLOADED","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/applications","host":["{{baseUrl}}"],"path":["v1","applications"]},"body":{"mode":"raw","raw":"{\n  \"name\": \"PostPilot\"\n}","options":{"raw":{"language":"json"}}}},"status":"Service Unavailable","code":503,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"X-Request-Id","value":"req_01J0A2B3C4D5E6F7G8H9JKMNPQ"}],"body":"{\n  \"error\": {\n    \"code\": \"SERVICE_OVERLOADED\",\n    \"message\": \"The API is at capacity and refused this request before doing any work.\",\n    \"category\": \"INTERNAL\",\n    \"httpStatus\": 503,\n    \"retryable\": true,\n    \"suggestedAction\": \"Retry after the Retry-After interval, with backoff. Nothing was changed.\",\n    \"requestId\": \"req_01J0A2B3C4D5E6F7G8H9JKMNPQ\",\n    \"docUrl\": \"https://platform.luftsocial.com/errors/SERVICE_OVERLOADED\",\n    \"details\": {}\n  }\n}"}],"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('Returns 201 Created', () => {","  pm.response.to.have.status(201);","});","if (pm.response.code === 201) {","  const schema = {\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\"},\"name\":{\"type\":\"string\"},\"redirectUrls\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"createdAt\":{\"type\":\"string\"}},\"required\":[\"id\",\"name\",\"redirectUrls\",\"createdAt\"]};","  pm.test('Body matches the documented schema', () => {","    pm.response.to.have.jsonSchema(schema);","  });","}"]}}]}]},{"name":"Negative tests","description":"Requests that must fail, and the error each one must return. Every one is refused before anything changes, so they run without `allowWrites`.\n\nFailed key checks count toward the per-IP limit (30 a minute). Do not loop these.\n\nNot automated here, because they need state or would change data: a `read` key on a write route (`403 PERMISSION_REQUIRED`), a key for selected clients on an account-wide route (`403 CLIENT_NOT_ALLOWED`), a revoked or expired key, reusing an `Idempotency-Key` with a different body (`409 IDEMPOTENCY_KEY_REUSED`, needs a real post), and the burst limit (`429 RATE_LIMITED`, needs 61 calls in a minute).","item":[{"name":"Negative: missing API key","request":{"method":"GET","description":"No Authorization header. ApiKeyAuthGuard answers 401 API_KEY_MISSING.","auth":{"type":"noauth"},"header":[],"url":{"raw":"{{baseUrl}}/v1/channels","host":["{{baseUrl}}"],"path":["v1","channels"]}},"response":[],"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('Returns 401', () => pm.response.to.have.status(401));","pm.test('error.code is API_KEY_MISSING', () => {","  pm.expect(pm.response.json().error.code).to.eql('API_KEY_MISSING');","});"]}}]},{"name":"Negative: invalid API key","request":{"method":"GET","description":"A key that matches no stored key. ApiKeyAuthGuard answers 401 API_KEY_INVALID.","auth":{"type":"bearer","bearer":[{"key":"token","value":"ls_sk_not_a_real_key_for_negative_testing_only","type":"string"}]},"header":[],"url":{"raw":"{{baseUrl}}/v1/channels","host":["{{baseUrl}}"],"path":["v1","channels"]}},"response":[],"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('Returns 401', () => pm.response.to.have.status(401));","pm.test('error.code is API_KEY_INVALID', () => {","  pm.expect(pm.response.json().error.code).to.eql('API_KEY_INVALID');","});"]}}]},{"name":"Negative: API key in the query string","request":{"method":"GET","description":"Keys are accepted only in the Authorization header. A query-string key is refused with 401 API_KEY_INVALID and is not logged.","auth":{"type":"noauth"},"header":[],"url":{"raw":"{{baseUrl}}/v1/channels?api_key=not-a-real-key","host":["{{baseUrl}}"],"path":["v1","channels"],"query":[{"key":"api_key","value":"not-a-real-key"}]}},"response":[],"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('Returns 401', () => pm.response.to.have.status(401));","pm.test('error.code is API_KEY_INVALID', () => {","  pm.expect(pm.response.json().error.code).to.eql('API_KEY_INVALID');","});"]}}]},{"name":"Negative: non-Bearer scheme","request":{"method":"GET","description":"An Authorization header with another scheme (Basic) is an invalid credential, not a missing one: 401 API_KEY_INVALID.","auth":{"type":"noauth"},"header":[{"key":"Authorization","value":"Basic bm90OmFrZXk="}],"url":{"raw":"{{baseUrl}}/v1/channels","host":["{{baseUrl}}"],"path":["v1","channels"]}},"response":[],"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('Returns 401', () => pm.response.to.have.status(401));","pm.test('error.code is API_KEY_INVALID', () => {","  pm.expect(pm.response.json().error.code).to.eql('API_KEY_INVALID');","});"]}}]},{"name":"Negative: wrong method","request":{"method":"DELETE","description":"DELETE on a path that only takes GET. Answers 405 METHOD_NOT_ALLOWED with the allowed methods in the Allow header and error.details.allow. Nothing runs.","header":[],"url":{"raw":"{{baseUrl}}/v1/status","host":["{{baseUrl}}"],"path":["v1","status"]}},"response":[],"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('Returns 405', () => pm.response.to.have.status(405));","pm.test('error.code is METHOD_NOT_ALLOWED', () => {","  pm.expect(pm.response.json().error.code).to.eql('METHOD_NOT_ALLOWED');","});"]}}]},{"name":"Negative: invalid limit","request":{"method":"GET","description":"limit must be a whole number from 1. limit=abc answers 400 VALIDATION_FAILED naming limit, instead of a default page.","header":[],"url":{"raw":"{{baseUrl}}/v1/posts?limit=abc","host":["{{baseUrl}}"],"path":["v1","posts"],"query":[{"key":"limit","value":"abc"}]}},"response":[],"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('Returns 400', () => pm.response.to.have.status(400));","pm.test('error.code is VALIDATION_FAILED', () => {","  pm.expect(pm.response.json().error.code).to.eql('VALIDATION_FAILED');","});"]}}]},{"name":"Negative: unknown route","request":{"method":"GET","description":"A path that does not exist answers 404 ROUTE_NOT_FOUND.","header":[],"url":{"raw":"{{baseUrl}}/v1/does-not-exist","host":["{{baseUrl}}"],"path":["v1","does-not-exist"]}},"response":[],"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('Returns 404', () => pm.response.to.have.status(404));","pm.test('error.code is ROUTE_NOT_FOUND', () => {","  pm.expect(pm.response.json().error.code).to.eql('ROUTE_NOT_FOUND');","});"]}}]},{"name":"Negative: unknown post","request":{"method":"GET","description":"A post id that does not exist, or belongs to another workspace or application, answers 404 POST_NOT_FOUND.","header":[],"url":{"raw":"{{baseUrl}}/v1/posts/post_00000000000000000000000000","host":["{{baseUrl}}"],"path":["v1","posts","post_00000000000000000000000000"]}},"response":[],"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('Returns 404', () => pm.response.to.have.status(404));","pm.test('error.code is POST_NOT_FOUND', () => {","  pm.expect(pm.response.json().error.code).to.eql('POST_NOT_FOUND');","});"]}}]},{"name":"Negative: client outside the workspace","request":{"method":"GET","description":"X-Client-Id names a client this workspace does not have. GET /v1/channels answers 404 CLIENT_NOT_FOUND, the same as for another workspace’s client.","header":[{"key":"X-Client-Id","value":"cli_00000000000000000000000000"}],"url":{"raw":"{{baseUrl}}/v1/channels","host":["{{baseUrl}}"],"path":["v1","channels"]}},"response":[],"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('Returns 404', () => pm.response.to.have.status(404));","pm.test('error.code is CLIENT_NOT_FOUND', () => {","  pm.expect(pm.response.json().error.code).to.eql('CLIENT_NOT_FOUND');","});"]}}]},{"name":"Negative: unknown field in body","request":{"method":"POST","description":"Preflight (read-only) with a field the API does not define. The validation pipe answers 400 VALIDATION_FAILED and names the field in error.details.errors.","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/posts/preflight","host":["{{baseUrl}}"],"path":["v1","posts","preflight"]},"body":{"mode":"raw","raw":"{\n  \"destinations\": [\n    {\n      \"channelId\": \"ch_does_not_exist\"\n    }\n  ],\n  \"notAField\": true\n}","options":{"raw":{"language":"json"}}}},"response":[],"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('Returns 400', () => pm.response.to.have.status(400));","pm.test('error.code is VALIDATION_FAILED', () => {","  pm.expect(pm.response.json().error.code).to.eql('VALIDATION_FAILED');","});"]}}]},{"name":"Negative: wrong field type","request":{"method":"POST","description":"Preflight (read-only) with destinations as a string instead of an array. Answers 400 VALIDATION_FAILED.","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/posts/preflight","host":["{{baseUrl}}"],"path":["v1","posts","preflight"]},"body":{"mode":"raw","raw":"{\n  \"destinations\": \"ch_does_not_exist\"\n}","options":{"raw":{"language":"json"}}}},"response":[],"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('Returns 400', () => pm.response.to.have.status(400));","pm.test('error.code is VALIDATION_FAILED', () => {","  pm.expect(pm.response.json().error.code).to.eql('VALIDATION_FAILED');","});"]}}]},{"name":"Negative: publish without Idempotency-Key","request":{"method":"POST","description":"POST /v1/posts with no Idempotency-Key is refused with 400 VALIDATION_FAILED (field Idempotency-Key) before anything is stored or queued. Needs a write key; a read key gets 403 PERMISSION_REQUIRED first. The channel id does not exist, so nothing could publish.","header":[{"key":"Content-Type","value":"application/json"}],"url":{"raw":"{{baseUrl}}/v1/posts","host":["{{baseUrl}}"],"path":["v1","posts"]},"body":{"mode":"raw","raw":"{\n  \"caption\": \"Negative test: never published\",\n  \"destinations\": [\n    {\n      \"channelId\": \"ch_does_not_exist\"\n    }\n  ]\n}","options":{"raw":{"language":"json"}}}},"response":[],"event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('Returns 400', () => pm.response.to.have.status(400));","pm.test('error.code is VALIDATION_FAILED', () => {","  pm.expect(pm.response.json().error.code).to.eql('VALIDATION_FAILED');","});"]}}]}]}]}