Search | Baack docs
Search
Endpoints
ReadGET/n/v1/search/{urn}
Search endpoint with support for locating collections of different types.
Notes
- Search is currently under active development and may be subject to breaking changes.
- Search items returned by the search backend may not be visible or may not be available after the search snapshot is materialised so items should be loaded based on the search results. To maintain consistent search responses results are created async and a cache of the items listed. Items may be deleted or access removed after the snapshot. The snapshot of the item does not include any sensitive data and the 'name' field is optionally included.
- Search item 'One Of' representation is currently under review to migrate to typed collections as it introduces complexity into the result handling.
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Responses
curl -H "Authorization: Bearer $BAACK_API_TOKEN" \ https://api.baack.co/n/v1/search/{urn}
Fields
| Field | Type | Description |
|---|---|---|
| urn | string (uuid) | |
| owner | Company | Required on create. . |
| pagination | Pagination | |
| createdTimestamp | string (date-time) | |
| context | Search Context | |
| updatedTimestamp | string (date-time) | |
| items | array of Search Item | Ignored on update. |
| includeScopes | string | Ignored on update. One of: |
| url | string (uri) | |
| status | string | One of: |
| order | string | Optional. |
Search Context
Search context used for refining the scoping of a search based on relations to a context. This allows searching for tasks for example by entity or identities related to an entity. Note that searching with a context can still return all results however the context should focus on the strongest relationships and will typically include a subset of related items
Fields
| Field | Type | Description |
|---|---|---|
| entities | array of Entity | Ignored on update. |
Used by: Search
Search Item
A search result item
Fields
| Field | Type | Description |
|---|---|---|
| urn | string (uuid) | |
| item | one of API Client, Company, Entity, Entity List, Group, Group Membership, Identity, Project, Task, Deal, Role, Lead, Payment Invoice, Permission, Project, Webhook Subscription, Webhook Trigger, Workflow | |
| sortOrder | integer (int32) | |
| name | string | |
| type | string | One of: |
| url | string (uri) |
Used by: Search