---
title: Get key-value pair
url: https://www.tines.com/docs/api/cases/metadata/get-key-value-pair/
updated: 2024-04-19T11:53:39+00:00
description: Retrieve a specific key-value pair from the metadata of a case.
---

*[tines.com](https://www.tines.com/llms.txt) › [Docs](https://www.tines.com/llms.txt) › [Tines API](https://www.tines.com/llms.txt) › [Cases](https://www.tines.com/llm/docs/api/cases.md) › [Metadata](https://www.tines.com/llm/docs/api/cases/metadata.md)*

# Get key-value pair

*[View on tines.com](https://www.tines.com/docs/api/cases/metadata/get-key-value-pair/)*

## Description

Retrieve a specific key-value pair from the metadata of a case.

## Request

HTTP Method: **GET**

| Parameter | Description                             |
| --------- | --------------------------------------- |
| case_id   | The ID of the case containing metadata. |
| key       | The key of the key-value pair.          |

```bash
curl -X GET \
  https://<tenant-domain>/api/v2/cases/<<case_id>>/metadata/<<key>> \
  -H 'content-type: application/json' \
  -H 'Authorization: Bearer <<CREDENTIAL.tines_api_key>>'
```

## Response

A successful request will return a JSON object with the specific metadata key-value pair.

### Field description

| Parameter | Description                                                           |
| --------- | --------------------------------------------------------------------- |
| case_id   | The ID of the case.                                                   |
| metadata  | The case related metadata only including the specific key-value pair. |

### Sample response

<!-- cspell:disable -->

```json
{
  "case_id": 42,
  "metadata": {
    "key": "value"
  }
}
```

<!-- cspell:enable -->
