Skip to content

List Testimonies History ​

Retrieves finished testimonies (completed, cancelled) for the authenticated user — the testimonies they created as a client, or the ones they were assigned to as an expert.

HTTP Request ​

GET /api/v1/me/testimonies/history

Query ParameterDescription
search string, optionalFull-text search term (max 255 chars). See Searching.
sort string, optionalSort field, prefixed with - for descending order. See Sorting.
page integer, optionalPage number, starting at 1 (default). See Pagination.

Authentication ​

Requires authentication via Bearer token. Email verification is not required.

401 Unauthorized

json
{
  "message": "Unauthenticated."
}

Response ​

200 OK

A page of Testimony Objects — 20 per page — with Laravel's links / meta pagination envelope (see Pagination). offers is always null here — use Show Testimony to load the offers of a testimony. For a completed testimony expert, acceptedOffer, invoices, acceptedAt and completedAt are populated, and the other party's email and phone are unlocked (see Counterparty).

json
{
  "data": [
    {
      "id": "01J5X3Y8ZK2Q4R6T8V0W2X4Y6Z",
      "number": "2648213",
      "state": "cancelled",
      "purpose": "mortgage",
      "client": {
        "firstName": "Pavol",
        "lastName": "Paška",
        "regions": null,
        "email": null,
        "phone": null
      },
      "expert": null,
      "shippingAddress": null,
      "realEstate": {
        "type": "house",
        "region": "nr",
        "properties": {
          "parcelCount": 2,
          "storeyCount": 1,
          "otherBuildingCount": 0,
          "detachedGarageCount": 1
        },
        "address": {
          "line1": null,
          "line2": null,
          "city": null,
          "postalCode": null,
          "parcelNumber": "123",
          "cadastralArea": "456"
        },
        "addressCoords": {
          "lat": 48.30734852531308,
          "lng": 18.086583509280644
        },
        "userCoords": null
      },
      "notes": "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
      "cancellationReason": null,
      "acceptedOffer": null,
      "offers": null,
      "invoices": null,
      "createdAt": "2024-12-21T10:41:59+00:00",
      "acceptedAt": null,
      "completedAt": null
    }
  ],
  "links": {
    "first": "https://api.brunago.sk/api/v1/me/testimonies/history?page=1",
    "last": "https://api.brunago.sk/api/v1/me/testimonies/history?page=1",
    "prev": null,
    "next": null
  },
  "meta": {
    "current_page": 1,
    "from": 1,
    "last_page": 1,
    "links": [
      {
        "url": null,
        "label": "« Predchádzajúca",
        "active": false
      },
      {
        "url": "https://api.brunago.sk/api/v1/me/testimonies/history?page=1",
        "label": "1",
        "active": true
      },
      {
        "url": null,
        "label": "Nasledujúca »",
        "active": false
      }
    ],
    "path": "https://api.brunago.sk/api/v1/me/testimonies/history",
    "per_page": 20,
    "to": 1,
    "total": 1
  }
}

Sorting ​

Use the sort query parameter; default is createdAt DESC.

  • No dash (e.g., &sort=createdAt): ascending
  • Dash (e.g., &sort=-createdAt): descending
  • Allowed fields: clientName, type, address, purpose, createdAt, completedAt (camelCase only; snake_case is rejected)
  • type and purpose are ordered by their Slovak labels (e.g. Byt, Hypotekárny úver), not by the enum values

Any other value is rejected with 422 Unprocessable Content:

json
{
  "message": "Hodnota Zoradenie nieje v zozname povolených hodnôt.",
  "errors": {
    "sort": [
      "Hodnota Zoradenie nieje v zozname povolených hodnôt."
    ]
  }
}

Searching ​

Use the search query parameter for full-text search (max 255 characters) across the client's and the expert's name, the real estate type and the testimony purpose (both by their Slovak labels), the address, the postal code and the order number. Every field matches as you type except the order number, which is matched as a whole — send it in full. The search index is updated asynchronously, so a testimony that just changed state may take a moment to appear in the results.

Paging ​

Request further pages with the page query parameter, or follow the URLs in links and meta.links: they repeat the search and sort of your request, so the filter and the order carry over.