Searching for bookings
Search based on graph
Finding only bookings following a certain graph is straightforward with search. As an example, finding all instant bookings would look like this:
curl --request GET \
  --url https://api.timekit.io/v2/bookings?search=graph:instant \
  --header 'Content-Type: application/json' \
  --user :live_api_key_7nzvc7wsBQQISLeFSVhROys9V1bUJ1z7
The important part to notice here is the query: ?search=graph:instant.
Search based on graph and state
Similarly, you can also search for bookings by their state - also combined with the graph. Searching for bookings following the instant graph that are cancelled would look like this:
curl --request GET \
  --url https://api.timekit.io/v2/bookings?search=graph:instant;state:cancelled \
  --header 'Content-Type: application/json' \
  --user :live_api_key_7nzvc7wsBQQISLeFSVhROys9V1bUJ1z7
Notice how the semicolon is used to append the search query: ?search=graph:instant;state:cancelled.
Updated over 7 years ago
