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-Keyheader. - Your
companyAccountIdas a query parameter. There is no default for it. - Nothing else. The body is optional: a request without one returns the first ten
ACTIVEsites, newest change first.
Parameters
Parameter | Required | Default | Meaning |
|---|---|---|---|
| Yes | none | Your company account. You can never see anyone else's sites. |
The fields
All optional.
Field | Type | Default | Meaning |
|---|---|---|---|
| text | (none) | Exact match. Applied only when it is not empty. |
| text | (none) | Exact match, not a partial one. |
| choice | (none) | One status: |
| list of choices |
| Several statuses at once. |
| text | (none) | Partial, case-insensitive match across the fields listed below. |
| list of text |
| Only sites belonging to these tenants. |
| text | (none) | Exact match on the e-mail of somebody on the site. |
| list of text | (none) | Only sites these members are on. |
| list |
| Raw filters, each |
| object | page 0, 10 per page | Paging and sorting, see below. |
| text | none | Accepted and then ignored. No filter is ever built from it. Use |
The fields inside paginationInDto
Field | Default | Meaning |
|---|---|---|
|
| Zero-based, so the first page is |
|
| Results per page. |
|
| Only |
|
|
|
| none | Set for you anyway: |
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.
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.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 |
|---|---|
| The sites on this page, each the full site record described under Look up one site. |
|
|
| 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? |
|---|---|
| Yes. The current shape. |
| The older shape. Still read and still written, to exactly the same values. |
additionalFields entries take:
Field | Required | Default | Meaning |
|---|---|---|---|
| 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. |
| No | (none) | The label a person sees |
| No | (none) | The value, always text |
| No |
|
|
| No | empty | The choices, for |
| 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 |
|---|---|
| Those fields are added or updated. Every field you did not name is left alone. |
Neither field at all | Nothing changes. |
| Nothing changes. |
| Nothing changes, an empty list is not a clear. |
| Every additional field on the site is deleted. |
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.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 | Send |
Filtering by |
| Use |
A partial cost centre finds nothing |
| Send the whole cost centre, or use |
Sorting by | Only | Sort in your own system after fetching. |
Only ten results come back |
| Set |
A search for |
| Search on the town instead. |
| Key missing, unknown, switched off or expired | Keys are per environment; a staging key fails in production. |
| No | Add |
| The | Strip the comments. |
What we could not confirm
- Which
fieldNamevalues work insidesearchCriteriaDtos. 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
POST https://api.cathago.de/api/gateways/integration/projects/search?companyAccountId=<companyAccountId>Beispielaufruf
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
{
"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
{
"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
}