The Apps API is in beta. Its endpoints and responses may change.
Prerequisites
- A personal API key. See Authentication 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 asapp_id.
To get your app ID:
- Go to app.base44.com.
- Open your app in the app editor.
- Copy the app ID from the editor URL:
"https://app.base44.com/apps/<app_id>/editor".
The flow
The endpoints run in order, and most of them fail with a 409 when the app has not reached the stage they need.- Start social content flow analyzes the app and returns 2 or 3 questions.
- Submit answers turns your answers into a content strategy.
- Refine content strategy rewrites that strategy from your feedback, as many times as you need.
- Generate content plan writes the posts for every platform you approved.
- Refine a post and Update post content change a single post, and Generate a post image makes its image.
stage of idle rather than a 404. Reset social content flow clears everything so you can start over.
From the calendar to a published post
List scheduled posts returns the whole calendar, so the posts a generated content plan produced sit alongside the ones you add with Create scheduled post. A post moves through the calendar in three steps:- It starts as a
proposal, which puts it on the calendar without publishing anything. - Approve scheduled posts moves the ones you pick to
scheduled. Approving is a selection rather than a publish, so one unusable ID never discards the rest. - Start scheduling posts hands the approved posts to the publisher, and each one goes out at its own scheduled time.
job_id, and Get scheduling job reports how it went. Poll it until status is completed or failed. Starting a second time for the same app fails with a 409 while the first is still starting.
Base44 can publish to Instagram and LinkedIn only. Posts generated for other platforms stay on the calendar for you to use elsewhere.
Generation is slow, and images finish later
Generate content plan 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 after the call returns to pick up the remainingimage_url values as they finish.