Share feedback, ideas and get community help

Updated 5 months ago

Problem Publishing the Bot

At a glance

The community member is having an issue publishing a bot via the API. The publication seems successful, but the 'publicId' field is not being returned in the response, which means the bot is not publicly accessible. The community member has checked the "isPublic": true parameter and queried the publication status via the GET endpoint, but the publicId is still missing.

A comment from another community member suggests that the publish API route does not automatically set a publicId field. The community member needs to first update their typebot to have a publicId field and then publish it.

Useful resources
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