# Latest contract API

The Contract API is used to retrieve the latest deployed version of the Stagemeta contract. This API provides a JSON response containing the contract's address and ABI.

### Latest contract API

<mark style="color:blue;">`GET`</mark> `https://api.stagemeta.dev/contracts/latest`

{% tabs %}
{% tab title="200: OK " %}

```javascript
{
  "id": 12,
  "createdAt": "2023-01-28T17:36:38.542Z",
  "updatedAt": "2023-01-28T17:36:38.542Z",
  "deletedAt": null,
  "version": "1.1.0",
  "address": "0x83dda28e561f84cffbf8faa74f99ec57ed5dd093",
  "status": "ACTIVE",
  "abiAddress": "https://cdn.stagemeta.world/contracts/1.1.1.json"
}
```

{% endtab %}

{% tab title="500: Internal Server Error There was an error in preparing the plaque. Please contact Stagemeta support." %}

{% endtab %}

{% tab title="401: Unauthorized The access token provided in the Authorization header is invalid." %}

{% endtab %}

{% tab title="404: Not Found The plaque specified in the endpoint does not exist" %}

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Curl" %}

```bash
curl -X 'GET' \ 'https://api.stagemeta.dev/contracts/latest' \ -H 'accept: application/json'
```

{% endtab %}

{% tab title="Node" %}
{% code overflow="wrap" %}

```javascript
fetch('https://api.stagemeta.dev/contracts/latest', {
  method: 'GET',
  headers: {
    'accept': 'application/json'
  }
})
  .then(response => response.json())
  .then(data => console.log(data))
  .catch(error => console.error(error))

```

{% endcode %}
{% endtab %}
{% endtabs %}
