Liens d’agenda

Les événements gardés avec leur page, leur fichier .ics et leurs chiffres.

Valeurs des exemples

Saisissez-les une fois : tous les exemples de cette page les utilisent. La clé d’API reste sur cette page et n’est jamais enregistrée.

GET/v1/calendar-events

Liste les événements d’agenda enregistrés.

ListerEn cas de succès : 200.Permission : Lire.

Réponse

25 champs
ChampTypeToujours présent
[].activebooleanOui
[].adds30integerOui
[].allDaybooleanOui
[].createdAtstring (date-time)Oui
[].createdBystring (uuid)Oui
[].descriptionstringOui
[].endDatestring (date)Oui
[].endTimestringOui
[].icsUrlstring (uri)Oui
[].idstring (uuid)Oui
[].locationstringOui
[].pageUrlstring (uri)Oui
[].publicIdstringOui
[].reminderMinutesintegerOui
[].repeatnull dans les exemplesOui
[].startDatestring (date)Oui
[].startTimestringOui
[].templateIdstring | nullOui
[].themeobjectOui
[].timezonestringOui
[].titlestringOui
[].updatedAtstring (date-time)Oui
[].updatedBystring (uuid)Oui
[].urlnull dans les exemplesOui
[].views30integerOui
Exemple
curl -X GET "https://api.firmado.app/v1/calendar-events" \
  -H "X-Api-Key: fmd_..."

Réponse (200), avec des valeurs d’exemple :

[
  {
    "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
    "publicId": "…",
    "title": "…",
    "description": "…",
    "location": "…",
    "url": null,
    "timezone": "…",
    "allDay": true,
    "startDate": "2026-11-21",
    "startTime": "…",
    "endDate": "2026-11-21",
    "endTime": "…",
    "repeat": null,
    "reminderMinutes": 1,
    "templateId": "…",
    "theme": {},
    "active": true,
    "createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
    "updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
    "createdAt": "2026-11-21T14:00:00.000Z",
    "updatedAt": "2026-11-21T14:00:00.000Z",
    "pageUrl": "https://example.com",
    "icsUrl": "https://example.com",
    "views30": 1,
    "adds30": 1
  }
]

POST/v1/calendar-events

Enregistre un événement d’agenda, avec sa page et son fichier .ics.

CréerEn cas de succès : 201.Permission : Créer.

Corps

ChampTypeObligatoireNotes
titlestringOuimin length 1 · max length 200
descriptionstring | nullNon
locationstring | nullNon
urlstring (uri) | nullNon
timezonestringOuimax length 64
allDaybooleanNondefault false
startDatestringOuipattern ^\d{4}-\d{2}-\d{2}$
startTimestring | nullNon
endDatestringOuipattern ^\d{4}-\d{2}-\d{2}$
endTimestring | nullNon
repeatobject | nullNon
repeat.freq"daily" | "weekly" | "monthly" | "yearly"Oui
repeat.intervalintegerNonmin 1 · max 99 · default 1
repeat.countinteger | nullNondefault null
repeat.untilstring | nullNondefault null
reminderMinutesinteger | nullNon
templateId"classic" | "modern" | "minimal" | "bold" | nullNon
themeobjectNon
theme.primaryColorstringNonpattern ^#[0-9a-fA-F]{6}$
theme.accentColorstringNonpattern ^#[0-9a-fA-F]{6}$
theme.backgroundColorstringNonpattern ^#[0-9a-fA-F]{6}$
theme.textColorstringNonpattern ^#[0-9a-fA-F]{6}$
theme.headingFontstringNonpattern ^[A-Za-z0-9 ]{1,60}$
theme.bodyFontstringNonpattern ^[A-Za-z0-9 ]{1,60}$
theme.coverImageUrlstring (uri)Nonmax length 2000
theme.cornerRadius"none" | "small" | "medium" | "large"Non
activebooleanNondefault true

Réponse

25 champs
ChampTypeToujours présent
activebooleanOui
adds30integerOui
allDaybooleanOui
createdAtstring (date-time)Oui
createdBystring (uuid)Oui
descriptionstringOui
endDatestring (date)Oui
endTimestringOui
icsUrlstring (uri)Oui
idstring (uuid)Oui
locationstringOui
pageUrlstring (uri)Oui
publicIdstringOui
reminderMinutesintegerOui
repeatnull dans les exemplesOui
startDatestring (date)Oui
startTimestringOui
templateIdnull dans les exemplesOui
themeobjectOui
timezonestringOui
titlestringOui
updatedAtstring (date-time)Oui
updatedBystring (uuid)Oui
urlnull dans les exemplesOui
views30integerOui
Exemple
curl -X POST "https://api.firmado.app/v1/calendar-events" \
  -H "X-Api-Key: fmd_..." \
  -H "Content-Type: application/json" \
  -d '{
  "title": "…",
  "timezone": "…",
  "startDate": "…",
  "endDate": "…"
}'

Réponse (201), avec des valeurs d’exemple :

{
  "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "publicId": "…",
  "title": "…",
  "description": "…",
  "location": "…",
  "url": null,
  "timezone": "…",
  "allDay": true,
  "startDate": "2026-11-21",
  "startTime": "…",
  "endDate": "2026-11-21",
  "endTime": "…",
  "repeat": null,
  "reminderMinutes": 1,
  "templateId": null,
  "theme": {},
  "active": true,
  "createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "createdAt": "2026-11-21T14:00:00.000Z",
  "updatedAt": "2026-11-21T14:00:00.000Z",
  "pageUrl": "https://example.com",
  "icsUrl": "https://example.com",
  "views30": 1,
  "adds30": 1
}

DELETE/v1/calendar-events/{id}

Supprime un événement d’agenda avec sa page et son fichier.

SupprimerEn cas de succès : 204.Permission : Supprimer.

Paramètres de chemin

ChampTypeObligatoireNotes
idstringOui
Exemple
curl -X DELETE "https://api.firmado.app/v1/calendar-events/{id}" \
  -H "X-Api-Key: fmd_..."

GET/v1/calendar-events/{id}

Renvoie un événement d’agenda enregistré.

Voir unEn cas de succès : 200.Permission : Lire.

Paramètres de chemin

ChampTypeObligatoireNotes
idstringOui
Exemple
curl -X GET "https://api.firmado.app/v1/calendar-events/{id}" \
  -H "X-Api-Key: fmd_..."

PATCH/v1/calendar-events/{id}

Modifie un événement d’agenda ; sa page et son fichier gardent leur adresse.

ModifierEn cas de succès : 200.Permission : Modifier.

Paramètres de chemin

ChampTypeObligatoireNotes
idstringOui

Corps

ChampTypeObligatoireNotes
titlestringOuimin length 1 · max length 200
descriptionstring | nullNon
locationstring | nullNon
urlstring (uri) | nullNon
timezonestringOuimax length 64
allDaybooleanNondefault false
startDatestringOuipattern ^\d{4}-\d{2}-\d{2}$
startTimestring | nullNon
endDatestringOuipattern ^\d{4}-\d{2}-\d{2}$
endTimestring | nullNon
repeatobject | nullNon
repeat.freq"daily" | "weekly" | "monthly" | "yearly"Oui
repeat.intervalintegerNonmin 1 · max 99 · default 1
repeat.countinteger | nullNondefault null
repeat.untilstring | nullNondefault null
reminderMinutesinteger | nullNon
templateId"classic" | "modern" | "minimal" | "bold" | nullNon
themeobjectNon
theme.primaryColorstringNonpattern ^#[0-9a-fA-F]{6}$
theme.accentColorstringNonpattern ^#[0-9a-fA-F]{6}$
theme.backgroundColorstringNonpattern ^#[0-9a-fA-F]{6}$
theme.textColorstringNonpattern ^#[0-9a-fA-F]{6}$
theme.headingFontstringNonpattern ^[A-Za-z0-9 ]{1,60}$
theme.bodyFontstringNonpattern ^[A-Za-z0-9 ]{1,60}$
theme.coverImageUrlstring (uri)Nonmax length 2000
theme.cornerRadius"none" | "small" | "medium" | "large"Non
activebooleanNondefault true

Réponse

25 champs
ChampTypeToujours présent
activebooleanOui
adds30integerOui
allDaybooleanOui
createdAtstring (date-time)Oui
createdBystring (uuid)Oui
descriptionstringOui
endDatestring (date)Oui
endTimestringOui
icsUrlstring (uri)Oui
idstring (uuid)Oui
locationstringOui
pageUrlstring (uri)Oui
publicIdstringOui
reminderMinutesintegerOui
repeatnull dans les exemplesOui
startDatestring (date)Oui
startTimestringOui
templateIdstring | nullOui
themeobjectOui
timezonestringOui
titlestringOui
updatedAtstring (date-time)Oui
updatedBystring (uuid)Oui
urlnull dans les exemplesOui
views30integerOui
Exemple
curl -X PATCH "https://api.firmado.app/v1/calendar-events/{id}" \
  -H "X-Api-Key: fmd_..." \
  -H "Content-Type: application/json" \
  -d '{
  "title": "…",
  "timezone": "…",
  "startDate": "…",
  "endDate": "…"
}'

Réponse (200), avec des valeurs d’exemple :

{
  "id": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "publicId": "…",
  "title": "…",
  "description": "…",
  "location": "…",
  "url": null,
  "timezone": "…",
  "allDay": true,
  "startDate": "2026-11-21",
  "startTime": "…",
  "endDate": "2026-11-21",
  "endTime": "…",
  "repeat": null,
  "reminderMinutes": 1,
  "templateId": "…",
  "theme": {},
  "active": true,
  "createdBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "updatedBy": "3f0b6c3e-8a51-4c2b-9a51-0d6f3b2a7c10",
  "createdAt": "2026-11-21T14:00:00.000Z",
  "updatedAt": "2026-11-21T14:00:00.000Z",
  "pageUrl": "https://example.com",
  "icsUrl": "https://example.com",
  "views30": 1,
  "adds30": 1
}

GET/v1/calendar-events/{id}/stats

Visites de la page d’un événement et ajouts par agenda, par jour.

Lire/{id}/statsEn cas de succès : 200.Permission : Lire.

Paramètres de chemin

ChampTypeObligatoireNotes
idstringOui

Paramètres de requête

ChampTypeObligatoireNotes
daysintegerNonmin 7 · max 365 · default 30

Réponse

15 champs
ChampTypeToujours présent
byCalendarobjectOui
byCalendar.googleintegerOui
byCalendar.icsintegerOui
byCalendar.office365integerOui
byCalendar.outlookintegerOui
byCalendar.yahoointegerOui
daysintegerOui
seriesarray of objectOui
series[].addsintegerOui
series[].daystring (date)Oui
series[].viewsintegerOui
totalsobjectOui
totals.addRateintegerOui
totals.addsintegerOui
totals.viewsintegerOui
Exemple
curl -X GET "https://api.firmado.app/v1/calendar-events/{id}/stats" \
  -H "X-Api-Key: fmd_..."

Réponse (200), avec des valeurs d’exemple :

{
  "days": 1,
  "totals": {
    "views": 1,
    "adds": 1,
    "addRate": 1
  },
  "series": [
    {
      "day": "2026-11-21",
      "views": 1,
      "adds": 1
    }
  ],
  "byCalendar": {
    "google": 1,
    "outlook": 1,
    "office365": 1,
    "yahoo": 1,
    "ics": 1
  }
}

GET/v1/calendar-events/look

Le nom et le thème de l’organisation, pour l’aperçu de la page d’un événement.

Lire/lookEn cas de succès : 200.Permission : Lire.

Paramètres de requête

ChampTypeObligatoireNotes
templateId"classic" | "modern" | "minimal" | "bold"Non

Réponse

12 champs
ChampTypeToujours présent
organizationobjectOui
organization.languagestringOui
organization.namestringOui
templateIdstringOui
themeobjectOui
theme.accentColorstringOui
theme.backgroundColorstringOui
theme.bodyFontstringOui
theme.cornerRadiusstringOui
theme.headingFontstringOui
theme.primaryColorstringOui
theme.textColorstringOui
Exemple
curl -X GET "https://api.firmado.app/v1/calendar-events/look" \
  -H "X-Api-Key: fmd_..."

Réponse (200), avec des valeurs d’exemple :

{
  "organization": {
    "name": "Ana Lima",
    "language": "…"
  },
  "templateId": "…",
  "theme": {
    "primaryColor": "…",
    "accentColor": "…",
    "backgroundColor": "…",
    "textColor": "…",
    "headingFont": "…",
    "bodyFont": "…",
    "cornerRadius": "…"
  }
}

Événements de webhook

Les changements de cette fonctionnalité que les webhooks peuvent envoyer.

  • calendar_event.createdCréer
  • calendar_event.updatedModifier
  • calendar_event.deletedSupprimer