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

# List behaviors

GET https://api.respan.ai/api/request-logs/behavior-columns/

Lists every behavior turned on for your organization, built-in and custom, with the key it's counted under. Use the keys with the other behavior endpoints. Returns an empty list instead of an error when behaviors are off.

Reference: https://respan.ai/docs/apis/behaviors/list-behaviors

## Authentication

- `Authorization` header (bearer token, required) — Use your Respan API key for Respan API authentication. Enter only the Respan API key value; clients send Authorization: Bearer \<RESPAN\_API\_KEY>. For /api/responses, provider credentials such as Perplexity, OpenAI, or Azure OpenAI go in Settings -> Providers or respan\_params.credential\_override in the request body, not in this authentication field.

## Response

### 200

The behaviors.

- `columns` (list of BehaviorCatalogEntry, required) — Built-in behaviors, then custom behaviors oldest first. Turned-off behaviors are left out. Empty when behaviors are off for the organization.
- `is_span_behaviors_enabled` (boolean, required) — Whether behaviors are turned on for the organization.
- `max_selected_columns` (integer, required) — Most behaviors one spans list or summary request can ask counts for in `behavior_columns`.
- `true_probability_threshold` (double, required) — A behavior fires on a span when its latest score is at or above this value.

## Errors

### 403 Forbidden Error

Forbidden: the API key is missing, invalid or expired; the key doesn't grant `logs:read` (Read access does).

- `detail` (string, required)

### 429 Too Many Requests Error

Rate limited. This endpoint allows 60 requests per minute per organization.

- `detail` (string, required)

## Types

### BehaviorCatalogEntry

- `id` (string, required) — Column ID, `behavior__<key>`. Spans list filters accept it as a filter key.
- `key` (string, required) — Behavior key: a built-in behavior's name (for example `refusal`) or a custom behavior's `id`.
- `name` (string, required) — Display name. For a built-in behavior, its key in title case (`Instruction Miss`). For a custom behavior, its `name`, else its `description`, else its `id`.
- `polarity` (enum, required) — Whether the behavior firing is good or bad: `negative` (an Issue), `positive` (a Win) or `neutral` (Info). Display metadata only; it does not change how spans are scored.
  - Allowed values: `negative`, `positive`, `neutral`
- `type` (enum, required) — Always `boolean`.
  - Allowed values: `boolean`
- `source` (enum, required) — `builtin` or `custom`.
  - Allowed values: `builtin`, `custom`

## Examples

**Response**

```json
{
  "columns": [
    {
      "id": "behavior__refusal",
      "key": "refusal",
      "name": "Refusal",
      "polarity": "neutral",
      "type": "boolean",
      "source": "builtin"
    },
    {
      "id": "behavior__instruction_miss",
      "key": "instruction_miss",
      "name": "Instruction Miss",
      "polarity": "negative",
      "type": "boolean",
      "source": "builtin"
    },
    {
      "id": "behavior__6f1c2a9e-3b7d-4c55-9a0e-2d8f4b1c7e93",
      "key": "6f1c2a9e-3b7d-4c55-9a0e-2d8f4b1c7e93",
      "name": "Refund promise",
      "polarity": "negative",
      "type": "boolean",
      "source": "custom"
    }
  ],
  "is_span_behaviors_enabled": true,
  "max_selected_columns": 20,
  "true_probability_threshold": 0.65
}
```

**SDK Code**

```python Behaviors_listBehaviors_example
import requests

url = "https://api.respan.ai/api/request-logs/behavior-columns/"

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

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

print(response.json())
```

```javascript Behaviors_listBehaviors_example
const url = 'https://api.respan.ai/api/request-logs/behavior-columns/';
const options = {method: 'GET', headers: {Authorization: 'Bearer <respanApiKey>'}};

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

```go Behaviors_listBehaviors_example
package main

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

func main() {

	url := "https://api.respan.ai/api/request-logs/behavior-columns/"

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

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

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

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

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

}
```

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

url = URI("https://api.respan.ai/api/request-logs/behavior-columns/")

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

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

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

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

HttpResponse<String> response = Unirest.get("https://api.respan.ai/api/request-logs/behavior-columns/")
  .header("Authorization", "Bearer <respanApiKey>")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.respan.ai/api/request-logs/behavior-columns/', [
  'headers' => [
    'Authorization' => 'Bearer <respanApiKey>',
  ],
]);

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

```csharp Behaviors_listBehaviors_example
using RestSharp;

var client = new RestClient("https://api.respan.ai/api/request-logs/behavior-columns/");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <respanApiKey>");
IRestResponse response = client.Execute(request);
```

```swift Behaviors_listBehaviors_example
import Foundation

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.respan.ai/api/request-logs/behavior-columns/")! 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()
```