Skip to content

List function deployments

View .md
GET

List a function's deployment history, newest first. Source code is omitted; fetch a single deployment via GET /v1/functions/deployments/{deploymentId} for full details.

Authorization

  • Authorizationheaderrequired

    Bearer YOUR_API_KEY. Create a key in the dashboard.

Path parameters

  • functionIdstringrequired

    Zavu Function ID.

Query parameters

  • limitinteger
    Default50
    Limitsmin 1 · max 200

Responses

200Deployment history.
  • deploymentsobject[]required
    8 properties
    • idstring
    • versioninteger
    • statusstring

      Stage of a function deployment.

      One ofpendingbundlinguploadingpublishingactivefailedsuperseded
    • bundleSizeBytesintegernullable
    • errorMessagestringnullable
    • isActiveboolean
    • deployedAtstring<date-time>nullable

      When the deployment went live. Null for a deployment that failed or is still building.

    • createdAtstring<date-time>
401Unauthorized.
  • codestringrequired
  • messagestringrequired
  • detailsobject
404Function not found.
  • codestringrequired
  • messagestringrequired
  • detailsobject