Get an agent

get a single AI agent by id. Returns the list fields plus the agent's system_prompt, inbound_greeting and outbound_greeting.

GET https://api.centerfy.ai/webhooks/inbound/agents/:id

Headers

HeaderRequiredValueDescription
x-api-keyYesyour sub-account API key (cfy_…)Authenticates the request; or use Authorization: Bearer <key>.

Path parameters

NameTypeRequiredDescription
idstring (uuid)YesThe agent id. A non-uuid returns 400; an agent that does not exist returns 404.

Example

curl -X GET "https://api.centerfy.ai/webhooks/inbound/agents/{id}" \
  -H "x-api-key: $CENTERFY_API_KEY"
import { CenterfyClient } from "@centerfy/sdk";

const centerfy = new CenterfyClient({ apiKey: process.env.CENTERFY_API_KEY! });

const result = await centerfy.agents.get("<agentId>");
console.log(result);
centerfy agents get <agentId>

MCP tool: centerfy_agents_get (see MCP server)

Response

{
  "status": "success",
  "agent": {
    "id": "b2c3d4e5-3333-4abc-9def-000000000030",
    "name": "Front Desk AI",
    "voice_id": "Marissa",
    "llm_model": "gpt-4o",
    "language": "en",
    "is_active": true,
    "system_prompt": "You are the friendly front-desk assistant for Acme Clinic. Book appointments, answer questions about opening hours and pricing, and transfer to a human when asked.",
    "inbound_greeting": "Hi, thanks for calling Acme Clinic, this is Marissa. How can I help you today?",
    "outbound_greeting": null
  }
}

Errors

  • 401 — if unauthenticated; 400 for an invalid agent id; 404 if the agent does not exist; 500 on server error.

Notes

Read-only. Returns the same safe public projection as the list endpoint plus three fields the list omits: system_prompt (the agent’s instructions), inbound_greeting and outbound_greeting (the verbatim opening line spoken on inbound / outbound calls; null means the agent opens the call from its system prompt). These are the fields the update endpoint accepts, so a read–edit–write loop round-trips. The example shows a representative subset of the list fields.

© 2026 Centerfy AI. All rights reserved.