sondahub

sondahub / Helpdesk API / Agents

Fake agents API

25 agents from the Helpdesk API, a fake helpdesk API. The people answering tickets.

Reads with filters, sorting, search and relations; writes that answer like a real server and stay in your session token. Same ids on every build. Free, no key, CORS open.

Connect

List
https://api.sondahub.com/v1/helpdesk/agents
One record
https://api.sondahub.com/v1/helpdesk/agents/{id}
OpenAPI 3
https://api.sondahub.com/v1/helpdesk/openapi.json
GraphQL
https://api.sondahub.com/v1/helpdesk/graphql
JSON file
https://api.sondahub.com/data/helpdesk/agents.json
MCP
https://api.sondahub.com/mcp · list_records
The first three agents
curl "https://api.sondahub.com/v1/helpdesk/agents?limit=3"

Sample records

Records 1 to 3 of 25, exactly as GET /v1/helpdesk/agents/{id} answers them. The data file holds all of them.

[
  {
    "id": 1,
    "created_at": "2025-12-02T12:03:22Z",
    "updated_at": "2025-12-02T12:03:22Z",
    "name": "Nora Lewis",
    "email": "[email protected]",
    "team_id": 1,
    "role": "admin",
    "status": "away",
    "skills": [
      "integrations",
      "onboarding"
    ],
    "open_tickets": 10,
    "rating": 4.4
  },
  {
    "id": 2,
    "created_at": "2025-07-12T20:06:49Z",
    "updated_at": "2025-07-12T20:06:49Z",
    "name": "Camila Roberts",
    "email": "[email protected]",
    "team_id": 1,
    "role": "senior",
    "status": "available",
    "skills": [
      "reports",
      "security",
      "onboarding"
    ],
    "open_tickets": 10,
    "rating": 4.8
  },
  {
    "id": 3,
    "created_at": "2026-04-04T11:53:10Z",
    "updated_at": "2026-04-04T11:53:10Z",
    "name": "Nora Khan",
    "email": "[email protected]",
    "team_id": 1,
    "role": "agent",
    "status": "available",
    "skills": [
      "onboarding",
      "billing",
      "mobile"
    ],
    "open_tickets": 16,
    "rating": 5
  }
]

Fields

FieldTypeNotes
idread-onlyintAssigned by the server. Seed records keep their ids across restarts; records you create continue after the seed.
created_atread-onlydatetimeWhen the record was created (ISO 8601, UTC).
updated_atread-onlydatetimeWhen the record last changed.
namerequiredstring
emailrequiredstring
team_idrequiredint → teams
roleenumagent senior lead admin
statusenumavailable busy away offline
skillsjson string[]
open_ticketsread-onlyint
ratingread-onlyfloat

Relations: team → one team through team_id; tickets → the tickets whose assignee_id is this agent. Use ?expand=team,tickets to embed them, or the nested routes.

Endpoints

GET/v1/helpdesk/agentsA page, with every filter, sort, search, field and expand option.
POST/v1/helpdesk/agentsCreate one: 201 with the record, its id, a Location header and the session token that keeps it; 422 names each field that is wrong.
GET/v1/helpdesk/agents/{id}One record, with an ETag; If-None-Match earns a 304.
PATCH/v1/helpdesk/agents/{id}Change the fields you send.
PUT/v1/helpdesk/agents/{id}Replace the record; required fields must all be there.
DELETE/v1/helpdesk/agents/{id}Answers 200 with what was removed (a real server’s 204 lives at /v1/utils/status/204); gone for the session.
GET/v1/helpdesk/agents/{id}/teamThe team this record points at.
GET/v1/helpdesk/agents/{id}/ticketsIts tickets, as a page with all the list options.

Try it

List with a filter
curl "https://api.sondahub.com/v1/helpdesk/agents?role=senior&expand=team&limit=3"
One record
curl https://api.sondahub.com/v1/helpdesk/agents/1?expand=team
Its tickets
curl "https://api.sondahub.com/v1/helpdesk/agents/1/tickets?limit=5"
Create
curl -i -X POST https://api.sondahub.com/v1/helpdesk/agents \
  -H "Content-Type: application/json" \
  -d '{"name":"A name","email":"A email","team_id":1,"role":"agent","status":"available"}'
Read it back: newest first (send the session token)
curl "https://api.sondahub.com/v1/helpdesk/agents?sort=-id&limit=3" \
  -H "X-Sondahub-Session: THE_TOKEN_FROM_THE_CREATE"
Change one field
curl -X PATCH https://api.sondahub.com/v1/helpdesk/agents/1 \
  -H "Content-Type: application/json" \
  -d '{"role":"senior"}'
Delete the one you created
curl -X DELETE https://api.sondahub.com/v1/helpdesk/agents/26 \
  -H "X-Sondahub-Session: THE_TOKEN_FROM_THE_CREATE"

Query recipes

Every list option works on agents; these are ready to paste. All the options.

WhatRequest
Page 2, 50 at a time (of 25)/v1/helpdesk/agents?page=2&limit=50
Only role = agent/v1/helpdesk/agents?role=agent
Newest first by created at/v1/helpdesk/agents?sort=-created_at&limit=5
Name contains “nora”/v1/helpdesk/agents?name_like=nora
Full-text search/v1/helpdesk/agents?q=nora
Only some fields/v1/helpdesk/agents?fields=id,name&limit=5
Embed the team/v1/helpdesk/agents/1?expand=team
Its tickets (nested route)/v1/helpdesk/agents/1/tickets?limit=5
Just the count/v1/helpdesk/agents?limit=1&fields=id

GraphQL

The same agents as the agents query on https://api.sondahub.com/v1/helpdesk/graphql, and one agent as agent(id: 1). Introspection is on. More on the GraphQL API.

{
  agents(limit: 3, sort: "-id", filter: { role: agent }) {
    total
    data {
      id name email team_id
      team { name }
      tickets(limit: 2) { id }
    }
  }
}
Run it
curl https://api.sondahub.com/v1/helpdesk/graphql -H "Content-Type: application/json" -d '{"query": "{ agents(limit: 3, sort: \"-id\", filter: { role: agent }) { total data { id name email team_id team { name } tickets(limit: 2) { id } } } }"}'

From an AI agent (MCP)

The MCP server reaches the same rows with list_records, get_record, create_record, update_record and delete_record, and as the resource sondahub://helpdesk/agents.

tools/call
curl https://api.sondahub.com/mcp \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"list_records","arguments":{"api":"helpdesk","collection":"agents","filters":{"role":"agent"},"limit":3}}}'

More in the Helpdesk API

teams (4) · customers (300) · tickets (2,000) · messages (5,069)

The live streams, and the whole API on one page: Helpdesk API. Other worlds: fake e-commerce API, fake IoT API, fake banking API, fake social media API, fake flight booking API, fake user directory API.