> For the complete documentation index, see [llms.txt](https://docs.driffle.com/driffle-seller-api-legacy/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.driffle.com/driffle-seller-api-legacy/reference/api-reference/manage-inventory-stock/fetch-a-single-key.md).

# Fetch a single Key

The following API allow you to fetch a single key for an Offer/Auction.

{% openapi src="/files/gn0pQTdjMolBWrhFayua" path="/key" method="get" %}
[swagger3\_SAPIv1.9.json](https://407468006-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfPzmNpsOZnU4ujov7zQD%2Fuploads%2FOcneBOxtMIY6jaeYwNCk%2Fswagger3_SAPIv1.9.json?alt=media\&token=c272d2d3-ed34-4153-9dec-781487e38592)
{% endopenapi %}

<mark style="color:green;">`GET`</mark> `/key`

**Headers**

| Name          | Value              |
| ------------- | ------------------ |
| Content-Type  | `application/json` |
| Authorization | `Bearer <token>`   |

**Supported Params**

| Param | Param Type | Type   | Required | Description     |
| ----- | ---------- | ------ | -------- | --------------- |
| hash  | query      | string | Yes      | Hash of the Key |

**Response**

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

```json
{
  "message": "string",
  "statusCode": 200,
  "data": {
    "type": "text",
    "key": "string",
    "statusLabel": "string"
  }
}
```

{% endtab %}

{% tab title="400" %}

```json
{
    "message": "Bad Request. Wrong/Invalid params format.",
    "statusCode": 400 
}
```

{% endtab %}

{% tab title="401" %}

```
{
    "message": "UnAuthorized request. Invalid/Expired token",
    "statusCode": 401
}
```

{% endtab %}

{% tab title="403" %}

```
{
    "message": "Forbidden Request. Action not allowed or Rate Limit exhausted.", 
    "statusCode": 403
}
```

{% endtab %}

{% tab title="500" %}

```
{
    "message": "Internal Server Error",
    "statusCode": 500
}
```

{% endtab %}
{% endtabs %}
