openapi: 3.2.0
info:
title: Chat and Messaging - Parley Events API
version: v1
description: 'This API enables a secure communication between your agent/bot desktop and the client website/mobile app.
## [Source view](https://app.swaggerhub.com/apis/kpn/secure-messenger-parley/)
[Documentation view](https://app.swaggerhub.com/apis-docs/kpn/secure-messenger-parley/)
---
## [KPN Developer](https://developer.kpn.com/)
[Getting Started](https://developer.kpn.com/getting-started)
---'
termsOfService: https://developer.kpn.com/legal
contact:
name: API Support
email: api_developer@kpn.com
url: https://developer.kpn.com/support
servers:
- url: https://api-prd.kpn.com/communication/parley/secure-messenger
description: Production server
tags:
- name: Events
paths:
/services/event/startTyping:
post:
tags:
- Events
summary: Send StartTyping event
description: 'Fires the StartTyping event and pushes data to the service '
operationId: PostEventStartTyping
security:
- oauth2: []
parameters:
- $ref: '#/components/parameters/api_version'
- $ref: '#/components/parameters/auth_string'
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/paths/~1services~1event~1stopTyping/post/responses/200/content/application~1json/schema'
examples:
success:
summary: success
value:
data: event startTyping executed
notifications: []
status: SUCCESS
metadata:
values:
url: services/event/startTyping
method: post
duration: 0.01
'400':
description: Error
content:
application/json:
schema:
$ref: '#/components/schemas/GetConfigResult/allOf/1'
examples:
error:
summary: Something went wrong with the event
value:
notifications:
- type: error
message: Something went wrong with the event
status: ERROR
metadata:
values:
url: services/event/startTyping
method: post
duration: 0.01
error2:
summary: Could not reach the service
value:
notifications:
- type: error
message: Could not reach the service
status: ERROR
metadata:
values:
url: services/event/startTyping
method: post
duration: 0.01
'401':
description: Error
content:
application/json:
schema:
$ref: '#/components/schemas/GetConfigResult/allOf/1'
examples:
error:
$ref: '#/paths/~1config/get/responses/401/content/application~1json/examples/error'
/services/event/stopTyping:
post:
tags:
- Events
summary: Send StopTyping event
description: 'Fires the StopTyping event and pushes data to the service '
operationId: PostEventStopTyping
parameters:
- $ref: '#/components/parameters/api_version'
- $ref: '#/components/parameters/auth_string'
security:
- oauth2: []
responses:
'200':
description: Success
content:
application/json:
schema:
allOf:
- type: object
properties:
data:
type: string
description: A message indicating that the event has been executed
required:
- data
- $ref: '#/components/schemas/GetConfigResult/allOf/1'
examples:
success:
summary: success
value:
data: event stopTyping executed
notifications: []
status: SUCCESS
metadata:
values:
url: services/event/stopTyping
method: post
duration: 0.01
'400':
description: Error
content:
application/json:
schema:
$ref: '#/components/schemas/GetConfigResult/allOf/1'
examples:
error:
summary: Something went wrong with the event
value:
notifications:
- type: error
message: Something went wrong with the event
status: ERROR
metadata:
values:
url: services/event/stopTyping
method: post
duration: 0.01
error2:
summary: Could not reach the service
value:
notifications:
- type: error
message: Could not reach the service
status: ERROR
metadata:
values:
url: services/event/stopTyping
method: post
duration: 0.01
'401':
description: Error
content:
application/json:
schema:
$ref: '#/components/schemas/GetConfigResult/allOf/1'
examples:
error:
$ref: '#/paths/~1config/get/responses/401/content/application~1json/examples/error'
components:
parameters:
api_version:
in: header
name: api-version
schema:
type: string
description: API Version. If no version is provided it defaults to latest version.
required: false
auth_string:
in: header
name: authString
schema:
type: string
description: The authentication of an user in your application. This string needs to be generated in a trusted environment (not inside the app). Documentation about how to generate this string can be found [here](https://gist.github.com/Gerben-T/36c71faf1879022ac5fa65ccd77b8f75)
required: false
schemas:
GetConfigResult:
allOf:
- type: object
properties:
data:
properties:
name:
type: string
description: 'The name of the authenticated application '
telephone:
type: string
description: 'The telephone number of the helpdesk '
font:
type: integer
minimum: 1
maximum: 5
description: "The font for all the text