> ## 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.

# Deployments auflisten

> Rufe die letzten 10 Deployments einer Anwendung aus den letzten 24 Stunden ab.

<ParamField header="Authorization" type="string" placeholder="API Key" required>
  Der API-Schlüssel für Ihr Konto. Sie finden ihn in Ihren [Kontoeinstellungen](https://squarecloud.app/de/account/security).
</ParamField>

### Parameter

<ParamField path="app_id" type="string" placeholder="Application ID" required>
  Die ID der Anwendung. Du findest sie in der URL des Dashboards deiner Anwendung.
</ParamField>

### Antwort

<ResponseField name="status" type="string">
  Gibt an, ob der Aufruf erfolgreich war. `success` bei Erfolg, `error` andernfalls.
</ResponseField>

<ResponseField name="response" type="array">
  Der Inhalt der Antwort.

  <Expandable title="Objekt umschalten">
    <ResponseField name="id" type="string">
      Die ID des Deploys.
    </ResponseField>

    <ResponseField name="state" type="string">
      Der Status des Deploys. Kann `pending`, `clone`, `success` oder `error` sein.
    </ResponseField>

    <ResponseField name="date" type="string">
      Das Datum, an dem der Deploy erstellt wurde.
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseExample>
  ```json theme={null}
  {
      "status": "success",
      "response": [
          [
  		    {
  			    "id": "git-393caedd68f5e5b771f6a027",
  			    "state": "pending",
  			    "date": "2023-10-16T20:27:20.513Z"
  		    },
  		    {
  			    "id": "git-393caedd68f5e5b771f6a027",
  			    "state": "clone",
  			    "date": "2023-10-16T20:27:20.536Z"
  		    },
  		    {
  			    "id": "git-393caedd68f5e5b771f6a027",
  			    "state": "success",
  			    "date": "2023-10-16T20:27:21.422Z"
  		    }
  	    ]
      ],
  }
  ```
</ResponseExample>
