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

# Get Agent

GET https://api.signalcore.ai/api/v1/agents/{agent_id}

Retrieve a specific agent by ID. Includes enriched tool information.

Reference: https://docs.signalcore.ai/api-reference/agents/get-agent

## Authentication

- `X-API-Key` header (required) — Your API key from [Dashboard → Settings → API Keys](https://dashboard.signalcore.ai/settings)

## Servers

- `https://api.signalcore.ai/api/v1` (Producción, default)
- `https://staging.api.signalcore.ai/api/v1` (Staging)

## Request

### Path parameters

- `agent_id` (string, required) — Agent ID

## Response

### 200

Agent details

- `id` (string, optional) — Unique agent identifier
- `business_id` (string, optional) — Business this agent belongs to
- `name` (string, optional) — Display name for the agent
- `agent_config` (AgentConfig, optional) — Core agent configuration
- `channel_profiles` (ChannelProfiles, optional) — Channel-specific configurations. Enable and configure each channel independently.
- `created_at` (datetime, optional)

## Errors

### 404 Not Found Error

Agent not found

- `detail` (string, optional) — Error message

## Types

### AgentConfig

Core agent configuration

- `prompt` (string, optional) — Main system prompt defining the agent's personality, knowledge, and behavior. This is the foundation of how your agent communicates.
- `objective` (string, optional) — The specific goal the agent should achieve in conversations. Used to track conversion success.
- `extract_values` (list of string, optional) — Values to automatically extract from conversations. The AI infers the value based on the key name.
- `webhook_url` (string, optional) — URL to receive webhook events when conversations end or objectives are met
- `model` (string, optional, default: openai/gpt-4.1) — OpenRouter model ID for the analysis service
- `timezone` (string, optional, default: UTC) — Agent's timezone in IANA format. Used for scheduling and time-aware responses.

### ChannelProfiles

Channel-specific configurations. Enable and configure each channel independently.

- `vapi_profile` (VoiceProfile, optional) — Voice channel configuration (VAPI)
- `twilio_sms_profile` (TextChannelProfile, optional) — Text-based channel configuration (SMS, WhatsApp, Instagram, Email)
- `whatsapp_profile` (TextChannelProfile, optional) — Text-based channel configuration (SMS, WhatsApp, Instagram, Email)
- `instagram_profile` (TextChannelProfile, optional) — Text-based channel configuration (SMS, WhatsApp, Instagram, Email)
- `gmail_profile` (TextChannelProfile, optional) — Text-based channel configuration (SMS, WhatsApp, Instagram, Email)
- `outlook_profile` (TextChannelProfile, optional) — Text-based channel configuration (SMS, WhatsApp, Instagram, Email)
- `imessage_profile` (TextChannelProfile, optional) — Text-based channel configuration (SMS, WhatsApp, Instagram, Email)

### VoiceProfile

Voice channel configuration (VAPI)

- `enabled` (boolean, optional, default: false) — Whether voice calls are enabled for this agent
- `channel_specific_prompt` (string, optional) — Additional prompt instructions specific to voice conversations
- `first_message` (string, optional) — The first message the agent speaks when initiating a call
- `voice` (VoiceProfileVoice, optional) — Voice configuration
- `background_sound` (enum, optional, default: office) — Background ambient sound during calls
  - Allowed values: `office`, `none`
- `tools` (list of string, optional) — Array of voice tool IDs enabled for this channel
- `model` (string, optional, default: gpt-4.1) — AI model for voice (without provider prefix)
- `provider` (enum, optional, default: openai) — AI model provider
  - Allowed values: `openai`, `anthropic`, `google`

### TextChannelProfile

Text-based channel configuration (SMS, WhatsApp, Instagram, Email)

- `enabled` (boolean, optional, default: false) — Whether this channel is enabled
- `channel_specific_prompt` (string, optional) — Additional prompt instructions specific to this channel
- `first_message` (string, optional) — The first message sent when initiating outbound contact
- `split_messages` (boolean, optional, default: true) — Split long messages into multiple shorter messages (more human-like)
- `tools` (list of string, optional) — Array of MCP tool IDs enabled for this channel
- `model` (string, optional, default: openai/gpt-4.1) — OpenRouter model ID
- `selective_handling` (TextChannelProfileSelectiveHandling, optional) — Only respond to messages matching certain criteria

### VoiceProfileVoice

Voice configuration

- `id` (string, optional) — Voice ID
- `provider` (enum, optional, default: vapi) — Voice provider
  - Allowed values: `vapi`, `elevenlabs`, `openai`

### TextChannelProfileSelectiveHandling

Only respond to messages matching certain criteria

- `enabled` (boolean, optional, default: false)
- `keywords` (list of string, optional) — Keywords that trigger automatic handling
- `prompt` (string, optional) — LLM prompt to determine if message should be handled

## Examples

**Request**

```json
{}
```

**Response**

```json
{
  "id": "agt_abc123xyz",
  "business_id": "biz_789xyz456",
  "name": "Sales Agent",
  "agent_config": {
    "prompt": "You are a helpful sales assistant for Acme Corp. Be professional, friendly, and focus on understanding customer needs before suggesting solutions.",
    "objective": "Book a demo call with qualified leads",
    "extract_values": [
      "company_name",
      "budget",
      "timeline",
      "decision_maker"
    ],
    "webhook_url": "https://webhooks.acmecorp.com/signalcore",
    "model": "openai/gpt-4.1",
    "timezone": "America/New_York"
  },
  "channel_profiles": {
    "vapi_profile": {
      "enabled": false,
      "channel_specific_prompt": "Please maintain a warm and professional tone during calls.",
      "first_message": "Hi, this is Sarah from Acme Corp. Is this a good time to talk?",
      "voice": {
        "id": "Savannah",
        "provider": "vapi"
      },
      "background_sound": "office",
      "tools": [
        "voice_tool_001"
      ],
      "model": "gpt-4.1",
      "provider": "openai"
    },
    "twilio_sms_profile": {
      "enabled": false,
      "channel_specific_prompt": "Keep messages concise and friendly.",
      "first_message": "Hi {{first_name}}! This is Sarah from Acme Corp. I wanted to follow up on your inquiry.",
      "split_messages": true,
      "tools": [
        "sms_tool_123"
      ],
      "model": "openai/gpt-4.1",
      "selective_handling": {
        "enabled": false,
        "keywords": [
          "pricing",
          "demo",
          "support"
        ],
        "prompt": "Determine if the message is related to sales inquiries."
      }
    },
    "whatsapp_profile": {
      "enabled": false,
      "channel_specific_prompt": "Use a casual and approachable style.",
      "first_message": "Hi {{first_name}}! This is Sarah from Acme Corp. I wanted to follow up on your inquiry.",
      "split_messages": true,
      "tools": [
        "whatsapp_tool_456"
      ],
      "model": "openai/gpt-4.1",
      "selective_handling": {
        "enabled": false,
        "keywords": [
          "quote",
          "demo",
          "availability"
        ],
        "prompt": "Filter messages to handle only sales-related topics."
      }
    },
    "instagram_profile": {
      "enabled": false,
      "channel_specific_prompt": "Respond with friendly and engaging language.",
      "first_message": "Hi {{first_name}}! This is Sarah from Acme Corp. I wanted to follow up on your inquiry.",
      "split_messages": true,
      "tools": [
        "insta_tool_789"
      ],
      "model": "openai/gpt-4.1",
      "selective_handling": {
        "enabled": false,
        "keywords": [
          "pricing",
          "demo",
          "features"
        ],
        "prompt": "Identify messages related to product interest."
      }
    },
    "gmail_profile": {
      "enabled": false,
      "channel_specific_prompt": "Maintain a professional and courteous tone.",
      "first_message": "Hi {{first_name}}! This is Sarah from Acme Corp. I wanted to follow up on your inquiry.",
      "split_messages": true,
      "tools": [
        "email_tool_321"
      ],
      "model": "openai/gpt-4.1",
      "selective_handling": {
        "enabled": false,
        "keywords": [
          "meeting",
          "demo",
          "proposal"
        ],
        "prompt": "Assess if the email requires a sales follow-up."
      }
    },
    "outlook_profile": {
      "enabled": false,
      "channel_specific_prompt": "Use formal and clear language.",
      "first_message": "Hi {{first_name}}! This is Sarah from Acme Corp. I wanted to follow up on your inquiry.",
      "split_messages": true,
      "tools": [
        "outlook_tool_654"
      ],
      "model": "openai/gpt-4.1",
      "selective_handling": {
        "enabled": false,
        "keywords": [
          "schedule",
          "demo",
          "contract"
        ],
        "prompt": "Determine if the message is related to sales scheduling."
      }
    },
    "imessage_profile": {
      "enabled": false,
      "channel_specific_prompt": "Keep messages friendly and informal.",
      "first_message": "Hi {{first_name}}! This is Sarah from Acme Corp. I wanted to follow up on your inquiry.",
      "split_messages": true,
      "tools": [
        "imessage_tool_987"
      ],
      "model": "openai/gpt-4.1",
      "selective_handling": {
        "enabled": false,
        "keywords": [
          "demo",
          "pricing",
          "availability"
        ],
        "prompt": "Filter messages to respond only to sales-related queries."
      }
    }
  },
  "created_at": "2024-01-15T09:30:00Z"
}
```

**SDK Code**

```python
import requests

url = "https://api.signalcore.ai/api/v1/agents/agt_abc123"

payload = {}
headers = {
    "X-API-Key": "<apiKey>",
    "Content-Type": "application/json"
}

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

print(response.json())
```

```javascript
const url = 'https://api.signalcore.ai/api/v1/agents/agt_abc123';
const options = {
  method: 'GET',
  headers: {'X-API-Key': '<apiKey>', 'Content-Type': 'application/json'},
  body: '{}'
};

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"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.signalcore.ai/api/v1/agents/agt_abc123"

	payload := strings.NewReader("{}")

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

	req.Header.Add("X-API-Key", "<apiKey>")
	req.Header.Add("Content-Type", "application/json")

	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.signalcore.ai/api/v1/agents/agt_abc123")

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

request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{}"

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.signalcore.ai/api/v1/agents/agt_abc123")
  .header("X-API-Key", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.signalcore.ai/api/v1/agents/agt_abc123', [
  'body' => '{}',
  'headers' => [
    'Content-Type' => 'application/json',
    'X-API-Key' => '<apiKey>',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://api.signalcore.ai/api/v1/agents/agt_abc123");
var request = new RestRequest(Method.GET);
request.AddHeader("X-API-Key", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "X-API-Key": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = [] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.signalcore.ai/api/v1/agents/agt_abc123")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

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()
```