post
/api/v1/calendar/add-event
API endpoint documentation
Endpoint Info
Base URLapi.bizkithub.com
AuthBearer Token
Methods1
Authentication Required
This endpoint requires a valid API key passed as a query parameter or Bearer token.
Get your API keyParameters
1 query, 1 body parameters
apiKeystringrequiredYour BizKitHub API key (passed as GET parameter).
Key format: A 32-character string matching: ^(PROD|DEV_|ROOT)[A-Za-z0-9]{28}$
Prefixes: PROD (production key), DEV_ (individual developer), ROOT (system key with no limits). Learn more
eventobjectrequiredExample Request
JavaScript fetch
const response = await fetch("https://api.bizkithub.com/api/v1/calendar/add-event?apiKey=PRODPGrFxpGEtrOZfuWhnoJohUYBXuOE", {
method: "POST",
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify({
"event": {
"calendarId": "2WRp6X5rSqQa321EjHB2mxZz74u74H84",
"startTime": "2024-05-01T10:00:00.000Z",
"endTime": "2024-05-01T12:00:00.000Z",
"title": "Training with Jan",
"description": "Training will start in Prague – Nusle.",
"agenda": "– Warm-up\n– Deadlift technique\n– Cool down",
"url": "https://gymroom.cz/pobocky/vinohrady",
"notifyBefore": "1h 30m",
"blockingTo": "2024-05-01T12:00:00.000Z",
"locationTitle": "Varšavská 11, 120 00, Praha 2 – Vinohrady",
"isAllDay": false,
"isBlocking": true,
"attendees": [
{
"memberId": 1234,
"customerId": "HxanU4a1n4El61zx",
"name": "Jan Barášek",
"email": "jan@barasek.com",
"phone": "+420 777123456"
}
],
"type": "training"
}
})
});
const data = await response.json();
console.log(data);post
Example Response
200Success
{
"eventId": "fqdjnvzrfqjcsmvyhgjirjtvftknayzx"
}cURL
Command line example
curl -X POST "https://api.bizkithub.com/api/v1/calendar/add-event?apiKey=PRODPGrFxpGEtrOZfuWhnoJohUYBXuOE" \
-H "Content-Type: application/json" \
-d '{
"event": {
"calendarId": "2WRp6X5rSqQa321EjHB2mxZz74u74H84",
"startTime": "2024-05-01T10:00:00.000Z",
"endTime": "2024-05-01T12:00:00.000Z",
"title": "Training with Jan",
"description": "Training will start in Prague – Nusle.",
"agenda": "– Warm-up\n– Deadlift technique\n– Cool down",
"url": "https://gymroom.cz/pobocky/vinohrady",
"notifyBefore": "1h 30m",
"blockingTo": "2024-05-01T12:00:00.000Z",
"locationTitle": "Varšavská 11, 120 00, Praha 2 – Vinohrady",
"isAllDay": false,
"isBlocking": true,
"attendees": [
{
"memberId": 1234,
"customerId": "HxanU4a1n4El61zx",
"name": "Jan Barášek",
"email": "jan@barasek.com",
"phone": "+420 777123456"
}
],
"type": "training"
}
}'Need an API key?
All BizKitHub API endpoints require authentication via API key.