Functions

Deploy a Function

Deploy a Function package, the deploy-request.json pnpm run pack writes, into the Cloud project, and make it production unless promote is false. A Function whose package sets dextoApiKey gets its own Dexto key, acting as the project, when your key or token holds every permission it gets. Needs functions:write. The body is at most 40 MiB; a larger one gets 413, and an invalid package gets 400 naming every problem.

post/v1/functions/deployments

Request

  • Base URL
    https://api.dexto.ai
  • URL
    https://api.dexto.ai/v1/functions/deployments
  • Auth
    HTTP bearer

Query parameters

access'private' | 'public'

Who can reach it: private by default; public only for intentional internet access.

promote'true' | 'false'

false leaves the deployment to promote later.

provider'aws-lambda' | 'cloudflare-workers' | 'local'

Where it should run. Omit to use host policy; an unavailable choice is refused.

Request body

dextoApiKeytrue

Give the Function its own DEXTO_API_KEY, which acts as its Cloud project with the permissions a project's deployed code needs.

kind'http-api' | 'mcp-server'
schemaVersion1 required
slugstring required
titlestring required

Response

Created.

access'private' | 'public' required

Who can reach it: private by default; public only for intentional internet access.

object'function.deploy' required
operationsstring[] required
promotedboolean required
provider'aws-lambda' | 'cloudflare-workers' | 'local' required
urlstring uri nullable required

Where it is reached once promoted.

Changes

No recorded changes to this operation across all 1 revision of this API.