Search across records
const url = 'https://app.buildworkpro.com/api/v1/search?q=example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://app.buildworkpro.com/api/v1/search?q=example' \ --header 'Authorization: Bearer <token>'Full-text and fuzzy search across projects, contacts, site logs, documents, bids, leads, invoices, pay apps and change orders, blended into one relevance-ranked list. Requires projects:read; each other type is included only when the credential also holds that type’s read scope (e.g. bids:read), and results are limited to records the authorizing user may open.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “ Query Parameters ”Search text, at least 2 characters. * lists recent records.
Search text, at least 2 characters. * lists recent records.
Maximum results (default 20, max 50).
Maximum results (default 20, max 50).
Responses
Section titled “ Responses ”Matches, best first
object
object
Entity type of the match.
Id of the matched record; fetch it from that type’s own endpoint.
Display title (name, number or filename).
Short secondary text — email, project number, or the start of the matched body. Null when there is none.
Parent project for change orders, pay apps, site logs and invoices; null when the record has none. Absent for other types.
object
Server-generated request identifier
object
Opaque cursor for the next page; null when no more results
Whether more pages are available after this one
Items in this page
Example
{ "data": [ { "type": "project" } ]}Error
object
URL identifying the problem type
Short human-readable summary
HTTP status code
Human-readable explanation
Server-generated request identifier
Validation error array (422 only)
object
Field path that failed validation
Validation error code
Human-readable validation message
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "request_id": "example", "errors": [ { "field": "example", "code": "example", "message": "example" } ]}Error
object
URL identifying the problem type
Short human-readable summary
HTTP status code
Human-readable explanation
Server-generated request identifier
Validation error array (422 only)
object
Field path that failed validation
Validation error code
Human-readable validation message
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "request_id": "example", "errors": [ { "field": "example", "code": "example", "message": "example" } ]}Error
object
URL identifying the problem type
Short human-readable summary
HTTP status code
Human-readable explanation
Server-generated request identifier
Validation error array (422 only)
object
Field path that failed validation
Validation error code
Human-readable validation message
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "request_id": "example", "errors": [ { "field": "example", "code": "example", "message": "example" } ]}