Note: you can also create resources via our Admin Dashboard. Navigate to "resources" and click "add resource". Login to the Admin here
Its a good idea to have familiarised yourself with Timekits definition of a bookable resource before reading this article.
Timekit can be used without your users even knowing, as resource creation and provisioning can be done 100% through the API.
This tutorial will focus on resource creation solely through the API. If you need to add resources that are synced with a google account, you need to add the resource through our admin interface as described above, just make sure to use the google sign up link.
In the sign up flow of your app, you can add an API call to Timekit where you create the resource (with the email, password, timezone etc. provided through your own screens) and save the resulting API tokens.
Nifty eh? Ok let's dive in.
Save the IDs
As we'll demonstrate further down each resource will have it own unique identifier in the form of a UUID. This UUID and the resource's calendar UUID is all you need to get up and running, querying for availability and handle bookings.
As per REST conventions you create resources by requesting the /resource endpoint with a POST like so:
curl --request POST \
--url https://api.timekit.io/v2/resources \
--header 'Content-Type: application/json' \
--user :live_api_key_7nzvc7wsBQQISLeFSVhROys9V1bUJ1z7 \
"name": "Doc Brown",
This will create the Doc Brown resource, only the "name" and "timezone" parameters are mandatory as its not common for a conference room to have an email address.
The above request will produce a response similar to this:
"first_name": "Doc Brown",
"name": "Doc Brown",
"description": "Created by Timekit on resource creation"
Now you should store the resource's ID and the calendar's ID since you'll be needing these when querying for availability and creating bookings.
You you're ready to really start using Timekit, by means of our FindTime engine that you query for availability, please read this introduction to availability or just jump right to the tutorial on how you find availability.