Occurrences
bearerAuthAuthorizationBearer <token>An API key created in Settings > Integrations (gp_live_…), or an OAuth access token.
id*stringuuidfilter?string"upcoming""upcoming""past""attention"page?integer1 <= value1One page of 20 occurrences.
application/json- response
filter*string"upcoming""past""attention"page*integerpage_size*integertotal*integercounts*items*array<>curl -X GET 'https://app.groupilot.com/api/v1/events/497f6eca-6276-4993-bfeb-53cbbbba6f08/occurrences'{ "filter": "upcoming", "page": 0, "page_size": 0, "total": 0, "counts": { "upcoming": 0, "past": 0, "attention": 0 }, "items": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "scheduled_at": "2019-08-24T14:15:22Z", "status": "upcoming", "state": "string", "detail": "string", "link_missing": true, "community_due_at": "2019-08-24T14:15:22Z", "groups": { "count": 0, "members": 0, "invite_link": "string" }, "messages": { "sent": 0, "total": 0 } } ]}bearerAuthAuthorizationBearer <token>An API key created in Settings > Integrations (gp_live_…), or an OAuth access token.
id*stringuuidapplication/json- body
scheduled_at_local*stringLocal date-time in the event's timezone, no offset.
^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(?::\d{2})?$Created; its sends are scheduled if a sequence is linked.
application/json- response
id*stringuuidscheduled_at*stringISO 8601 date-time with offset.
date-timestatus*stringready: the community exists. live/completed: the live happened. canceled: removed by a recurrence change or a stop.
"upcoming""ready""live""completed""canceled"state*stringDisplay state computed by the app (same vocabulary as the Occurrences tab).
detail*string|nulllink_missing*booleancommunity_due_at*|When the community is (or was) due to be created.
date-timegroups*messages*curl -X POST 'https://app.groupilot.com/api/v1/events/497f6eca-6276-4993-bfeb-53cbbbba6f08/occurrences' \ -H 'Content-Type: application/json' \ -d '{ "scheduled_at_local": "string"}'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "scheduled_at": "2019-08-24T14:15:22Z", "status": "upcoming", "state": "string", "detail": "string", "link_missing": true, "community_due_at": "2019-08-24T14:15:22Z", "groups": { "count": 0, "members": 0, "invite_link": "string" }, "messages": { "sent": 0, "total": 0 }}bearerAuthAuthorizationBearer <token>An API key created in Settings > Integrations (gp_live_…), or an OAuth access token.
id*stringuuidThe occurrence, its communities and the creation state.
application/json- response
occurrence*event_id*stringuuidgroups*array<>provisioning*|nullcurl -X GET 'https://app.groupilot.com/api/v1/occurrences/497f6eca-6276-4993-bfeb-53cbbbba6f08'{ "occurrence": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "scheduled_at": "2019-08-24T14:15:22Z", "status": "upcoming", "state": "string", "detail": "string", "link_missing": true, "community_due_at": "2019-08-24T14:15:22Z", "groups": { "count": 0, "members": 0, "invite_link": "string" }, "messages": { "sent": 0, "total": 0 } }, "event_id": "a7a26ff2-e851-45b6-9634-d595f45458b7", "groups": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "number": 0, "name": "string", "status": "string", "member_count": 0, "is_full": true, "invite_link": "string" } ], "provisioning": { "status": "string", "due_at": "2019-08-24T14:15:22Z", "needs_attention": true, "can_retry": true, "latest_attempt_at": "2019-08-24T14:15:22Z", "latest_error": "string" }}Only when the occurrence needs attention (can_retry). The scheduler does retry by itself; this forces it on its next tick.
bearerAuthAuthorizationBearer <token>An API key created in Settings > Integrations (gp_live_…), or an OAuth access token.
id*stringuuidAccepted (or not yet due).
application/json- response
accepted*booleanmode*string"create""resume""repair""retry"provisioning_status*string|nullretry_available_at*|ISO 8601 date-time with offset.
date-timecurl -X POST 'https://app.groupilot.com/api/v1/occurrences/497f6eca-6276-4993-bfeb-53cbbbba6f08/retry-provisioning'{ "accepted": true, "mode": "create", "provisioning_status": "string", "retry_available_at": "2019-08-24T14:15:22Z"}