API reference | Baack docs
API reference
Every object in the Baack API, with its fields and the endpoints that create, read, update and delete it. Generated from the API's OpenAPI specification.
Requests go to this address, with an API client's bearer token: https://api.baack.co
A REST API, described by OpenAPI
Each kind of object is a resource with its own URL: a collection, such as /n/v1/identity/, and each record in it by its URN, such as /n/v1/identity/{urn}. POST to the collection creates a record, and GET, PUT and DELETE on the record read, replace and delete it. Requests and responses are JSON, sent with an API client's bearer token, and what each client can do is set by its permissions.
A page's content needs only one request. The entity view, /v/v1/entityview/, returns a whole page by its path, language and variant, every content item in it with its name and sort order. Content is a flat set of typed items rather than a nested tree, so there's no query to write for each content type. That's why Baack has no GraphQL API: a website reads a page in one GET, which any HTTP tool, log or cache already understands.
Every endpoint is described in an OpenAPI 3.1 specification, and this reference is generated from it, so it can't drift from the API. The TypeScript client, @baack-software/baack-ts-client on npm, wraps the same endpoints with typed requests and errors.
curl -H "Authorization: Bearer $BAACK_API_TOKEN" \
https://api.baack.co/v/v1/entityview/{urn}Community
- Group
A group of identities (people) which can be used for various purposes like permissions or collections of identities like a mailing list or a community
- Group Membership
Representation of a group membership configuration. Note that the presence of a membership does not imply that the membership is active. Review the state for details of the current state. To support opt out and other negative preferences the state includes options for opt out of a group either by the member or the owner.
- Identity Notification Inbox
Representation of the 'inbox' of message threads with notification most recent updated and timestamp
- Message Thread
Representation of a message thread which can be used for general chat or discussions associated with other concepts.
- Message Thread Notification
Representation of a notification of unread messages on a message thread. These are automatically updated for members with a subscription to in app updates when a thread post is created. They can also be created via the API to allow integrations to model an inbox of notifications for identities on their integration
- Thread post
Representation of a post or message in a thread of messages
Company
- Company
Representation of a company object which may have a parent company (in structured companies), an owner, if this company represents some CRM company owned by a customer company and an organisation for which this company and associated accounts are provisioned.
- Organisation
Representation of an organisation which holds multiple account related companies which own data regarding other companies in the platform etc.
Content
- Content items
The typed values that make up a content entity: text, markdown, numbers, money, images and more, each with its history.
- Entity
A content entity, similar to a page with a collection of content items of differing types
- Entity List
Entity list for a collection of entity references. Note that the returned entity list on read will respect the natural ordering of the entity order sort order field
Customer
Identity
- Address
Postal or location address used by CRM and identity representation
- Client Identifier
Client identifiers are associated with identities and are typically used to uniquely identify a particular identity in the scope of a particular domain e.g. Google SignIn profile ID or other platform user identifier.
- Email
Representation of an email address associated with an identity
- Identity
Identity encapsulates all information associated with a person's identity like their contact details, associated addresses etc. The identity representation is used in multiple contexts and use cases like the identity of people in CRM as well as in the context of other use cases like role based access control or group membership.
- Person
Representation of a person associated with an identity
- Person Name
Name associated with a person (may be an alias)
- Telephone
Representation of a telephone number
Payment
- Payment Invoice
Representation of a payment invoice
- Payment Invoice Line
Payment invoice line item
- Payment Invoice Remittance
Representation of the remittance of an invoice for payments
Platform
- Accounts
Representation of accounts where a session user has admin access
- API Client
Representation of an API client
- API Client Bearer Token
Representation of a bearer token used to authenticate an API request
- Client Context
Representation of the client context metadata to allow callers to understand the current client session state. The client context may be using a regular web session (in the case of your client accessing content via a logged in user session), a bearer token either from a secure server to server context or a bearer token from an insecure browser client. The response JSON will let you understand your session state in order to trigger experiences like logging in a user to allow them to use client features like the Editor or Tasks clients.
- Company Page
A page of companies
- OAuth Token
Representation of an OAuth token. These are typically granted during oauth flows and may include access and refresh tokens.
- Permission
Representation of a permission grant. Permissions are fail closed so if an object requires a permission it must be present for the subject with the given label. Permissions represent directed edges granting a subject(type) [label] to object(type). When applied to an object the permissions will be checked for an exists style relationship from the subject scope.
- Rechart Data
Representation of rechart formatted time series data. The object has two fields the chart config which contains labels and the local date rows with keyed values
- Role
A role in role based access control context which can be associated with various actors
- Search
Representation of a search and it's results when available
Project
Webhook
- Webhook Subscription
Representation of a webhook subscription to listen for events supported by the given subject
- Webhook Trigger
Representation of a unique webhook trigger event
- Webhooks
How Baack tells your systems about changes, and every subject you can subscribe to.
Work
- Task Log
Representation of a single task log entry related to a tasks history of activities
Shared
- Common types
Types shared by several representations, such as pagination, and types used outside a single resource.