Groupilot Docs
Referência da API

Occurrences

GET
/events/{id}/occurrences

Authorization

bearerAuth
headerAuthorizationBearer <token>

An API key created in Settings > Integrations (gp_live_…), or an OAuth access token.

Path Parameters

id*string
Formatuuid

Query Parameters

filter?string
Default"upcoming"
Value in"upcoming""past""attention"
page?integer
Range1 <= value
Default1

Response Body

One page of 20 occurrences.

application/json
  1. response
filter*string
Value in"upcoming""past""attention"
page*integer
page_size*integer
total*integer
counts*
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      }    }  ]}

Add an occurrence

POST
/events/{id}/occurrences

Authorization

bearerAuth
headerAuthorizationBearer <token>

An API key created in Settings > Integrations (gp_live_…), or an OAuth access token.

Path Parameters

id*string
Formatuuid

Request Body

application/json
  1. body
scheduled_at_local*string

Local date-time in the event's timezone, no offset.

Match^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(?::\d{2})?$

Response Body

Created; its sends are scheduled if a sequence is linked.

application/json
  1. response
id*string
Formatuuid
scheduled_at*string

ISO 8601 date-time with offset.

Formatdate-time
status*string

ready: the community exists. live/completed: the live happened. canceled: removed by a recurrence change or a stop.

Value in"upcoming""ready""live""completed""canceled"
state*string

Display state computed by the app (same vocabulary as the Occurrences tab).

detail*string|null
link_missing*boolean
community_due_at*|

When the community is (or was) due to be created.

Formatdate-time
groups*
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  }}
GET
/occurrences/{id}

Authorization

bearerAuth
headerAuthorizationBearer <token>

An API key created in Settings > Integrations (gp_live_…), or an OAuth access token.

Path Parameters

id*string
Formatuuid

Response Body

The occurrence, its communities and the creation state.

application/json
  1. response
occurrence*
event_id*string
Formatuuid
groups*array<>
provisioning*|null
curl -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"  }}
POST
/occurrences/{id}/retry-provisioning

Only when the occurrence needs attention (can_retry). The scheduler does retry by itself; this forces it on its next tick.

Authorization

bearerAuth
headerAuthorizationBearer <token>

An API key created in Settings > Integrations (gp_live_…), or an OAuth access token.

Path Parameters

id*string
Formatuuid

Response Body

Accepted (or not yet due).

application/json
  1. response
accepted*boolean
mode*string
Value in"create""resume""repair""retry"
provisioning_status*string|null
retry_available_at*|

ISO 8601 date-time with offset.

Formatdate-time
curl -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"}