Skip to content

Integraties (Telegram, social, SMTP)

GraphQL mutations: Integraties (Telegram, social, SMTP).

Endpoint: POST https://graphql.persmonitor.nl/graphql

Intern · VPN

Mutations voor de monitor-app; op productie via /internal/.


addRssCustomFeed

Add a custom RSS feed for the current user. If the URL already exists (default or other user), the same feed is reused and linked.

Return type: RssFeed

Authenticatie: Ingelogde gebruiker (sessie- of API-token)

Argumenten:

ArgumentTypeVerplichtBeschrijving
urlString!JaRSS feed URL.
nameStringNeeDisplay name (optional, defaults to URL).

Voorbeeld:

graphql
query AddRssCustomFeed(
  $name: String
) {
  addRssCustomFeed(url: $url, name: $name) {
    # selecteer velden uit het return type
  }
}

createAiPrompt

Maak een AI-prompt aan voor een organisatie.

Return type: AiPrompt

Authenticatie: Ingelogde gebruiker (sessie- of API-token)

Argumenten:

ArgumentTypeVerplichtBeschrijving
inputCreateAiPromptInput!Ja

Voorbeeld:

graphql
query CreateAiPrompt {
  createAiPrompt(input: $input) {
    # selecteer velden uit het return type
  }
}

createCalendar

Create a calendar (iCal agenda) for the current environment. Requires Authorization Bearer token.

Return type: Calendar

Authenticatie: Ingelogde gebruiker (sessie- of API-token)

Argumenten:

ArgumentTypeVerplichtBeschrijving
inputCreateCalendarInput!Ja

Voorbeeld:

graphql
query CreateCalendar {
  createCalendar(input: $input) {
    # selecteer velden uit het return type
  }
}

createFacebookAccount

Koppel een Facebook-pagina aan de organisatie (page access token van OAuth). Vereist plan met custom services.

Return type: FacebookAccount

Authenticatie: Ingelogde gebruiker (sessie- of API-token)

Argumenten:

ArgumentTypeVerplichtBeschrijving
organizationUuidString!Ja
pageIdString!Ja
pageNameString!Ja
userIdString!Ja
accessTokenString!Ja

Voorbeeld:

graphql
query CreateFacebookAccount {
  createFacebookAccount(organizationUuid: $organizationUuid, pageId: $pageId, pageName: $pageName) {
    # selecteer velden uit het return type
  }
}

createLiveLocationSource

Maak een live locatiebron aan voor het huidige environment. Vereist Authorization Bearer token.

Return type: LiveLocationSource

Authenticatie: Ingelogde gebruiker (sessie- of API-token)

Argumenten:

ArgumentTypeVerplichtBeschrijving
inputCreateLiveLocationSourceInput!Ja

Voorbeeld:

graphql
query CreateLiveLocationSource {
  createLiveLocationSource(input: $input) {
    # selecteer velden uit het return type
  }
}

createTelegramBot

Create a new Telegram bot for an organization. Requires a plan that supports custom services.

Return type: TelegramBot

Authenticatie: Ingelogde gebruiker (sessie- of API-token)

Argumenten:

ArgumentTypeVerplichtBeschrijving
organizationUuidString!Ja
tokenString!Ja
usernameStringNee
nameStringNee

Voorbeeld:

graphql
query CreateTelegramBot(
  $username: String
  $name: String
) {
  createTelegramBot(organizationUuid: $organizationUuid, token: $token, username: $username) {
    # selecteer velden uit het return type
  }
}

createTemplate

Maak een custom template aan (alleen Unlimited plan).

Return type: NotificationTemplate

Authenticatie: Ingelogde gebruiker (sessie- of API-token)

Argumenten:

ArgumentTypeVerplichtBeschrijving
inputCreateTemplateInput!Ja

Voorbeeld:

graphql
query CreateTemplate {
  createTemplate(input: $input) {
    # selecteer velden uit het return type
  }
}

createTwitterAccount

Koppel een Twitter/X account aan de organisatie (OAuth-tokens van de callback). Vereist org TwitterConfig of platform TWITTER_CONSUMER_* keys.

Return type: TwitterAccount

Authenticatie: Ingelogde gebruiker (sessie- of API-token)

Argumenten:

ArgumentTypeVerplichtBeschrijving
organizationUuidString!Ja
userIdString!Ja
usernameString!Ja
accessTokenString!Ja
refreshTokenString!Ja

Voorbeeld:

graphql
query CreateTwitterAccount {
  createTwitterAccount(organizationUuid: $organizationUuid, userId: $userId, username: $username) {
    # selecteer velden uit het return type
  }
}

deleteAiPrompt

Verwijder een AI-prompt.

Return type: Boolean!

Authenticatie: Ingelogde gebruiker (sessie- of API-token)

Argumenten:

ArgumentTypeVerplichtBeschrijving
uuidString!Ja

Voorbeeld:

graphql
query DeleteAiPrompt {
  deleteAiPrompt(uuid: $uuid) {
    # selecteer velden uit het return type
  }
}

deleteCalendar

Delete a calendar for the current environment. Requires Authorization Bearer token.

Return type: Boolean!

Authenticatie: Ingelogde gebruiker (sessie- of API-token)

Argumenten:

ArgumentTypeVerplichtBeschrijving
calendarUuidString!Ja

Voorbeeld:

graphql
query DeleteCalendar {
  deleteCalendar(calendarUuid: $calendarUuid) {
    # selecteer velden uit het return type
  }
}

deleteFacebookAccount

Verwijder een gekoppelde Facebook-pagina.

Return type: Boolean!

Authenticatie: Ingelogde gebruiker (sessie- of API-token)

Argumenten:

ArgumentTypeVerplichtBeschrijving
facebookAccountUuidString!Ja

Voorbeeld:

graphql
query DeleteFacebookAccount {
  deleteFacebookAccount(facebookAccountUuid: $facebookAccountUuid) {
    # selecteer velden uit het return type
  }
}

deleteLiveLocationSource

Verwijder een live locatiebron. Vereist Authorization Bearer token.

Return type: Boolean!

Authenticatie: Ingelogde gebruiker (sessie- of API-token)

Argumenten:

ArgumentTypeVerplichtBeschrijving
uuidString!Ja

Voorbeeld:

graphql
query DeleteLiveLocationSource {
  deleteLiveLocationSource(uuid: $uuid) {
    # selecteer velden uit het return type
  }
}

deleteTelegramBot

Delete a Telegram bot.

Return type: Boolean!

Authenticatie: Ingelogde gebruiker (sessie- of API-token)

Argumenten:

ArgumentTypeVerplichtBeschrijving
uuidString!Ja

Voorbeeld:

graphql
query DeleteTelegramBot {
  deleteTelegramBot(uuid: $uuid) {
    # selecteer velden uit het return type
  }
}

deleteTemplate

Verwijder een custom template.

Return type: Boolean!

Authenticatie: Ingelogde gebruiker (sessie- of API-token)

Argumenten:

ArgumentTypeVerplichtBeschrijving
uuidString!Ja

Voorbeeld:

graphql
query DeleteTemplate {
  deleteTemplate(uuid: $uuid) {
    # selecteer velden uit het return type
  }
}

deleteTwitterAccount

Verwijder een gekoppeld Twitter-account. Kan alleen als het niet aan een kanaal is gekoppeld.

Return type: Boolean!

Authenticatie: Ingelogde gebruiker (sessie- of API-token)

Argumenten:

ArgumentTypeVerplichtBeschrijving
twitterAccountUuidString!Ja

Voorbeeld:

graphql
query DeleteTwitterAccount {
  deleteTwitterAccount(twitterAccountUuid: $twitterAccountUuid) {
    # selecteer velden uit het return type
  }
}

previewAiContent

Preview AI title/body for a sample alert using org/channel prompts.

Return type: AiContentPreview!

Authenticatie: Ingelogde gebruiker (sessie- of API-token)

Argumenten:

ArgumentTypeVerplichtBeschrijving
inputPreviewAiContentInput!Ja

Voorbeeld:

graphql
query PreviewAiContent {
  previewAiContent(input: $input) {
    # selecteer velden uit het return type
  }
}

Registreer een pending Telegram-koppeling. De organisatie-UUID wordt de koppelcode; bij /start {orgUuid} in Telegram wordt het kanaal direct aangemaakt.

Return type: Boolean!

Authenticatie: Ingelogde gebruiker (sessie- of API-token)

Argumenten:

ArgumentTypeVerplichtBeschrijving
organizationUuidString!Ja
environmentUuidString!Ja

Voorbeeld:

graphql
query RegisterTelegramPendingLink {
  registerTelegramPendingLink(organizationUuid: $organizationUuid, environmentUuid: $environmentUuid) {
    # selecteer velden uit het return type
  }
}

removeRssCustomFeed

Remove a custom RSS feed for the current user (only unlinks, feed data remains for others).

Return type: Boolean!

Authenticatie: Ingelogde gebruiker (sessie- of API-token)

Argumenten:

ArgumentTypeVerplichtBeschrijving
feedUuidString!JaUUID of the feed to remove from your custom list.

Voorbeeld:

graphql
query RemoveRssCustomFeed {
  removeRssCustomFeed(feedUuid: $feedUuid) {
    # selecteer velden uit het return type
  }
}

renameLiveLocationSource

Hernoem een live locatiebron. Vereist Authorization Bearer token.

Return type: LiveLocationSource

Authenticatie: Ingelogde gebruiker (sessie- of API-token)

Argumenten:

ArgumentTypeVerplichtBeschrijving
uuidString!Ja
nameString!Ja

Voorbeeld:

graphql
query RenameLiveLocationSource {
  renameLiveLocationSource(uuid: $uuid, name: $name) {
    # selecteer velden uit het return type
  }
}

resetCustomServices

Reset all custom services to platform defaults.

Return type: CustomServices

Authenticatie: Ingelogde gebruiker (sessie- of API-token)

Argumenten:

ArgumentTypeVerplichtBeschrijving
organizationUuidString!Ja

Voorbeeld:

graphql
query ResetCustomServices {
  resetCustomServices(organizationUuid: $organizationUuid) {
    # selecteer velden uit het return type
  }
}

resetOrganizationAiSettings

Reset organization AI settings (removes API key and custom prompt).

Return type: OrganizationAiSettings!

Authenticatie: Ingelogde gebruiker (sessie- of API-token)

Argumenten:

ArgumentTypeVerplichtBeschrijving
organizationUuidString!Ja

Voorbeeld:

graphql
query ResetOrganizationAiSettings {
  resetOrganizationAiSettings(organizationUuid: $organizationUuid) {
    # selecteer velden uit het return type
  }
}

setFireStationAssetCover

Kies welk gekoppeld asset de cover is van een kazerne (platform admin).

Return type: Asset!

Authenticatie: Ingelogde gebruiker (sessie- of API-token)

Argumenten:

ArgumentTypeVerplichtBeschrijving
stationUuidString!Ja
mediaUuidString!JaUUID van het Media/Asset-node.

Voorbeeld:

graphql
query SetFireStationAssetCover {
  setFireStationAssetCover(stationUuid: $stationUuid, mediaUuid: $mediaUuid) {
    # selecteer velden uit het return type
  }
}

setFireVehicleAssetCover

Kies welk gekoppeld asset de cover is van een voertuig (platform admin).

Return type: Asset!

Authenticatie: Ingelogde gebruiker (sessie- of API-token)

Argumenten:

ArgumentTypeVerplichtBeschrijving
vehicleUuidString!Ja
mediaUuidString!JaUUID van het Media/Asset-node.

Voorbeeld:

graphql
query SetFireVehicleAssetCover {
  setFireVehicleAssetCover(vehicleUuid: $vehicleUuid, mediaUuid: $mediaUuid) {
    # selecteer velden uit het return type
  }
}

testSms

Test the custom SMS configuration.

Return type: Boolean!

Authenticatie: Ingelogde gebruiker (sessie- of API-token)

Argumenten:

ArgumentTypeVerplichtBeschrijving
organizationUuidString!Ja

Voorbeeld:

graphql
query TestSms {
  testSms(organizationUuid: $organizationUuid) {
    # selecteer velden uit het return type
  }
}

testSmtp

Test the custom SMTP configuration.

Return type: Boolean!

Authenticatie: Ingelogde gebruiker (sessie- of API-token)

Argumenten:

ArgumentTypeVerplichtBeschrijving
organizationUuidString!Ja

Voorbeeld:

graphql
query TestSmtp {
  testSmtp(organizationUuid: $organizationUuid) {
    # selecteer velden uit het return type
  }
}

testTelegramBot

Test the custom Telegram bot configuration.

Return type: Boolean!

Authenticatie: Ingelogde gebruiker (sessie- of API-token)

Argumenten:

ArgumentTypeVerplichtBeschrijving
organizationUuidString!Ja

Voorbeeld:

graphql
query TestTelegramBot {
  testTelegramBot(organizationUuid: $organizationUuid) {
    # selecteer velden uit het return type
  }
}

updateAiPrompt

Werk een AI-prompt bij.

Return type: AiPrompt

Authenticatie: Ingelogde gebruiker (sessie- of API-token)

Argumenten:

ArgumentTypeVerplichtBeschrijving
inputUpdateAiPromptInput!Ja

Voorbeeld:

graphql
query UpdateAiPrompt {
  updateAiPrompt(input: $input) {
    # selecteer velden uit het return type
  }
}

updateCustomServices

Update custom services configuration for an organization. Requires Unlimited plan.

Return type: CustomServices

Authenticatie: Ingelogde gebruiker (sessie- of API-token)

Argumenten:

ArgumentTypeVerplichtBeschrijving
inputUpdateCustomServicesInput!Ja

Voorbeeld:

graphql
query UpdateCustomServices {
  updateCustomServices(input: $input) {
    # selecteer velden uit het return type
  }
}

updateOrganizationAiSettings

Update organization AI provider settings. API keys are encrypted and never returned.

Return type: OrganizationAiSettings!

Authenticatie: Ingelogde gebruiker (sessie- of API-token)

Argumenten:

ArgumentTypeVerplichtBeschrijving
inputUpdateOrganizationAiSettingsInput!Ja

Voorbeeld:

graphql
query UpdateOrganizationAiSettings {
  updateOrganizationAiSettings(input: $input) {
    # selecteer velden uit het return type
  }
}

updateTelegramBot

Update a Telegram bot.

Return type: TelegramBot

Authenticatie: Ingelogde gebruiker (sessie- of API-token)

Argumenten:

ArgumentTypeVerplichtBeschrijving
uuidString!Ja
tokenStringNee
usernameStringNee
nameStringNee

Voorbeeld:

graphql
query UpdateTelegramBot(
  $token: String
  $username: String
  $name: String
) {
  updateTelegramBot(uuid: $uuid, token: $token, username: $username) {
    # selecteer velden uit het return type
  }
}

updateTemplate

Werk een custom template bij.

Return type: NotificationTemplate

Authenticatie: Ingelogde gebruiker (sessie- of API-token)

Argumenten:

ArgumentTypeVerplichtBeschrijving
inputUpdateTemplateInput!Ja

Voorbeeld:

graphql
query UpdateTemplate {
  updateTemplate(input: $input) {
    # selecteer velden uit het return type
  }
}

verifyTelegramBot

Verify a Telegram bot by testing connection with the Telegram API.

Return type: Boolean!

Authenticatie: Ingelogde gebruiker (sessie- of API-token)

Argumenten:

ArgumentTypeVerplichtBeschrijving
uuidString!Ja

Voorbeeld:

graphql
query VerifyTelegramBot {
  verifyTelegramBot(uuid: $uuid) {
    # selecteer velden uit het return type
  }
}