Core API Documentation
Event
Describes the schedules for a Service.
Front
No authentication required.
GET /api/v2/front/events
This returns a list of publicly viewable Events. The parameters from and to can be used to specify a time range, with a maximum of 120 days. Leaving from/to blank will get all events. If the person calling the API (or one of their dependents) is attending an event, they'll show up in the attendees.
Parameters
| from | timestamp | Start of time range filter. |
|---|---|---|
| to | timestamp | End of time range filter. If from is given, this can be no more than 120 days later. |
| ids | comma delimited string | The event identifier(s) to filter on. |
| service_ids | comma delimited string | The service identifier(s) to filter on. |
REQUEST
$ curl "https://mybiz.pike13.com/api/v2/front/events?service_ids=2,3&from=2018-05-01&to=2018-05-20&client_id=XXXXXXXXXXXXXX"
RESPONSE
{
"events": [
{
"id": 1,
"name": "Group Workout",
"service_id": 2,
"service_type": "course",
"start_time": "2018-04-03T00:00:00Z",
"end_time": null,
"created_at": "2018-03-28T23:44:17Z",
"updated_at": "2018-04-30T20:13:26Z",
"recurs": true,
"instructions": null,
"attendees": [
{
"id": 1,
"name": "Jane Superfit",
"email": "jane@email.com",
"start_at": "2018-05-04T21:00:00Z",
"end_at": null,
"state": "enrolled"
}
],
"icals": [
{
"rrule": "Weekly on Mondays, Wednesdays, and Fridays until April 27, 2018",
"id": 27,
"repeat_end": 1,
"day": [
"1",
"3",
"5"
],
"interval": 1,
"rcount": null,
"rule_type": "Weekly",
"all_day": null,
"location_id": 1000,
"start_at": "2018-04-03T00:00:00Z",
"end_at": "2018-04-03T01:00:00Z",
"until_at": "2018-04-28T06:59:59Z"
},
{
"id": 28,
"repeat_end": 0,
"day": [],
"interval": null,
"rcount": null,
"rule_type": null,
"all_day": null,
"location_id": 1000,
"start_at": "2018-04-14T01:00:00Z",
"end_at": "2018-04-14T02:00:00Z"
}
]
}
],
"total_count": 1
}
GET /api/v2/front/events/:id
Returns the details of an individual Event.
REQUEST
$ curl https://mybiz.pike13.com/api/v2/front/events/1 \
-H "Authorization: Bearer XXXXXXXXXXXXXXX"
RESPONSE
{
"events": [
{
"id": 1,
"name": "Group Workout",
"service_id": 2,
"service_type": "course",
"start_time": "2018-04-03T00:00:00Z",
"end_time": null,
"created_at": "2018-03-28T23:44:17Z",
"updated_at": "2018-04-30T20:13:26Z",
"recurs": true,
"attendees": [],
"instructions": null,
"icals": [
{
"rrule": "Weekly on Mondays, Wednesdays, and Fridays until April 27, 2018",
"id": 27,
"repeat_end": 1,
"day": [
"1",
"3",
"5"
],
"interval": 1,
"rcount": null,
"rule_type": "Weekly",
"all_day": null,
"location_id": 1000,
"start_at": "2018-04-03T00:00:00Z",
"end_at": "2018-04-03T01:00:00Z",
"until_at": "2018-04-28T06:59:59Z"
},
{
"id": 28,
"repeat_end": 0,
"day": [],
"interval": null,
"rcount": null,
"rule_type": null,
"all_day": null,
"location_id": 1000,
"start_at": "2018-04-14T01:00:00Z",
"end_at": "2018-04-14T02:00:00Z"
}
]
}
]
}
Desk
GET /api/v2/desk/events
This returns a list of Events viewable by staff members. The parameters from and to can be used to specify a time range, with a maximum of 120 days. Leaving from/to blank will get all events. All attendees for an event will be included.
Parameters
| from | timestamp | Start of time range filter. |
|---|---|---|
| to | timestamp | End of time range filter. If from is given, this can be no more than 120 days later. |
| ids | comma delimited string | The event identifier(s) to filter on. |
| service_ids | comma delimited string | The service identifier(s) to filter on. |
REQUEST
$ curl "https://mybiz.pike13.com/api/v2/desk/events?service_ids=2,3&from=2018-05-01&to=2018-05-20" \
-H "Authorization: Bearer XXXXXXXXXXXXXXX"
RESPONSE
{
"events": [
{
"id": 1,
"name": "Group Workout",
"service_id": 2,
"service_type": "course",
"start_time": "2018-04-03T00:00:00Z",
"end_time": null,
"created_at": "2018-03-28T23:44:17Z",
"updated_at": "2018-04-30T20:13:26Z",
"recurs": true,
"instructions": null,
"attendees": [
{
"id": 1,
"name": "Jane Superfit",
"email": "jane@email.com",
"start_at": "2018-05-04T21:00:00Z",
"end_at": null,
"state": "enrolled"
}
],
"icals": [
{
"rrule": "Weekly on Mondays, Wednesdays, and Fridays until April 27, 2018",
"id": 27,
"repeat_end": 1,
"day": [
"1",
"3",
"5"
],
"interval": 1,
"rcount": null,
"rule_type": "Weekly",
"all_day": null,
"location_id": 1000,
"start_at": "2018-04-03T00:00:00Z",
"end_at": "2018-04-03T01:00:00Z",
"until_at": "2018-04-28T06:59:59Z"
},
{
"id": 28,
"repeat_end": 0,
"day": [],
"interval": null,
"rcount": null,
"rule_type": null,
"all_day": null,
"location_id": 1000,
"start_at": "2018-04-14T01:00:00Z",
"end_at": "2018-04-14T02:00:00Z"
}
]
}
],
"total_count": 1
}
GET /api/v2/desk/events/:id
Returns the details of an individual Event.
REQUEST
$ curl https://mybiz.pike13.com/api/v2/desk/events/1 \
-H "Authorization: Bearer XXXXXXXXXXXXXXX"
RESPONSE
{
"events": [
{
"id": 1,
"name": "Group Workout",
"service_id": 2,
"start_time": "2015-08-01T21:00:00Z",
"end_time": "2015-08-05T01:00:00Z",
"created_at": "2015-07-29T20:49:43Z",
"updated_at": "2015-07-29T20:49:43Z",
"instructions": null,
"attendees": [
{
"id": 1,
"name": "John Doe",
"email": "john.d@pike13.com",
"start_at": "2015-07-30T20:00:00Z",
"end_at": "2015-10-30T20:00:00Z"
},
{
"id": 2,
"name": "Jane Doe",
"email": "jane.d@pike13.com",
"start_at": null,
"end_at": null
}
]
}
]
}