> ## Documentation Index
> Fetch the complete documentation index at: https://docs.base44.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Overview

> Generate social content that promotes an app

> [!NOTE]
>
> The Apps API is in beta. Its endpoints and responses may change.

These endpoints generate social content that promotes an app. Base44 reads the app, asks you a few questions about how you want to promote it, turns your answers into a content strategy, and writes a set of posts and images for each platform you approve.

## Prerequisites

* A personal access token. See [Authentication](https://docs.base44.com/developers/references/apps-api/get-started/authentication.md) to get one.
* An app you can edit, and workspace credit quota for the endpoints that charge.

## App ID

Endpoints that act on a specific app include the app's ID in the URL path as `app_id`.

**To get your app ID:**

1. Go to [app.base44.com](https://app.base44.com/).
2. Open your app in the app editor.
3. Copy the app ID from the editor URL, `"https://app.base44.com/apps/<app_id>/editor"`.

## Content plans

A content plan is a set of suggested posts for the app, one platform at a time, each with its own text and a recommended time to post it. [Generate content plan](https://docs.base44.com/api-reference/generate-content-plan.md) drafts one. A plan on its own is a draft, and generating one doesn't publish anything.

Refining the strategy or generating a new plan replaces the old one.

## Generate a content plan

The endpoints run in order, and most of them refuse to run when the app has not reached the stage they need.

1. [Start social content flow](https://docs.base44.com/api-reference/start-social-content-flow.md) analyzes the app and returns 2 or 3 questions.
2. [Submit answers](https://docs.base44.com/api-reference/submit-answers.md) turns your answers into a content strategy.
3. [Refine content strategy](https://docs.base44.com/api-reference/refine-content-strategy.md) rewrites that strategy from your feedback, as many times as you need.
4. [Generate content plan](https://docs.base44.com/api-reference/generate-content-plan.md) writes the posts for every platform you approved.
5. [Refine a post](https://docs.base44.com/api-reference/refine-a-post.md) and [Update post content](https://docs.base44.com/api-reference/update-post-content.md) change a single post, and [Generate a post image](https://docs.base44.com/api-reference/generate-a-post-image.md) makes its image.

[Get social content state](https://docs.base44.com/api-reference/get-social-content-state.md) returns where the app is at any point. An app that never started the flow reports a `stage` of `idle`, not an error. [Reset social content flow](https://docs.base44.com/api-reference/reset-social-content-flow.md) clears everything so you can start over.

> [!WARNING]
>
> Refining the strategy discards the app's existing content plan, including every post and every generated image. Refine before you generate a plan, not after.

### Generation timing

[Generate content plan](https://docs.base44.com/api-reference/generate-content-plan.md) runs the whole generation inline, one language model call per platform plus the first platform's images, so it can take **several minutes** with 3 platforms. Use a long client timeout.

Only the first platform's images are generated inline. Poll [Get social content state](https://docs.base44.com/api-reference/get-social-content-state.md) after the call returns to pick up the remaining `image_url` values as they finish.

## Credits

Generating a content plan typically costs \~10 credits. Refining a post and generating an image cost \~1 credit each. Reading state, updating a post's text, starting the flow, and working on the strategy cost nothing. An endpoint that charges refuses to run when the workspace is out of quota, and a reset does not refund credits already spent.

## Rate limits

The social content endpoints (the flow that generates a plan) share a limit of 15 requests per minute per app.

## Endpoints

* [Start social content flow](https://docs.base44.com/api-reference/start-social-content-flow.md): Start the flow. Base44 reads the app and asks a few questions.
* [Submit answers](https://docs.base44.com/api-reference/submit-answers.md): Answer the questions and get a content strategy to review.
* [Refine content strategy](https://docs.base44.com/api-reference/refine-content-strategy.md): Rewrite the strategy from your feedback.
* [Generate content plan](https://docs.base44.com/api-reference/generate-content-plan.md): Generate a set of posts for each platform you approve.
* [Get social content state](https://docs.base44.com/api-reference/get-social-content-state.md): Read everything stored for the flow.
* [Update post content](https://docs.base44.com/api-reference/update-post-content.md): Replace a post's text with text you supply.
* [Refine a post](https://docs.base44.com/api-reference/refine-a-post.md): Rewrite one post from your request.
* [Generate a post image](https://docs.base44.com/api-reference/generate-a-post-image.md): Generate the image for one post.
* [Reset social content flow](https://docs.base44.com/api-reference/reset-social-content-flow.md): Clear the flow so you can start over.
* [Generate teaser posts](https://docs.base44.com/api-reference/generate-teaser-posts.md): Generate an Instagram post and a LinkedIn post from the app alone.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.