Request deploy approval

Changed on

<Info>This API is in beta. Endpoints, fields, and behavior may still change, so avoid depending on it in production.</Info>

Asks the owners and admins of the app's workspace to publish the app for you, with the visibility you want. Use it when your workspace's publishing policy doesn't let you deploy the app yourself.

Every active owner, and every admin allowed to publish, except you, gets an in-app notification and an email naming the app, the visibility you asked for, and your message. Base44 also records the request as pending until the app is published. The call doesn't publish anything or check whether you could have published the app yourself.

Repeating the request within 60 seconds notifies no one and returns deduped set to true. After that, the same request notifies the approvers again.

This is limited to 5 requests per minute per app for each workspace's personal API keys, so every key in a workspace shares one allowance. Some workspaces have a different limit.

<Note>This endpoint accepts a personal API key belonging to a user with editor access to the app. A read-only key is refused, and workspace API keys are not accepted.</Note>

post/api/apps/{app_id}/request-deploy

Request

  • Base URL: https://app.base44.com
  • URL: https://app.base44.com/api/apps/{app_id}/request-deploy
  • Auth: HTTP bearer

Path parameters

app_idstring required

ID of the app you want published.

Request body

requested_visibility'private_with_login' | 'workspace_with_login' | 'public_with_login' | 'public_without_login' required

Who you're asking to be able to open the published app. The values are the ones public_settings takes in Update app.

messagestring nullable

A note to the approvers, up to 1000 characters. It's included in the notification and the email.

Example request

{
  "requested_visibility": "public_with_login",
  "message": "Ready for the client demo on Friday."
}

Response

The approvers were notified, or the request was a repeat.

recipients_notifiedinteger required

Number of workspace owners and admins sent the request. 0 when deduped is true.

dedupedboolean required

Whether the call was a repeat of your request from the last 60 seconds, so no one was notified again.

Example response

{
  "recipients_notified": 2
}

Changes