API reference
Team
Read agents and teams so you can assign conversations.
Every request needs
x-tenant-id and an API key or OAuth token. Channel IDs are copied from Settings → Developer in the app. See Authentication.List agents
get
/api/public/v1/agentsPeople in this workspace. Deleted users are excluded.
Query parameters
pageintegerPage number (default 1).
limitintegerPage size (default 25, max 100).
searchstringCase-insensitive text search.
statusstringACTIVE, INVITED, INACTIVE, or SUSPENDED (case-insensitive).
teamIdstringOnly members of this team.
Response 200Paginated list of agents
successbooleandataobject[]10 child fields
idstringUse as `assignedAgentId` on contacts and conversations.
namestring | nullfirstNamestring | nulllastNamestring | nullemailstring | nullstatusstring | nullOne of
ACTIVEINVITEDINACTIVESUSPENDEDnulldepartmentstring | nulldesignationstring | nullcreatedAtstring (date-time) | nullupdatedAtstring (date-time) | null
paginationobject8 child fields
pageintegerlimitintegertotalintegertotalPagesintegerhasNextPagebooleanhasPrevPagebooleannextCursorstring | nullprevCursorstring | null
metaobject1 child field
apiVersionstring
requestIdstring | nulltimestampstring (date-time)
Errors
400Malformed request or missing tenant context401Missing or invalid API key / access token403Forbidden — plan, scope, key status, or tenant mismatch422Validation failed429Too many requests — rate limit exceeded500Unexpected server error
curl -X GET "https://api.inaiy.com/api/public/v1/agents" \
-H "x-tenant-id: demo" \
-H "x-api-key: wp_live_xxxxxxxxxxxxxxxxxxxx"Response 200
{
"success": true,
"data": [
{
"id": "6650a1b2c3d4e5f6a7b8c9d5",
"name": "Priya Raman",
"firstName": "Priya",
"lastName": "Raman",
"email": "priya@example.com",
"status": "ACTIVE",
"department": "Support",
"designation": "Agent",
"createdAt": "2026-07-12T09:30:00.000Z",
"updatedAt": "2026-07-12T09:30:00.000Z"
}
],
"pagination": {
"page": 1,
"limit": 25,
"total": 3,
"totalPages": 1,
"hasNextPage": false,
"hasPrevPage": false,
"nextCursor": null,
"prevCursor": null
},
"meta": {
"apiVersion": "v1"
},
"requestId": "string",
"timestamp": "2026-07-12T09:30:00.000Z"
}Get an agent
get
/api/public/v1/agents/{id}Path parameters
idstringrequired24-char id
Response 200The agent
successbooleandataobject10 child fields
idstringUse as `assignedAgentId` on contacts and conversations.
namestring | nullfirstNamestring | nulllastNamestring | nullemailstring | nullstatusstring | nullOne of
ACTIVEINVITEDINACTIVESUSPENDEDnulldepartmentstring | nulldesignationstring | nullcreatedAtstring (date-time) | nullupdatedAtstring (date-time) | null
metaobject1 child field
apiVersionstring
requestIdstring | nulltimestampstring (date-time)
Errors
400Malformed request or missing tenant context401Missing or invalid API key / access token403Forbidden — plan, scope, key status, or tenant mismatch404Resource not found422Validation failed429Too many requests — rate limit exceeded500Unexpected server error
curl -X GET "https://api.inaiy.com/api/public/v1/agents/6650a1b2c3d4e5f6a7b8c9d0" \
-H "x-tenant-id: demo" \
-H "x-api-key: wp_live_xxxxxxxxxxxxxxxxxxxx"Response 200
{
"success": true,
"data": {
"id": "6650a1b2c3d4e5f6a7b8c9d5",
"name": "Priya Raman",
"firstName": "Priya",
"lastName": "Raman",
"email": "priya@example.com",
"status": "ACTIVE",
"department": "Support",
"designation": "Agent",
"createdAt": "2026-07-12T09:30:00.000Z",
"updatedAt": "2026-07-12T09:30:00.000Z"
},
"meta": {
"apiVersion": "v1"
},
"requestId": "string",
"timestamp": "2026-07-12T09:30:00.000Z"
}List teams
get
/api/public/v1/teamsTeams in this workspace with their member agent ids, sorted by name.
Query parameters
pageintegerPage number (default 1).
limitintegerPage size (default 25, max 100).
searchstringCase-insensitive text search.
Response 200Paginated list of teams
successbooleandataobject[]9 child fields
idstringUse as `primaryTeamId` on contacts.
namestring | nulldescriptionstring | nullstatusstring | nullmanagerIdstring | nullmemberIdsstring[]memberCountintegercreatedAtstring (date-time) | nullupdatedAtstring (date-time) | null
paginationobject8 child fields
pageintegerlimitintegertotalintegertotalPagesintegerhasNextPagebooleanhasPrevPagebooleannextCursorstring | nullprevCursorstring | null
metaobject1 child field
apiVersionstring
requestIdstring | nulltimestampstring (date-time)
Errors
400Malformed request or missing tenant context401Missing or invalid API key / access token403Forbidden — plan, scope, key status, or tenant mismatch422Validation failed429Too many requests — rate limit exceeded500Unexpected server error
curl -X GET "https://api.inaiy.com/api/public/v1/teams" \
-H "x-tenant-id: demo" \
-H "x-api-key: wp_live_xxxxxxxxxxxxxxxxxxxx"Response 200
{
"success": true,
"data": [
{
"id": "6650a1b2c3d4e5f6a7b8c9d4",
"name": "Support",
"description": "Tier 1 support",
"status": "ACTIVE",
"managerId": "6650a1b2c3d4e5f6a7b8c9d5",
"memberIds": [
"6650a1b2c3d4e5f6a7b8c9d5"
],
"memberCount": 1,
"createdAt": "2026-07-12T09:30:00.000Z",
"updatedAt": "2026-07-12T09:30:00.000Z"
}
],
"pagination": {
"page": 1,
"limit": 25,
"total": 3,
"totalPages": 1,
"hasNextPage": false,
"hasPrevPage": false,
"nextCursor": null,
"prevCursor": null
},
"meta": {
"apiVersion": "v1"
},
"requestId": "string",
"timestamp": "2026-07-12T09:30:00.000Z"
}Get a team
get
/api/public/v1/teams/{id}Path parameters
idstringrequired24-char id
Response 200The team
successbooleandataobject9 child fields
idstringUse as `primaryTeamId` on contacts.
namestring | nulldescriptionstring | nullstatusstring | nullmanagerIdstring | nullmemberIdsstring[]memberCountintegercreatedAtstring (date-time) | nullupdatedAtstring (date-time) | null
metaobject1 child field
apiVersionstring
requestIdstring | nulltimestampstring (date-time)
Errors
400Malformed request or missing tenant context401Missing or invalid API key / access token403Forbidden — plan, scope, key status, or tenant mismatch404Resource not found422Validation failed429Too many requests — rate limit exceeded500Unexpected server error
curl -X GET "https://api.inaiy.com/api/public/v1/teams/6650a1b2c3d4e5f6a7b8c9d0" \
-H "x-tenant-id: demo" \
-H "x-api-key: wp_live_xxxxxxxxxxxxxxxxxxxx"Response 200
{
"success": true,
"data": {
"id": "6650a1b2c3d4e5f6a7b8c9d4",
"name": "Support",
"description": "Tier 1 support",
"status": "ACTIVE",
"managerId": "6650a1b2c3d4e5f6a7b8c9d5",
"memberIds": [
"6650a1b2c3d4e5f6a7b8c9d5"
],
"memberCount": 1,
"createdAt": "2026-07-12T09:30:00.000Z",
"updatedAt": "2026-07-12T09:30:00.000Z"
},
"meta": {
"apiVersion": "v1"
},
"requestId": "string",
"timestamp": "2026-07-12T09:30:00.000Z"
}