> 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.

# Get a custom behavior

GET https://api.respan.ai/api/pulses/behaviors/custom/{id}/

Returns one custom behavior with its tags.

Reference: https://respan.ai/docs/apis/behaviors/get-custom-behavior

## 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.

## Request

### Path parameters

- `id` (string, required) — Custom behavior ID.

## Response

### 200

The behavior.

- `tags` (list of BehaviorTag, required) — Tags on the behavior.
- `has_write_access` (boolean, required) — Whether the caller can edit the behavior. Always `true` for an API key of the behavior's organization.

## Errors

### 403 Forbidden Error

Forbidden: the API key is missing, invalid or expired; the key doesn't grant `custom_behaviors:read` (Read access does); behaviors are turned off for the organization.

- `detail` (string, required)

### 404 Not Found Error

No custom behavior with this ID in your organization.

- `detail` (string, required)

### 429 Too Many Requests Error

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

- `detail` (string, required)

## Types

### BehaviorTag

- `id` (string, required) — Tag ID.
- `name` (string, required) — Tag name.
- `color` (string, required) — Tag color.
- `created_at` (datetime, required)
- `updated_at` (datetime, required)

## Examples

**Response**

```json
{
  "tags": [
    {
      "id": "0b7e5f0c-2a61-4d3e-9a47-5c8f1e2d3b4a",
      "name": "Support",
      "color": "#2563EB",
      "created_at": "2026-09-12T09:30:00Z",
      "updated_at": "2026-09-12T09:30:00Z"
    }
  ],
  "has_write_access": true,
  "id": "6f1c2a9e-3b7d-4c55-9a0e-2d8f4b1c7e93",
  "name": "Refund promise",
  "description": "The assistant promises a refund, credit, or compensation that the policy in the system prompt does not allow.",
  "polarity": "negative",
  "created_at": "2026-09-28T17:41:09.512340Z",
  "updated_at": "2026-09-28T17:41:09.512340Z"
}
```

**SDK Code**

```python Behaviors_retrieveCustomBehavior_example
import requests

url = "https://api.respan.ai/api/pulses/behaviors/custom/6f1c2a9e-3b7d-4c55-9a0e-2d8f4b1c7e93/"

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

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

print(response.json())
```

```javascript Behaviors_retrieveCustomBehavior_example
const url = 'https://api.respan.ai/api/pulses/behaviors/custom/6f1c2a9e-3b7d-4c55-9a0e-2d8f4b1c7e93/';
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_retrieveCustomBehavior_example
package main

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

func main() {

	url := "https://api.respan.ai/api/pulses/behaviors/custom/6f1c2a9e-3b7d-4c55-9a0e-2d8f4b1c7e93/"

	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_retrieveCustomBehavior_example
require 'uri'
require 'net/http'

url = URI("https://api.respan.ai/api/pulses/behaviors/custom/6f1c2a9e-3b7d-4c55-9a0e-2d8f4b1c7e93/")

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_retrieveCustomBehavior_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.respan.ai/api/pulses/behaviors/custom/6f1c2a9e-3b7d-4c55-9a0e-2d8f4b1c7e93/")
  .header("Authorization", "Bearer <respanApiKey>")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.respan.ai/api/pulses/behaviors/custom/6f1c2a9e-3b7d-4c55-9a0e-2d8f4b1c7e93/', [
  'headers' => [
    'Authorization' => 'Bearer <respanApiKey>',
  ],
]);

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

```csharp Behaviors_retrieveCustomBehavior_example
using RestSharp;

var client = new RestClient("https://api.respan.ai/api/pulses/behaviors/custom/6f1c2a9e-3b7d-4c55-9a0e-2d8f4b1c7e93/");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <respanApiKey>");
IRestResponse response = client.Execute(request);
```

```swift Behaviors_retrieveCustomBehavior_example
import Foundation

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.respan.ai/api/pulses/behaviors/custom/6f1c2a9e-3b7d-4c55-9a0e-2d8f4b1c7e93/")! 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()
```