# LuidGPT

> Run LuidGPT's AI models, check your credits, and draft, schedule and publish social posts.

App · 21 actions. Web page: https://docs.lodol.com/docs/integrations/luidgpt

## Actions

### Add social post to queue

Put a post in each channel's next free posting time, when it is published on the real channels.

**Inputs**

- Post (`id`, text, required): The post. Pick one, or enter its ID.
- Workspace ID (`workspace_id`, text): The ID of a LuidGPT workspace you are a member of, to act in it. Leave empty for your personal space.

**Outputs**

- `data` (object): The response from LuidGPT.

**Example output**

```json
{
  "data": {
    "data": {
      "approval": {
        "canDecide": true,
        "comment": "Looks good.",
        "decidedAt": "2026-12-23T10:00:00.000Z",
        "decidedBy": "1a2b3c4d-0000-4000-8000-000000000002",
        "requestedAt": "2026-12-23T09:00:00.000Z",
        "status": "pending"
      },
      "authorId": "1a2b3c4d-0000-4000-8000-000000000001",
      "id": "6f1b6a52-8f0e-4a39-9a43-0d9f2f0c1a11",
      "mediaUrls": [
        "https://files.example.com/menu.png"
      ],
      "mine": true,
      "needsCheck": false,
      "publishedAt": "2026-12-24T08:00:03.000Z",
      "scheduledAt": "2026-12-24T08:00:00.000Z",
      "status": "scheduled",
      "targets": [
        {
          "accountId": "9c2d3e4f-5a6b-4c7d-8e9f-0a1b2c3d4e5f",
          "errorCode": "TOKEN_EXPIRED",
          "id": "2b3c4d5e-0000-4000-8000-000000000003",
          "locked": false,
          "permalink": "https://www.linkedin.com/feed/update/urn:li:share:1",
          "platform": "linkedin",
          "publishedAt": "2026-12-24T08:00:03.000Z",
          "scheduledAt": "2026-12-24T08:00:00.000Z",
          "status": "scheduled",
          "text": "Our winter menu is out. #food"
        }
      ],
      "text": "Our winter menu is out."
    },
    "success": true
  }
}
```

### Approve social post

Approve a post waiting for your approval, so it goes out as scheduled.

**Inputs**

- Post (`id`, text, required): The post. Pick one, or enter its ID.
- Workspace ID (`workspace_id`, text): The ID of a LuidGPT workspace you are a member of, to act in it. Leave empty for your personal space.
- Version (`version`, date and time, required): The post's approval requested-at time as you last read it; LuidGPT refuses if the post changed since.
- Comment (`comment`, text): A note for the author.

**Outputs**

- `data` (object): The response from LuidGPT.

**Example output**

```json
{
  "data": {
    "data": {
      "approval": {
        "canDecide": true,
        "comment": "Looks good.",
        "decidedAt": "2026-12-23T10:00:00.000Z",
        "decidedBy": "1a2b3c4d-0000-4000-8000-000000000002",
        "requestedAt": "2026-12-23T09:00:00.000Z",
        "status": "pending"
      },
      "authorId": "1a2b3c4d-0000-4000-8000-000000000001",
      "id": "6f1b6a52-8f0e-4a39-9a43-0d9f2f0c1a11",
      "mediaUrls": [
        "https://files.example.com/menu.png"
      ],
      "mine": true,
      "needsCheck": false,
      "publishedAt": "2026-12-24T08:00:03.000Z",
      "scheduledAt": "2026-12-24T08:00:00.000Z",
      "status": "scheduled",
      "targets": [
        {
          "accountId": "9c2d3e4f-5a6b-4c7d-8e9f-0a1b2c3d4e5f",
          "errorCode": "TOKEN_EXPIRED",
          "id": "2b3c4d5e-0000-4000-8000-000000000003",
          "locked": false,
          "permalink": "https://www.linkedin.com/feed/update/urn:li:share:1",
          "platform": "linkedin",
          "publishedAt": "2026-12-24T08:00:03.000Z",
          "scheduledAt": "2026-12-24T08:00:00.000Z",
          "status": "scheduled",
          "text": "Our winter menu is out. #food"
        }
      ],
      "text": "Our winter menu is out."
    },
    "success": true
  }
}
```

### Cancel scheduled post

Take a scheduled post back to a draft, withdrawing any approval request.

**Inputs**

- Post (`id`, text, required): The post. Pick one, or enter its ID.
- Workspace ID (`workspace_id`, text): The ID of a LuidGPT workspace you are a member of, to act in it. Leave empty for your personal space.

**Outputs**

- `data` (object): The response from LuidGPT.

**Example output**

```json
{
  "data": {
    "data": {
      "approval": {
        "canDecide": true,
        "comment": "Looks good.",
        "decidedAt": "2026-12-23T10:00:00.000Z",
        "decidedBy": "1a2b3c4d-0000-4000-8000-000000000002",
        "requestedAt": "2026-12-23T09:00:00.000Z",
        "status": "pending"
      },
      "authorId": "1a2b3c4d-0000-4000-8000-000000000001",
      "id": "6f1b6a52-8f0e-4a39-9a43-0d9f2f0c1a11",
      "mediaUrls": [
        "https://files.example.com/menu.png"
      ],
      "mine": true,
      "needsCheck": false,
      "publishedAt": "2026-12-24T08:00:03.000Z",
      "scheduledAt": "2026-12-24T08:00:00.000Z",
      "status": "scheduled",
      "targets": [
        {
          "accountId": "9c2d3e4f-5a6b-4c7d-8e9f-0a1b2c3d4e5f",
          "errorCode": "TOKEN_EXPIRED",
          "id": "2b3c4d5e-0000-4000-8000-000000000003",
          "locked": false,
          "permalink": "https://www.linkedin.com/feed/update/urn:li:share:1",
          "platform": "linkedin",
          "publishedAt": "2026-12-24T08:00:03.000Z",
          "scheduledAt": "2026-12-24T08:00:00.000Z",
          "status": "scheduled",
          "text": "Our winter menu is out. #food"
        }
      ],
      "text": "Our winter menu is out."
    },
    "success": true
  }
}
```

### Create social post

Create a draft post for one or more channels; nothing is published.

**Inputs**

- Workspace ID (`workspace_id`, text): The ID of a LuidGPT workspace you are a member of, to act in it. Leave empty for your personal space.
- Request ID (`idempotency_key`, text, required): Any text unique to this post, such as order-1042, using letters, digits, dots, underscores, colons and hyphens. Sending the same request ID again returns the first result instead of doing it twice.
- Text (`text`, text): The post's text.
- Media links (`mediaUrls`, list): Up to 4 links to images or videos you uploaded or made in LuidGPT, such as a run's output links.
- Channels (`targets`, list, required): The channels to post to, 1 to 20. Give each the accountId of a channel from List social channels, and its own text if it should differ.

**Outputs**

- `data` (object): The response from LuidGPT.

**Example output**

```json
{
  "data": {
    "data": {
      "approval": {
        "canDecide": true,
        "comment": "Looks good.",
        "decidedAt": "2026-12-23T10:00:00.000Z",
        "decidedBy": "1a2b3c4d-0000-4000-8000-000000000002",
        "requestedAt": "2026-12-23T09:00:00.000Z",
        "status": "pending"
      },
      "authorId": "1a2b3c4d-0000-4000-8000-000000000001",
      "id": "6f1b6a52-8f0e-4a39-9a43-0d9f2f0c1a11",
      "mediaUrls": [
        "https://files.example.com/menu.png"
      ],
      "mine": true,
      "needsCheck": false,
      "publishedAt": "2026-12-24T08:00:03.000Z",
      "scheduledAt": "2026-12-24T08:00:00.000Z",
      "status": "scheduled",
      "targets": [
        {
          "accountId": "9c2d3e4f-5a6b-4c7d-8e9f-0a1b2c3d4e5f",
          "errorCode": "TOKEN_EXPIRED",
          "id": "2b3c4d5e-0000-4000-8000-000000000003",
          "locked": false,
          "permalink": "https://www.linkedin.com/feed/update/urn:li:share:1",
          "platform": "linkedin",
          "publishedAt": "2026-12-24T08:00:03.000Z",
          "scheduledAt": "2026-12-24T08:00:00.000Z",
          "status": "scheduled",
          "text": "Our winter menu is out. #food"
        }
      ],
      "text": "Our winter menu is out."
    },
    "success": true
  }
}
```

### Delete social post

Delete a post; copies already published on the platforms stay.

**Inputs**

- Post (`id`, text, required): The post. Pick one, or enter its ID.
- Workspace ID (`workspace_id`, text): The ID of a LuidGPT workspace you are a member of, to act in it. Leave empty for your personal space.

**Outputs**

- `data` (object): The response from LuidGPT.

**Example output**

```json
{
  "data": {
    "data": {
      "id": "6f1b6a52-8f0e-4a39-9a43-0d9f2f0c1a11"
    },
    "success": true
  }
}
```

### Get API key details

Get what the connected API key may do: its scopes, credit caps and rate limits.

**Inputs**: None.

**Outputs**

- `data` (object): The response from LuidGPT.

**Example output**

```json
{
  "data": {
    "data": {
      "createdAt": "2026-11-01T09:00:00.000Z",
      "dailyCreditCap": 100,
      "expiresAt": "2027-06-01T00:00:00.000Z",
      "id": "5e6f7a8b-0000-4000-8000-000000000004",
      "lastUsedAt": "2026-12-01T09:00:00.000Z",
      "maxInFlight": 3,
      "name": "Lodol",
      "perRunCreditCap": 20,
      "prefix": "lgk_ab12",
      "rateLimitPerMin": 30,
      "scopes": [
        "catalog:read"
      ]
    },
    "success": true
  }
}
```

### Get credits

Get your credit balance and how much of the key's daily cap is left.

**Inputs**: None.

**Outputs**

- `data` (object): The response from LuidGPT.

**Example output**

```json
{
  "data": {
    "data": {
      "balance": {
        "promotional": 20,
        "purchased": 60,
        "subscription": 400,
        "total": 480
      },
      "dailyCapRemaining": 88,
      "dailyCreditCap": 100,
      "spentToday": 12
    },
    "success": true
  }
}
```

### Get model

Get one model with its price and the inputs a run of it takes.

**Inputs**

- Model owner (`owner`, text, required): The part of the model's ID before the slash, such as black-forest-labs.
- Model name (`name`, text, required): The part of the model's ID after the slash, such as flux-schnell.

**Outputs**

- `data` (object): The response from LuidGPT.

**Example output**

```json
{
  "data": {
    "data": {
      "category": {
        "name": "Image",
        "slug": "image"
      },
      "creditCost": 1,
      "description": "Fast image generation from a prompt.",
      "estimatedSeconds": 5,
      "exampleOutputs": [
        "https://files.example.com/example.png"
      ],
      "id": "black-forest-labs/flux-schnell",
      "inputSchema": {
        "properties": {
          "prompt": {
            "type": "string"
          }
        },
        "required": [
          "prompt"
        ],
        "type": "object"
      },
      "links": {
        "self": "/api/v1/models/black-forest-labs/flux-schnell"
      },
      "maxResolution": "1440x1440",
      "name": "FLUX Schnell",
      "outputType": "image",
      "provider": "Black Forest Labs",
      "supportedFeatures": [
        "aspect_ratio"
      ],
      "tasks": [
        "text-to-image"
      ],
      "thumbnailUrl": "https://files.example.com/flux-schnell.png",
      "tier": "fast"
    },
    "success": true
  }
}
```

### Get run

Get a run's status and, once it completes, links to its output or its text.

**Inputs**

- Run ID (`id`, text, required): The run's ID, from Start run or List runs.

**Outputs**

- `data` (object): The response from LuidGPT.

**Example output**

```json
{
  "data": {
    "data": {
      "completedAt": "2026-12-01T09:00:05.000Z",
      "createdAt": "2026-12-01T09:00:00.000Z",
      "creditsCharged": 1,
      "error": {
        "code": "RUN_FAILED",
        "message": "The model returned an error."
      },
      "estimatedCredits": 1,
      "executionTimeMs": 4800,
      "id": "3b241101-e2bb-4255-8caf-4136c566a962",
      "model": "black-forest-labs/flux-schnell",
      "outputText": "A red bicycle leaning on a wall.",
      "outputUrls": [
        "https://files.example.com/output.png"
      ],
      "status": "completed"
    },
    "success": true
  }
}
```

### Get social post

Get one post with each channel's status, link and error, and its approval.

**Inputs**

- Post (`id`, text, required): The post. Pick one, or enter its ID.
- Workspace ID (`workspace_id`, text): The ID of a LuidGPT workspace you are a member of, to act in it. Leave empty for your personal space.

**Outputs**

- `data` (object): The response from LuidGPT.

**Example output**

```json
{
  "data": {
    "data": {
      "approval": {
        "canDecide": true,
        "comment": "Looks good.",
        "decidedAt": "2026-12-23T10:00:00.000Z",
        "decidedBy": "1a2b3c4d-0000-4000-8000-000000000002",
        "requestedAt": "2026-12-23T09:00:00.000Z",
        "status": "pending"
      },
      "authorId": "1a2b3c4d-0000-4000-8000-000000000001",
      "id": "6f1b6a52-8f0e-4a39-9a43-0d9f2f0c1a11",
      "mediaUrls": [
        "https://files.example.com/menu.png"
      ],
      "mine": true,
      "needsCheck": false,
      "publishedAt": "2026-12-24T08:00:03.000Z",
      "scheduledAt": "2026-12-24T08:00:00.000Z",
      "status": "scheduled",
      "targets": [
        {
          "accountId": "9c2d3e4f-5a6b-4c7d-8e9f-0a1b2c3d4e5f",
          "errorCode": "TOKEN_EXPIRED",
          "id": "2b3c4d5e-0000-4000-8000-000000000003",
          "locked": false,
          "permalink": "https://www.linkedin.com/feed/update/urn:li:share:1",
          "platform": "linkedin",
          "publishedAt": "2026-12-24T08:00:03.000Z",
          "scheduledAt": "2026-12-24T08:00:00.000Z",
          "status": "scheduled",
          "text": "Our winter menu is out. #food"
        }
      ],
      "text": "Our winter menu is out."
    },
    "success": true
  }
}
```

### List categories

List LuidGPT's model categories with model counts and prices.

**Inputs**: None.

**Outputs**

- `data` (object): The response from LuidGPT.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "description": "Make and edit images.",
        "iconEmoji": "\ud83d\uddbc\ufe0f",
        "maxCredits": 12,
        "minCredits": 1,
        "modelCount": 120,
        "name": "Image",
        "outputType": "image",
        "slug": "image"
      }
    ],
    "success": true
  }
}
```

### List models

List one page of LuidGPT's models with what a run of each costs, featured first.

**Inputs**

- Task (`task`, text): Only models that do this task.
- Category (`category`, text): Only models in this category.
- Search (`q`, text): Only models whose name, description or ID contains this.
- Page (`page`, number): Which page to read, starting at 1. From 1 to 1000.
- Page size (`limit`, number): How many models a page holds, up to 100. LuidGPT's default is 50. From 1 to 100.

**Outputs**

- `data` (object): The response from LuidGPT.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "category": {
          "name": "Image",
          "slug": "image"
        },
        "creditCost": 1,
        "description": "Fast image generation from a prompt.",
        "estimatedSeconds": 5,
        "id": "black-forest-labs/flux-schnell",
        "links": {
          "self": "/api/v1/models/black-forest-labs/flux-schnell"
        },
        "name": "FLUX Schnell",
        "provider": "Black Forest Labs",
        "tasks": [
          "text-to-image"
        ],
        "thumbnailUrl": "https://files.example.com/flux-schnell.png",
        "tier": "fast"
      }
    ],
    "pagination": {
      "limit": 50,
      "page": 1,
      "pages": 1,
      "total": 1
    },
    "success": true
  }
}
```

### List runs

List the runs started through the API with any of your keys, newest first.

**Inputs**

- Page size (`limit`, number): How many runs to list, up to 100. LuidGPT's default is 20. From 1 to 100.
- After run (`starting_after`, text): The ID of the last run of the page before, to read the page after it.

**Outputs**

- `data` (object): The response from LuidGPT.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "apiKeyId": "5e6f7a8b-0000-4000-8000-000000000004",
        "completedAt": "2026-12-01T09:00:05.000Z",
        "createdAt": "2026-12-01T09:00:00.000Z",
        "creditsCharged": 1,
        "error": {
          "code": "RUN_FAILED",
          "message": "The model returned an error."
        },
        "id": "3b241101-e2bb-4255-8caf-4136c566a962",
        "model": "black-forest-labs/flux-schnell",
        "status": "completed"
      }
    ],
    "hasMore": false,
    "success": true
  }
}
```

### List social channels

List the social channels connected in LuidGPT, with their IDs and status.

**Inputs**

- Workspace ID (`workspace_id`, text): The ID of a LuidGPT workspace you are a member of, to act in it. Leave empty for your personal space.

**Outputs**

- `data` (object): The response from LuidGPT.

**Example output**

```json
{
  "data": {
    "data": {
      "channels": [
        {
          "id": "9c2d3e4f-5a6b-4c7d-8e9f-0a1b2c3d4e5f",
          "name": "Northwind on LinkedIn",
          "platform": "linkedin",
          "status": "active"
        }
      ],
      "workspace": {
        "id": "7d8e9f0a-0000-4000-8000-000000000005",
        "timezone": "Europe/Berlin"
      }
    },
    "success": true
  }
}
```

### List social posts

List posts newest first, or the posts planned or published between two times.

**Inputs**

- Workspace ID (`workspace_id`, text): The ID of a LuidGPT workspace you are a member of, to act in it. Leave empty for your personal space.
- Status (`status`, text): Only posts with this status. One of: `draft`, `scheduled`, `published`, `failed`, `needs_check` (Needs a check), `pending_approval` (Waiting for approval).
- Channel status (`targetStatus`, text): Only posts with a channel in this status. One of: `draft`, `scheduled`, `pending_approval` (Waiting for approval), `publishing`, `published`, `needs_check` (Needs a check), `failed`, `cancelled`.
- Channels (`accountId`, list): Only posts to these channels, by ID.
- From (`from`, date and time): With To, only posts planned or published from this time, earliest first. At most 62 days before To.
- To (`to`, date and time): With From, only posts planned or published before this time.
- Page size (`limit`, number): How many posts to list: up to 100, or up to 500 between From and To. LuidGPT's default is 50. From 1 to 500.
- Skip (`offset`, number): How many posts to skip, to read the next page. At least 0.

**Outputs**

- `data` (object): The response from LuidGPT.

**Example output**

```json
{
  "data": {
    "data": {
      "limit": 50,
      "offset": 0,
      "posts": [
        {
          "approval": {
            "canDecide": true,
            "comment": "Looks good.",
            "decidedAt": "2026-12-23T10:00:00.000Z",
            "decidedBy": "1a2b3c4d-0000-4000-8000-000000000002",
            "requestedAt": "2026-12-23T09:00:00.000Z",
            "status": "pending"
          },
          "authorId": "1a2b3c4d-0000-4000-8000-000000000001",
          "id": "6f1b6a52-8f0e-4a39-9a43-0d9f2f0c1a11",
          "mediaUrls": [
            "https://files.example.com/menu.png"
          ],
          "mine": true,
          "needsCheck": false,
          "publishedAt": "2026-12-24T08:00:03.000Z",
          "scheduledAt": "2026-12-24T08:00:00.000Z",
          "status": "scheduled",
          "targets": [
            {
              "accountId": "9c2d3e4f-5a6b-4c7d-8e9f-0a1b2c3d4e5f",
              "errorCode": "TOKEN_EXPIRED",
              "id": "2b3c4d5e-0000-4000-8000-000000000003",
              "locked": false,
              "permalink": "https://www.linkedin.com/feed/update/urn:li:share:1",
              "platform": "linkedin",
              "publishedAt": "2026-12-24T08:00:03.000Z",
              "scheduledAt": "2026-12-24T08:00:00.000Z",
              "status": "scheduled",
              "text": "Our winter menu is out. #food"
            }
          ],
          "text": "Our winter menu is out."
        }
      ],
      "total": 1
    },
    "success": true
  }
}
```

### List tasks

List what LuidGPT's models can do, such as text-to-image, with model counts and prices.

**Inputs**: None.

**Outputs**

- `data` (object): The response from LuidGPT.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "categories": [
          "image"
        ],
        "id": "text-to-image",
        "maxCredits": 12,
        "minCredits": 1,
        "modelCount": 42,
        "topModels": [
          {
            "id": "black-forest-labs/flux-schnell"
          }
        ]
      }
    ],
    "success": true
  }
}
```

### Publish social post now

Publish a post on its real channels right away.

**Inputs**

- Post (`id`, text, required): The post. Pick one, or enter its ID.
- Workspace ID (`workspace_id`, text): The ID of a LuidGPT workspace you are a member of, to act in it. Leave empty for your personal space.
- Request ID (`idempotency_key`, text, required): Any text unique to this publishing, such as order-1042, using letters, digits, dots, underscores, colons and hyphens. Sending the same request ID again returns the first result instead of doing it twice.

**Outputs**

- `data` (object): The response from LuidGPT.

**Example output**

```json
{
  "data": {
    "data": {
      "approval": {
        "canDecide": true,
        "comment": "Looks good.",
        "decidedAt": "2026-12-23T10:00:00.000Z",
        "decidedBy": "1a2b3c4d-0000-4000-8000-000000000002",
        "requestedAt": "2026-12-23T09:00:00.000Z",
        "status": "pending"
      },
      "attempted": [
        "2b3c4d5e-0000-4000-8000-000000000003"
      ],
      "authorId": "1a2b3c4d-0000-4000-8000-000000000001",
      "id": "6f1b6a52-8f0e-4a39-9a43-0d9f2f0c1a11",
      "mediaUrls": [
        "https://files.example.com/menu.png"
      ],
      "mine": true,
      "needsCheck": false,
      "publishedAt": "2026-12-24T08:00:03.000Z",
      "scheduledAt": "2026-12-24T08:00:00.000Z",
      "status": "scheduled",
      "targets": [
        {
          "accountId": "9c2d3e4f-5a6b-4c7d-8e9f-0a1b2c3d4e5f",
          "errorCode": "TOKEN_EXPIRED",
          "id": "2b3c4d5e-0000-4000-8000-000000000003",
          "locked": false,
          "permalink": "https://www.linkedin.com/feed/update/urn:li:share:1",
          "platform": "linkedin",
          "publishedAt": "2026-12-24T08:00:03.000Z",
          "scheduledAt": "2026-12-24T08:00:00.000Z",
          "status": "scheduled",
          "text": "Our winter menu is out. #food"
        }
      ],
      "text": "Our winter menu is out."
    },
    "success": true
  }
}
```

### Schedule social post

Schedule a post to be published on its real channels at a time you choose.

**Inputs**

- Post (`id`, text, required): The post. Pick one, or enter its ID.
- Workspace ID (`workspace_id`, text): The ID of a LuidGPT workspace you are a member of, to act in it. Leave empty for your personal space.
- Request ID (`idempotency_key`, text, required): Any text unique to this scheduling, such as order-1042, using letters, digits, dots, underscores, colons and hyphens. Sending the same request ID again returns the first result instead of doing it twice.
- Publish at (`scheduledAt`, date and time, required): When to publish it. Must be in the future.

**Outputs**

- `data` (object): The response from LuidGPT.

**Example output**

```json
{
  "data": {
    "data": {
      "approval": {
        "canDecide": true,
        "comment": "Looks good.",
        "decidedAt": "2026-12-23T10:00:00.000Z",
        "decidedBy": "1a2b3c4d-0000-4000-8000-000000000002",
        "requestedAt": "2026-12-23T09:00:00.000Z",
        "status": "pending"
      },
      "authorId": "1a2b3c4d-0000-4000-8000-000000000001",
      "id": "6f1b6a52-8f0e-4a39-9a43-0d9f2f0c1a11",
      "mediaUrls": [
        "https://files.example.com/menu.png"
      ],
      "mine": true,
      "needsCheck": false,
      "publishedAt": "2026-12-24T08:00:03.000Z",
      "scheduledAt": "2026-12-24T08:00:00.000Z",
      "status": "scheduled",
      "targets": [
        {
          "accountId": "9c2d3e4f-5a6b-4c7d-8e9f-0a1b2c3d4e5f",
          "errorCode": "TOKEN_EXPIRED",
          "id": "2b3c4d5e-0000-4000-8000-000000000003",
          "locked": false,
          "permalink": "https://www.linkedin.com/feed/update/urn:li:share:1",
          "platform": "linkedin",
          "publishedAt": "2026-12-24T08:00:03.000Z",
          "scheduledAt": "2026-12-24T08:00:00.000Z",
          "status": "scheduled",
          "text": "Our winter menu is out. #food"
        }
      ],
      "text": "Our winter menu is out."
    },
    "success": true
  }
}
```

### Send post back for changes

Send a post waiting for approval back to its author with what to change.

**Inputs**

- Post (`id`, text, required): The post. Pick one, or enter its ID.
- Workspace ID (`workspace_id`, text): The ID of a LuidGPT workspace you are a member of, to act in it. Leave empty for your personal space.
- Comment (`comment`, text, required): What the author should change.
- Version (`version`, date and time): The post's approval requested-at time as you last read it. If given, LuidGPT refuses when the post changed since.

**Outputs**

- `data` (object): The response from LuidGPT.

**Example output**

```json
{
  "data": {
    "data": {
      "approval": {
        "canDecide": true,
        "comment": "Looks good.",
        "decidedAt": "2026-12-23T10:00:00.000Z",
        "decidedBy": "1a2b3c4d-0000-4000-8000-000000000002",
        "requestedAt": "2026-12-23T09:00:00.000Z",
        "status": "pending"
      },
      "authorId": "1a2b3c4d-0000-4000-8000-000000000001",
      "id": "6f1b6a52-8f0e-4a39-9a43-0d9f2f0c1a11",
      "mediaUrls": [
        "https://files.example.com/menu.png"
      ],
      "mine": true,
      "needsCheck": false,
      "publishedAt": "2026-12-24T08:00:03.000Z",
      "scheduledAt": "2026-12-24T08:00:00.000Z",
      "status": "scheduled",
      "targets": [
        {
          "accountId": "9c2d3e4f-5a6b-4c7d-8e9f-0a1b2c3d4e5f",
          "errorCode": "TOKEN_EXPIRED",
          "id": "2b3c4d5e-0000-4000-8000-000000000003",
          "locked": false,
          "permalink": "https://www.linkedin.com/feed/update/urn:li:share:1",
          "platform": "linkedin",
          "publishedAt": "2026-12-24T08:00:03.000Z",
          "scheduledAt": "2026-12-24T08:00:00.000Z",
          "status": "scheduled",
          "text": "Our winter menu is out. #food"
        }
      ],
      "text": "Our winter menu is out."
    },
    "success": true
  }
}
```

### Start run

Start a run of a model; it finishes in the background and spends credits only if it completes.

**Inputs**

- Model (`model`, text, required): The model to run. Pick one, or enter its ID, such as black-forest-labs/flux-schnell.
- Input (`input`, object, required): The model's inputs, such as {"prompt": "a red bicycle"}. Get model shows the inputs it takes.
- Request ID (`idempotency_key`, text, required): Any text unique to this run, such as order-1042, using letters, digits, dots, underscores, colons and hyphens. Sending the same request ID again returns the first result instead of doing it twice.

**Outputs**

- `data` (object): The response from LuidGPT.

**Example output**

```json
{
  "data": {
    "data": {
      "estimatedCredits": 1,
      "id": "3b241101-e2bb-4255-8caf-4136c566a962",
      "status": "pending"
    },
    "success": true
  }
}
```

### Write captions with AI

Write a caption for each channel with AI, sized to each platform; costs 4 credits and saves nothing.

**Inputs**

- Workspace ID (`workspace_id`, text): The ID of a LuidGPT workspace you are a member of, to act in it. Leave empty for your personal space.
- Channels (`accountIds`, list, required): The IDs of 1 to 10 channels to write for, from List social channels.
- Tone (`tone`, text, required): How the captions should sound. One of: `friendly`, `professional`, `playful`.
- Language (`language`, text, required): The language to write in. One of: `en` (English), `de` (German), `fr` (French), `es` (Spanish), `it` (Italian), `nl` (Dutch).
- About (`text`, text): What the post is about, or a draft to rewrite.
- Hashtags (`hashtags`, true/false): Whether to add hashtags.

**Outputs**

- `data` (object): The response from LuidGPT.

**Example output**

```json
{
  "data": {
    "data": {
      "creditsUsed": 4,
      "drafts": [
        {
          "accountId": "9c2d3e4f-5a6b-4c7d-8e9f-0a1b2c3d4e5f",
          "count": 58,
          "max": 3000,
          "platform": "linkedin",
          "text": "Our winter menu is here: slow-cooked stews and fresh bread.",
          "trimmed": false
        }
      ]
    },
    "success": true
  }
}
```
