What this call does

Searches your construction sites and gives them back a page at a time.

Last updated: 15.05.2026

What you need first

  • A valid API key in the API-Key header.
  • Your companyAccountId as a query parameter. There is no default for it.
  • Nothing else. The body is optional: a request without one returns the first ten ACTIVE sites, newest change first.

Parameters

Parameter

Required

Default

Meaning

companyAccountId

Yes

none

Your company account. You can never see anyone else's sites.

The fields

All optional.

Field

Type

Default

Meaning

externalProjectId

text

(none)

Exact match. Applied only when it is not empty.

costCentre

text

(none)

Exact match, not a partial one.

projectStatus

choice

(none)

One status: DRAFT, ACTIVE, ARCHIVED or DEACTIVATED.

projectStatuses

list of choices

[]

Several statuses at once.

searchText

text

(none)

Partial, case-insensitive match across the fields listed below.

tenantIds

list of text

[]

Only sites belonging to these tenants.

memberEmailAddress

text

(none)

Exact match on the e-mail of somebody on the site.

accountMemberIds

list of text

(none)

Only sites these members are on.

searchCriteriaDtos

list

[]

Raw filters, each {"fieldName": "costCentre", "value": "KST-4711", "operator": "eq"}. Operators: in, like, lt, gt, eq, text_search, not_like, not_in, exists, not_exists, not_eq, between.

paginationInDto

object

page 0, 10 per page

Paging and sorting, see below.

title

text

none

Accepted and then ignored. No filter is ever built from it. Use searchText.

The fields inside paginationInDto

Field

Default

Meaning

pageIndex

0

Zero-based, so the first page is 0.

pageSize

10

Results per page.

sort.property

lastModifiedAt

Only title (or the alias name), costCentre and createdAt are honoured. Anything else quietly becomes lastModifiedAt.

sort.direction

DESC

ASC or DESC.

sort.ignoreCase

none

Set for you anyway: true for title and costCentre, false for the two date fields. Sending it has no effect.

What searchText searches

title, type, costCentre, description, externalProjectId, address.addressLineOne, address.addressLineTwo, address.city, address.zipcode, address.region, billingAddress.vatId, billingAddress.emailAddress and billingAddress.companyName, and no others. address.country and address.comments are not searched, so a search for a country name finds nothing.

A search with no projectStatus and no projectStatuses returns ACTIVE sites only. Archived, deactivated and draft sites are missing, and nothing in the response says a filter was applied. Name the statuses you want in projectStatuses to see everything.
Two silent behaviours. A misspelled field name is dropped, not refused, so the value is lost without a word. And an unrecognised value for a fixed-choice field does not fail either: projectStatus falls back to ACTIVE, role and valueType end up empty. Names and values are case-insensitive; only the spelling has to be right.

What you get back

200 OK and an object with three fields:

Field

Meaning

data

The sites on this page, each the full site record described under Look up one site.

paginationOutDto

pageIndex, pageSize, sort (property, direction, ignoreCase), totalElements and totalPages.

query

Always empty on this call.

Note the name: the paging block of the answer is paginationOutDto, not pagination.

Additional fields: additionalFields and customFieldValues

A site can carry your own extra fields. There are two shapes, they write to the same place, and both keep working:

Field

Use it?

additionalFields

Yes. The current shape.

customFieldValues

The older shape. Still read and still written, to exactly the same values.

additionalFields entries take:

Field

Required

Default

Meaning

technicalName

Yes

none

The key, and what a field is matched on when you save the site again. A field already stored under this name keeps its id and its creation date.

displayName

No

(none)

The label a person sees

value

No

(none)

The value, always text

valueType

No

TEXT

TEXT, NUMBER, FLOAT, DATE, SELECT, MULTI_SELECT, PASSWORD

valueOptions

No

empty

The choices, for SELECT and MULTI_SELECT

fieldId

No

(none)

The field's id in your catalogue. Not needed, the name, label and type are enough.

A field you name that does not exist yet is created for you, so the value is one a form can show later rather than one stored out of sight.

How a write changes the fields, read this before your first update

What you send

What happens to the stored fields

additionalFields with entries

Those fields are added or updated. Every field you did not name is left alone.

Neither field at all

Nothing changes.

"customFieldValues": []

Nothing changes.

"additionalFields": []

Nothing changes, an empty list is not a clear.

"additionalFields": [{}]

Every additional field on the site is deleted.

The last two lines are the trap. An empty list leaves everything alone; a list holding one blank entry wipes the lot. Exactly one entry, and that entry either null or carrying a blank technicalName and a blank value, is read as "clear them all". Two blank entries is not a clear. A blank entry alongside a real one is not a clear.
Why an empty list does nothing: customFieldValues defaults to an empty list on every payload, so an integration written before additional fields existed sends one on every update. Reading that as "remove them all" would have emptied those customers' sites. Clearing therefore has to be asked for on purpose.
customFieldValues writes a value onto the field it names, exactly as it always has. additionalFields writes the field as you describe it. Where both name the same technicalName, additionalFields is applied last and wins.

Common mistakes

What you see

Why

What to do

Archived sites are missing

No status filter was sent, so ACTIVE was applied for you

Send "projectStatuses": ["ACTIVE", "ARCHIVED", "DRAFT", "DEACTIVATED"].

Filtering by title returns everything

title is accepted and then never used

Use searchText.

A partial cost centre finds nothing

costCentre is an exact match

Send the whole cost centre, or use searchText.

Sorting by budget or startDate does nothing

Only title, name, costCentre and createdAt are honoured

Sort in your own system after fetching.

Only ten results come back

pageSize defaults to 10

Set paginationInDto.pageSize and read totalPages to walk the rest.

A search for Deutschland finds nothing

address.country is not one of the searched fields

Search on the town instead.

403 FORBIDDEN, Invalid ApiKey

Key missing, unknown, switched off or expired

Keys are per environment; a staging key fails in production.

400 REQUEST_PARAMETER_IS_MISSING

No companyAccountId in the address line

Add ?companyAccountId=....

400 REQUIRED_REQUEST_BODY_IS_MISSING

The // comments are still in the body, or the JSON is broken

Strip the comments.

What we could not confirm

  • Which fieldName values work inside searchCriteriaDtos. An unusable one fails while the search runs rather than being reported up front.
  • The largest workable pageSize. Nothing here sets a limit, but a very large page can time out.

Adresse

HTTP
POST https://api.cathago.de/api/gateways/integration/projects/search?companyAccountId=<companyAccountId>

Beispielaufruf

Terminal
curl -X POST 'https://api.cathago.de/api/gateways/integration/projects/search?companyAccountId=<companyAccountId>' \
  -H 'API-Key: <Ihr API-Schlüssel>' \
  -H 'Content-Type: application/json' \
  -d '{
  "externalProjectId": "BV-2026-0417",
  "costCentre": "KST-4711",
  "projectStatus": "ACTIVE",
  "projectStatuses": [
    "ACTIVE",
    "DRAFT"
  ],
  "searchText": "Leipzig",
  "tenantIds": [
    "C3125110678675695",
    "C3125110690770447"
  ],
  "memberEmailAddress": "sharif.malik@cathago.de",
  "accountMemberIds": [
    "CXY25110654020841",
    "CCW26040260120140"
  ],
  "paginationInDto": {
    "pageIndex": 0,
    "pageSize": 25,
    "sort": {
      "property": "title",
      "direction": "ASC",
      "ignoreCase": true
    }
  }
}'

Beispiel für den Body

JSON
{
    "externalProjectId": "BV-2026-0417",        // Optional. Exact match, not a partial one
    "costCentre": "KST-4711",                   // Optional. Exact match, not a partial one
    "projectStatus": "ACTIVE",                  // Optional. One status: DRAFT, ACTIVE, ARCHIVED or DEACTIVATED
    "projectStatuses": ["ACTIVE", "DRAFT"],     // Optional. Several at once. Naming any status switches off the ACTIVE-only default
    "searchText": "Leipzig",                    // Optional. Partial and case-insensitive, across title, cost centre, description and address
    "tenantIds": [                              // Optional. Only sites of these tenants
        "C3125110678675695",                    // First tenant
        "C3125110690770447"                     // Second tenant
    ],
    "memberEmailAddress": "sharif.malik@cathago.de", // Optional. Exact match on the address of a person on the site
    "accountMemberIds": [                       // Optional. Only sites these people are on
        "CXY25110654020841",                    // Cathago id of a member
        "CCW26040260120140"                     // Second member
    ],
    "paginationInDto": {                        // Optional. Left out entirely you get page 0 with 10 results
        "pageIndex": 0,                         // Optional, default 0. Zero-based, so the first page is 0
        "pageSize": 25,                         // Optional, default 10. Results per page
        "sort": {                               // Optional. Sorting of the results
            "property": "title",                // Optional, default lastModifiedAt. Only title, costCentre and createdAt are honoured
            "direction": "ASC",                 // Optional, default DESC. ASC or DESC
            "ignoreCase": true                  // Optional. Set for you anyway, so sending it changes nothing
        }
    }
}

Beispielantworten

Search project with different parameters

Status: 200 OK

JSON
{
    "data": [
        {
            "externalProjectId": null,
            "title": "PROJECT HEM SSS",
            "costCentre": "COSTBER001",
            "startDate": "2023-06-25",
            "endDate": "2028-02-23",
            "budget": 150000,
            "description": "Update anthing upto 4096 characters",
            "id": "C0226022313402373",
            "address": {
                "addressLineOne": "123 Main Street",
                "addressLineTwo": "Suite 5",
                "city": "Berlin",
                "country": "Germany",
                "zipcode": "10115",
                "comments": "Main office address",
                "mapLink": "https://maps.example.com/123",
                "region": null,
                "id": "CAE26022389018632"
            },
            "billingAddress": {
                "addressLineOne": "Billing Street 10",
                "addressLineTwo": "",
                "city": "Berlin",
                "country": "Germany",
                "zipcode": "10117",
                "comments": "Send all invoices to the attention of Accounts Payable.",
                "mapLink": "https://maps.example.com/billing",
                "region": null,
                "id": "CWZ26022365399387",
                "companyName": "ABC Construction GmbH",
                "vatId": "DE1123456789",
                "emailAddress": null,
                "contactPersonName": null
            },
            "members": [
                {
                    "id": "CQJ26022387909222",
                    "emailAddress": "test-project-one@cathago.de",
                    "role": {
                        "roleName": "PROCUREMENT MANAGER",
                        "roleType": "SYSTEM_DEFINED"
                    },
                    "invitationSentDate": "2026-02-23T05:36:55.382Z",
                    "contactPerson": {
                        "id": "CVA26022377241060",
                        "fullName": "Giriraj Sharma",
                        "emailAddress": "test-project-one@cathago.de",
                        "contactNumber": "+49 30 11223344",
                        "alternateContactNumber": "+49 171 1122334"
                    },
                    "memberStatus": "PENDING",
                    "username": null
                },
                {
                    "id": "CDI26022381391510",
                    "emailAddress": "manager@example.com",
                    "role": {
                        "roleName": "PROCUREMENT MANAGER",
                        "roleType": "SYSTEM_DEFINED"
                    },
                    "invitationSentDate": "2026-02-11T14:23:31.495Z",
                    "contactPerson": {
                        "id": "CTA26021116273926",
                        "fullName": "John Doe",
                        "emailAddress": "manager@example.com",
                        "contactNumber": "+49 123 4567",
                        "alternateContactNumber": "+49 987 6543"
                    },
                    "memberStatus": "PENDING",
                    "username": null
                }
            ],
            "locations": [
                {
                    "title": "Site Location A",
                    "comments": "Primary construction site - North Sector",
                    "id": "CJO26022311668193",
                    "defaultLocation": true,
                    "address": {
                        "addressLineOne": "Site Road 12",
                        "addressLineTwo": "Gate 4",
                        "city": "Munich",
                        "country": "Germany",
                        "zipcode": "80331",
                        "comments": "Heavy vehicle access only through Gate 4",
                        "mapLink": "https://maps.example.com/siteA",
                        "region": "Bavaria",
                        "id": "CKB26022379772797"
                    },
                    "members": [
                        {
                            "id": "CQJ26022387909222",
                            "emailAddress": "test-project-one@cathago.de",
                            "role": {
                                "roleName": "PROCUREMENT MANAGER",
                                "roleType": "SYSTEM_DEFINED"
                            },
                            "invitationSentDate": "2026-02-23T05:36:55.382Z",
                            "contactPerson": {
                                "id": "CVA26022377241060",
                                "fullName": "Giriraj Sharma",
                                "emailAddress": "test-project-one@cathago.de",
                                "contactNumber": "+49 30 11223344",
                                "alternateContactNumber": "+49 171 1122334"
                            },
                            "memberStatus": "PENDING",
                            "username": null
                        },
                        {
                            "id": "CDI26022381391510",
                            "emailAddress": "manager@example.com",
                            "role": {
                                "roleName": "PROCUREMENT MANAGER",
                                "roleType": "SYSTEM_DEFINED"
                            },
                            "invitationSentDate": "2026-02-11T14:23:31.495Z",
                            "contactPerson": {
                                "id": "CTA26021116273926",
                                "fullName": "John Doe",
                                "emailAddress": "manager@example.com",
                                "contactNumber": "+49 123 4567",
                                "alternateContactNumber": "+49 987 6543"
                            },
                            "memberStatus": "PENDING",
                            "username": null
                        }
                    ],
                    "createdAt": "2026-02-23T11:01:19.450Z",
                    "lastModifiedAt": "2026-02-23T12:06:59.514Z"
                }
            ],
            "customFieldValues": [],
            "projectStatus": "ACTIVE",
            "tenantId": "C3125110678675695"
        }
    ],
    "paginationOutDto": {
        "pageIndex": 0,
        "pageSize": 10,
        "sort": {
            "property": "lastModifiedAt",
            "direction": "DESC"
        },
        "totalElements": 1,
        "totalPages": 1
    },
    "query": null
}