> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://apidocs.chattermill.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://apidocs.chattermill.com/_mcp/server.

# Get an observation

GET https://api.chattermill.com/v1/{project}/observations/{id}

Returns one observation with its volume and example snippets, limited to the data your account can see. If the observation was merged into another one, you get the observation it was merged into, so the returned `id` can differ from the one you asked for.

Reference: https://apidocs.chattermill.com/api-reference/observations/get-observation-by-id

## Authentication

- `Authorization` header (bearer token, required) — Your Chattermill API key, from Settings > API in the Chattermill app.

## Servers

- `https://api.chattermill.com/v1` (Production (EU), default)
- `https://api-us.chattermill.com/v1` (Production (US))

## Request

### Path parameters

- `project` (string, required) — Your project's `key`, from List projects.
- `id` (integer, required) — ID of observation to fetch

### Query parameters

- `snippets_per_observation` (integer, optional) — Number of feedback snippets to return (1-20, default 10)

## Response

### 200

Observation

- `observation` (Observation, optional)

## Errors

### 401 Unauthorized Error

User not authorized

- `code` (integer, required)
- `message` (string, required)

### 404 Not Found Error

Not found

- `code` (integer, required)
- `message` (string, required)

## Types

### Observation

- `id` (integer, required)
- `name` (string, optional)
- `description` (string, optional, nullable)
- `type` (enum, optional)
  - Allowed values: `issue`, `praise`
- `theme_ids` (list of integer, optional)
- `total_volume` (integer, optional) — Number of responses mentioning the observation, after filters and data permissions
- `snippets` (list of string, optional)

## Examples

**Response**

```json
{
  "observation": {
    "id": 1,
    "name": "string",
    "description": "string",
    "type": "issue",
    "theme_ids": [
      1
    ],
    "total_volume": 1,
    "snippets": [
      "string"
    ]
  }
}
```

**SDK Code**

```python
import requests

url = "https://api.chattermill.com/v1/project/observations/1"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.chattermill.com/v1/project/observations/1';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.chattermill.com/v1/project/observations/1"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.chattermill.com/v1/project/observations/1")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.chattermill.com/v1/project/observations/1")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.chattermill.com/v1/project/observations/1', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.chattermill.com/v1/project/observations/1");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.chattermill.com/v1/project/observations/1")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```