Skip to content
TriedDocs
Integrations

List app event types

List the bookable event types of a connected Cal.com or Calendly app.

GEThttps://api.tried.com.au/list-app-event-types/:app_id

Returns the event types on the connected account, so you can set the one an agent books into: event_type_id (Cal.com) or event_type_uri (Calendly) in the app's config, with Update app. Hidden or inactive event types are left out. Each event type lists the fields a booking needs and where the agent gets them. An app in test mode (no credentials) returns one sample event type with id sample.

Request#

Path#

Field Type Required Description
app_id string Yes A Cal.com or Calendly app.

Example request#

curl "https://api.tried.com.au/list-app-event-types/app_0123456789abcdef01234567" \
  -H "Authorization: Bearer $TRIED_API_KEY"
const res = await fetch("https://api.tried.com.au/list-app-event-types/app_0123456789abcdef01234567", {
  headers: { Authorization: `Bearer ${process.env.TRIED_API_KEY}` },
});
const types = await res.json();
import os, requests

res = requests.get(
    "https://api.tried.com.au/list-app-event-types/app_0123456789abcdef01234567",
    headers={"Authorization": f"Bearer {os.environ['TRIED_API_KEY']}"},
)
types = res.json()

Response#

200 OK with an array of event types.

Field Type Description
id string Cal.com: the event type id. Calendly: the event type URI.
name string The event type's title.
required_fields array What each booking needs: key (the booking argument), label, and source.

source is caller (the agent asks the caller), booking_email (pass your bookings inbox as the email static argument) or caller_number (pass {{user_number}} as the phone static argument). Name and email are always required. Cal.com adds a required attendee phone and every required, visible custom field (key field_<slug>). Calendly adds the phone for an outbound call event and every enabled, required question (key answer_<position>).

[
  {
    "id": "101",
    "name": "Consultation",
    "required_fields": [
      { "key": "name", "label": "Name", "source": "caller" },
      { "key": "email", "label": "Email", "source": "booking_email" },
      { "key": "field_reason", "label": "Reason for visit", "source": "caller" }
    ]
  }
]

Errors#

Status When
400 The app is not a Cal.com or Calendly app.
401 Missing or invalid API key.
403 The key's IP allowlist or scopes reject the request. This route needs the admin scope.
404 No app with that id.
429 Rate limit exceeded. See Rate limits.

See Errors for the body format.