Share feedback, ideas and get community help

Updated 3 months ago

Problem Publishing the Bot

Hey guys! I'm having a problem when trying to publish a bot via API, and I would like to leave it with the published status. I'm using the following publishing endpoint:

POST URL:
https://app.typebot.io/api/v1/typebots/{typebotId}/publish

Response:
{
"message": "success"
}

The publication seems to be successful, but the 'publicId' field is not being returned in the response, which means that the bot is not publicly accessible. I've already checked the "isPublic": true parameter and queried the publication status via the GET endpoint, but the publicId is still missing.

Can you help me understand what might be wrong or if there are any additional steps I should take to complete the publication, generate the publicId and the published status?
B
1 comment
Indeed the publish API route does not automatically set a publicId field. You first need to update your typebot to have a publicId field and only then publish it.
Add a reply
Sign up and join the conversation on Discord