Skip to content

List event types.

Request

Returns the possible types that an event can have.

Security
oauth2
GET
/events/types
const instance = 'YOUR_instance_PARAMETER';
const resp = await fetch(
  `https://${instance}.app.willowinc.com/api/v3/events/types`,
  {
    method: 'GET',
    headers: {
      Authorization: 'Bearer <YOUR_TOKEN_HERE>'
    }
  }
);

const data = await resp.text();
console.log(data);

Responses

A collection of event types.

Body
Array [
idinteger, (int32)required

The unique identifier for the event type.

namestringrequired

The name of the event type.

]
Response
[
  {
    "id": 0,
    "name": "string"
  }
]