sondahub

sondahub / Helpdesk API / Teams

Fake teams API

4 teams from the Helpdesk API, a fake helpdesk API. Support teams.

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/teams
One record
https://api.sondahub.com/v1/helpdesk/teams/{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/teams.json
MCP
https://api.sondahub.com/mcp · list_records
The first three teams
curl "https://api.sondahub.com/v1/helpdesk/teams?limit=3"

Sample records

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

[
  {
    "id": 1,
    "created_at": "2024-06-23T12:00:00Z",
    "updated_at": "2024-06-23T12:00:00Z",
    "name": "Tier 1",
    "slug": "tier-1",
    "timezone": "America/New_York",
    "hours": "24/7"
  },
  {
    "id": 2,
    "created_at": "2024-06-23T12:00:00Z",
    "updated_at": "2024-06-23T12:00:00Z",
    "name": "Tier 2",
    "slug": "tier-2",
    "timezone": "America/New_York",
    "hours": "Mon–Fri 08:00–20:00"
  },
  {
    "id": 3,
    "created_at": "2024-06-23T12:00:00Z",
    "updated_at": "2024-06-23T12:00:00Z",
    "name": "Billing",
    "slug": "billing",
    "timezone": "Europe/Dublin",
    "hours": "Mon–Fri 09:00–18:00"
  }
]

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
slugstring
timezonestring
hoursstring

Relations: agents → the agents whose team_id is this team. Use ?expand=agents to embed them, or the nested routes.

Endpoints

GET/v1/helpdesk/teamsA page, with every filter, sort, search, field and expand option.
POST/v1/helpdesk/teamsCreate 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/teams/{id}One record, with an ETag; If-None-Match earns a 304.
PATCH/v1/helpdesk/teams/{id}Change the fields you send.
PUT/v1/helpdesk/teams/{id}Replace the record; required fields must all be there.
DELETE/v1/helpdesk/teams/{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/teams/{id}/agentsIts agents, as a page with all the list options.

Try it

List with a filter
curl "https://api.sondahub.com/v1/helpdesk/teams?limit=3"
One record
curl https://api.sondahub.com/v1/helpdesk/teams/1
Its agents
curl "https://api.sondahub.com/v1/helpdesk/teams/1/agents?limit=5"
Create
curl -i -X POST https://api.sondahub.com/v1/helpdesk/teams \
  -H "Content-Type: application/json" \
  -d '{"name":"Tier 1","hours":"24/7"}'
Read it back: newest first (send the session token)
curl "https://api.sondahub.com/v1/helpdesk/teams?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/teams/1 \
  -H "Content-Type: application/json" \
  -d '{"name":"Changed name"}'
Delete the one you created
curl -X DELETE https://api.sondahub.com/v1/helpdesk/teams/5 \
  -H "X-Sondahub-Session: THE_TOKEN_FROM_THE_CREATE"

Query recipes

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

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

GraphQL

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

{
  teams(limit: 3, sort: "-id") {
    total
    data {
      id name slug timezone
      agents(limit: 2) { id }
    }
  }
}
Run it
curl https://api.sondahub.com/v1/helpdesk/graphql -H "Content-Type: application/json" -d '{"query": "{ teams(limit: 3, sort: \"-id\") { total data { id name slug timezone agents(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/teams.

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":"teams","limit":3}}}'

More in the Helpdesk API

agents (25) · 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.