Baack
Browse the docs

Endpoints

  • CreatePOST/n/v1/search/

    Search endpoint with support for locating collections of different types.

    Baack allocates the URN and returns it in the response.

    Request body: Search

    Responses

    201 Created
    returns SearchCREATE_SUCCESS
    400 Bad request
    returns ErrorREPRESENTATION_MISSING_REQUIRED_FIELD
  • 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

    200 OK
    returns SearchREAD_SUCCESS
    404 Not found
    returns ErrorNOT_FOUND
    curl -H "Authorization: Bearer $BAACK_API_TOKEN" \
      https://api.baack.co/n/v1/search/{urn}

Fields

Search fields
FieldTypeDescription
urnstring (uuid)
ownerCompany

Required on create.

.

paginationPagination
createdTimestampstring (date-time)
contextSearch Context
updatedTimestampstring (date-time)
itemsarray of Search Item

Ignored on update.

includeScopesstring

Ignored on update.

One of: API_CLIENT, COMPANY, ENTITY, ENTITY_LIST, GROUP, GROUP_MEMBERSHIP, IDENTITY, PERMISSION, PROJECT, TASK, WEBHOOK_SUBSCRIPTION, WEBHOOK_TRIGGER, PAYMENT_INVOICE, LEAD, DEAL, ROLE, WORKFLOW

urlstring (uri)
statusstring

One of: PENDING, RUNNING, PARTIAL_RESULT, FULL_RESULT

orderstring

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

Search Context fields
FieldTypeDescription
entitiesarray of Entity

Ignored on update.

Used by: Search

Search Item

A search result item

Fields

Search Item fields
FieldTypeDescription
urnstring (uuid)
itemone 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
sortOrderinteger (int32)
namestring
typestring

One of: API_CLIENT, COMPANY, DEAL, ENTITY, ENTITY_LIST, GROUP, GROUP_MEMBERSHIP, IDENTITY, LEAD, PAYMENT_INVOICE, PERMISSION, PROJECT, ROLE, TASK, WEBHOOK_SUBSCRIPTION, WEBHOOK_TRIGGER, WORKFLOW

urlstring (uri)

Used by: Search