The Office-themed Mock API (unofficial)

Employees, office pranks and quotes from a fictional paper company mockumentary. Practice CRUD, Bearer auth, nested resources, pagination and optimistic concurrency.

Base URL: https://funapi.dev/api/office/v1 · 8 endpoints · OpenAPI 3.1 spec and Postman collection available. New here? Read the getting started guide.

employees

eight desks, one regional manager

pranks

mostly aimed at one assistant (to the) regional manager

quotes

that's what she said

The Office API covers a paper company: employees, the pranks played on them and a quote collection. It is one of the gentler CRUD surfaces in the catalog and a reasonable first target when you are teaching someone the request/response loop before introducing auth, concurrency or error injection.

What you can practise here

Example request and response

GET https://funapi.dev/api/office/v1/employees — List employees (paginated, filter by department). No token, no signup:

curl -i https://funapi.dev/api/office/v1/employees

Response: 200 OK

{
  "page": 1,
  "pageSize": 4,
  "total": 8,
  "totalPages": 2,
  "data": [
    {
      "id": 1,
      "name": "Michael Scott",
      "role": "Regional Manager",
      "department": "Management",
      "deskNumber": 1,
      "_v": 1
    },
    {
      "id": 2,
      "name": "Dwight Schrute",
      "role": "Assistant to the Regional Manager",
      "department": "Sales",
      "deskNumber": 2,
      "_v": 1
    },
    {
      "id": 3,
      "name": "Jim Halpert",
      "role": "Sales Representative",
      "department": "Sales",
      "deskNumber": 3,
      "_v": 1
    },
    {
      "id": 4,
      "name": "Pam Beesly",
      "role": "Receptionist",
      "department": "Reception",
      "deskNumber": 4,
      "_v": 1
    }
  ]
}

Open and run this endpoint

All 55 mock REST APIs

Use this response elsewhere

Unofficial and fan-made. The The Office API is a practice API that borrows a theme; it is not affiliated with, sponsored or endorsed by the owners of the names it references, which belong to them. Every record it returns is test data for exercising HTTP behaviour, not an authoritative source on the subject.

Last updated