> ## Documentation Index
> Fetch the complete documentation index at: https://docs.squarecloud.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Get current deployment

> See how an application is wired for Git deploys with GET /v2/apps/{app_id}/deployments/current: its GitHub App repository, a legacy webhook, or both.

<ParamField header="Authorization" type="string" placeholder="API Key" required>
  The API key for your account. You can find this in your [account settings](https://squarecloud.app/en/account/security).
</ParamField>

Requires an API key with the `apps:read` [scope](/en/api-reference/authentication#scopes).

This endpoint reports how the application is currently wired for Git-based deploys: a GitHub App repository linkage, a legacy webhook URL, or both, depending on how the integration was set up. Use it to check the tracked repository and branch before troubleshooting a deploy, or to confirm whether a webhook still needs to be generated.

The response is cached for 5 minutes per owner and application, so changes made through [Set GitHub Webhook](/en/api-reference/endpoint/apps/deploy/webhooks) may take a few minutes to show up here. On workspace-shared applications, the caller needs the `manager` or `admin` [role](/en/api-reference/endpoint/workspace/members/invite#roles), or ownership. To see deploy history rather than the current configuration, use [List Deployments](/en/api-reference/endpoint/apps/deploy/list).

## Parameters

<ParamField path="app_id" type="string" placeholder="Application ID" required>
  The ID of the application. You can find this in the URL of your application's dashboard.
</ParamField>

## Response

<ResponseField name="status" type="string">
  Indicates whether the call was successful: `success` if it was, `error` if not.
</ResponseField>

<ResponseField name="response" type="object">
  The contents of the response.

  <Expandable title="Toggle object">
    <ResponseField name="webhook" type="string">
      The webhook URL for the application.
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseExample>
  ```json Webhook theme={"system"}
  {
      "status": "success",
      "response": {
          "webhook": "https://api.squarecloud.app/v2/git/webhook/69ce71f11974f2cc21d47cd0a8bcbafdaacbc3c9924b23ca40e0e2032705f6391eb89b40983338e0f2415e9331d602ccc"
      }
  }
  ```

  ```json Integration theme={"system"}
  {
      "status": "success",
      "response": {
          "app": {
              "id": "00000000",
              "name": "Your-GitHub/Repository",
              "branch": "main"
          }
      }
  }
  ```
</ResponseExample>

## Related

* CLI: [`squarecloud app deploy current`](/en/cli-reference/github-deploys#squarecloud-app-deploy-current)
* SDKs: [`api.apps.deploys.current()`](/en/sdks/js/deploys) (JavaScript), [`client.apps.deploys.current()`](/en/sdks/py/deploys) (Python), [`c.Apps.Deploys.Current()`](/en/sdks/go/deploys) (Go)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.