Skip to main content
GET
List all agents
What it does: Returns a paginated list of every voice agent in your organization. Use it to find botId values before calling Get Agent, Update Agent, or Trigger Call.

Required Permission

agents

Minimum working example

Additional examples

Search by name

Query parameters

Response

Success (200)

What each field means

List vs Get — which one do I need?

Edge cases

Errors

500 Internal Server Error - Invalid page number Sending pageNo=0 (or any value below 1) returns HTTP 500. Always start pagination at pageNo=1.
Use search to locate an agent by name instead of paginating through every page manually.
Save the requestId from every response. You will need it if you contact Gnani support to trace a specific request.

Authorizations

x-api-key
string
header
required

API key with 'agents' permission

Query Parameters

Filter results by agent name (partial match)

pageNo
integer
default:1

Page number to retrieve. Default 1.

Required range: x >= 1
pageSize
integer
default:10

Number of agents per page. Default 10.

Required range: 1 <= x <= 100

Response

Agents retrieved successfully

status
string
Example:

"success"

requestId
string
Example:

"a1b2c3d4-e5f6-7890-abcd-ef1234567890"

message
string
response
object